fix for missing version in dune-project [release 7.5.0-2mamba;Sun Jul 09 2023]

This commit is contained in:
Silvan Calarco 2024-01-06 07:57:11 +01:00
parent 70dd20c55a
commit bd6a91d982
2 changed files with 29 additions and 4 deletions

View File

@ -0,0 +1,8 @@
--- pcre-ocaml-7.5.0/dune-project.orig 2023-07-09 12:06:12.378107809 +0200
+++ pcre-ocaml-7.5.0/dune-project 2023-07-09 12:06:27.920031121 +0200
@@ -1,4 +1,5 @@
(lang dune 2.7)
+(version %VERSION%)
(name pcre)
(generate_opam_files true)

View File

@ -1,6 +1,6 @@
Name: ocaml-pcre
Version: 7.4.6
Release: 1mamba
Version: 7.5.0
Release: 2mamba
Summary: Perl Compatibility Regular Expressions for OCaml
Group: System/Libraries
Vendor: openmamba
@ -8,6 +8,7 @@ Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://mmottl.github.io/pcre-ocaml/
Source: https://github.com/mmottl/pcre-ocaml.git/%{version}/pcre-ocaml-%{version}.tar.bz2
Patch0: ocaml-pcre-7.5.0-dune-missing-version.patch
License: BSD
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
@ -15,6 +16,7 @@ BuildRequires: libpcre-devel
BuildRequires: ocaml
BuildRequires: ocaml-runtime
## AUTOBUILDREQ-END
BuildRequires: ocaml >= 4.14.1
BuildRequires: ocaml-ocamldoc
BuildRequires: ocaml-findlib
BuildRequires: dune
@ -41,6 +43,8 @@ This package includes the %{name} API documentation.
%prep
%setup -q -n pcre-ocaml-%{version}
%patch0 -p1
sed -i "s|%%VERSION%|%{version}|" dune-project
%build
dune build
@ -49,10 +53,12 @@ dune build
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
dune install \
--destdir=%{buildroot} \
--prefix=%{_prefix} \
--etcdir=%{_sysconfdir} \
--mandir=%{_mandir} \
--docdir=%{_docdir} \
--libdir=%{_libdir}/ocaml
rm -r %{buildroot}%{_prefix}/doc
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
@ -81,8 +87,19 @@ rm -r %{buildroot}%{_prefix}/doc
%files apidocs
%defattr(-,root,root)
%doc examples/
%dir %{_datadir}/doc/pcre
%{_datadir}/doc/pcre/*
%changelog
* Sun Jul 09 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 7.5.0-2mamba
- fix for missing version in dune-project
* Thu Jul 06 2023 Automatic Build System <autodist@mambasoft.it> 7.5.0-1mamba
- automatic version update by autodist
* Thu Jul 06 2023 Sdk Build System <sdk@mambasoft.it> 7.4.6-2mamba
- rebuilt with ocaml 4.14.1
* Tue May 04 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 7.4.6-1mamba
- update to 7.4.6