From 1e703e82e3c5e80a7d56d313151a4d595ebdbb09 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 07:53:02 +0100 Subject: [PATCH] update to 1.1.1.20220202git.a514383 [release 1.1.1.20220202git.a514383-1mamba;Sun Feb 06 2022] --- ocaml-ffmpeg.spec | 55 ++++++++++++++++++++++++----------------------- 1 file changed, 28 insertions(+), 27 deletions(-) diff --git a/ocaml-ffmpeg.spec b/ocaml-ffmpeg.spec index c2df878..a1b4416 100644 --- a/ocaml-ffmpeg.spec +++ b/ocaml-ffmpeg.spec @@ -1,7 +1,8 @@ %define ocamlpck ffmpeg +%define gittag %(eho %version | cut -d. -f5) Name: ocaml-ffmpeg -Version: 0.4.3 +Version: 1.1.1.20220202git.a514383 Release: 1mamba Summary: OCaml bindings to the FFmpeg library Group: Development/Bindings @@ -9,19 +10,18 @@ Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: https://github.com/savonet/ocaml-ffmpeg -Source: https://github.com/savonet/ocaml-ffmpeg/releases/download/v%{version}/ocaml-ffmpeg-%{version}.tar.gz -#Source: http://sourceforge.net/projects/savonet/files/ocaml-ffmpeg/%{version}/ocaml-ffmpeg-%{version}.tar.gz +Source: https://github.com/savonet/ocaml-ffmpeg.git/main@%{gittag}/ocaml-ffmpeg-%{version}.tar.bz2 License: LGPL ## AUTOBUILDREQ-BEGIN -BuildRequires: libpulseaudio-devel +BuildRequires: glibc-devel BuildRequires: libavcodec-ffmpeg-devel BuildRequires: libavdevice-ffmpeg-devel BuildRequires: libavfilter-ffmpeg-devel BuildRequires: libavformat-ffmpeg-devel BuildRequires: libavutil-ffmpeg-devel -BuildRequires: libpostproc-ffmpeg-devel -BuildRequires: libswscale-ffmpeg-devel BuildRequires: libswresample-ffmpeg-devel +BuildRequires: libswscale-ffmpeg-devel +BuildRequires: ocaml ## AUTOBUILDREQ-END %description @@ -39,26 +39,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}" @@ -66,10 +55,15 @@ make install %files %defattr(-,root,root) %dir %{_libdir}/ocaml/%{ocamlpck} -%{_libdir}/ocaml/%{ocamlpck}/META -%{_libdir}/ocaml/%{ocamlpck}/*.cma -%{_libdir}/ocaml/%{ocamlpck}/*.cmi -%{_libdir}/ocaml/stublibs/*.so* +%{_libdir}/ocaml/%{ocamlpck}/* +%exclude %{_libdir}/ocaml/%{ocamlpck}/*.cmxa +%exclude %{_libdir}/ocaml/%{ocamlpck}/*.cmx +%dir %{_libdir}/ocaml/ffmpeg-* +%{_libdir}/ocaml/ffmpeg-*/* +%exclude %{_libdir}/ocaml/ffmpeg-*/*.cmi +%exclude %{_libdir}/ocaml/ffmpeg-*/*.cmx +%exclude %{_libdir}/ocaml/ffmpeg-*/*.cmxa +%exclude %{_libdir}/ocaml/stublibs/*.so* %doc COPYING %files devel @@ -77,11 +71,18 @@ make install %{_libdir}/ocaml/%{ocamlpck}/*.a %{_libdir}/ocaml/%{ocamlpck}/*.cmxa %{_libdir}/ocaml/%{ocamlpck}/*.cmx -%{_libdir}/ocaml/%{ocamlpck}/*.mli -%doc CHANGES -#%doc doc/html/ +%{_libdir}/ocaml/ffmpeg-*/*.cmi +%{_libdir}/ocaml/ffmpeg-*/*.cmx +%{_libdir}/ocaml/ffmpeg-*/*.cmxa +%doc CHANGES README.md %changelog +* Sun Feb 06 2022 Silvan Calarco 1.1.1.20220202git.a514383-1mamba +- update to 1.1.1.20220202git.a514383 + +* Sat Jan 29 2022 Silvan Calarco 1.1.1-1mamba +- update to 1.1.1 + * Fri Feb 26 2021 Silvan Calarco 0.4.3-1mamba - update to 0.4.3