Пакет ocaml-zip: Specfile

Name: ocaml-zip
Version: 1.03
Release: alt1
Summary: OCaml library for reading and writing zip, jar and gzip files

Group: Development/ML
License: LGPLv2 with exceptions
Url: http://pauillac.inria.fr/~xleroy/software.html
Packager: Veaceslav Grecea <slavutich@altlinux.org>

Source: http://caml.inria.fr/distrib/bazar-ocaml/camlzip-%version.tar.bz2

# Automatically added by buildreq on Wed Jul 16 2008
BuildRequires: ocaml zlib-devel

BuildRequires(pre): ocaml
Requires: ocaml-runtime = %{get_SVR ocaml-runtime}

%description
This Objective Caml library provides easy access to compressed files
in ZIP and GZIP format, as well as to Java JAR files. It provides
functions for reading from and writing to compressed files in these
formats.

%prep
%setup -q -n camlzip-%version

%build
%make_build all
%make_build allopt

cat > META <<EOF
name = "%name"
version = "%version"
description = "%description"
requires = ""
archive(byte) = "zip.cma"
archive(native) = "zip.cmxa"
EOF

%install
%define ocamlsitelib %_libdir/ocaml/site-lib

mkdir -p %buildroot%ocamlsitelib/zip

cp *.{mli,cmi,a,cma,so} %buildroot%_libdir/ocaml/site-lib/zip
cp META %buildroot%_libdir/ocaml/site-lib/zip

%files
%doc LICENSE
%ocamlsitelib/zip

%changelog
* Wed Sep 17 2008 Veaceslav Grecea <slavutich@altlinux.org> 1.03-alt1
- Initial build for ALTLinux

* Fri Feb 22 2008 Richard W.M. Jones <rjones@redhat.com> - 1.03-1
- Initial RPM release.