]>
Commit | Line | Data |
---|---|---|
6e064885 | 1 | %define ocaml_ver 1:3.09.2 |
096bc182 | 2 | Summary: Polimorphic XML Parser for OCaml |
24595200 | 3 | Summary(pl.UTF-8): Polimorficzny analizator składniowy XML-a dla OCamla |
096bc182 | 4 | Name: ocaml-pxp |
930bf146 JR |
5 | Version: 1.2.4 |
6 | Release: 1 | |
096bc182 MM |
7 | License: distributable |
8 | Group: Libraries | |
eb36b6e2 | 9 | Source0: http://download.camlcity.org/download/pxp-%{version}.tar.gz |
930bf146 | 10 | # Source0-md5: bd6f7608797cbcb44d4495d92e69f9c6 |
8da13f22 | 11 | URL: http://projects.camlcity.org/projects/pxp.html |
7ab93796 ER |
12 | BuildRequires: ocaml >= %{ocaml_devel} |
13 | BuildRequires: ocaml-findlib | |
eb36b6e2 | 14 | BuildRequires: ocaml-ocamldoc-devel |
86de20c2 JR |
15 | BuildRequires: ocaml-net-netstring-devel >= 3.6-2 |
16 | BuildRequires: ocaml-net-netsys-devel >= 3.6-2 | |
eb36b6e2 | 17 | BuildRequires: ocaml-ulex |
7ab93796 | 18 | BuildRequires: sed >= 4.0 |
eb36b6e2 | 19 | %requires_eq ocaml-ulex |
096bc182 MM |
20 | %requires_eq ocaml-runtime |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %description | |
63e3bb41 MM |
24 | PXP is a validating parser for XML 1.0 which has been written entirely |
25 | in Objective Caml. | |
26 | ||
a30cc339 | 27 | PXP means "Polymorphic XML Parser" and emphasizes its most useful |
63e3bb41 MM |
28 | property: that the API is polymorphic and can be configured such that |
29 | different objects are used to store different types of elements. | |
215c635a | 30 | |
6dbe4d6c JR |
31 | %description -l pl.UTF-8 |
32 | PXP jest walidującym analizatorem składniowym XML-a 1.0, napisanym w | |
33 | całości w OCamlu. | |
63e3bb41 | 34 | |
a30cc339 | 35 | PXP oznacza "Polymorphic XML Parser" (polimorficzny analizator |
6dbe4d6c JR |
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. | |
096bc182 MM |
39 | |
40 | %package devel | |
41 | Summary: Polimorphic XML Parser for OCaml - development part | |
24595200 | 42 | Summary(pl.UTF-8): Polimorficzny analizator składniowy XML-a dla OCamla - cześć programistyczna |
096bc182 MM |
43 | Group: Development/Libraries |
44 | %requires_eq ocaml | |
45 | %requires_eq ocaml-net-netstring-devel | |
46 | %requires_eq ocaml-wlex-devel | |
47 | ||
48 | %description devel | |
63e3bb41 MM |
49 | PXP is a validating parser for XML 1.0 which has been written entirely |
50 | in Objective Caml. | |
51 | ||
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. | |
55 | ||
7ab93796 ER |
56 | This package contains files needed to develop OCaml programs using the |
57 | PXP library. | |
096bc182 | 58 | |
6dbe4d6c JR |
59 | %description devel -l pl.UTF-8 |
60 | PXP jest walidującym analizatorem składniowym XML-a 1.0, napisanym w | |
61 | całości w OCamlu. | |
63e3bb41 | 62 | |
a30cc339 | 63 | PXP oznacza "Polymorphic XML Parser" (polimorficzny analizator |
6dbe4d6c JR |
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. | |
63e3bb41 | 67 | |
6dbe4d6c | 68 | Pakiet ten zawiera pliki niezbędne do tworzenia programów używających |
a30cc339 | 69 | biblioteki PXP. |
096bc182 MM |
70 | |
71 | %prep | |
72 | %setup -q -n pxp-%{version} | |
096bc182 MM |
73 | |
74 | %build | |
75 | ./configure \ | |
eb36b6e2 JR |
76 | -with-lex \ |
77 | -with-ulex \ | |
78 | -without-wlex \ | |
79 | -with-pp | |
096bc182 | 80 | |
7ab93796 ER |
81 | sed -i -e 's/-g//' Makefile.rules |
82 | %{__make} -j1 \ | |
83 | all opt | |
096bc182 MM |
84 | |
85 | %install | |
86 | rm -rf $RPM_BUILD_ROOT | |
87 | ||
88 | install -d $RPM_BUILD_ROOT%{_libdir}/ocaml/{site-lib,pxp} | |
89 | OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib %{__make} install | |
90 | dir=`pwd` | |
91 | cd $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib | |
92 | for f in * ; do | |
93 | echo 'directory = "+pxp"' >> $f/META | |
94 | if [ "`echo $f/*.*`" != "$f/*.*" ]; then | |
95 | mv $f/*.* $RPM_BUILD_ROOT%{_libdir}/ocaml/pxp | |
96 | fi | |
97 | done | |
98 | cd $dir | |
56213f19 | 99 | rm $RPM_BUILD_ROOT%{_libdir}/ocaml/pxp/*.{o,mli} |
096bc182 MM |
100 | |
101 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
102 | cp -r examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
103 | ||
096bc182 MM |
104 | %clean |
105 | rm -rf $RPM_BUILD_ROOT | |
106 | ||
107 | %files devel | |
108 | %defattr(644,root,root,755) | |
86de20c2 | 109 | %doc doc/README doc/SPEC |
eb36b6e2 | 110 | %doc doc/design.txt doc/manual/html |
096bc182 | 111 | %dir %{_libdir}/ocaml/pxp |
56213f19 | 112 | %{_libdir}/ocaml/pxp/* |
096bc182 MM |
113 | %{_examplesdir}/%{name}-%{version} |
114 | %{_libdir}/ocaml/site-lib/* |