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