6 Star 0 Fork 1

src-anolis-sig/sm3sum

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
sm3sum.spec 1.60 KB
一键复制 编辑 原始数据 按行查看 历史
YiLin.Li 提交于 2021-07-08 18:13 . Init rpm spec and dependent files
%define anolis_os_base_release 1
%global BIN_DIR /usr/bin
Summary: sm3sum which likes md5sum computes a 256-bit checksum for each specified file.
Name: sm3sum
Version: 1.0
Release: %{anolis_os_base_release}%{?dist}
License: GPLv3+
Group: System Environment/Base
Source0: %{name}-%{version}.tar.xz
Source1: version-etc.c
Patch10001: 10001-maint-add-sm3sum-based-on-OSCCA-SM3-secure-hash.patch
Conflicts: filesystem < 3
# To avoid clobbering installs
BuildRequires: attr
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: bison
BuildRequires: gcc
BuildRequires: gettext-devel
BuildRequires: git
BuildRequires: gmp-devel
BuildRequires: gperf
BuildRequires: hostname
BuildRequires: libacl-devel
BuildRequires: libattr-devel
BuildRequires: libcap-devel
BuildRequires: libselinux-devel
BuildRequires: libselinux-utils
BuildRequires: openssl-devel
BuildRequires: rsync
BuildRequires: strace
BuildRequires: texinfo
%if 23 < 0%{?fedora} || 7 < 0%{?rhel}
# needed by i18n test-cases
BuildRequires: glibc-langpack-en
%endif
Requires: ncurses
%description
sm3sum computes a 256-bit checksum for each specified file. The usage and options of this command are precisely the
same as for md5sum.
%prep
%autosetup -N
%patch10001 -p1
%build
export FORCE_UNSAFE_CONFIGURE=1
./bootstrap
autoreconf -f -i
./configure --disable-dependency-tracking
cp %{SOURCE1} %{_builddir}/%{name}-%{version}/gnulib/lib
make
%install
install -d -p %{buildroot}%{BIN_DIR}
install -p -m 755 src/%{name} %{buildroot}%{BIN_DIR}
%files
%{BIN_DIR}/%{name}
%changelog
* Thu Jul 29 2021 Yilin Li <YiLin.Li@linux.alibaba.com> 1.0-1
- Package init.
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-anolis-sig/sm3sum.git
git@gitee.com:src-anolis-sig/sm3sum.git
src-anolis-sig
sm3sum
sm3sum
a8.2

搜索帮助