# $Revision: 1.6 $, $Date: 2003/07/25 09:02:05 $ Summary: Cryptographic toolkit for OCaml Summary(pl): Biblioteka kryptograficzna dla OCamla Name: ocaml-cryptokit Version: 1.3 Release: 1%{?dist} License: LGPL w/ linking exceptions Group: System Environment/Libraries Vendor: Xavier Leroy URL: http://pauillac.inria.fr/~xleroy/software.html Source0: http://caml.inria.fr/distrib/bazar-ocaml/cryptokit-%{version}.tar.gz BuildRequires: zlib-devel BuildRequires: ocaml >= 3.08 BuildRoot: %{_tmppath}/%{name}-%{version}-root-%(%{__id_u} -n) %description The Cryptokit library for Objective Caml provides a variety of cryptographic primitives that can be used to implement cryptographic protocols in security-sensitive applications. The primitives provided include: symmetric-key cryptography: AES, DES, Triple-DES, ARCfour, in ECB, CBC, CFB and OFB modes; public-key cryptography: RSA; hash functions and MACs: SHA-1, MD5, and MACs based on AES and DES; random number generation; encodings and compression: base 64, hexadecimal, Zlib compression. This package contains files needed to run bytecode executables using this library. %package devel Summary: Cryptographic toolkit for OCaml - development part Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description devel The Cryptokit library for Objective Caml provides a variety of cryptographic primitives that can be used to implement cryptographic protocols in security-sensitive applications. The primitives provided include: symmetric-key cryptography: AES, DES, Triple-DES, ARCfour, in ECB, CBC, CFB and OFB modes; public-key cryptography: RSA; hash functions and MACs: SHA-1, MD5, and MACs based on AES and DES; random number generation; encodings and compression: base 64, hexadecimal, Zlib compression. This package contains files needed to develop OCaml programs using this library. %prep %setup -q -n cryptokit-%{version} find . -name .cvsignore -exec rm -f {} \; %build make CFLAGS="%{optflags} -fPIC" %{?_smp_mflags} all allopt %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT%{_libdir}/ocaml/cryptokit make install INSTALLDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml/cryptokit install -d $RPM_BUILD_ROOT%{_libdir}/ocaml/cryptokit install *.cm[ixa]* *.a dll*.so $RPM_BUILD_ROOT%{_libdir}/ocaml/cryptokit (cd $RPM_BUILD_ROOT%{_libdir}/ocaml && ln -s cryptokit/dll*.so .) mkdir examples cp -p *test.ml examples install -d $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/cryptokit cat > $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/cryptokit/META < 1.3-1%{?dist} - First build for FC3 - Taken from the PLD specfile (which was an 1.2)