123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211 |
- %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
- Name: nettle
- Version: 3.1.1
- Release: 1%{?_dist_release}
- Summary: A low-level cryptographic library
- Summary(ja): 低レベル暗号化ライブラリ
- Group: System Environment/Libraries
- License: LGPLv2+
- URL: http://www.lysator.liu.se/~nisse/nettle/
- Source0: http://www.lysator.liu.se/~nisse/archive/%{name}-%{version}.tar.gz
- BuildRoot: %{_tmppath}/%{name}-%{version}-root
- BuildRequires: gmp-devel
- BuildRequires: m4
- Requires(post): /sbin/install-info
- Requires(preun): /sbin/install-info
- Vendor: Project Vine
- Distribution: Vine Linux
- %package devel
- Summary: Development headers for a low-level cryptographic library
- Summary(ja): 低レベル暗号化ライブラリの開発ヘッダ
- Group: Development/Libraries
- Requires: %{name} = %{version}-%{release}
- #%package static
- #Summary: Static libraries for a low-level cryptographic library
- #Group: Development/Libraries
- #Requires: %{name}-devel = %{version}-%{release}
- %if %{build_compat32}
- %package -n compat32-%{name}
- Summary: A low-level cryptographic library
- Summary(ja): 低レベル暗号化ライブラリ
- Group: System Environment/Libraries
- Requires: %{name} = %{version}-%{release}
- %package -n compat32-%{name}-devel
- Summary: Development headers for a low-level cryptographic library
- Summary(ja): 低レベル暗号化ライブラリの開発ヘッダ
- Group: Development/Libraries
- Requires: %{name}-devel = %{version}-%{release}
- Requires: compat32-%{name} = %{version}-%{release}
- %endif
- %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
- kernel space. This package contains kernel headers.
- %if %{build_compat32}
- %description -n compat32-%{name}
- 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 -n compat32-%{name}-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
- kernel space. This package contains compat libraries.
- %endif
- #%description static
- #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. This package contains a static library.
- %prep
- %setup -q
- %build
- %configure --enable-shared
- make %{?_smp_mflags}
- %install
- rm -rf $RPM_BUILD_ROOT
- make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
- make install-shared DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
- #/usr/bin/iconv -f iso8859-1 -t utf-8 README > README.conv && /bin/mv -f README.conv README
- #/usr/bin/iconv -f iso8859-1 -t utf-8 ChangeLog > ChangeLog.conv && /bin/mv -f ChangeLog.conv ChangeLog
- #/usr/bin/iconv -f iso8859-1 -t utf-8 nettle.info > nettle.info.conv && /bin/mv -f nettle.info.conv nettle.info
- mkdir -p $RPM_BUILD_ROOT%{_infodir}
- install -p -m 644 nettle.info $RPM_BUILD_ROOT%{_infodir}/
- chmod 755 $RPM_BUILD_ROOT%{_libdir}/libhogweed.so.*
- chmod 755 $RPM_BUILD_ROOT%{_libdir}/libnettle.so.*
- rm -rf %{buildroot}/%{_libdir}/*.a
- rm -rf %{buildroot}/%{_infodir}/dir
- %check
- make check
- %clean
- rm -rf $RPM_BUILD_ROOT
- %files
- %defattr(-,root,root,-)
- %doc AUTHORS ChangeLog NEWS README TODO
- %{_infodir}/nettle.info.gz
- %{_bindir}/nettle-hash
- %{_bindir}/nettle-lfib-stream
- %{_bindir}/pkcs1-conv
- %{_bindir}/sexp-conv
- %{_bindir}/nettle-pbkdf2
- %{_libdir}/libhogweed.so.*
- %{_libdir}/libnettle.so.*
- %files devel
- %defattr(-,root,root,-)
- %doc descore.README nettle.html nettle.pdf
- %{_libdir}/libhogweed.so
- %{_libdir}/libnettle.so
- %{_includedir}/nettle
- %{_libdir}/pkgconfig/
- # compat32
- %if %{build_compat32}
- %files -n compat32-%{name}
- %defattr(-, root, root, 0755)
- %{_libdir}/libhogweed.so.*
- %{_libdir}/libnettle.so.*
- %files -n compat32-%{name}-devel
- %defattr(-, root, root, 0755)
- %{_libdir}/libhogweed.so
- %{_libdir}/libnettle.so
- %{_libdir}/pkgconfig/
- %endif
- #%files static
- #%defattr(-,root,root,-)
- #%doc COPYING
- #%{_libdir}/libhogweed.a
- #%{_libdir}/libnettle.a
- %post
- /sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || :
- /sbin/ldconfig
- %preun
- if [ $1 = 0 ]; then
- /sbin/install-info --delete %{_infodir}/%{name}.info.gz %{_infodir}/dir || :
- fi
- %postun -p /sbin/ldconfig
- %if %{build_compat32}
- %post -n compat32-%{name} -p /sbin/ldconfig
- %postun -n compat32-%{name} -p /sbin/ldconfig
- %endif
- %changelog
- * Mon Dec 28 2015 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 3.1.1-1
- - new upstream release
- * Thu Dec 11 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 2.7.1-4
- - fixed Requires typo of compat32-nettle-devel package
- * Sun Oct 26 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 2.7.1-3
- - moved nettle to System Environment/Libraries Group
- * Sun Feb 9 2014 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> - 2.7.1-2
- - add compat32,compat32-devel packages
- * Sun Jan 12 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 2.7.1-1
- - update to 2.7.1
- * Fri Dec 02 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.4-1
- - initial build for VineSeed
- * 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.
|