]> git.pld-linux.org Git - packages/ocaml-pcre.git/blame - ocaml-pcre.spec
- new URLs, updated to 7.0.2
[packages/ocaml-pcre.git] / ocaml-pcre.spec
CommitLineData
27d247d1 1Summary: PCRE binding for OCaml
c920d8f0 2Summary(pl.UTF-8): Wiązania PCRE dla OCamla
27d247d1 3Name: ocaml-pcre
d90ed784
JB
4Version: 7.0.2
5Release: 1
6License: LGPL v2.1+ with OCaml linking exception
27d247d1 7Group: Libraries
d90ed784
JB
8# see it to get commit id of particular release
9#Source0Download: https://bitbucket.org/mmottl/pcre-ocaml
10Source0: https://bitbucket.org/mmottl/pcre-ocaml/get/00e2295ec90d.tar.bz2
11# Source0-md5: 8cdc4f56a7effd98f4e2343d996a7074
12URL: https://bitbucket.org/mmottl/pcre-ocaml
13BuildRequires: ocaml >= 1:3.12
14BuildRequires: ocaml-findlib >= 1.3.1
344cfd0a 15BuildRequires: pcre-devel
27d247d1
MM
16%requires_eq ocaml-runtime
17BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19%description
20This OCaml-library interfaces the PCRE (Perl-compatibility regular
21expressions) library which is written in C. It can be used for
22matching regular expressions which are written in "Perl"-style.
23
24This package contains files needed to run bytecode executables using
25this library.
26
bc9ee53e
JR
27%description -l pl.UTF-8
28Biblioteka zawarta w tym pakiecie umożliwia korzystanie z biblioteki
29PCRE (wyrażenia regularne kompatybilne z Perlem), która jest z kolei
30napisana w C. Może być ona używana do dopasowywania wyrażeń
27d247d1
MM
31regularnych napisanym w ,,stylu Perla''.
32
bc9ee53e
JR
33Pakiet ten zawiera binaria potrzebne do uruchamiania programów
34używających tej biblioteki.
27d247d1
MM
35
36%package devel
37Summary: PCRE binding for OCaml - development part
c920d8f0 38Summary(pl.UTF-8): Wiązania PCRE dla OCamla - cześć programistyczna
27d247d1
MM
39Group: Development/Libraries
40Requires: %{name} = %{version}-%{release}
41%requires_eq ocaml
42
43%description devel
44This OCaml-library interfaces the PCRE (Perl-compatibility regular
45expressions) library which is written in C. It can be used for
46matching regular expressions which are written in "Perl"-style.
47
48This package contains files needed to develop OCaml programs using
49this library.
50
bc9ee53e
JR
51%description devel -l pl.UTF-8
52Biblioteka zawarta w tym pakiecie umożliwia korzystanie z biblioteki
53PCRE (wyrażenia regularne kompatybilne z Perlem), która jest z kolei
54napisana w C. Może być ona używana do dopasowywania wyrażeń
27d247d1
MM
55regularnych napisanym w ,,stylu Perla''.
56
bc9ee53e 57Pakiet ten zawiera pliki niezbędne do tworzenia programów używających
27d247d1
MM
58tej biblioteki.
59
60%prep
d90ed784 61%setup -q -n mmottl-pcre-ocaml-00e2295ec90d
27d247d1
MM
62
63%build
d90ed784
JB
64# not autoconf configure
65./configure \
66 --prefix=%{_prefix} \
67 --docdir=$(pwd)/doc
68
654d7db0 69%{__make} -j1 all \
7573fd08
JB
70 CC="%{__cc}" \
71 CFLAGS="%{rpmcflags} -fPIC -DPIC"
27d247d1
MM
72
73%install
74rm -rf $RPM_BUILD_ROOT
d556d935 75install -d $RPM_BUILD_ROOT%{_libdir}/ocaml/{site-lib/pcre,stublibs}
27d247d1 76
7573fd08
JB
77%{__make} install \
78 OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml
79
d90ed784 80%{__rm} $RPM_BUILD_ROOT%{_libdir}/ocaml/pcre/*.mli
27d247d1
MM
81
82install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
d90ed784 83cp -pr examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
27d247d1 84
d556d935 85mv $RPM_BUILD_ROOT%{_libdir}/ocaml/pcre/META \
d90ed784 86 $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/pcre
a1e61ec8 87echo 'directory = "+pcre"' >> $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/pcre/META
27d247d1 88
27d247d1
MM
89%clean
90rm -rf $RPM_BUILD_ROOT
91
92%files
93%defattr(644,root,root,755)
d90ed784 94%doc AUTHORS.txt CHANGES.txt README.md
27d247d1 95%dir %{_libdir}/ocaml/pcre
d90ed784
JB
96%attr(755,root,root) %{_libdir}/ocaml/stublibs/dllpcre_stubs.so
97%{_libdir}/ocaml/stublibs/dllpcre_stubs.so.owner
27d247d1
MM
98
99%files devel
100%defattr(644,root,root,755)
7573fd08 101%doc lib/*.mli
d90ed784
JB
102%{_libdir}/ocaml/pcre/libpcre_stubs.a
103%{_libdir}/ocaml/pcre/pcre.a
104%{_libdir}/ocaml/pcre/pcre.cm[ixa]*
27d247d1 105%{_libdir}/ocaml/site-lib/pcre
7573fd08 106%{_examplesdir}/%{name}-%{version}
This page took 0.075709 seconds and 4 git commands to generate.