[8264] | 1 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
---|
| 2 | |
---|
[5238] | 3 | Name: nettle |
---|
[8152] | 4 | Version: 2.7.1 |
---|
[8264] | 5 | Release: 2%{?_dist_release} |
---|
[5238] | 6 | Summary: A low-level cryptographic library |
---|
| 7 | Summary(ja): 低レベル暗号化ライブラリ |
---|
| 8 | |
---|
| 9 | Group: Development/Libraries |
---|
| 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 |
---|
| 13 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 14 | |
---|
| 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 |
---|
| 26 | Summary(ja): 低レベル暗号化ライブラリの開発ヘッダ |
---|
| 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 |
---|
| 38 | Summary(ja): 低レベル暗号化ライブラリ |
---|
| 39 | Group: Development/Libraries |
---|
| 40 | Requires: %{name} = %{version}-%{release} |
---|
| 41 | |
---|
| 42 | %package -n compat32-%{name}-devel |
---|
| 43 | Summary: Development headers for a low-level cryptographic library |
---|
| 44 | Summary(ja): 低レベル暗号化ライブラリの開発ヘッダ |
---|
| 45 | Group: Development/Libraries |
---|
| 46 | Requires: %{name}-devel = %{version}-%{release} |
---|
| 47 | Requires: compat-32%{name} = %{version}-%{release} |
---|
| 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,-) |
---|
| 113 | %doc AUTHORS ChangeLog COPYING.LIB NEWS README TODO |
---|
| 114 | %{_infodir}/nettle.info.gz |
---|
| 115 | %{_bindir}/nettle-hash |
---|
| 116 | %{_bindir}/nettle-lfib-stream |
---|
| 117 | %{_bindir}/pkcs1-conv |
---|
| 118 | %{_bindir}/sexp-conv |
---|
[8152] | 119 | %{_libdir}/libhogweed.so.* |
---|
| 120 | %{_libdir}/libnettle.so.* |
---|
[5238] | 121 | |
---|
| 122 | %files devel |
---|
| 123 | %defattr(-,root,root,-) |
---|
| 124 | %doc descore.README nettle.html nettle.pdf COPYING.LIB |
---|
[8152] | 125 | %{_libdir}/libhogweed.so |
---|
| 126 | %{_libdir}/libnettle.so |
---|
[5238] | 127 | %{_includedir}/nettle |
---|
| 128 | %{_libdir}/pkgconfig/ |
---|
| 129 | |
---|
[8264] | 130 | # compat32 |
---|
| 131 | %if %{build_compat32} |
---|
| 132 | %files -n compat32-%{name} |
---|
| 133 | %defattr(-, root, root, 0755) |
---|
| 134 | %{_libdir}/libhogweed.so.* |
---|
| 135 | %{_libdir}/libnettle.so.* |
---|
| 136 | |
---|
| 137 | %files -n compat32-%{name}-devel |
---|
| 138 | %defattr(-, root, root, 0755) |
---|
| 139 | %{_libdir}/libhogweed.so |
---|
| 140 | %{_libdir}/libnettle.so |
---|
| 141 | %{_libdir}/pkgconfig/ |
---|
| 142 | %endif |
---|
| 143 | |
---|
[5238] | 144 | #%files static |
---|
| 145 | #%defattr(-,root,root,-) |
---|
| 146 | #%doc COPYING |
---|
| 147 | #%{_libdir}/libhogweed.a |
---|
| 148 | #%{_libdir}/libnettle.a |
---|
| 149 | |
---|
| 150 | %post |
---|
| 151 | /sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || : |
---|
| 152 | /sbin/ldconfig |
---|
| 153 | |
---|
| 154 | %preun |
---|
| 155 | if [ $1 = 0 ]; then |
---|
| 156 | /sbin/install-info --delete %{_infodir}/%{name}.info.gz %{_infodir}/dir || : |
---|
| 157 | fi |
---|
| 158 | |
---|
| 159 | %postun -p /sbin/ldconfig |
---|
| 160 | |
---|
[8264] | 161 | %if %{build_compat32} |
---|
| 162 | %post -n compat32-%{name} -p /sbin/ldconfig |
---|
[5238] | 163 | |
---|
[8264] | 164 | %postun -n compat32-%{name} -p /sbin/ldconfig |
---|
| 165 | %endif |
---|
[5238] | 166 | |
---|
| 167 | %changelog |
---|
[8264] | 168 | * Sun Feb 9 2014 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> - 2.7.1-2 |
---|
| 169 | - add compat32,compat32-devel packages |
---|
| 170 | |
---|
[8152] | 171 | * Sun Jan 12 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 2.7.1-1 |
---|
| 172 | - update to 2.7.1 |
---|
| 173 | |
---|
[5238] | 174 | * Fri Dec 02 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.4-1 |
---|
| 175 | - initial build for VineSeed |
---|
| 176 | |
---|
| 177 | * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.15-7 |
---|
| 178 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
---|
| 179 | |
---|
| 180 | * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.15-6 |
---|
| 181 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
---|
| 182 | |
---|
| 183 | * Thu Apr 10 2008 Ian Weller <ianweller@gmail.com> 1.15-5 |
---|
| 184 | - Moved static lib to -static |
---|
| 185 | |
---|
| 186 | * Mon Mar 24 2008 Ian Weller <ianweller@gmail.com> 1.15-4 |
---|
| 187 | - Added libraries and ldconfig |
---|
| 188 | |
---|
| 189 | * Mon Feb 18 2008 Ian Weller <ianweller@gmail.com> 1.15-3 |
---|
| 190 | - Added provides -static to -devel |
---|
| 191 | |
---|
| 192 | * Sun Feb 17 2008 Ian Weller <ianweller@gmail.com> 1.15-2 |
---|
| 193 | - Removed redundant requires |
---|
| 194 | - Removed redundant documentation between packages |
---|
| 195 | - Fixed license tag |
---|
| 196 | - Fixed -devel description |
---|
| 197 | - Added the static library back to -devel |
---|
| 198 | - Added make clean |
---|
| 199 | |
---|
| 200 | * Fri Feb 08 2008 Ian Weller <ianweller@gmail.com> 1.15-1 |
---|
| 201 | - First package build. |
---|