update to 0.5.0 [release 0.5.0-1mamba;Sat Jan 29 2022]

This commit is contained in:
Silvan Calarco 2024-01-06 07:52:49 +01:00
parent f0814098b7
commit 8769be5dba

View File

@ -1,27 +1,25 @@
%define ocamlpck faad %define ocamlpck faad
Name: ocaml-faad Name: ocaml-faad
Version: 0.4.0 Version: 0.5.0
Release: 1mamba Release: 1mamba
Summary: OCaml bindings for the libfaad AAC decoder library Summary: OCaml bindings for the libfaad AAC decoder 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: https://savonet.sourceforge.net/ URL: https://github.com/savonet/ocaml-faad
Source: https://github.com/savonet/ocaml-faad.git/%{version}/ocaml-faad-%{version}.tar.bz2 Source: https://github.com/savonet/ocaml-faad.git/v%{version}/ocaml-faad-%{version}.tar.bz2
#Source: http://sourceforge.net/projects/savonet/files/ocaml-faad/%{version}/ocaml-faad-%{version}.tar.gz
License: GPL License: GPL
## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel BuildRequires: glibc-devel
BuildRequires: ldconfig
BuildRequires: libfaad2-devel BuildRequires: libfaad2-devel
BuildRequires: ocaml-runtime BuildRequires: ocaml
## AUTOBUILDREQ-END ## AUTOBUILDREQ-END
BuildRequires: dune
BuildRequires: ocaml BuildRequires: ocaml
BuildRequires: ocaml-findlib BuildRequires: ocaml-findlib
BuildRequires: camlidl BuildRequires: camlidl
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description %description
This package contains an O'Caml interface for the AAC audio decoder, otherwise known as libfaad. This package contains an O'Caml interface for the AAC audio decoder, otherwise known as libfaad.
@ -38,26 +36,15 @@ This package contains libraries and signature files for developing applications
%prep %prep
%setup -q %setup -q
./bootstrap
%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 "/usr" --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,9 +52,11 @@ make install
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%dir %{_libdir}/ocaml/%{ocamlpck} %dir %{_libdir}/ocaml/%{ocamlpck}
%{_libdir}/ocaml/%{ocamlpck}/META %{_libdir}/ocaml/%{ocamlpck}/*
%{_libdir}/ocaml/%{ocamlpck}/*.cma %exclude %{_libdir}/ocaml/%{ocamlpck}/*.a
%{_libdir}/ocaml/%{ocamlpck}/*.cmi %exclude %{_libdir}/ocaml/%{ocamlpck}/*.cmxa
%exclude %{_libdir}/ocaml/%{ocamlpck}/*.cmx
%exclude %{_libdir}/ocaml/%{ocamlpck}/*.mli
%{_libdir}/ocaml/stublibs/*.so* %{_libdir}/ocaml/stublibs/*.so*
%doc COPYING %doc COPYING
@ -77,10 +66,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 CHANGES README.md
%doc doc/html/
%changelog %changelog
* Sat Jan 29 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 0.5.0-1mamba
- update to 0.5.0
* Fri Feb 19 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 0.4.0-1mamba * Fri Feb 19 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 0.4.0-1mamba
- update to 0.5.0 - update to 0.5.0