From 70dd20c55afb15c6353e551dda57db85e17f36b6 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 07:57:11 +0100 Subject: [PATCH] update to 7.4.6 [release 7.4.6-1mamba;Tue May 04 2021] --- ocaml-pcre.spec | 64 +++++++++++++++++++++++-------------------------- 1 file changed, 30 insertions(+), 34 deletions(-) diff --git a/ocaml-pcre.spec b/ocaml-pcre.spec index dce04ce..969a0b1 100644 --- a/ocaml-pcre.spec +++ b/ocaml-pcre.spec @@ -1,24 +1,23 @@ -%define ocamlpck pcre - Name: ocaml-pcre -Version: 7.0.4 +Version: 7.4.6 Release: 1mamba Summary: Perl Compatibility Regular Expressions for OCaml Group: System/Libraries Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco -URL: https://bitbucket.org/mmottl/pcre-ocaml -Source: https://bitbucket.org/mmottl/pcre-ocaml/downloads/pcre-ocaml-%{version}.tar.gz +URL: https://mmottl.github.io/pcre-ocaml/ +Source: https://github.com/mmottl/pcre-ocaml.git/%{version}/pcre-ocaml-%{version}.tar.bz2 License: BSD ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libpcre-devel -## AUTOBUILDREQ-END BuildRequires: ocaml +BuildRequires: ocaml-runtime +## AUTOBUILDREQ-END BuildRequires: ocaml-ocamldoc BuildRequires: ocaml-findlib -BuildRoot: %{_tmppath}/%{name}-%{version}-root +BuildRequires: dune %description This OCaml-library interfaces the C-library PCRE (Perl-compatibility Regular Expressions). @@ -44,52 +43,49 @@ This package includes the %{name} API documentation. %setup -q -n pcre-ocaml-%{version} %build -./configure \ - --prefix=%{_prefix} \ - --libdir=%{_libdir} \ - --destdir %{buildroot} \ - --disable-debug - -make all +dune build %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" -export DESTDIR=%{buildroot} -export OCAMLFIND_DESTDIR=%{buildroot}$(ocamlfind printconf destdir) -export DLLDIR=$OCAMLFIND_DESTDIR/stublibs +dune install \ + --destdir=%{buildroot} \ + --libdir=%{_libdir}/ocaml -install -d $OCAMLFIND_DESTDIR/%{ocamlpck} -install -d $OCAMLFIND_DESTDIR/stublibs - -make install - -rm -fr %{buildroot}%{_datadir}/doc +rm -r %{buildroot}%{_prefix}/doc %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %files %defattr(-,root,root) -%dir %{_libdir}/ocaml/%{ocamlpck} -%{_libdir}/ocaml/%{ocamlpck}/META -%{_libdir}/ocaml/%{ocamlpck}/*.cma -%{_libdir}/ocaml/%{ocamlpck}/*.cmi -%{_libdir}/ocaml/%{ocamlpck}/*.cmxs +%dir %{_libdir}/ocaml/pcre +%{_libdir}/ocaml/pcre/dune-package +%{_libdir}/ocaml/pcre/META +%{_libdir}/ocaml/pcre/opam +%{_libdir}/ocaml/pcre/*.cma +%{_libdir}/ocaml/pcre/*.cmi +%{_libdir}/ocaml/pcre/*.cmt +%{_libdir}/ocaml/pcre/*.cmti +%{_libdir}/ocaml/pcre/*.cmxs +%{_libdir}/ocaml/pcre/*.ml %{_libdir}/ocaml/stublibs/*.so* +%doc LICENSE.md %files devel %defattr(-,root,root) -%{_libdir}/ocaml/%{ocamlpck}/*.a -%{_libdir}/ocaml/%{ocamlpck}/*.cmx -%{_libdir}/ocaml/%{ocamlpck}/*.cmxa -%{_libdir}/ocaml/%{ocamlpck}/*.mli -%doc examples/ +%{_libdir}/ocaml/pcre/*.a +%{_libdir}/ocaml/pcre/*.cmx +%{_libdir}/ocaml/pcre/*.cmxa +%{_libdir}/ocaml/pcre/*.mli %files apidocs %defattr(-,root,root) -%doc API.docdir/* +%doc examples/ %changelog +* Tue May 04 2021 Silvan Calarco 7.4.6-1mamba +- update to 7.4.6 + * Sat Dec 21 2013 Automatic Build System 7.0.4-1mamba - automatic update by autodist