]> git.pld-linux.org Git - packages/cryptlib.git/blob - cryptlib.spec
- tabs in preamble
[packages/cryptlib.git] / cryptlib.spec
1 Summary:        Peter Gutmann's general purpose encryption library
2 Summary(pl.UTF-8):      Biblioteka kryptograficzna ogólnego przeznaczenia Petera Gutmanna
3 Name:           cryptlib
4 Version:        3.2.2
5 Release:        1
6 License:        sleepycat
7 Group:          Libraries
8 Source0:        ftp://ftp.franken.de/pub/crypt/cryptlib/cl322.zip
9 # Source0-md5:  0944963faae4566f54aeb45c6e803142
10 URL:            http://www.cs.auckland.ac.nz/~pgut001/cryptlib/
11 BuildRequires:  sed >= 4.0
12 BuildRequires:  unzip
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
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
28 uwierzytelnienia. Biblioteka zawiera szyfry konwencjonalne DES, 3DES,
29 IDEA, MDC/SHS, RC2, RC4, RC5, SAFER, SAFER-SK, Blowfish i Blowfish-SK,
30 algorytmy skrótu MD2, MD4, MD5, RIPEMD-160 i SHA oraz szyfry klucza
31 publicznego Diffie-Hellmana, DSA i RSA.
32
33 %package devel
34 Summary:        Header file for cryptlib library
35 Summary(pl.UTF-8):      Plik nagłówkowy biblioteki cryptlib
36 Group:          Development/Libraries
37 Requires:       %{name} = %{version}-%{release}
38
39 %description devel
40 The header file for developing applications that use the cryptlib
41 cryptography library.
42
43 %description devel -l pl.UTF-8
44 Plik nagłówkowy do tworzenia aplikacji korzystających z biblioteki
45 kryptograficznej cryptlib.
46
47 %package static
48 Summary:        Static cryptlib library
49 Summary(pl.UTF-8):      Statyczna biblioteka cryptlib
50 Group:          Development/Libraries
51 Requires:       %{name}-devel = %{version}-%{release}
52
53 %description static
54 Static cryptlib library.
55
56 %description static -l pl.UTF-8
57 Statyczna biblioteka cryptlib.
58
59 %prep
60 %setup -q -T -c
61 unzip -L -a %{SOURCE0}
62
63 sed -i -e 's/ -O3 / %{rpmcflags} /' makefile
64
65 %build
66 %{__make} \
67         CC="%{__cc}"
68
69 %{__make} shared \
70         CC="%{__cc}"
71
72 %install
73 rm -rf $RPM_BUILD_ROOT
74 install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}}
75
76 install cryptlib.h $RPM_BUILD_ROOT%{_includedir}
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
86
87 %files
88 %defattr(644,root,root,755)
89 %attr(755,root,root) %{_libdir}/libcl.so.3.2.2
90
91 %files devel
92 %defattr(644,root,root,755)
93 %attr(755,root,root) %{_libdir}/libcl.so
94 %{_includedir}/cryptlib.h
95
96 %files static
97 %defattr(644,root,root,755)
98 %{_libdir}/libcl.a
This page took 0.13191 seconds and 3 git commands to generate.