1 Summary: PCRE binding for OCaml
2 Summary(pl.UTF-8): Wiązania PCRE dla OCamla
6 License: LGPL v2.1+ with OCaml linking exception
8 # see it to get commit id of particular release
9 #Source0Download: https://bitbucket.org/mmottl/pcre-ocaml
10 Source0: https://bitbucket.org/mmottl/pcre-ocaml/get/00e2295ec90d.tar.bz2
11 # Source0-md5: 8cdc4f56a7effd98f4e2343d996a7074
12 URL: https://bitbucket.org/mmottl/pcre-ocaml
13 BuildRequires: ocaml >= 1:3.12
14 BuildRequires: ocaml-findlib >= 1.3.1
15 BuildRequires: pcre-devel
16 %requires_eq ocaml-runtime
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 This OCaml-library interfaces the PCRE (Perl-compatibility regular
21 expressions) library which is written in C. It can be used for
22 matching regular expressions which are written in "Perl"-style.
24 This package contains files needed to run bytecode executables using
27 %description -l pl.UTF-8
28 Biblioteka zawarta w tym pakiecie umożliwia korzystanie z biblioteki
29 PCRE (wyrażenia regularne kompatybilne z Perlem), która jest z kolei
30 napisana w C. Może być ona używana do dopasowywania wyrażeń
31 regularnych napisanym w ,,stylu Perla''.
33 Pakiet ten zawiera binaria potrzebne do uruchamiania programów
34 używających tej biblioteki.
37 Summary: PCRE binding for OCaml - development part
38 Summary(pl.UTF-8): Wiązania PCRE dla OCamla - cześć programistyczna
39 Group: Development/Libraries
40 Requires: %{name} = %{version}-%{release}
44 This OCaml-library interfaces the PCRE (Perl-compatibility regular
45 expressions) library which is written in C. It can be used for
46 matching regular expressions which are written in "Perl"-style.
48 This package contains files needed to develop OCaml programs using
51 %description devel -l pl.UTF-8
52 Biblioteka zawarta w tym pakiecie umożliwia korzystanie z biblioteki
53 PCRE (wyrażenia regularne kompatybilne z Perlem), która jest z kolei
54 napisana w C. Może być ona używana do dopasowywania wyrażeń
55 regularnych napisanym w ,,stylu Perla''.
57 Pakiet ten zawiera pliki niezbędne do tworzenia programów używających
61 %setup -q -n mmottl-pcre-ocaml-00e2295ec90d
64 # not autoconf configure
71 CFLAGS="%{rpmcflags} -fPIC -DPIC"
74 rm -rf $RPM_BUILD_ROOT
75 install -d $RPM_BUILD_ROOT%{_libdir}/ocaml/{site-lib/pcre,stublibs}
78 OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml
80 %{__rm} $RPM_BUILD_ROOT%{_libdir}/ocaml/pcre/*.mli
82 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
83 cp -pr examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
85 mv $RPM_BUILD_ROOT%{_libdir}/ocaml/pcre/META \
86 $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/pcre
87 echo 'directory = "+pcre"' >> $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/pcre/META
90 rm -rf $RPM_BUILD_ROOT
93 %defattr(644,root,root,755)
94 %doc AUTHORS.txt CHANGES.txt README.md
95 %dir %{_libdir}/ocaml/pcre
96 %attr(755,root,root) %{_libdir}/ocaml/stublibs/dllpcre_stubs.so
97 %{_libdir}/ocaml/stublibs/dllpcre_stubs.so.owner
100 %defattr(644,root,root,755)
102 %{_libdir}/ocaml/pcre/libpcre_stubs.a
103 %{_libdir}/ocaml/pcre/pcre.a
104 %{_libdir}/ocaml/pcre/pcre.cm[ixa]*
105 %{_libdir}/ocaml/site-lib/pcre
106 %{_examplesdir}/%{name}-%{version}