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