[packages/ocaml-pcre] - updated to 7.1.5
qboosh
qboosh at pld-linux.org
Sat Jul 18 10:19:46 CEST 2015
commit b2e2e7a9febe3f975bdc134bb2296c0f0a40a97c
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Jul 18 10:21:01 2015 +0200
- updated to 7.1.5
ocaml-pcre.spec | 34 ++++++++++++++++++++--------------
1 file changed, 20 insertions(+), 14 deletions(-)
---
diff --git a/ocaml-pcre.spec b/ocaml-pcre.spec
index dc97fea..dcd7629 100644
--- a/ocaml-pcre.spec
+++ b/ocaml-pcre.spec
@@ -2,26 +2,20 @@
# Conditional build:
%bcond_without ocaml_opt # skip building native optimized binaries (bytecode is always built)
-%ifarch x32
-# not yet available on x32 (ocaml 4.02.1), remove when upstream will support it
+# not yet available on x32 (ocaml 4.02.1), update when upstream will support it
+%ifnarch %{ix86} %{x8664} arm aarch64 ppc sparc sparcv9
%undefine with_ocaml_opt
%endif
-%if %{without ocaml_opt}
-%define no_install_post_strip 1
-# no opt means no native binary, stripping bytecode breaks such programs
-%define _enable_debug_packages 0
-%endif
-
Summary: PCRE binding for OCaml
Summary(pl.UTF-8): Wiązania PCRE dla OCamla
Name: ocaml-pcre
-Version: 7.1.2
-Release: 2
+Version: 7.1.5
+Release: 1
License: LGPL v2.1+ with OCaml linking exception
Group: Libraries
Source0: https://github.com/mmottl/pcre-ocaml/archive/v%{version}/%{name}-%{version}.tar.gz
-# Source0-md5: b0e73c693080baf4fbd8797c8d9c8d3c
+# Source0-md5: 28e40ad63fe2d568aa47ff460d3f9d3a
URL: http://mmottl.github.io/pcre-ocaml/
BuildRequires: ocaml >= 1:3.12
BuildRequires: ocaml-findlib >= 1.5
@@ -29,6 +23,12 @@ BuildRequires: pcre-devel
%requires_eq ocaml-runtime
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+%if %{without ocaml_opt}
+%define no_install_post_strip 1
+# no opt means no native binary, stripping bytecode breaks such programs
+%define _enable_debug_packages 0
+%endif
+
%description
This OCaml-library interfaces the PCRE (Perl-compatibility regular
expressions) library which is written in C. It can be used for
@@ -90,6 +90,7 @@ install -d $RPM_BUILD_ROOT%{_libdir}/ocaml/{site-lib/pcre,stublibs}
%{__make} install \
OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml
+# packaged as %doc
%{__rm} $RPM_BUILD_ROOT%{_libdir}/ocaml/pcre/*.mli
install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
@@ -113,12 +114,17 @@ rm -rf $RPM_BUILD_ROOT
%defattr(644,root,root,755)
%doc lib/*.mli
%{_libdir}/ocaml/pcre/libpcre_stubs.a
+%{_libdir}/ocaml/pcre/pcre.annot
+%{_libdir}/ocaml/pcre/pcre.cma
+%{_libdir}/ocaml/pcre/pcre.cmi
+%{_libdir}/ocaml/pcre/pcre.cmt
+%{_libdir}/ocaml/pcre/pcre.cmti
%if %{with ocaml_opt}
%{_libdir}/ocaml/pcre/pcre.a
+%{_libdir}/ocaml/pcre/pcre.cmx
%{_libdir}/ocaml/pcre/pcre.cmxa
+%{_libdir}/ocaml/pcre/pcre.cmxs
+%{_libdir}/ocaml/pcre/pcre_compat.cmx
%endif
-%{_libdir}/ocaml/pcre/pcre.cm[ia]
-%{_libdir}/ocaml/pcre/pcre_compat.cm[ix]
-%{_libdir}/ocaml/pcre/pcre_compat.ml
%{_libdir}/ocaml/site-lib/pcre
%{_examplesdir}/%{name}-%{version}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ocaml-pcre.git/commitdiff/b2e2e7a9febe3f975bdc134bb2296c0f0a40a97c
More information about the pld-cvs-commit
mailing list