[8264] | 1 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
---|
| 2 | |
---|
[5238] | 3 | Name: nettle |
---|
[10542] | 4 | Version: 3.2 |
---|
[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,-) |
---|
[9898] | 115 | %doc AUTHORS ChangeLog NEWS README TODO |
---|
[5238] | 116 | %{_infodir}/nettle.info.gz |
---|
| 117 | %{_bindir}/nettle-hash |
---|
| 118 | %{_bindir}/nettle-lfib-stream |
---|
| 119 | %{_bindir}/pkcs1-conv |
---|
| 120 | %{_bindir}/sexp-conv |
---|
[9898] | 121 | %{_bindir}/nettle-pbkdf2 |
---|
[8152] | 122 | %{_libdir}/libhogweed.so.* |
---|
| 123 | %{_libdir}/libnettle.so.* |
---|
[5238] | 124 | |
---|
| 125 | %files devel |
---|
| 126 | %defattr(-,root,root,-) |
---|
[9898] | 127 | %doc descore.README nettle.html nettle.pdf |
---|
[8152] | 128 | %{_libdir}/libhogweed.so |
---|
| 129 | %{_libdir}/libnettle.so |
---|
[5238] | 130 | %{_includedir}/nettle |
---|
| 131 | %{_libdir}/pkgconfig/ |
---|
| 132 | |
---|
[8264] | 133 | # compat32 |
---|
| 134 | %if %{build_compat32} |
---|
| 135 | %files -n compat32-%{name} |
---|
| 136 | %defattr(-, root, root, 0755) |
---|
| 137 | %{_libdir}/libhogweed.so.* |
---|
| 138 | %{_libdir}/libnettle.so.* |
---|
| 139 | |
---|
| 140 | %files -n compat32-%{name}-devel |
---|
| 141 | %defattr(-, root, root, 0755) |
---|
| 142 | %{_libdir}/libhogweed.so |
---|
| 143 | %{_libdir}/libnettle.so |
---|
| 144 | %{_libdir}/pkgconfig/ |
---|
| 145 | %endif |
---|
| 146 | |
---|
[5238] | 147 | #%files static |
---|
| 148 | #%defattr(-,root,root,-) |
---|
| 149 | #%doc COPYING |
---|
| 150 | #%{_libdir}/libhogweed.a |
---|
| 151 | #%{_libdir}/libnettle.a |
---|
| 152 | |
---|
| 153 | %post |
---|
| 154 | /sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || : |
---|
| 155 | /sbin/ldconfig |
---|
| 156 | |
---|
| 157 | %preun |
---|
| 158 | if [ $1 = 0 ]; then |
---|
| 159 | /sbin/install-info --delete %{_infodir}/%{name}.info.gz %{_infodir}/dir || : |
---|
| 160 | fi |
---|
| 161 | |
---|
| 162 | %postun -p /sbin/ldconfig |
---|
| 163 | |
---|
[8264] | 164 | %if %{build_compat32} |
---|
| 165 | %post -n compat32-%{name} -p /sbin/ldconfig |
---|
[5238] | 166 | |
---|
[8264] | 167 | %postun -n compat32-%{name} -p /sbin/ldconfig |
---|
| 168 | %endif |
---|
[5238] | 169 | |
---|
| 170 | %changelog |
---|
[10542] | 171 | * Tue Jul 5 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.2-1 |
---|
| 172 | - new upstream release. |
---|
| 173 | |
---|
[9898] | 174 | * Mon Dec 28 2015 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 3.1.1-1 |
---|
| 175 | - new upstream release |
---|
| 176 | |
---|
[9145] | 177 | * Thu Dec 11 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 2.7.1-4 |
---|
| 178 | - fixed Requires typo of compat32-nettle-devel package |
---|
| 179 | |
---|
[9028] | 180 | * Sun Oct 26 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 2.7.1-3 |
---|
| 181 | - moved nettle to System Environment/Libraries Group |
---|
| 182 | |
---|
[8264] | 183 | * Sun Feb 9 2014 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> - 2.7.1-2 |
---|
| 184 | - add compat32,compat32-devel packages |
---|
| 185 | |
---|
[8152] | 186 | * Sun Jan 12 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 2.7.1-1 |
---|
| 187 | - update to 2.7.1 |
---|
| 188 | |
---|
[5238] | 189 | * Fri Dec 02 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.4-1 |
---|
| 190 | - initial build for VineSeed |
---|
| 191 | |
---|
| 192 | * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.15-7 |
---|
| 193 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
---|
| 194 | |
---|
| 195 | * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.15-6 |
---|
| 196 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
---|
| 197 | |
---|
| 198 | * Thu Apr 10 2008 Ian Weller <ianweller@gmail.com> 1.15-5 |
---|
| 199 | - Moved static lib to -static |
---|
| 200 | |
---|
| 201 | * Mon Mar 24 2008 Ian Weller <ianweller@gmail.com> 1.15-4 |
---|
| 202 | - Added libraries and ldconfig |
---|
| 203 | |
---|
| 204 | * Mon Feb 18 2008 Ian Weller <ianweller@gmail.com> 1.15-3 |
---|
| 205 | - Added provides -static to -devel |
---|
| 206 | |
---|
| 207 | * Sun Feb 17 2008 Ian Weller <ianweller@gmail.com> 1.15-2 |
---|
| 208 | - Removed redundant requires |
---|
| 209 | - Removed redundant documentation between packages |
---|
| 210 | - Fixed license tag |
---|
| 211 | - Fixed -devel description |
---|
| 212 | - Added the static library back to -devel |
---|
| 213 | - Added make clean |
---|
| 214 | |
---|
| 215 | * Fri Feb 08 2008 Ian Weller <ianweller@gmail.com> 1.15-1 |
---|
| 216 | - First package build. |
---|