%define base_name xml-light %define name ocaml-%{base_name} %define version 2.2 %define release 2mdk Name: %{name} Version: %{version} Release: %{release} Summary: Xml-Light is a minimal XML parser & printer for OCaml Source: http://tech.motion-twin.com/zip/%{base_name}.tar.bz2 URL: http://tech.motion-twin.com/xmllight.html License: LGPL Group: Development/Other BuildRoot: %{_tmppath}/%{name}-%{version} BuildRequires: ocaml %description Xml-Light is a minimal XML parser & printer for OCaml. It provide functions to parse an XML document into an OCaml data structure, work with it, and print it back to an XML document. It support also DTD parsing and checking, and is entirely written in OCaml, hence it does not require additional C library. %package devel Summary: Development files for %{name} Group: Development/Other %description devel This package contains the development files needed to build applications using%{name}. %prep %setup -q -n %{base_name} chmod 644 README *.mli perl -pi -e 's/\015$//' README %build make %install rm -rf %{buildroot} destdir=`ocamlc -where` install -d %{buildroot}$destdir make install INSTALLDIR=%{buildroot}$destdir %clean rm -rf %{buildroot} %files devel %defattr(-,root,root) %doc README %{_libdir}/ocaml/* %changelog * Sat Jun 04 2005 Guillaume Rousse <guillomovitch@mandriva.org> 2.2-2mdk - rebuild for later ocaml - drop macros merged into rpm * Thu Apr 21 2005 Guillaume Rousse <guillomovitch@mandriva.org> 2.2-1mdk - contributed by Julien Narboux (Julien.Narboux@inria.fr)