update to 0.3.8 [release 0.3.8-1mamba;Sun Feb 06 2022]

This commit is contained in:
Silvan Calarco 2024-01-06 08:03:25 +01:00
parent 575316115f
commit 5a4dc6df55

View File

@ -1,21 +1,26 @@
%define ocamlpck taglib
Name: ocaml-taglib
Version: 0.3.1
Release: 2mamba
Version: 0.3.8
Release: 1mamba
Summary: OCaml bindings to taglib
Group: Development/Bindings
Vendor: openmamba
Distribution: openmamba
Packager: openmamba WebBuild System <webbuild@openmamba.org>
URL: http://savonet.sourceforge.net/
Source: http://sourceforge.net/projects/savonet/files/ocaml-taglib/%{version}/ocaml-taglib-%{version}.tar.gz
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://github.com/savonet/ocaml-taglib
Source: https://github.com/savonet/ocaml-taglib.git/v%{version}/ocaml-taglib-%{version}.tar.bz2
License: LGPL
## AUTOBUILDREQ-BEGIN
## note: run 'autospec -u -a6 ocaml-taglib' to get the list of build requirements.
BuildRequires: glibc-devel
BuildRequires: libgcc
BuildRequires: libstdc++6-devel
BuildRequires: libtag-devel
BuildRequires: libz-devel
BuildRequires: ocaml
## AUTOBUILDREQ-END
BuildRequires: dune
BuildRequires: libtag-devel >= 1.9.1
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
This package contains an O'Caml interface for TagLib Audio Meta-Data Library, otherwise known as taglib.
@ -33,23 +38,13 @@ This package contains libraries and signature files for developing applications
%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}"
@ -57,22 +52,22 @@ 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}/*
%{_libdir}/ocaml/stublibs/*.so*
%doc COPYING
%files devel
%defattr(-,root,root)
%{_libdir}/ocaml/%{ocamlpck}/*.a
%{_libdir}/ocaml/%{ocamlpck}/*.cmxa
%{_libdir}/ocaml/%{ocamlpck}/*.cmx
%{_libdir}/ocaml/%{ocamlpck}/*.mli
%doc CHANGES README
%doc doc/html/
%exclude %{_libdir}/ocaml/%{ocamlpck}/*.a
%exclude %{_libdir}/ocaml/%{ocamlpck}/*.cmxa
%exclude %{_libdir}/ocaml/%{ocamlpck}/*.cmx
%exclude %{_libdir}/ocaml/%{ocamlpck}/*.mli
%doc CHANGES README.md
%changelog
* Sun Feb 06 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 0.3.8-1mamba
- update to 0.3.8
* Tue Dec 29 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 0.3.1-2mamba
- mass rebuild with libtag 1.9.1