diff --git a/README.md b/README.md index cf64fd9..3a2a272 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,5 @@ # ocaml-xmlm +Xmlm is an OCaml module providing streaming XML input/output. +It aims at making XML processing robust and painless. + diff --git a/ocaml-xmlm.spec b/ocaml-xmlm.spec new file mode 100644 index 0000000..39fa3ad --- /dev/null +++ b/ocaml-xmlm.spec @@ -0,0 +1,71 @@ +%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 diff --git a/xmlm-1.1.1.tbz b/xmlm-1.1.1.tbz new file mode 100644 index 0000000..62c8a20 Binary files /dev/null and b/xmlm-1.1.1.tbz differ