3 %bcond_without opt # build opt
6 %define debug_package %{nil}
7 Summary: OCaml xml manipulation module
13 Source0: http://erratique.ch/software/xmlm/releases/%{pkgname}-%{version}.tbz
14 # Source0-md5: 357025dd1a9fc87b6e50ac21eb0eb2b1
15 URL: http://erratique.ch/software/xmlm
16 BuildRequires: ocaml >= 3.10
17 BuildRequires: ocaml-findlib >= 1.4
18 %requires_eq ocaml-runtime
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 Xmlm allows the OCaml programmer to manipulate xml data. Its
23 complexity is half-way between the easy xml-light module and a full
24 parsing of xml data. It is also very simple to updgrade existing code
25 using xml-light in order to use xmlm.
27 %description -l pl.UTF-8
28 Pakiet ten zawiera binaria potrzebne do uruchamiania programów
29 używających tej biblioteki.
32 Summary: xmlm binding for OCaml - development part
33 Summary(pl.UTF-8): Wiązania xmlm dla OCamla - cześć programistyczna
34 Group: Development/Libraries
35 #Requires: %{name} = %{version}-%{release}
39 This package contains all the development stuff you need to develop
40 OCaml programs which use xmlm.
42 %description devel -l pl.UTF-8
43 Pakiet ten zawiera pliki niezbędne do tworzenia programów używających
47 %setup -q -n %{pkgname}-%{version}
50 ocaml setup.ml -configure
54 rm -rf $RPM_BUILD_ROOT
55 install -d $RPM_BUILD_ROOT%{_libdir}/ocaml/{xmlm,stublibs}
56 install _build/src/*.cm[ixa]* _build/src/*.a $RPM_BUILD_ROOT%{_libdir}/ocaml/xmlm
58 install -d $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/xmlm
59 cat > $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/xmlm/META <<EOF
61 version = "%{version}"
63 archive(byte) = "xmlm.cma"
64 archive(native) = "xmlm.cmxa"
69 rm -rf $RPM_BUILD_ROOT
72 %defattr(644,root,root,755)
73 %doc README CHANGES src/*.mli
74 %dir %{_libdir}/ocaml/xmlm
75 %{_libdir}/ocaml/xmlm/*.cm[ixa]*
76 %{_libdir}/ocaml/xmlm/*.a
77 %{_libdir}/ocaml/site-lib/xmlm