1 %define ocaml_ver 1:3.09.2
2 Summary: Cryptographic toolkit for OCaml
3 Summary(pl.UTF-8): Biblioteka kryptograficzna dla OCamla
7 License: LGPL w/ linking exceptions
9 Source0: http://forge.ocamlcore.org/frs/download.php/639/cryptokit-%{version}.tar.gz
10 # Source0-md5: 4393bf2b20f8e18eb732c078d582d5ec
11 URL: http://pauillac.inria.fr/~xleroy/software.html
12 BuildRequires: ocaml >= %{ocaml_ver}
13 BuildRequires: zlib-devel
14 %requires_eq ocaml-runtime
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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,
27 This package contains files needed to run bytecode executables using
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
34 funkcje to: szyfry symetryczne: AES, DES, 3DES, ARCFour w trybach ECB,
35 CBC, CFB oraz OFB; szyfr z kluczem publicznym RSA; kryptograficzne
36 funkcje skrótu i MACi: SHA-1, MD5 oraz MACi bazowane na AES oraz DES;
37 generacje liczb losowych; kodowania i kompresja: base 64, szesnastkowa
40 Pakiet ten zawiera binaria potrzebne do uruchamiania programów
41 używających tej biblioteki.
44 Summary: Cryptographic toolkit for OCaml - development part
45 Summary(pl.UTF-8): Biblioteka kryptograficzna dla OCamla - cześć programistyczna
46 Group: Development/Libraries
47 Requires: %{name} = %{version}-%{release}
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,
60 This package contains files needed to develop OCaml programs using
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
67 funkcje to: szyfry symetryczne: AES, DES, 3DES, ARCFour w trybach ECB,
68 CBC, CFB oraz OFB; szyfr z kluczem publicznym RSA; kryptograficzne
69 funkcje skrótu i MACi: SHA-1, MD5 oraz MACi bazowane na AES oraz DES;
70 generacje liczb losowych; kodowania i kompresja: base 64, szesnastkowa
73 Pakiet ten zawiera pliki niezbędne do tworzenia programów używających
77 %setup -q -n cryptokit-%{version}
81 --exec-prefix %{_prefix} \
86 CFLAGS="%{rpmcflags} -fPIC"
89 rm -rf $RPM_BUILD_ROOT
90 install -d $RPM_BUILD_ROOT%{_libdir}/ocaml/cryptokit
92 install _build/src/{*.cm[ixa]*,*.a,dll*.so} $RPM_BUILD_ROOT%{_libdir}/ocaml/cryptokit
93 (cd $RPM_BUILD_ROOT%{_libdir}/ocaml && ln -s cryptokit/dll*.so .)
95 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
96 cp -r test/*.ml $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
98 install -d $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/cryptokit
99 cat > $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/cryptokit/META <<EOF
100 description = "Cryptographic primitives"
101 requires = "unix num"
102 version = "%{version}"
103 directory = "+cryptokit"
104 archive(byte) = "cryptokit.cma"
105 archive(native) = "cryptokit.cmxa"
106 exists_if = "cryptokit.cma"
111 rm -rf $RPM_BUILD_ROOT
114 %defattr(644,root,root,755)
115 %doc AUTHORS.txt Changes LICENSE.txt README.txt
116 %dir %{_libdir}/ocaml/cryptokit
117 %attr(755,root,root) %{_libdir}/ocaml/cryptokit/*.so
118 %{_libdir}/ocaml/*.so
121 %defattr(644,root,root,755)
122 %doc _build/src/api-cryptokit.docdir/*
123 %{_libdir}/ocaml/cryptokit/*.cm[ixa]*
124 %{_libdir}/ocaml/cryptokit/*.a
125 %{_examplesdir}/%{name}-%{version}
126 %{_libdir}/ocaml/site-lib/cryptokit