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