%define opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0) %define debug_package %{nil} Name: ocaml-zip Version: 1.03 Release: 1%{?dist} Summary: OCaml library for reading and writing zip, jar and gzip files Group: Development/Libraries License: LGPLv2 with exceptions URL: http://pauillac.inria.fr/~xleroy/software.html Source0: http://caml.inria.fr/distrib/bazar-ocaml/camlzip-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) ExcludeArch: ppc64 BuildRequires: ocaml >= 3.10.0 BuildRequires: ocaml-findlib-devel BuildRequires: zlib-devel >= 1.1.3 BuildRequires: chrpath %define _use_internal_dependency_generator 0 %define __find_requires /usr/lib/rpm/ocaml-find-requires.sh %define __find_provides /usr/lib/rpm/ocaml-find-provides.sh %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. %package devel Summary: Development files for %{name} Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description devel The %{name}-devel package contains libraries and signature files for developing applications that use %{name}. %prep %setup -q -n camlzip-%{version} %build make all %if %opt make allopt %endif strip dll*.so chrpath --delete dll*.so cat > META < - 1.03-1 - Initial RPM release.