]>
Commit | Line | Data |
---|---|---|
cdb4650b | 1 | Summary: Peter Gutmann's general purpose encryption library |
a23f1eac | 2 | Summary(pl.UTF-8): Biblioteka kryptograficzna ogólnego przeznaczenia Petera Gutmanna |
cdb4650b | 3 | Name: cryptlib |
598ce064 | 4 | Version: 3.2.2 |
cdb4650b | 5 | Release: 1 |
6 | License: sleepycat | |
313eb19f | 7 | Group: Libraries |
cdb4650b | 8 | Source0: ftp://ftp.franken.de/pub/crypt/cryptlib/cl322.zip |
9 | # Source0-md5: 0944963faae4566f54aeb45c6e803142 | |
313eb19f | 10 | URL: http://www.cs.auckland.ac.nz/~pgut001/cryptlib/ |
015ece3d | 11 | BuildRequires: sed >= 4.0 |
cdb4650b | 12 | BuildRequires: unzip |
cdb4650b | 13 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
14 | ||
15 | %description | |
16 | The cryptlib encryption library provides an easy-to-use interface | |
17 | which allows even inexperienced crypto programmers to easily add | |
18 | strong encryption and authentication services to their software. The | |
19 | library contains DES, triple DES, IDEA, MDC/SHS, RC2, RC4, RC5, SAFER, | |
20 | SAFER-SK, Blowfish, and Blowfish-SK conventional encryption, MD2, MD4, | |
21 | MD5, RIPEMD-160 and SHA hash algorithms, and Diffie-Hellman, DSA, and | |
22 | RSA public-key encryption. | |
23 | ||
de8d3220 JR |
24 | %description -l pl.UTF-8 |
25 | Biblioteka kryptograficzna cryptlib udostępnia łatwy w użyciu | |
26 | interfejs pozwalający nawet niedoświaczonym programistom kryptografii | |
27 | łatwo dodawać do swoich programów usługi kryptograficzne i | |
313eb19f JB |
28 | uwierzytelnienia. Biblioteka zawiera szyfry konwencjonalne DES, 3DES, |
29 | IDEA, MDC/SHS, RC2, RC4, RC5, SAFER, SAFER-SK, Blowfish i Blowfish-SK, | |
de8d3220 | 30 | algorytmy skrótu MD2, MD4, MD5, RIPEMD-160 i SHA oraz szyfry klucza |
313eb19f | 31 | publicznego Diffie-Hellmana, DSA i RSA. |
cdb4650b | 32 | |
33 | %package devel | |
313eb19f | 34 | Summary: Header file for cryptlib library |
a23f1eac | 35 | Summary(pl.UTF-8): Plik nagłówkowy biblioteki cryptlib |
cdb4650b | 36 | Group: Development/Libraries |
313eb19f | 37 | Requires: %{name} = %{version}-%{release} |
cdb4650b | 38 | |
39 | %description devel | |
313eb19f JB |
40 | The header file for developing applications that use the cryptlib |
41 | cryptography library. | |
42 | ||
de8d3220 JR |
43 | %description devel -l pl.UTF-8 |
44 | Plik nagłówkowy do tworzenia aplikacji korzystających z biblioteki | |
313eb19f JB |
45 | kryptograficznej cryptlib. |
46 | ||
47 | %package static | |
48 | Summary: Static cryptlib library | |
a23f1eac | 49 | Summary(pl.UTF-8): Statyczna biblioteka cryptlib |
313eb19f JB |
50 | Group: Development/Libraries |
51 | Requires: %{name}-devel = %{version}-%{release} | |
52 | ||
53 | %description static | |
54 | Static cryptlib library. | |
55 | ||
de8d3220 | 56 | %description static -l pl.UTF-8 |
313eb19f | 57 | Statyczna biblioteka cryptlib. |
cdb4650b | 58 | |
59 | %prep | |
60 | %setup -q -T -c | |
313eb19f | 61 | unzip -L -a %{SOURCE0} |
cdb4650b | 62 | |
015ece3d JB |
63 | sed -i -e 's/ -O3 / %{rpmcflags} /' makefile |
64 | ||
cdb4650b | 65 | %build |
313eb19f | 66 | %{__make} \ |
015ece3d JB |
67 | CC="%{__cc}" |
68 | ||
313eb19f | 69 | %{__make} shared \ |
015ece3d | 70 | CC="%{__cc}" |
cdb4650b | 71 | |
72 | %install | |
73 | rm -rf $RPM_BUILD_ROOT | |
313eb19f JB |
74 | install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}} |
75 | ||
cdb4650b | 76 | install cryptlib.h $RPM_BUILD_ROOT%{_includedir} |
313eb19f JB |
77 | install libcl.a $RPM_BUILD_ROOT%{_libdir} |
78 | install libcl.so.3.2.2 $RPM_BUILD_ROOT%{_libdir} | |
79 | ln -sf libcl.so.3.2.2 $RPM_BUILD_ROOT%{_libdir}/libcl.so | |
80 | ||
81 | %clean | |
82 | rm -rf $RPM_BUILD_ROOT | |
83 | ||
84 | %post -p /sbin/ldconfig | |
85 | %postun -p /sbin/ldconfig | |
cdb4650b | 86 | |
87 | %files | |
88 | %defattr(644,root,root,755) | |
313eb19f | 89 | %attr(755,root,root) %{_libdir}/libcl.so.3.2.2 |
cdb4650b | 90 | |
91 | %files devel | |
92 | %defattr(644,root,root,755) | |
313eb19f | 93 | %attr(755,root,root) %{_libdir}/libcl.so |
cdb4650b | 94 | %{_includedir}/cryptlib.h |
95 | ||
313eb19f JB |
96 | %files static |
97 | %defattr(644,root,root,755) | |
98 | %{_libdir}/libcl.a |