diff --git a/ocaml-pcre.changes b/ocaml-pcre.changes index 2e05055..367da06 100644 --- a/ocaml-pcre.changes +++ b/ocaml-pcre.changes @@ -1,3 +1,18 @@ +------------------------------------------------------------------- +Tue Jul 25 13:04:54 UTC 2017 - ohering@suse.de + +- Use Group: Development/Languages/OCaml + +------------------------------------------------------------------- +Mon Jul 17 12:48:58 UTC 2017 - ohering@suse.de + +- Wrap specfile conditionals to fix quilt setup + +------------------------------------------------------------------- +Mon Jul 17 10:48:58 UTC 2017 - ohering@suse.de + +- Remove autodeps for pre openSUSE 12.1 releases + ------------------------------------------------------------------- Mon May 23 20:02:46 UTC 2016 - ohering@suse.de diff --git a/ocaml-pcre.spec b/ocaml-pcre.spec index 2a7e2ad..26217f7 100644 --- a/ocaml-pcre.spec +++ b/ocaml-pcre.spec @@ -1,7 +1,7 @@ # # spec file for package ocaml-pcre # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2011 Andrew Psaltis # # All modifications and additions to the file contributed by third parties @@ -19,31 +19,26 @@ Name: ocaml-pcre Version: 7.2.3 -%{ocaml_preserve_bytecode} Release: 0 +%{?ocaml_preserve_bytecode} Summary: Perl compatibility regular expressions (PCRE) for OCaml License: LGPL-2.0 -Group: Development/Libraries/Other +Group: Development/Languages/OCaml Url: http://mmottl.github.io/pcre-ocaml/ # https://github.com/mmottl/pcre-ocaml/releases/download/v%{version}/pcre-ocaml-%{version}.tar.gz Source0: pcre-ocaml-%{version}.tar.xz Patch0: ocaml-pcre-warnings.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build -# ocaml autodep start for pkg: ocaml-pcre -# hardcoded rpm dependency for pre 12.1 to compensate for lack of ocaml() provides/requires -%if 0%{?suse_version} < 1210 -Requires: ocaml-runtime -%endif -# ocaml autodep end for pkg: ocaml-pcre BuildRequires: gawk BuildRequires: ocaml >= 3.10.2 BuildRequires: ocaml-oasis BuildRequires: ocaml-ocamldoc BuildRequires: ocaml-rpm-macros >= 4.03 +BuildRequires: pkg-config BuildRequires: ocamlfind(bytes) -BuildRequires: pcre-devel +BuildRequires: pkgconfig(libpcre) %description Perl compatibile regular expressions (PCRE) for OCaml. @@ -51,7 +46,7 @@ Perl compatibile regular expressions (PCRE) for OCaml. %package devel Summary: Development files for %{name} -Group: Development/Libraries/Other +Group: Development/Languages/OCaml Requires: %{name} = %{version} Requires: pcre-devel @@ -65,6 +60,14 @@ developing applications that use %{name}. %patch0 -p1 %build +sed -i~ " +s@\(.*\)\(CCOpt:\)\(.*\)\$@\1\2 %{optflags} -fPIC `pkg-config --cflags libpcre`@ +s@\(.*\)\(CCLib:\)\(.*\)\$@\1\2 `pkg-config --libs libpcre`@ +" _oasis +if diff -u _oasis~ _oasis +then + exit 1 +fi %oasis_setup %ocaml_oasis_configure --enable-docs %ocaml_oasis_build @@ -75,7 +78,7 @@ developing applications that use %{name}. # mkdir -vp %{buildroot}/etc/ld.so.conf.d/ tee %{buildroot}/etc/ld.so.conf.d/%{name}.conf <<_EOF_ -%{_libdir}/ocaml/stublibs +%{_libdir}/ocaml/pcre _EOF_ # @@ -89,7 +92,7 @@ _EOF_ /etc/ld.so.conf.d/*.conf %dir %{_libdir}/ocaml %dir %{_libdir}/ocaml/* -%if %{ocaml_native_compiler} +%if 0%{?ocaml_native_compiler} %{_libdir}/ocaml/*/*.cmxs %endif %{_libdir}/ocaml/*/*.so @@ -100,7 +103,7 @@ _EOF_ %dir %{_libdir}/ocaml %dir %{_libdir}/ocaml/* %{_libdir}/ocaml/*/*.a -%if %{ocaml_native_compiler} +%if 0%{?ocaml_native_compiler} %{_libdir}/ocaml/*/*.cmx %{_libdir}/ocaml/*/*.cmxa %endif