1 Star 0 Fork 18

yu_boyun/nettle

forked from src-openEuler/nettle 
Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
文件
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
nettle.spec 1.96 KB
Copy Edit Raw Blame History
朱春意 authored 2019-11-06 19:43 . update code
Name: nettle
Version: 3.4.1rc1
Release: 4
Summary: A low-level cryptographic library
License: LGPLv3+ or GPLv2+
URL: https://www.lysator.liu.se/~nisse/nettle/
Source0: https://www.lysator.liu.se/~nisse/archive/%{name}-%{version}.tar.gz
Patch0: 0000-nettle-3.3-remove-ecc-testsuite.patch
BuildRequires: automake autoconf fipscheck gcc gettext-devel gmp-devel libtool m4
%description
Nettle is a cryptographic library designed to fit any context:
in crypto toolkits for object-oriented languages, in applications
like LSH or GnuPG, or even in kernel space.
%package devel
Summary: Development headers for %{name} package
Requires: %{name} = %{version}-%{release} gmp-devel
%description devel
The devel for %{name}
%package_help
%prep
%autosetup -n %{name}-3.4.1 -p1
sed s/ggdb3/g/ -i configure
sed 's/ecc-192.c//g' -i Makefile.in
sed 's/ecc-224.c//g' -i Makefile.in
%build
autoreconf -ifv
%configure --enable-shared --enable-fat
%make_build
%install
%make_install
make install-shared
install -D -p -m0644 nettle.info "$RPM_BUILD_ROOT%{_infodir}/nettle.info"
chmod 0755 $RPM_BUILD_ROOT%{_libdir}/libnettle.so.6.*
chmod 0755 $RPM_BUILD_ROOT%{_libdir}/libhogweed.so.4.*
%check
make check
%files
%defattr(-,root,root)
%doc AUTHORS descore.README nettle.pdf
%license COPYINGv2 COPYINGv3 COPYING.LESSERv3
%{_infodir}/nettle.info.gz
%{_libdir}/libnettle.so.6*
%{_libdir}/libhogweed.so.4*
%exclude %{_infodir}/dir
%exclude %{_bindir}/*
%files devel
%defattr(-,root,root)
%{_includedir}/nettle/
%{_libdir}/*.a
%{_libdir}/libnettle.so
%{_libdir}/libhogweed.so
%{_libdir}/pkgconfig/*
%files help
%defattr(-,root,root)
%doc NEWS README TODO
%doc nettle.html
%ldconfig_scriptlets
%changelog
* Mon Oct 21 2019 openEuler Buildteam <buildteam@openeuler.org> - 3.4.1rc1-4
- Type:enhancement
- Id:NA
- SUG:NA
- DESC:add COPYINGv3 in license
* Wed Sep 04 2019 openEuler Buildteam <buildteam@openeuler.org> - 3.4.1rc1-3
- Package init
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/yu_boyun/nettle.git
git@gitee.com:yu_boyun/nettle.git
yu_boyun
nettle
nettle
master

Search