1 %define ocaml_ver 1:3.09.2
2 Summary: Polimorphic XML Parser for OCaml
3 Summary(pl.UTF-8): Polimorficzny analizator składniowy XML-a dla OCamla
9 Source0: http://download.camlcity.org/download/pxp-%{version}.tar.gz
10 # Source0-md5: 83347420dae0ee495bb0ac2fbab7b74b
11 URL: http://projects.camlcity.org/projects/pxp.html
12 BuildRequires: ocaml >= %{ocaml_devel}
13 BuildRequires: ocaml-findlib
14 BuildRequires: ocaml-ocamldoc-devel
15 BuildRequires: ocaml-net-netstring-devel >= 1.1.1-2
16 BuildRequires: ocaml-net-netsys-devel
17 BuildRequires: ocaml-ulex
18 BuildRequires: sed >= 4.0
19 %requires_eq ocaml-ulex
20 %requires_eq ocaml-runtime
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 PXP is a validating parser for XML 1.0 which has been written entirely
27 PXP means "Polymorphic XML Parser" and emphasizes its most useful
28 property: that the API is polymorphic and can be configured such that
29 different objects are used to store different types of elements.
31 %description -l pl.UTF-8
32 PXP jest walidującym analizatorem składniowym XML-a 1.0, napisanym w
35 PXP oznacza "Polymorphic XML Parser" (polimorficzny analizator
36 składniowy XML-a), co podkreśla jego najbardziej użyteczną własność:
37 API jest polimorficzne i może być skonfigurowane tak, że różne obiekty
38 są używane do przechowywania różnych typów elementów.
41 Summary: Polimorphic XML Parser for OCaml - development part
42 Summary(pl.UTF-8): Polimorficzny analizator składniowy XML-a dla OCamla - cześć programistyczna
43 Group: Development/Libraries
45 %requires_eq ocaml-net-netstring-devel
46 %requires_eq ocaml-wlex-devel
49 PXP is a validating parser for XML 1.0 which has been written entirely
52 PXP means "Polymorphic XML parser" and emphasizes its most useful
53 property: that the API is polymorphic and can be configured such that
54 different objects are used to store different types of elements.
56 This package contains files needed to develop OCaml programs using the
59 %description devel -l pl.UTF-8
60 PXP jest walidującym analizatorem składniowym XML-a 1.0, napisanym w
63 PXP oznacza "Polymorphic XML Parser" (polimorficzny analizator
64 składniowy XML-a), co podkreśla jego najbardziej użyteczną własność:
65 API jest polimorficzne i może być skonfigurowane tak, że różne obiekty
66 są używane do przechowywania różnych typów elementów.
68 Pakiet ten zawiera pliki niezbędne do tworzenia programów używających
72 %setup -q -n pxp-%{version}
81 sed -i -e 's/-g//' Makefile.rules
86 rm -rf $RPM_BUILD_ROOT
88 install -d $RPM_BUILD_ROOT%{_libdir}/ocaml/{site-lib,pxp}
89 OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib %{__make} install
91 cd $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib
93 echo 'directory = "+pxp"' >> $f/META
94 if [ "`echo $f/*.*`" != "$f/*.*" ]; then
95 mv $f/*.* $RPM_BUILD_ROOT%{_libdir}/ocaml/pxp
99 rm $RPM_BUILD_ROOT%{_libdir}/ocaml/pxp/*.{o,mli}
101 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
102 cp -r examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
105 rm -rf $RPM_BUILD_ROOT
108 %defattr(644,root,root,755)
109 %doc doc/DEV doc/README doc/SPEC
110 %doc doc/design.txt doc/manual/html
111 %dir %{_libdir}/ocaml/pxp
112 %{_libdir}/ocaml/pxp/*
113 %{_examplesdir}/%{name}-%{version}
114 %{_libdir}/ocaml/site-lib/*