add a devel package [release 1.1.1-2mamba;Sun Jun 23 2013]

This commit is contained in:
openmamba WebBuild System 2024-01-06 08:04:57 +01:00
parent 50c4b19fdc
commit e60bd688d3
3 changed files with 74 additions and 0 deletions

View File

@ -1,2 +1,5 @@
# ocaml-xmlm # ocaml-xmlm
Xmlm is an OCaml module providing streaming XML input/output.
It aims at making XML processing robust and painless.

71
ocaml-xmlm.spec Normal file
View File

@ -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 <silvan.calarco@mambasoft.it>
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 <webbuild@openmamba.org> 1.1.1-2mamba
- add a devel package
* Fri Jan 11 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 1.1.1-1mamba
- package created by silvan using the webbuild interface

BIN
xmlm-1.1.1.tbz Normal file

Binary file not shown.