| 1 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
|---|
| 2 | |
|---|
| 3 | Summary: A low-level cryptographic library |
|---|
| 4 | Summary(ja): 低レベル暗号化ライブラリ |
|---|
| 5 | Name: nettle |
|---|
| 6 | Version: 3.7.1 |
|---|
| 7 | Release: 1%{?_dist_release} |
|---|
| 8 | Group: system |
|---|
| 9 | Vendor: Project Vine |
|---|
| 10 | Distribution: Vine Linux |
|---|
| 11 | |
|---|
| 12 | License: LGPLv3+ or GPLv2+ |
|---|
| 13 | URL: http://www.lysator.liu.se/~nisse/nettle/ |
|---|
| 14 | Source0: https://ftp.gnu.org/gnu/nettle/nettle-%{version}.tar.gz |
|---|
| 15 | Patch0: nettle-3.4-annocheck.patch |
|---|
| 16 | |
|---|
| 17 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
|---|
| 18 | BuildRequires: gettext-devel |
|---|
| 19 | BuildRequires: gmp-devel |
|---|
| 20 | BuildRequires: m4 |
|---|
| 21 | |
|---|
| 22 | Requires(post): /sbin/install-info |
|---|
| 23 | Requires(preun): /sbin/install-info |
|---|
| 24 | |
|---|
| 25 | %description |
|---|
| 26 | Nettle is a cryptographic library that is designed to fit easily in more |
|---|
| 27 | or less any context: In crypto toolkits for object-oriented languages |
|---|
| 28 | (C++, Python, Pike, ...), in applications like LSH or GNUPG, or even in |
|---|
| 29 | kernel space. |
|---|
| 30 | |
|---|
| 31 | |
|---|
| 32 | %package devel |
|---|
| 33 | Summary: Development headers for a low-level cryptographic library |
|---|
| 34 | Summary(ja): 低レベル暗号化ライブラリの開発ヘッダ |
|---|
| 35 | Group: programming |
|---|
| 36 | Requires: %{name} = %{version}-%{release} |
|---|
| 37 | Requires: gmp-devel |
|---|
| 38 | |
|---|
| 39 | %description devel |
|---|
| 40 | Nettle is a cryptographic library that is designed to fit easily in more |
|---|
| 41 | or less any context: In crypto toolkits for object-oriented languages |
|---|
| 42 | (C++, Python, Pike, ...), in applications like LSH or GNUPG, or even in |
|---|
| 43 | kernel space. This package contains kernel headers. |
|---|
| 44 | |
|---|
| 45 | |
|---|
| 46 | %if %{build_compat32} |
|---|
| 47 | %package -n compat32-%{name} |
|---|
| 48 | Summary: A low-level cryptographic library |
|---|
| 49 | Summary(ja): 低レベル暗号化ライブラリ |
|---|
| 50 | Group: system |
|---|
| 51 | Requires: %{name} = %{version}-%{release} |
|---|
| 52 | |
|---|
| 53 | %description -n compat32-%{name} |
|---|
| 54 | Nettle is a cryptographic library that is designed to fit easily in more |
|---|
| 55 | or less any context: In crypto toolkits for object-oriented languages |
|---|
| 56 | (C++, Python, Pike, ...), in applications like LSH or GNUPG, or even in |
|---|
| 57 | kernel space. |
|---|
| 58 | |
|---|
| 59 | |
|---|
| 60 | %package -n compat32-%{name}-devel |
|---|
| 61 | Summary: Development headers for a low-level cryptographic library |
|---|
| 62 | Summary(ja): 低レベル暗号化ライブラリの開発ヘッダ |
|---|
| 63 | Group: programming |
|---|
| 64 | Requires: %{name}-devel = %{version}-%{release} |
|---|
| 65 | Requires: compat32-%{name} = %{version}-%{release} |
|---|
| 66 | Requires: compat32-gmp-devel |
|---|
| 67 | |
|---|
| 68 | %description -n compat32-%{name}-devel |
|---|
| 69 | Nettle is a cryptographic library that is designed to fit easily in more |
|---|
| 70 | or less any context: In crypto toolkits for object-oriented languages |
|---|
| 71 | (C++, Python, Pike, ...), in applications like LSH or GNUPG, or even in |
|---|
| 72 | kernel space. This package contains compat libraries. |
|---|
| 73 | %endif |
|---|
| 74 | |
|---|
| 75 | |
|---|
| 76 | %debug_package |
|---|
| 77 | |
|---|
| 78 | |
|---|
| 79 | %prep |
|---|
| 80 | %autosetup -p1 |
|---|
| 81 | |
|---|
| 82 | |
|---|
| 83 | %build |
|---|
| 84 | autoreconf -ifv |
|---|
| 85 | %configure --enable-shared --enable-fat |
|---|
| 86 | make %{?_smp_mflags} |
|---|
| 87 | |
|---|
| 88 | |
|---|
| 89 | %install |
|---|
| 90 | rm -rf $RPM_BUILD_ROOT |
|---|
| 91 | make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" |
|---|
| 92 | make install-shared DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" |
|---|
| 93 | mkdir -p $RPM_BUILD_ROOT%{_infodir} |
|---|
| 94 | install -p -m 644 nettle.info $RPM_BUILD_ROOT%{_infodir}/ |
|---|
| 95 | |
|---|
| 96 | chmod 755 $RPM_BUILD_ROOT%{_libdir}/libhogweed.so.* |
|---|
| 97 | chmod 755 $RPM_BUILD_ROOT%{_libdir}/libnettle.so.* |
|---|
| 98 | |
|---|
| 99 | rm -rf %{buildroot}/%{_libdir}/*.a |
|---|
| 100 | rm -rf %{buildroot}/%{_infodir}/dir |
|---|
| 101 | |
|---|
| 102 | |
|---|
| 103 | %check |
|---|
| 104 | make check |
|---|
| 105 | |
|---|
| 106 | |
|---|
| 107 | %clean |
|---|
| 108 | rm -rf $RPM_BUILD_ROOT |
|---|
| 109 | |
|---|
| 110 | |
|---|
| 111 | %files |
|---|
| 112 | %defattr(-,root,root,-) |
|---|
| 113 | %license COPYING* |
|---|
| 114 | %doc AUTHORS ChangeLog NEWS README TODO |
|---|
| 115 | %{_infodir}/nettle.info.gz |
|---|
| 116 | %{_bindir}/nettle-hash |
|---|
| 117 | %{_bindir}/nettle-lfib-stream |
|---|
| 118 | %{_bindir}/pkcs1-conv |
|---|
| 119 | %{_bindir}/sexp-conv |
|---|
| 120 | %{_bindir}/nettle-pbkdf2 |
|---|
| 121 | %{_libdir}/libhogweed.so.* |
|---|
| 122 | %{_libdir}/libnettle.so.* |
|---|
| 123 | |
|---|
| 124 | %files devel |
|---|
| 125 | %defattr(-,root,root,-) |
|---|
| 126 | %doc descore.README nettle.html nettle.pdf |
|---|
| 127 | %{_libdir}/libhogweed.so |
|---|
| 128 | %{_libdir}/libnettle.so |
|---|
| 129 | %{_includedir}/nettle |
|---|
| 130 | %{_libdir}/pkgconfig/* |
|---|
| 131 | |
|---|
| 132 | # compat32 |
|---|
| 133 | %if %{build_compat32} |
|---|
| 134 | %files -n compat32-%{name} |
|---|
| 135 | %defattr(-, root, root, 0755) |
|---|
| 136 | %{_libdir}/libhogweed.so.* |
|---|
| 137 | %{_libdir}/libnettle.so.* |
|---|
| 138 | |
|---|
| 139 | %files -n compat32-%{name}-devel |
|---|
| 140 | %defattr(-, root, root, 0755) |
|---|
| 141 | %{_libdir}/libhogweed.so |
|---|
| 142 | %{_libdir}/libnettle.so |
|---|
| 143 | %endif |
|---|
| 144 | |
|---|
| 145 | |
|---|
| 146 | %post |
|---|
| 147 | /sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || : |
|---|
| 148 | /sbin/ldconfig |
|---|
| 149 | |
|---|
| 150 | %preun |
|---|
| 151 | if [ $1 = 0 ]; then |
|---|
| 152 | /sbin/install-info --delete %{_infodir}/%{name}.info.gz %{_infodir}/dir || : |
|---|
| 153 | fi |
|---|
| 154 | |
|---|
| 155 | %postun -p /sbin/ldconfig |
|---|
| 156 | |
|---|
| 157 | %if %{build_compat32} |
|---|
| 158 | %post -n compat32-%{name} -p /sbin/ldconfig |
|---|
| 159 | %postun -n compat32-%{name} -p /sbin/ldconfig |
|---|
| 160 | %endif |
|---|
| 161 | |
|---|
| 162 | |
|---|
| 163 | %changelog |
|---|
| 164 | * Wed Feb 24 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.7.1-1 |
|---|
| 165 | - new upstream release. |
|---|
| 166 | |
|---|
| 167 | * Tue Feb 02 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.7-1 |
|---|
| 168 | - new upstream release. |
|---|
| 169 | |
|---|
| 170 | * Tue Sep 08 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.6-1 |
|---|
| 171 | - new upstream release. |
|---|
| 172 | - imported Patch0 from rawhide. |
|---|
| 173 | |
|---|
| 174 | * Sun May 05 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.4.1-1 |
|---|
| 175 | - new upstream release. |
|---|
| 176 | |
|---|
| 177 | * Thu Nov 08 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.4-1 |
|---|
| 178 | - new upstream release. |
|---|
| 179 | |
|---|
| 180 | * Tue Jul 5 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.2-1 |
|---|
| 181 | - new upstream release. |
|---|
| 182 | |
|---|
| 183 | * Mon Dec 28 2015 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 3.1.1-1 |
|---|
| 184 | - new upstream release |
|---|
| 185 | |
|---|
| 186 | * Thu Dec 11 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 2.7.1-4 |
|---|
| 187 | - fixed Requires typo of compat32-nettle-devel package |
|---|
| 188 | |
|---|
| 189 | * Sun Oct 26 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 2.7.1-3 |
|---|
| 190 | - moved nettle to System Environment/Libraries Group |
|---|
| 191 | |
|---|
| 192 | * Sun Feb 9 2014 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> - 2.7.1-2 |
|---|
| 193 | - add compat32,compat32-devel packages |
|---|
| 194 | |
|---|
| 195 | * Sun Jan 12 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 2.7.1-1 |
|---|
| 196 | - update to 2.7.1 |
|---|
| 197 | |
|---|
| 198 | * Fri Dec 02 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.4-1 |
|---|
| 199 | - initial build for VineSeed |
|---|
| 200 | |
|---|
| 201 | * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.15-7 |
|---|
| 202 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
|---|
| 203 | |
|---|
| 204 | * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.15-6 |
|---|
| 205 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
|---|
| 206 | |
|---|
| 207 | * Thu Apr 10 2008 Ian Weller <ianweller@gmail.com> 1.15-5 |
|---|
| 208 | - Moved static lib to -static |
|---|
| 209 | |
|---|
| 210 | * Mon Mar 24 2008 Ian Weller <ianweller@gmail.com> 1.15-4 |
|---|
| 211 | - Added libraries and ldconfig |
|---|
| 212 | |
|---|
| 213 | * Mon Feb 18 2008 Ian Weller <ianweller@gmail.com> 1.15-3 |
|---|
| 214 | - Added provides -static to -devel |
|---|
| 215 | |
|---|
| 216 | * Sun Feb 17 2008 Ian Weller <ianweller@gmail.com> 1.15-2 |
|---|
| 217 | - Removed redundant requires |
|---|
| 218 | - Removed redundant documentation between packages |
|---|
| 219 | - Fixed license tag |
|---|
| 220 | - Fixed -devel description |
|---|
| 221 | - Added the static library back to -devel |
|---|
| 222 | - Added make clean |
|---|
| 223 | |
|---|
| 224 | * Fri Feb 08 2008 Ian Weller <ianweller@gmail.com> 1.15-1 |
|---|
| 225 | - First package build. |
|---|