%define up_name camlzip %define name ocaml-%{up_name} %define version 1.04 %define release %mkrel 8 Name: %{name} Version: %{version} Release: %{release} Summary: Reading and writing ZIP, JAR and GZIP files License: LGPLv2 with exceptions Group: Development/Other URL: http://pauillac.inria.fr/~xleroy/software.html Source0: http://caml.inria.fr/distrib/bazar-ocaml/%{up_name}-%{version}.tar.gz Patch0: %{name}-1.03-findlib.patch Patch1: test-makefile.dpatch Patch2: uncompress.dpatch BuildRequires: ocaml BuildRequires: ocaml-findlib BuildRequires: zlib-devel %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/Other Requires: zlib-devel Requires: %{name} = %{version}-%{release} %description devel This package contains the development files needed to build applications using %{name}. %prep %setup -q -n %{up_name}-%{version} %patch0 -p1 %patch1 -p1 %patch2 -p1 sed -i -e "s:@VERSION@:%{version}:g" META %build %make depend %make all allopt mkdir -p doc ocamldoc -colorize-code -html gzip.mli zip.mli zlib.mli -d doc %install rm -rf %{buildroot} install -d -m 755 %{buildroot}/%{_libdir}/ocaml/zip install -d -m 755 %{buildroot}/%{_libdir}/ocaml/stublibs make install OCAMLFIND_INSTFLAGS="-destdir %{buildroot}/%{_libdir}/ocaml" %clean rm -rf %{buildroot} %files %defattr(-,root,root) %doc LICENSE README Changes %dir %{_libdir}/ocaml/zip %{_libdir}/ocaml/zip/*.cmi %{_libdir}/ocaml/zip/*.cma %{_libdir}/ocaml/zip/META %{_libdir}/ocaml/stublibs/dllcamlzip.so %{_libdir}/ocaml/stublibs/dllcamlzip.so.owner %files devel %defattr(-,root,root) %doc test doc %{_libdir}/ocaml/zip/*.a %{_libdir}/ocaml/zip/*.cmx %{_libdir}/ocaml/zip/*.cmxa %{_libdir}/ocaml/zip/*.mli %changelog * Sun Oct 02 2011 fwang <fwang> 1.04-8.mga2 + Revision: 150881 - rebuild for new ocaml * Fri Apr 08 2011 ennael <ennael> 1.04-7.mga1 + Revision: 82385 - clean spec file - imported package ocaml-camlzip