update to 0.2.3 [release 0.2.3-1mamba;Fri Feb 19 2021]

This commit is contained in:
Silvan Calarco 2024-01-06 07:49:27 +01:00
parent 049cfcb722
commit ec1dc7b4d7

View File

@ -1,23 +1,23 @@
%define ocamlpck ao
Name: ocaml-ao
Version: 0.2.0
Release: 2mamba
Version: 0.2.3
Release: 1mamba
Summary: OCaml bindings to the ao library
Group: Development/Bindings
Vendor: openmamba
Distribution: openmamba
Packager: Davide Madrisan <davide.madrisan@gmail.com>
URL: ttp://savonet.sourceforge.net/
Source: http://sourceforge.net/projects/savonet/files/ocaml-ao/%{version}/ocaml-ao-%{version}.tar.gz
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://savonet.sourceforge.net/
Source: https://github.com/savonet/ocaml-ao.git/v%{version}/ocaml-ao-%{version}.tar.bz2
License: LGPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libao-devel
BuildRequires: ocaml
## AUTOBUILDREQ-END
BuildRequires: ocaml
BuildRequires: ocaml-findlib
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
OCaml bindings to the alsa library.
@ -30,27 +30,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 "/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}"
@ -62,6 +54,13 @@ make install
%{_libdir}/ocaml/%{ocamlpck}/*.cma
%{_libdir}/ocaml/%{ocamlpck}/*.cmi
%{_libdir}/ocaml/stublibs/*.so*
%dir %{_libdir}/ocaml/ao
%{_libdir}/ocaml/ao/ao.cmt
%{_libdir}/ocaml/ao/ao.cmti
%{_libdir}/ocaml/ao/ao.cmxs
%{_libdir}/ocaml/ao/ao.ml
%{_libdir}/ocaml/ao/dune-package
%{_libdir}/ocaml/ao/opam
%doc COPYING
%files devel
@ -70,11 +69,12 @@ make install
%{_libdir}/ocaml/%{ocamlpck}/*.cmxa
%{_libdir}/ocaml/%{ocamlpck}/*.cmx
%{_libdir}/ocaml/%{ocamlpck}/*.mli
%doc CHANGES README
%doc doc/html/
%doc examples/
%doc CHANGES README.md
%changelog
* Fri Feb 19 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 0.2.3-1mamba
- update to 0.2.3
* Sun Jun 23 2013 Davide Madrisan <davide.madrisan@gmail.com> 0.2.0-2mamba
- install dll libs in stublibs because this directory is known by ocaml ans so we do not need to modify ld.conf