]>
Commit | Line | Data |
---|---|---|
28697ea6 | 1 | %define ocaml_ver 1:3.09.2 |
cd1b6e93 | 2 | Summary: Cryptographic toolkit for OCaml |
ed22a1f0 | 3 | Summary(pl.UTF-8): Biblioteka kryptograficzna dla OCamla |
cd1b6e93 | 4 | Name: ocaml-cryptokit |
f8d6e8cf ER |
5 | Version: 1.9 |
6 | Release: 1 | |
aefc526d | 7 | License: LGPL w/ linking exceptions |
cd1b6e93 | 8 | Group: Libraries |
f8d6e8cf ER |
9 | Source0: http://forge.ocamlcore.org/frs/download.php/1229/cryptokit-%{version}.tar.gz |
10 | # Source0-md5: 4432a426c9d260822f4ff2b0750413de | |
91162c67 | 11 | URL: http://pauillac.inria.fr/~xleroy/software.html |
0ae33ae3 | 12 | BuildRequires: ocaml >= %{ocaml_ver} |
cd1b6e93 | 13 | BuildRequires: zlib-devel |
cd1b6e93 MM |
14 | %requires_eq ocaml-runtime |
15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
16 | ||
17 | %description | |
18 | The Cryptokit library for Objective Caml provides a variety of | |
19 | cryptographic primitives that can be used to implement cryptographic | |
20 | protocols in security-sensitive applications. The primitives provided | |
21 | include: symmetric-key cryptography: AES, DES, Triple-DES, ARCfour, in | |
22 | ECB, CBC, CFB and OFB modes; public-key cryptography: RSA; hash | |
23 | functions and MACs: SHA-1, MD5, and MACs based on AES and DES; random | |
24 | number generation; encodings and compression: base 64, hexadecimal, | |
25 | Zlib compression. | |
26 | ||
27 | This package contains files needed to run bytecode executables using | |
28 | this library. | |
29 | ||
a77ceedb JR |
30 | %description -l pl.UTF-8 |
31 | Biblioteka Cryptokit dostarcza szeroką gamę funkcji kryptograficznych, | |
32 | które mogą być użyte w implementacji protokołów kryptograficznych w | |
33 | aplikacjach, dla których ważne jest bezpieczeństwo. Dostarczane | |
cd1b6e93 MM |
34 | funkcje to: szyfry symetryczne: AES, DES, 3DES, ARCFour w trybach ECB, |
35 | CBC, CFB oraz OFB; szyfr z kluczem publicznym RSA; kryptograficzne | |
a77ceedb | 36 | funkcje skrótu i MACi: SHA-1, MD5 oraz MACi bazowane na AES oraz DES; |
0ae33ae3 ER |
37 | generacje liczb losowych; kodowania i kompresja: base 64, szesnastkowa |
38 | oraz zlib. | |
cd1b6e93 | 39 | |
a77ceedb JR |
40 | Pakiet ten zawiera binaria potrzebne do uruchamiania programów |
41 | używających tej biblioteki. | |
cd1b6e93 MM |
42 | |
43 | %package devel | |
44 | Summary: Cryptographic toolkit for OCaml - development part | |
ed22a1f0 | 45 | Summary(pl.UTF-8): Biblioteka kryptograficzna dla OCamla - cześć programistyczna |
cd1b6e93 MM |
46 | Group: Development/Libraries |
47 | Requires: %{name} = %{version}-%{release} | |
48 | %requires_eq ocaml | |
49 | ||
50 | %description devel | |
51 | The Cryptokit library for Objective Caml provides a variety of | |
52 | cryptographic primitives that can be used to implement cryptographic | |
53 | protocols in security-sensitive applications. The primitives provided | |
54 | include: symmetric-key cryptography: AES, DES, Triple-DES, ARCfour, in | |
55 | ECB, CBC, CFB and OFB modes; public-key cryptography: RSA; hash | |
56 | functions and MACs: SHA-1, MD5, and MACs based on AES and DES; random | |
57 | number generation; encodings and compression: base 64, hexadecimal, | |
58 | Zlib compression. | |
59 | ||
60 | This package contains files needed to develop OCaml programs using | |
61 | this library. | |
62 | ||
a77ceedb JR |
63 | %description devel -l pl.UTF-8 |
64 | Biblioteka Cryptokit dostarcza szeroką gamę funkcji kryptograficznych, | |
65 | które mogą być użyte w implementacji protokołów kryptograficznych w | |
66 | aplikacjach, dla których ważne jest bezpieczeństwo. Dostarczane | |
cd1b6e93 MM |
67 | funkcje to: szyfry symetryczne: AES, DES, 3DES, ARCFour w trybach ECB, |
68 | CBC, CFB oraz OFB; szyfr z kluczem publicznym RSA; kryptograficzne | |
a77ceedb | 69 | funkcje skrótu i MACi: SHA-1, MD5 oraz MACi bazowane na AES oraz DES; |
0ae33ae3 ER |
70 | generacje liczb losowych; kodowania i kompresja: base 64, szesnastkowa |
71 | oraz zlib. | |
cd1b6e93 | 72 | |
a77ceedb | 73 | Pakiet ten zawiera pliki niezbędne do tworzenia programów używających |
cd1b6e93 MM |
74 | tej biblioteki. |
75 | ||
76 | %prep | |
77 | %setup -q -n cryptokit-%{version} | |
78 | ||
79 | %build | |
f72889f2 JR |
80 | ./configure \ |
81 | --exec-prefix %{_prefix} \ | |
82 | --prefix %{_prefix} \ | |
83 | --enable-bench | |
84 | ||
85 | %{__make} all \ | |
91162c67 | 86 | CFLAGS="%{rpmcflags} -fPIC" |
cd1b6e93 MM |
87 | |
88 | %install | |
89 | rm -rf $RPM_BUILD_ROOT | |
cd1b6e93 | 90 | install -d $RPM_BUILD_ROOT%{_libdir}/ocaml/cryptokit |
91162c67 | 91 | |
f72889f2 | 92 | install _build/src/{*.cm[ixa]*,*.a,dll*.so} $RPM_BUILD_ROOT%{_libdir}/ocaml/cryptokit |
cd1b6e93 MM |
93 | (cd $RPM_BUILD_ROOT%{_libdir}/ocaml && ln -s cryptokit/dll*.so .) |
94 | ||
95 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
f72889f2 | 96 | cp -r test/*.ml $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
cd1b6e93 MM |
97 | |
98 | install -d $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/cryptokit | |
99 | cat > $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/cryptokit/META <<EOF | |
f72889f2 | 100 | description = "Cryptographic primitives" |
cd1b6e93 MM |
101 | requires = "unix num" |
102 | version = "%{version}" | |
103 | directory = "+cryptokit" | |
104 | archive(byte) = "cryptokit.cma" | |
105 | archive(native) = "cryptokit.cmxa" | |
f72889f2 | 106 | exists_if = "cryptokit.cma" |
cd1b6e93 MM |
107 | linkopts = "" |
108 | EOF | |
109 | ||
cd1b6e93 MM |
110 | %clean |
111 | rm -rf $RPM_BUILD_ROOT | |
112 | ||
113 | %files | |
114 | %defattr(644,root,root,755) | |
f72889f2 | 115 | %doc AUTHORS.txt Changes LICENSE.txt README.txt |
cd1b6e93 MM |
116 | %dir %{_libdir}/ocaml/cryptokit |
117 | %attr(755,root,root) %{_libdir}/ocaml/cryptokit/*.so | |
118 | %{_libdir}/ocaml/*.so | |
119 | ||
120 | %files devel | |
121 | %defattr(644,root,root,755) | |
f72889f2 | 122 | %doc _build/src/api-cryptokit.docdir/* |
cd1b6e93 MM |
123 | %{_libdir}/ocaml/cryptokit/*.cm[ixa]* |
124 | %{_libdir}/ocaml/cryptokit/*.a | |
125 | %{_examplesdir}/%{name}-%{version} | |
126 | %{_libdir}/ocaml/site-lib/cryptokit |