From b24faa7fcb24fb7e785585dd1b72a3730ecec171 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 07:49:15 +0100 Subject: [PATCH] update to 0.3.0 [release 0.3.0-1mamba;Fri Feb 19 2021] --- ocaml-alsa.spec | 47 +++++++++++++++++++++++------------------------ 1 file changed, 23 insertions(+), 24 deletions(-) diff --git a/ocaml-alsa.spec b/ocaml-alsa.spec index 79d8906..f0bc15f 100644 --- a/ocaml-alsa.spec +++ b/ocaml-alsa.spec @@ -1,26 +1,25 @@ %define ocamlpck alsa Name: ocaml-alsa -Version: 0.2.1 -Release: 2mamba +Version: 0.3.0 +Release: 1mamba Summary: OCaml bindings to the alsa library Group: Development/Bindings Vendor: openmamba Distribution: openmamba -Packager: Davide Madrisan -URL: http://savonet.sourceforge.net/ -Source: http://sourceforge.net/projects/savonet/files/ocaml-alsa/%{version}/ocaml-alsa-%{version}.tar.gz +Packager: Silvan Calarco +URL: https://savonet.sourceforge.net/ +Source: https://github.com/savonet/ocaml-alsa.git/%{version}/ocaml-alsa-%{version}.tar.bz2 License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libalsa-devel +BuildRequires: ocaml ## AUTOBUILDREQ-END +BuildRequires: dune BuildRequires: ocaml BuildRequires: ocaml-findlib BuildRequires: pkg-config -BuildRoot: %{_tmppath}/%{name}-%{version}-root - -# FIXME: checking for caml/threads.h... no %description OCaml bindings to the alsa library. @@ -33,27 +32,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 -make doc +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 %{_prefix} --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}" @@ -65,6 +56,13 @@ make install %{_libdir}/ocaml/%{ocamlpck}/*.cma %{_libdir}/ocaml/%{ocamlpck}/*.cmi %{_libdir}/ocaml/stublibs/*.so* +%dir %{_libdir}/ocaml/alsa +%{_libdir}/ocaml/alsa/alsa.cmt +%{_libdir}/ocaml/alsa/alsa.cmti +%{_libdir}/ocaml/alsa/alsa.cmxs +%{_libdir}/ocaml/alsa/alsa.ml +%{_libdir}/ocaml/alsa/dune-package +%{_libdir}/ocaml/alsa/opam %doc COPYING %files devel @@ -73,11 +71,12 @@ make install %{_libdir}/ocaml/%{ocamlpck}/*.cmxa %{_libdir}/ocaml/%{ocamlpck}/*.cmx %{_libdir}/ocaml/%{ocamlpck}/*.mli -%doc CHANGES README -%doc doc/html/ -%doc examples/ +%doc README.md CHANGES.md %changelog +* Fri Feb 19 2021 Silvan Calarco 0.3.0-1mamba +- update to 0.3.0 + * Sun Jun 23 2013 Davide Madrisan 0.2.1-2mamba - install dll libs in stublibs because this directory is known by ocaml ans so we do not need to modify ld.conf