1 %define ocaml_ver 1:3.09.2
2 Summary: Thread-safe Str replacement
3 Summary(pl.UTF-8): Wielowątkowy zastępca modułu Str
9 URL: http://www.ocaml-programming.de/packages/
10 Source0: http://www.ocaml-programming.de/packages/xstr-%{version}.tar.gz
11 # Source0-md5: 81598c438d6ab5c5d544ea7cc6ed8a34
12 BuildRequires: ocaml >= %{ocaml_ver}
13 BuildRequires: ocaml-findlib
14 %requires_eq ocaml-runtime
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 This package implements frequent string operations: searching,
19 replacing, splitting, matching. It is independent from the Str
20 library, and can replace Str in many cases. Unlike Str, xstr is
21 thread-safe. xstr does not implement regular expressions in general,
22 but an important subset.
24 %description -l pl.UTF-8
25 Pakiet ten implementuje częste operacje na łańcuchach znaków:
26 szukanie, zamianę, dzielenie i dopasowywanie wzorca. Jest niezależny
27 od biblioteki Str, i może ją w wielu wypadkach zastąpić. W
28 przeciwieństwie do Str można go używać w programach wielowątkowych.
29 Xstr nie implementuje wyrażeń regularnych w całości, tylko pewien
33 Summary: Thread-safe Str replacement - development part
34 Summary(pl.UTF-8): Wielowątkowy zastępca modułu Str - cześć programistyczna
35 Group: Development/Libraries
39 This package implements frequent string operations: searching,
40 replacing, splitting, matching. It is independent from the Str
41 library, and can replace Str in many cases. Unlike Str, xstr is
42 thread-safe. xstr does not implement regular expressions in general,
43 but an important subset.
45 This package contains files needed to develop OCaml programs using
48 %description devel -l pl.UTF-8
49 Pakiet ten implementuje częste operacje na łańcuchach znaków:
50 szukanie, zamianę, dzielenie i dopasowywanie wzorca. Jest niezależny
51 od biblioteki Str, i może ją w wielu wypadkach zastąpić. W
52 przeciwieństwie do Str można go używać w programach wielowątkowych.
53 Xstr nie implementuje wyrażeń regularnych w całości, tylko pewien
56 Pakiet ten zawiera pliki niezbędne do tworzenia programów używających
63 sed -e 's/-g//; s/\*.cmxa/& \*.cmx/' Makefile > Makefile.tmp
64 mv -f Makefile.tmp Makefile
68 rm -rf $RPM_BUILD_ROOT
70 install -d $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/xstr
71 OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml %{__make} install
72 echo 'directory = "+xstr"' >> $RPM_BUILD_ROOT%{_libdir}/ocaml/xstr/META
73 mv -f $RPM_BUILD_ROOT%{_libdir}/ocaml/xstr/META \
74 $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/xstr/META
77 rm -rf $RPM_BUILD_ROOT
80 %defattr(644,root,root,755)
81 %doc LICENSE README *.mli
82 %{_libdir}/ocaml/xstr/*.cm[ixa]*
83 %{_libdir}/ocaml/xstr/*.a
84 %{_libdir}/ocaml/site-lib/xstr