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 Name: ocaml-pcre
Version: 7.0.4 Version: 7.4.6
Release: 1mamba Release: 1mamba
Summary: Perl Compatibility Regular Expressions for OCaml Summary: Perl Compatibility Regular Expressions for OCaml
Group: System/Libraries Group: System/Libraries
Vendor: openmamba Vendor: openmamba
Distribution: openmamba Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it> Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://bitbucket.org/mmottl/pcre-ocaml URL: https://mmottl.github.io/pcre-ocaml/
Source: https://bitbucket.org/mmottl/pcre-ocaml/downloads/pcre-ocaml-%{version}.tar.gz Source: https://github.com/mmottl/pcre-ocaml.git/%{version}/pcre-ocaml-%{version}.tar.bz2
License: BSD License: BSD
## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel BuildRequires: glibc-devel
BuildRequires: libpcre-devel BuildRequires: libpcre-devel
## AUTOBUILDREQ-END
BuildRequires: ocaml BuildRequires: ocaml
BuildRequires: ocaml-runtime
## AUTOBUILDREQ-END
BuildRequires: ocaml-ocamldoc BuildRequires: ocaml-ocamldoc
BuildRequires: ocaml-findlib BuildRequires: ocaml-findlib
BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildRequires: dune
%description %description
This OCaml-library interfaces the C-library PCRE (Perl-compatibility Regular Expressions). 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} %setup -q -n pcre-ocaml-%{version}
%build %build
./configure \ dune build
--prefix=%{_prefix} \
--libdir=%{_libdir} \
--destdir %{buildroot} \
--disable-debug
make all
%install %install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
export DESTDIR=%{buildroot} dune install \
export OCAMLFIND_DESTDIR=%{buildroot}$(ocamlfind printconf destdir) --destdir=%{buildroot} \
export DLLDIR=$OCAMLFIND_DESTDIR/stublibs --libdir=%{_libdir}/ocaml
install -d $OCAMLFIND_DESTDIR/%{ocamlpck} rm -r %{buildroot}%{_prefix}/doc
install -d $OCAMLFIND_DESTDIR/stublibs
make install
rm -fr %{buildroot}%{_datadir}/doc
%clean %clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%dir %{_libdir}/ocaml/%{ocamlpck} %dir %{_libdir}/ocaml/pcre
%{_libdir}/ocaml/%{ocamlpck}/META %{_libdir}/ocaml/pcre/dune-package
%{_libdir}/ocaml/%{ocamlpck}/*.cma %{_libdir}/ocaml/pcre/META
%{_libdir}/ocaml/%{ocamlpck}/*.cmi %{_libdir}/ocaml/pcre/opam
%{_libdir}/ocaml/%{ocamlpck}/*.cmxs %{_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* %{_libdir}/ocaml/stublibs/*.so*
%doc LICENSE.md
%files devel %files devel
%defattr(-,root,root) %defattr(-,root,root)
%{_libdir}/ocaml/%{ocamlpck}/*.a %{_libdir}/ocaml/pcre/*.a
%{_libdir}/ocaml/%{ocamlpck}/*.cmx %{_libdir}/ocaml/pcre/*.cmx
%{_libdir}/ocaml/%{ocamlpck}/*.cmxa %{_libdir}/ocaml/pcre/*.cmxa
%{_libdir}/ocaml/%{ocamlpck}/*.mli %{_libdir}/ocaml/pcre/*.mli
%doc examples/
%files apidocs %files apidocs
%defattr(-,root,root) %defattr(-,root,root)
%doc API.docdir/* %doc examples/
%changelog %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 * Sat Dec 21 2013 Automatic Build System <autodist@mambasoft.it> 7.0.4-1mamba
- automatic update by autodist - automatic update by autodist