From 278718c900b3010234718e8a1df1ace939a6d93f Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 07:52:29 +0100 Subject: [PATCH] update to 0.9.0 [release 0.9.0-1mamba;Fri Feb 19 2021] --- ocaml-duppy.spec | 47 +++++++++++++++++++++++------------------------ 1 file changed, 23 insertions(+), 24 deletions(-) diff --git a/ocaml-duppy.spec b/ocaml-duppy.spec index 43240e1..0e84303 100644 --- a/ocaml-duppy.spec +++ b/ocaml-duppy.spec @@ -1,25 +1,27 @@ %define ocamlpck duppy Name: ocaml-duppy -Version: 0.5.1 -Release: 3mamba +Version: 0.9.0 +Release: 1mamba Summary: Ocaml-duppy is an advanced scheduler for Ocaml programmers Group: Development/Libraries Vendor: openmamba Distribution: openmamba -Packager: Davide Madrisan -URL: http://www.dolebrai.net/duppy.html -Source: http://downloads.sourceforge.net/project/savonet/ocaml-duppy/%{version}/ocaml-duppy-%{version}.tar.gz +Packager: Silvan Calarco +URL: https://www.dolebrai.net/duppy.html +Source: https://github.com/savonet/ocaml-duppy.git/v%{version}/ocaml-duppy-%{version}.tar.bz2 License: LGPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel +BuildRequires: ocaml +BuildRequires: ocaml-pcre-devel ## AUTOBUILDREQ-END +BuildRequires: dune BuildRequires: gcc BuildRequires: ocaml BuildRequires: ocaml-findlib BuildRequires: ocaml-pcre-devel Requires: ocaml-pcre -BuildRoot: %{_tmppath}/%{name}-%{version}-root %description Ocaml-duppy is an advanced scheduler for Ocaml programmers. @@ -32,26 +34,19 @@ Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} %description devel This package contains libraries and signature files for developing applications that use %{name}. +%debug_package + %prep %setup -q %build -./configure \ - --prefix=%{_prefix} \ - -disable-ldconf - -%make all +dune build %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" -export DESTDIR=%{buildroot} -export OCAMLFIND_DESTDIR=%{buildroot}$(ocamlfind printconf destdir) -export DLLDIR=$OCAMLFIND_DESTDIR/stublibs +DESTDIR="%{buildroot}" dune install --prefix "/usr" --libdir "%{_lib}/ocaml" -install -d $OCAMLFIND_DESTDIR/%{ocamlpck} -install -d $OCAMLFIND_DESTDIR/stublibs - -make install +rm -rf %{buildroot}/usr/doc %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" @@ -59,11 +54,12 @@ make install %files %defattr(-,root,root) %dir %{_libdir}/ocaml/%{ocamlpck} -%{_libdir}/ocaml/%{ocamlpck}/META -%{_libdir}/ocaml/%{ocamlpck}/*.cma -%{_libdir}/ocaml/%{ocamlpck}/*.cmi -%{_libdir}/ocaml/%{ocamlpck}/*.cmo -%{_libdir}/ocaml/stublibs/*.so* +%{_libdir}/ocaml/%{ocamlpck}/* +%exclude %{_libdir}/ocaml/%{ocamlpck}/*.a +%exclude %{_libdir}/ocaml/%{ocamlpck}/*.cmxa +%exclude %{_libdir}/ocaml/%{ocamlpck}/*.cmx +%exclude %{_libdir}/ocaml/%{ocamlpck}/*.mli +%{_libdir}/ocaml/stublibs/dllduppy_stubs.so %doc COPYING %files devel @@ -72,10 +68,13 @@ make install %{_libdir}/ocaml/%{ocamlpck}/*.cmxa %{_libdir}/ocaml/%{ocamlpck}/*.cmx %{_libdir}/ocaml/%{ocamlpck}/*.mli -%doc CHANGES README +%doc CHANGES README.md %doc examples/ %changelog +* Fri Feb 19 2021 Silvan Calarco 0.9.0-1mamba +- update to 0.9.0 + * Sun Jun 23 2013 Davide Madrisan 0.5.1-3mamba - install dll libs in stublibs because this directory is known by ocaml ans so we do not need to modify ld.conf