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