Blame SPECS/nettle.spec

c91e6d
Name:           nettle
c91e6d
Version:        2.7.1
c91e6d
Release:        8%{?dist}
c91e6d
Summary:        A low-level cryptographic library
c91e6d
c91e6d
Group:          Development/Libraries
c91e6d
License:        LGPLv2+
c91e6d
URL:            http://www.lysator.liu.se/~nisse/nettle/
c91e6d
Source0:	%{name}-%{version}-hobbled.tar.gz
c91e6d
#Source0:        http://www.lysator.liu.se/~nisse/archive/%{name}-%{version}.tar.gz
c91e6d
Patch0:		nettle-2.7.1-remove-ecc-testsuite.patch
c91e6d
Patch1:		nettle-2.7.1-tmpalloc.patch
c91e6d
Patch2:		nettle-2.7.1-sha3-fix.patch
c91e6d
Patch3:		nettle-2.7.1-ecc-cve.patch
c91e6d
Patch4:		nettle-2.7.1-powm-sec.patch
c91e6d
c91e6d
BuildRequires:  gmp-devel m4 texinfo-tex texlive-dvips ghostscript
c91e6d
BuildRequires:  fipscheck
c91e6d
BuildRequires:	libtool, automake, autoconf, texinfo
c91e6d
c91e6d
Requires(post): info
c91e6d
Requires(preun): info
c91e6d
c91e6d
c91e6d
%package devel
c91e6d
Summary:        Development headers for a low-level cryptographic library
c91e6d
Group:          Development/Libraries
c91e6d
Requires:       %{name} = %{version}-%{release}
c91e6d
Requires:       gmp-devel%{?_isa}
c91e6d
c91e6d
%description
c91e6d
Nettle is a cryptographic library that is designed to fit easily in more
c91e6d
or less any context: In crypto toolkits for object-oriented languages
c91e6d
(C++, Python, Pike, ...), in applications like LSH or GNUPG, or even in
c91e6d
kernel space.
c91e6d
c91e6d
%description devel
c91e6d
Nettle is a cryptographic library that is designed to fit easily in more
c91e6d
or less any context: In crypto toolkits for object-oriented languages
c91e6d
(C++, Python, Pike, ...), in applications like LSH or GNUPG, or even in
c91e6d
kernel space.  This package contains the files needed for developing 
c91e6d
applications with nettle.
c91e6d
c91e6d
c91e6d
%prep
c91e6d
%setup -q
c91e6d
# Disable -ggdb3 which makes debugedit unhappy
c91e6d
sed s/ggdb3/g/ -i configure
c91e6d
sed 's/ecc-192.c//g' -i Makefile.in
c91e6d
sed 's/ecc-224.c//g' -i Makefile.in
c91e6d
%patch0 -p1
c91e6d
%patch1 -p1 -b .tmpalloc
c91e6d
%patch2 -p1 -b .sha3
c91e6d
%patch3 -p1 -b .ecc-cve
c91e6d
%patch4 -p1 -b .powm-sec
c91e6d
c91e6d
%build
c91e6d
%configure --enable-shared
c91e6d
make %{?_smp_mflags}
c91e6d
c91e6d
%define __spec_install_post \
c91e6d
	%{?__debug_package:%{__debug_install_post}} \
c91e6d
	%{__arch_install_post} \
c91e6d
	%{__os_install_post} \
c91e6d
	fipshmac -d $RPM_BUILD_ROOT%{_libdir} $RPM_BUILD_ROOT%{_libdir}/libnettle.so.4.* \
c91e6d
	fipshmac -d $RPM_BUILD_ROOT%{_libdir} $RPM_BUILD_ROOT%{_libdir}/libhogweed.so.2.* \
c91e6d
	file=`basename $RPM_BUILD_ROOT%{_libdir}/libnettle.so.4.*.hmac` && mv $RPM_BUILD_ROOT%{_libdir}/$file $RPM_BUILD_ROOT%{_libdir}/.$file && ln -s .$file $RPM_BUILD_ROOT%{_libdir}/.libnettle.so.4.hmac \
c91e6d
	file=`basename $RPM_BUILD_ROOT%{_libdir}/libhogweed.so.2.*.hmac` && mv $RPM_BUILD_ROOT%{_libdir}/$file $RPM_BUILD_ROOT%{_libdir}/.$file && ln -s .$file $RPM_BUILD_ROOT%{_libdir}/.libhogweed.so.2.hmac \
