update to 7.4.6 [release 7.4.6-1mamba;Tue May 04 2021]

This commit is contained in:
Silvan Calarco 2024-01-06 07:57:11 +01:00
parent ccc421444b
commit 70dd20c55a

View File

@ -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 <silvan.calarco@mambasoft.it>
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 <silvan.calarco@mambasoft.it> 7.4.6-1mamba
- update to 7.4.6
* Sat Dec 21 2013 Automatic Build System <autodist@mambasoft.it> 7.0.4-1mamba
- automatic update by autodist