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

This commit is contained in:
Silvan Calarco 2024-01-06 07:49:15 +01:00
parent 0e10a58d05
commit b24faa7fcb

View File

@ -1,26 +1,25 @@
%define ocamlpck alsa %define ocamlpck alsa
Name: ocaml-alsa Name: ocaml-alsa
Version: 0.2.1 Version: 0.3.0
Release: 2mamba Release: 1mamba
Summary: OCaml bindings to the alsa library Summary: OCaml bindings to the alsa library
Group: Development/Bindings Group: Development/Bindings
Vendor: openmamba Vendor: openmamba
Distribution: openmamba Distribution: openmamba
Packager: Davide Madrisan <davide.madrisan@gmail.com> Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://savonet.sourceforge.net/ URL: https://savonet.sourceforge.net/
Source: http://sourceforge.net/projects/savonet/files/ocaml-alsa/%{version}/ocaml-alsa-%{version}.tar.gz Source: https://github.com/savonet/ocaml-alsa.git/%{version}/ocaml-alsa-%{version}.tar.bz2
License: GPL License: GPL
## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel BuildRequires: glibc-devel
BuildRequires: libalsa-devel BuildRequires: libalsa-devel
BuildRequires: ocaml
## AUTOBUILDREQ-END ## AUTOBUILDREQ-END
BuildRequires: dune
BuildRequires: ocaml BuildRequires: ocaml
BuildRequires: ocaml-findlib BuildRequires: ocaml-findlib
BuildRequires: pkg-config BuildRequires: pkg-config
BuildRoot: %{_tmppath}/%{name}-%{version}-root
# FIXME: checking for caml/threads.h... no
%description %description
OCaml bindings to the alsa library. OCaml bindings to the alsa library.
@ -33,27 +32,19 @@ Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description devel %description devel
This package contains libraries and signature files for developing applications that use %{name}. This package contains libraries and signature files for developing applications that use %{name}.
%debug_package
%prep %prep
%setup -q %setup -q
%build %build
./configure \ dune build
--prefix=%{_prefix} \
--disable-ldconf
make
make doc
%install %install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
export DESTDIR=%{buildroot} DESTDIR=%{buildroot} dune install --prefix %{_prefix} --libdir %{_lib}/ocaml
export OCAMLFIND_DESTDIR=%{buildroot}$(ocamlfind printconf destdir)
export DLLDIR=$OCAMLFIND_DESTDIR/stublibs
install -d $OCAMLFIND_DESTDIR/%{ocamlpck} rm -rf %{buildroot}/usr/doc
install -d $OCAMLFIND_DESTDIR/stublibs
make install
%clean %clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
@ -65,6 +56,13 @@ make install
%{_libdir}/ocaml/%{ocamlpck}/*.cma %{_libdir}/ocaml/%{ocamlpck}/*.cma
%{_libdir}/ocaml/%{ocamlpck}/*.cmi %{_libdir}/ocaml/%{ocamlpck}/*.cmi
%{_libdir}/ocaml/stublibs/*.so* %{_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 %doc COPYING
%files devel %files devel
@ -73,11 +71,12 @@ make install
%{_libdir}/ocaml/%{ocamlpck}/*.cmxa %{_libdir}/ocaml/%{ocamlpck}/*.cmxa
%{_libdir}/ocaml/%{ocamlpck}/*.cmx %{_libdir}/ocaml/%{ocamlpck}/*.cmx
%{_libdir}/ocaml/%{ocamlpck}/*.mli %{_libdir}/ocaml/%{ocamlpck}/*.mli
%doc CHANGES README %doc README.md CHANGES.md
%doc doc/html/
%doc examples/
%changelog %changelog
* Fri Feb 19 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 0.3.0-1mamba
- update to 0.3.0
* Sun Jun 23 2013 Davide Madrisan <davide.madrisan@gmail.com> 0.2.1-2mamba * Sun Jun 23 2013 Davide Madrisan <davide.madrisan@gmail.com> 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 - install dll libs in stublibs because this directory is known by ocaml ans so we do not need to modify ld.conf