代码拉取完成,页面将自动刷新
%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.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。