c91e6d
%{nil}
c91e6d
c91e6d
c91e6d
%install
c91e6d
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
c91e6d
make install-shared DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
c91e6d
mkdir -p $RPM_BUILD_ROOT%{_infodir}
c91e6d
install -p -m 644 nettle.info $RPM_BUILD_ROOT%{_infodir}/
c91e6d
rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
c91e6d
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
c91e6d
chmod 0755 $RPM_BUILD_ROOT%{_libdir}/libnettle.so.4.*
c91e6d
chmod 0755 $RPM_BUILD_ROOT%{_libdir}/libhogweed.so.2.*
c91e6d
%check
c91e6d
make check
c91e6d
c91e6d
%files
c91e6d
%doc AUTHORS ChangeLog COPYING.LIB NEWS README TODO
c91e6d
%{_infodir}/nettle.info.gz
c91e6d
%{_bindir}/nettle-lfib-stream
c91e6d
%{_bindir}/pkcs1-conv
c91e6d
%{_bindir}/sexp-conv
c91e6d
%{_bindir}/nettle-hash
c91e6d
%{_libdir}/libnettle.so.4
c91e6d
%{_libdir}/libnettle.so.4.*
c91e6d
%{_libdir}/libhogweed.so.2
c91e6d
%{_libdir}/libhogweed.so.2.*
c91e6d
%{_libdir}/.libhogweed.so.*.hmac
c91e6d
%{_libdir}/.libnettle.so.*.hmac
c91e6d
c91e6d
c91e6d
%files devel
c91e6d
%doc descore.README nettle.html nettle.pdf COPYING.LIB
c91e6d
%{_includedir}/nettle
c91e6d
%{_libdir}/libnettle.so
c91e6d
%{_libdir}/libhogweed.so
c91e6d
%{_libdir}/pkgconfig/hogweed.pc
c91e6d
%{_libdir}/pkgconfig/nettle.pc
c91e6d
c91e6d
%post
c91e6d
/sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || :
c91e6d
/sbin/ldconfig
c91e6d
c91e6d
%preun
c91e6d
if [ $1 = 0 ]; then
c91e6d
  /sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || :
c91e6d
fi
c91e6d
c91e6d
%postun -p /sbin/ldconfig
c91e6d
c91e6d
c91e6d
c91e6d
%changelog
c91e6d
* Mon Aug  8 2016 Nikos Mavrogiannopoulos <nmav@redhat.com> - 2.7.1-8
c91e6d
- Use a cache-silent version of mpz_powm to prevent cache-timing
c91e6d
  attacks against RSA and DSA in shared VMs. (#1364897,CVE-2016-6489)
c91e6d
c91e6d
* Wed Mar  2 2016 Nikos Mavrogiannopoulos <nmav@redhat.com> - 2.7.1-5
c91e6d
- Fixed SHA-3 implementation to conform to final standard (#1252936)
c91e6d
- Fixed CVE-2015-8803 CVE-2015-8804 CVE-2015-8805 which caused issues
c91e6d
  in secp256r1 and secp384r1 calculations (#1314374)
c91e6d
c91e6d
* Tue Jul 29 2014 Nikos Mavrogiannopoulos <nmav@redhat.com> - 2.7.1-4
c91e6d
- Correct path of links (#1117782)
c91e6d
c91e6d
* Mon Jul 28 2014 Nikos Mavrogiannopoulos <nmav@redhat.com> - 2.7.1-3
c91e6d
- Added fipshmac checksum (#1117782)
c91e6d
c91e6d
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 2.7.1-2
c91e6d
- Mass rebuild 2014-01-24
c91e6d
c91e6d
* Wed Jan 15 2014 Tomáš Mráz <tmraz@redhat.com> - 2.7.1-1
c91e6d
- Updated to nettle 2.7.1
c91e6d
c91e6d
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 2.6-4
c91e6d
- Mass rebuild 2013-12-27
c91e6d
c91e6d
* Fri Dec 13 2013 Nikos Mavrogiannopoulos <nmav@redhat.com> - 2.6-3
c91e6d
- Added patch nettle-tmpalloc.patch (#1033570)
c91e6d
c91e6d
* Wed Feb  6 2013 Tomáš Mráz <tmraz@redhat.com> - 2.6-2
c91e6d
- nettle includes use gmp.h
c91e6d
c91e6d
* Tue Feb  5 2013 Tomáš Mráz <tmraz@redhat.com> - 2.6-1
c91e6d
- New upstream release
c91e6d
c91e6d
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4-4
c91e6d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
c91e6d
c91e6d
* Thu Jul 05 2012 David Woodhouse <dwmw2@infradead.org> - 2.4-3
c91e6d
- Remove explicit buildroot handling and defattr.
c91e6d
c91e6d
* Wed Jul 04 2012 David Woodhouse <dwmw2@infradead.org> - 2.4-2
c91e6d
- Review feedback
c91e6d
c91e6d
* Mon Jun 18 2012 David Woodhouse <dwmw2@infradead.org> - 2.4-1
c91e6d
- Revive package (GnuTLS needs it), disable static, update to current release 2.4
c91e6d
c91e6d
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.15-7
c91e6d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
c91e6d
c91e6d
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.15-6
c91e6d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
c91e6d
c91e6d
* Thu Apr 10 2008 Ian Weller <ianweller@gmail.com> 1.15-5
c91e6d
- Moved static lib to -static
c91e6d
c91e6d
* Mon Mar 24 2008 Ian Weller <ianweller@gmail.com> 1.15-4
c91e6d
- Added libraries and ldconfig
c91e6d
c91e6d
* Mon Feb 18 2008 Ian Weller <ianweller@gmail.com> 1.15-3
c91e6d
- Added provides -static to -devel
c91e6d
c91e6d
* Sun Feb 17 2008 Ian Weller <ianweller@gmail.com> 1.15-2
c91e6d
- Removed redundant requires
c91e6d
- Removed redundant documentation between packages
c91e6d
- Fixed license tag
c91e6d
- Fixed -devel description
c91e6d
- Added the static library back to -devel
c91e6d
- Added make clean
c91e6d
c91e6d
* Fri Feb 08 2008 Ian Weller <ianweller@gmail.com> 1.15-1
c91e6d
- First package build.