Compare commits
2 Commits
7.0.4-1mam
...
7.5.0-2mam
| Author | SHA1 | Date | |
|---|---|---|---|
| bd6a91d982 | |||
| 70dd20c55a |
8
ocaml-pcre-7.5.0-dune-missing-version.patch
Normal file
8
ocaml-pcre-7.5.0-dune-missing-version.patch
Normal 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)
|
||||
@@ -1,24 +1,25 @@
|
||||
%define ocamlpck pcre
|
||||
|
||||
Name: ocaml-pcre
|
||||
Version: 7.0.4
|
||||
Release: 1mamba
|
||||
Version: 7.5.0
|
||||
Release: 2mamba
|
||||
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
|
||||
Patch0: ocaml-pcre-7.5.0-dune-missing-version.patch
|
||||
License: BSD
|
||||
## AUTOBUILDREQ-BEGIN
|
||||
BuildRequires: glibc-devel
|
||||
BuildRequires: libpcre-devel
|
||||
## AUTOBUILDREQ-END
|
||||
BuildRequires: ocaml
|
||||
BuildRequires: ocaml-runtime
|
||||
## AUTOBUILDREQ-END
|
||||
BuildRequires: ocaml >= 4.14.1
|
||||
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).
|
||||
@@ -42,54 +43,66 @@ This package includes the %{name} API documentation.
|
||||
|
||||
%prep
|
||||
%setup -q -n pcre-ocaml-%{version}
|
||||
%patch0 -p1
|
||||
sed -i "s|%%VERSION%|%{version}|" dune-project
|
||||
|
||||
%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
|
||||
|
||||
install -d $OCAMLFIND_DESTDIR/%{ocamlpck}
|
||||
install -d $OCAMLFIND_DESTDIR/stublibs
|
||||
|
||||
make install
|
||||
|
||||
rm -fr %{buildroot}%{_datadir}/doc
|
||||
dune install \
|
||||
--destdir=%{buildroot} \
|
||||
--prefix=%{_prefix} \
|
||||
--etcdir=%{_sysconfdir} \
|
||||
--mandir=%{_mandir} \
|
||||
--docdir=%{_docdir} \
|
||||
--libdir=%{_libdir}/ocaml
|
||||
|
||||
%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/
|
||||
%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
|
||||
|
||||
* Sat Dec 21 2013 Automatic Build System <autodist@mambasoft.it> 7.0.4-1mamba
|
||||
- automatic update by autodist
|
||||
|
||||
|
||||
Reference in New Issue
Block a user