Accepting request 780712 from devel:languages:ocaml

- Update to version 7.4.3
  See included CHANGES.md

- Update to version 7.4.1
- Require current ocaml-rpm-macros
- Remove ocaml-pcre-warnings.patch

OBS-URL: https://build.opensuse.org/request/show/780712
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ocaml-pcre?expand=0&rev=3
This commit is contained in:
Dominique Leuenberger 2020-03-09 13:14:03 +00:00 committed by Git OBS Bridge
commit b79e80545f
6 changed files with 50 additions and 98 deletions

14
_service Normal file
View File

@ -0,0 +1,14 @@
<services>
<service name="tar_scm" mode="disabled">
<param name="url">git://github.com/mmottl/pcre-ocaml.git</param>
<param name="scm">git</param>
<param name="versionformat">@PARENT_TAG@</param>
<param name="revision">45a2781669d4dc1616f9d07510b366cbe0ae99d4</param>
<param name="filename">ocaml-pcre</param>
</service>
<service name="recompress" mode="disabled">
<param name="file">*.tar</param>
<param name="compression">xz</param>
</service>
<service name="set_version" mode="disabled"/>
</services>

3
ocaml-pcre-7.4.3.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:67e4e82d7614ced8ec75ee67b931bc7183427a3c9c45797ee32f1c47418d8911
size 40268

View File

@ -1,27 +0,0 @@
---
_oasis | 2 +-
setup.ml | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
--- a/_oasis
+++ b/_oasis
@@ -32,7 +32,7 @@ Library pcre
BuildDepends: bytes
CCOpt: -g -O2 -fPIC -DPIC
if flag(strict) && ccomp_type(cc)
- CCOpt+: -Wall -pedantic -Wextra -Wunused -Wno-long-long -Wno-keyword-macro
+ CCOpt+: -Wall -pedantic -Wextra -Wunused -Wno-long-long
# Examples
--- a/setup.ml
+++ b/setup.ml
@@ -6786,7 +6786,7 @@ let setup_t =
"-Wextra";
"-Wunused";
"-Wno-long-long";
- "-Wno-keyword-macro"
+ "-Wno-keyword-macro";
])
];
bs_cclib = [(OASISExpr.EBool true, [])];

View File

@ -1,3 +1,16 @@
-------------------------------------------------------------------
Sat Feb 29 20:20:20 UTC 2020 - ohering@suse.de
- Update to version 7.4.3
See included CHANGES.md
-------------------------------------------------------------------
Thu Feb 20 20:20:20 UTC 2020 - ohering@suse.de
- Update to version 7.4.1
- Require current ocaml-rpm-macros
- Remove ocaml-pcre-warnings.patch
-------------------------------------------------------------------
Tue Jul 25 13:04:54 UTC 2017 - ohering@suse.de

View File

@ -13,37 +13,30 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: ocaml-pcre
Version: 7.2.3
Version: 7.4.3
Release: 0
%{?ocaml_preserve_bytecode}
Summary: Perl compatibility regular expressions (PCRE) for OCaml
License: LGPL-2.0
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
BuildRequires: gawk
BuildRequires: ocaml >= 3.10.2
BuildRequires: ocaml-oasis
BuildRequires: ocaml-ocamldoc
BuildRequires: ocaml-rpm-macros >= 4.03
Url: https://opam.ocaml.org/packages/pcre
Source0: %{name}-%{version}.tar.xz
BuildRequires: ocaml(ocaml_base_version) >= 4.08
BuildRequires: ocaml-dune
BuildRequires: ocaml-rpm-macros >= 20200220
BuildRequires: ocamlfind(base)
BuildRequires: ocamlfind(dune.configurator)
BuildRequires: pkg-config
BuildRequires: ocamlfind(bytes)
BuildRequires: pkgconfig(libpcre)
%description
Perl compatibile regular expressions (PCRE) for OCaml.
%package devel
Summary: Development files for %{name}
Group: Development/Languages/OCaml
@ -54,65 +47,24 @@ Requires: pcre-devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.
%prep
%setup -q -n pcre-ocaml-%{version}
%patch0 -p1
%autosetup -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
%ocaml_oasis_doc
dune_release_pkgs='pcre'
%ocaml_dune_setup
%ocaml_dune_build
%install
%ocaml_oasis_findlib_install
#
mkdir -vp %{buildroot}/etc/ld.so.conf.d/
tee %{buildroot}/etc/ld.so.conf.d/%{name}.conf <<_EOF_
%{_libdir}/ocaml/pcre
_EOF_
#
%ocaml_dune_install
%ocaml_create_file_list
%post -p /sbin/ldconfig
%check
%ocaml_dune_test
%postun -p /sbin/ldconfig
%files -f %{name}.files
%files
%defattr(-,root,root,-)
%doc COPYING.txt README.md
/etc/ld.so.conf.d/*.conf
%dir %{_libdir}/ocaml
%dir %{_libdir}/ocaml/*
%if 0%{?ocaml_native_compiler}
%{_libdir}/ocaml/*/*.cmxs
%endif
%{_libdir}/ocaml/*/*.so
%files devel
%defattr(-,root,root,-)
%{oasis_docdir_html}
%dir %{_libdir}/ocaml
%dir %{_libdir}/ocaml/*
%{_libdir}/ocaml/*/*.a
%if 0%{?ocaml_native_compiler}
%{_libdir}/ocaml/*/*.cmx
%{_libdir}/ocaml/*/*.cmxa
%endif
%{_libdir}/ocaml/*/*.annot
%{_libdir}/ocaml/*/*.cma
%{_libdir}/ocaml/*/*.cmi
%{_libdir}/ocaml/*/*.cmt
%{_libdir}/ocaml/*/*.cmti
%{_libdir}/ocaml/*/*.mli
%{_libdir}/ocaml/*/META
%files devel -f %{name}.files.devel
%doc README.md
%changelog

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:92d4ac867e6c64961329f7a8614a449b716b9a0bfd37b0c51bdf0da8de741273
size 73760