Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:HighwayStar:ocaml
ocaml-pcre
ocaml-pcre.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File ocaml-pcre.spec of Package ocaml-pcre
%define opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0) Name: ocaml-pcre Version: 6.0.1 Release: 1 Summary: Perl compatibility regular expressions (PCRE) for OCaml Group: Development/Libraries License: LGPLv2 URL: http://www.ocaml.info/home/ocaml_sources.html#pcre-ocaml Source0: http://www.ocaml.info/ocaml_sources/pcre-ocaml-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: ocaml BuildRequires: ocaml-findlib-devel BuildRequires: pcre-devel BuildRequires: gawk %description Perl compatibility regular expressions (PCRE) for OCaml. %package devel Summary: Development files for %{name} Group: Development/Libraries Requires: %{name} = %{version}-%{release} # This isn't quite right - we need to specify same architecture of pcre-devel Requires: pcre-devel %description devel The %{name}-devel package contains libraries and signature files for developing applications that use %{name}. %prep %setup -q -n pcre-ocaml-%{version} %build %if %opt make all %else make -C lib byte-code-library %endif strip lib/dll*.so %install rm -rf $RPM_BUILD_ROOT export DESTDIR=$RPM_BUILD_ROOT export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml mkdir -p $OCAMLFIND_DESTDIR $OCAMLFIND_DESTDIR/stublibs %if %opt make NATIVE=true install %else make LIBINSTALL_FILES="pcre.mli pcre.cmi pcre.cma libpcre_stubs.a dllpcre_stubs.so" install %endif %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc LICENSE README.txt %{_libdir}/ocaml/pcre %if %opt %exclude %{_libdir}/ocaml/pcre/*.a %exclude %{_libdir}/ocaml/pcre/*.cmxa %endif %exclude %{_libdir}/ocaml/pcre/*.mli %{_libdir}/ocaml/stublibs/*.so %{_libdir}/ocaml/stublibs/*.so.owner %files devel %defattr(-,root,root,-) %doc LICENSE README.txt %if %opt %{_libdir}/ocaml/pcre/*.a %{_libdir}/ocaml/pcre/*.cmxa %endif %{_libdir}/ocaml/pcre/*.mli %changelog * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.15.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Wed Nov 26 2008 Richard W.M. Jones <rjones@redhat.com> - 5.15.0-3 - Rebuild for OCaml 3.11.0+rc1.
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor