%define ocamlpck xmlm Name: ocaml-xmlm Version: 1.1.1 Release: 2mamba Summary: An OCaml module providing streaming XML input/output Group: System/Libraries Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://erratique.ch/software/xmlm Source: http://erratique.ch/software/xmlm/releases/xmlm-%{version}.tbz License: BSD ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel ## AUTOBUILDREQ-END BuildRequires: ocaml BuildRequires: ocaml-findlib BuildRoot: %{_tmppath}/%{name}-%{version}-root %description Xmlm is an OCaml module providing streaming XML input/output. It aims at making XML processing robust and painless. %package devel Group: Development/Libraries Summary: Development files for %{name} Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} %description devel This package contains libraries and signature files for developing applications that use %{name}. %prep %setup -q -n xmlm-%{version} %build ocaml setup.ml -configure --prefix %{_prefix} --destdir %{buildroot} ocaml setup.ml -build %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" export OCAMLFIND_DESTDIR=%{buildroot}$(ocamlfind printconf destdir) install -d $OCAMLFIND_DESTDIR/%{ocamlpck} ocaml setup.ml -install %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %files %defattr(-,root,root) %{_bindir}/xmltrip %dir %{_libdir}/ocaml/%{ocamlpck} %{_libdir}/ocaml/%{ocamlpck}/META %{_libdir}/ocaml/%{ocamlpck}/xmlm.cma %{_libdir}/ocaml/%{ocamlpck}/xmlm.cmi %{_libdir}/ocaml/%{ocamlpck}/xmlm.cmxs %files devel %defattr(-,root,root) %{_libdir}/ocaml/%{ocamlpck}/*.a %{_libdir}/ocaml/%{ocamlpck}/*.cmx %{_libdir}/ocaml/%{ocamlpck}/*.cmxa %{_libdir}/ocaml/%{ocamlpck}/*.mli %changelog * Sun Jun 23 2013 openmamba WebBuild System 1.1.1-2mamba - add a devel package * Fri Jan 11 2013 Silvan Calarco 1.1.1-1mamba - package created by silvan using the webbuild interface