diff --git a/ocaml-faad.spec b/ocaml-faad.spec index 272998c..a8540cd 100644 --- a/ocaml-faad.spec +++ b/ocaml-faad.spec @@ -1,27 +1,25 @@ %define ocamlpck faad Name: ocaml-faad -Version: 0.4.0 +Version: 0.5.0 Release: 1mamba Summary: OCaml bindings for the libfaad AAC decoder library Group: Development/Bindings Vendor: openmamba Distribution: openmamba -Packager: Davide Madrisan -URL: https://savonet.sourceforge.net/ -Source: https://github.com/savonet/ocaml-faad.git/%{version}/ocaml-faad-%{version}.tar.bz2 -#Source: http://sourceforge.net/projects/savonet/files/ocaml-faad/%{version}/ocaml-faad-%{version}.tar.gz +Packager: Silvan Calarco +URL: https://github.com/savonet/ocaml-faad +Source: https://github.com/savonet/ocaml-faad.git/v%{version}/ocaml-faad-%{version}.tar.bz2 License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel -BuildRequires: ldconfig BuildRequires: libfaad2-devel -BuildRequires: ocaml-runtime +BuildRequires: ocaml ## AUTOBUILDREQ-END +BuildRequires: dune BuildRequires: ocaml BuildRequires: ocaml-findlib BuildRequires: camlidl -BuildRoot: %{_tmppath}/%{name}-%{version}-root %description 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 %setup -q -./bootstrap %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}" @@ -65,9 +52,11 @@ 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}/* +%exclude %{_libdir}/ocaml/%{ocamlpck}/*.a +%exclude %{_libdir}/ocaml/%{ocamlpck}/*.cmxa +%exclude %{_libdir}/ocaml/%{ocamlpck}/*.cmx +%exclude %{_libdir}/ocaml/%{ocamlpck}/*.mli %{_libdir}/ocaml/stublibs/*.so* %doc COPYING @@ -77,10 +66,12 @@ make install %{_libdir}/ocaml/%{ocamlpck}/*.cmxa %{_libdir}/ocaml/%{ocamlpck}/*.cmx %{_libdir}/ocaml/%{ocamlpck}/*.mli -%doc CHANGES README -%doc doc/html/ +%doc CHANGES README.md %changelog +* Sat Jan 29 2022 Silvan Calarco 0.5.0-1mamba +- update to 0.5.0 + * Fri Feb 19 2021 Silvan Calarco 0.4.0-1mamba - update to 0.5.0