2012-06-18 11:00:41 +00:00
|
|
|
Name: nettle
|
2013-11-25 15:06:35 +00:00
|
|
|
Version: 2.7.1
|
2014-06-07 12:37:59 +00:00
|
|
|
Release: 4%{?dist}
|
2012-06-18 11:00:41 +00:00
|
|
|
Summary: A low-level cryptographic library
|
|
|
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
License: LGPLv2+
|
|
|
|
URL: http://www.lysator.liu.se/~nisse/nettle/
|
2013-11-25 15:06:35 +00:00
|
|
|
Source0: %{name}-%{version}-hobbled.tar.gz
|
|
|
|
#Source0: http://www.lysator.liu.se/~nisse/archive/%{name}-%{version}.tar.gz
|
|
|
|
Patch0: nettle-2.7.1-remove-ecc-testsuite.patch
|
2013-12-13 14:47:30 +00:00
|
|
|
Patch1: nettle-2.7.1-tmpalloc.patch
|
2012-06-18 11:00:41 +00:00
|
|
|
|
2012-07-05 12:11:24 +00:00
|
|
|
BuildRequires: gmp-devel m4 texinfo-tex texlive-dvips ghostscript
|
2012-06-18 11:00:41 +00:00
|
|
|
|
2012-07-05 12:11:24 +00:00
|
|
|
Requires(post): info
|
|
|
|
Requires(preun): info
|
2012-06-18 11:00:41 +00:00
|
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development headers for a low-level cryptographic library
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
2013-02-06 12:34:06 +00:00
|
|
|
Requires: gmp-devel%{?_isa}
|
2012-06-18 11:00:41 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
Nettle is a cryptographic library that is designed to fit easily in more
|
|
|
|
or less any context: In crypto toolkits for object-oriented languages
|
|
|
|
(C++, Python, Pike, ...), in applications like LSH or GNUPG, or even in
|
|
|
|
kernel space.
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
Nettle is a cryptographic library that is designed to fit easily in more
|
|
|
|
or less any context: In crypto toolkits for object-oriented languages
|
|
|
|
(C++, Python, Pike, ...), in applications like LSH or GNUPG, or even in
|
2013-11-26 10:15:26 +00:00
|
|
|
kernel space. This package contains the files needed for developing
|
|
|
|
applications with nettle.
|
2012-06-18 11:00:41 +00:00
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
# Disable -ggdb3 which makes debugedit unhappy
|
|
|
|
sed s/ggdb3/g/ -i configure
|
2013-11-25 15:06:35 +00:00
|
|
|
sed 's/ecc-192.c//g' -i Makefile.in
|
|
|
|
sed 's/ecc-224.c//g' -i Makefile.in
|
|
|
|
%patch0 -p1
|
2013-12-13 14:47:30 +00:00
|
|
|
%patch1 -p1 -b .tmpalloc
|
2012-06-18 11:00:41 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
%configure --enable-shared
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
|
|
|
|
make install-shared DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_infodir}
|
|
|
|
install -p -m 644 nettle.info $RPM_BUILD_ROOT%{_infodir}/
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
2013-02-05 20:23:44 +00:00
|
|
|
chmod 0755 $RPM_BUILD_ROOT%{_libdir}/libnettle.so.4.*
|
|
|
|
chmod 0755 $RPM_BUILD_ROOT%{_libdir}/libhogweed.so.2.*
|
2012-06-18 11:00:41 +00:00
|
|
|
%check
|
|
|
|
make check
|
|
|
|
|
|
|
|
%files
|
|
|
|
%doc AUTHORS ChangeLog COPYING.LIB NEWS README TODO
|
|
|
|
%{_infodir}/nettle.info.gz
|
|
|
|
%{_bindir}/nettle-lfib-stream
|
|
|
|
%{_bindir}/pkcs1-conv
|
|
|
|
%{_bindir}/sexp-conv
|
|
|
|
%{_bindir}/nettle-hash
|
|
|
|
%{_libdir}/libnettle.so.4
|
2013-02-05 20:23:44 +00:00
|
|
|
%{_libdir}/libnettle.so.4.*
|
2012-06-18 11:00:41 +00:00
|
|
|
%{_libdir}/libhogweed.so.2
|
2013-02-05 20:23:44 +00:00
|
|
|
%{_libdir}/libhogweed.so.2.*
|
2012-06-18 11:00:41 +00:00
|
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%doc descore.README nettle.html nettle.pdf COPYING.LIB
|
|
|
|
%{_includedir}/nettle
|
|
|
|
%{_libdir}/libnettle.so
|
|
|
|
%{_libdir}/libhogweed.so
|
|
|
|
%{_libdir}/pkgconfig/hogweed.pc
|
|
|
|
%{_libdir}/pkgconfig/nettle.pc
|
|
|
|
|
|
|
|
%post
|
|
|
|
/sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || :
|
|
|
|
/sbin/ldconfig
|
|
|
|
|
|
|
|
%preun
|
|
|
|
if [ $1 = 0 ]; then
|
2012-07-05 12:11:24 +00:00
|
|
|
/sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || :
|
2012-06-18 11:00:41 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2014-06-07 12:37:59 +00:00
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.7.1-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2014-01-10 10:24:53 +00:00
|
|
|
* Fri Jan 10 2014 Nikos Mavrogiannopoulos <nmav@redhat.com> - 2.7.1-3
|
|
|
|
- Corrected bug number in previous comment.
|
|
|
|
|
2013-12-13 14:47:30 +00:00
|
|
|
* Fri Dec 13 2013 Nikos Mavrogiannopoulos <nmav@redhat.com> - 2.7.1-2
|
2014-01-10 10:24:53 +00:00
|
|
|
- Added patch nettle-tmpalloc.patch to solve #1051455
|
2013-12-13 14:47:30 +00:00
|
|
|
|
2013-11-25 15:06:35 +00:00
|
|
|
* Mon Nov 25 2013 Nikos Mavrogiannopoulos <nmav@redhat.com> - 2.7.1-1
|
|
|
|
- Updated to nettle 2.7.1
|
|
|
|
|
2013-08-03 13:12:34 +00:00
|
|
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-02-06 12:34:06 +00:00
|
|
|
* Wed Feb 6 2013 Tomáš Mráz <tmraz@redhat.com> - 2.6-2
|
|
|
|
- nettle includes use gmp.h
|
|
|
|
|
2013-02-05 20:23:44 +00:00
|
|
|
* Tue Feb 5 2013 Tomáš Mráz <tmraz@redhat.com> - 2.6-1
|
|
|
|
- New upstream release
|
|
|
|
|
2012-07-20 04:39:13 +00:00
|
|
|
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-07-05 12:11:44 +00:00
|
|
|
* Thu Jul 05 2012 David Woodhouse <dwmw2@infradead.org> - 2.4-3
|
|
|
|
- Remove explicit buildroot handling and defattr.
|
|
|
|
|
2012-07-05 12:11:24 +00:00
|
|
|
* Wed Jul 04 2012 David Woodhouse <dwmw2@infradead.org> - 2.4-2
|
|
|
|
- Review feedback
|
|
|
|
|
2012-06-18 11:00:41 +00:00
|
|
|
* Mon Jun 18 2012 David Woodhouse <dwmw2@infradead.org> - 2.4-1
|
|
|
|
- Revive package (GnuTLS needs it), disable static, update to current release 2.4
|
|
|
|
|
|
|
|
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.15-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
|
|
|
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.15-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
|
|
|
* Thu Apr 10 2008 Ian Weller <ianweller@gmail.com> 1.15-5
|
|
|
|
- Moved static lib to -static
|
|
|
|
|
|
|
|
* Mon Mar 24 2008 Ian Weller <ianweller@gmail.com> 1.15-4
|
|
|
|
- Added libraries and ldconfig
|
|
|
|
|
|
|
|
* Mon Feb 18 2008 Ian Weller <ianweller@gmail.com> 1.15-3
|
|
|
|
- Added provides -static to -devel
|
|
|
|
|
|
|
|
* Sun Feb 17 2008 Ian Weller <ianweller@gmail.com> 1.15-2
|
|
|
|
- Removed redundant requires
|
|
|
|
- Removed redundant documentation between packages
|
|
|
|
- Fixed license tag
|
|
|
|
- Fixed -devel description
|
|
|
|
- Added the static library back to -devel
|
|
|
|
- Added make clean
|
|
|
|
|
|
|
|
* Fri Feb 08 2008 Ian Weller <ianweller@gmail.com> 1.15-1
|
|
|
|
- First package build.
|