ocaml-ffmpeg/ocaml-ffmpeg.spec

103 lines
3.1 KiB
RPMSpec
Raw Permalink Normal View History

%define ocamlpck ffmpeg
%define gittag %(eho %version | cut -d. -f5)
Name: ocaml-ffmpeg
Version: 1.1.5
Release: 1mamba
Summary: OCaml bindings to the FFmpeg library
Group: Development/Bindings
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://github.com/savonet/ocaml-ffmpeg
Source: https://github.com/savonet/ocaml-ffmpeg.git/main@%{gittag}/ocaml-ffmpeg-%{version}.tar.bz2
License: LGPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libavcodec-ffmpeg-devel
BuildRequires: libavdevice-ffmpeg-devel
BuildRequires: libavfilter-ffmpeg-devel
BuildRequires: libavformat-ffmpeg-devel
BuildRequires: libavutil-ffmpeg-devel
BuildRequires: libswresample-ffmpeg-devel
BuildRequires: libswscale-ffmpeg-devel
BuildRequires: ocaml
## AUTOBUILDREQ-END
%description
OCaml bindings to the FFmpeg library.
%package devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description devel
This package contains libraries and signature files for developing applications that use %{name}.
%debug_package
%prep
%setup -q
%build
dune build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
DESTDIR="%{buildroot}" dune install --prefix "/usr" --libdir "%{_lib}/ocaml"
rm -rf %{buildroot}/usr/doc
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%dir %{_libdir}/ocaml/%{ocamlpck}
%{_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
%defattr(-,root,root)
%{_libdir}/ocaml/%{ocamlpck}/*.a
%{_libdir}/ocaml/%{ocamlpck}/*.cmxa
%{_libdir}/ocaml/%{ocamlpck}/*.cmx
%{_libdir}/ocaml/ffmpeg-*/*.cmi
%{_libdir}/ocaml/ffmpeg-*/*.cmx
%{_libdir}/ocaml/ffmpeg-*/*.cmxa
%doc CHANGES README.md
%changelog
* Mon Aug 29 2022 Automatic Build System <autodist@mambasoft.it> 1.1.5-1mamba
- automatic version update by autodist
* Thu Jun 23 2022 Automatic Build System <autodist@mambasoft.it> 1.1.4-1mamba
- automatic version update by autodist
* Sat Apr 23 2022 Automatic Build System <autodist@mambasoft.it> 1.1.3-1mamba
- automatic version update by autodist
* Tue Mar 15 2022 Automatic Build System <autodist@mambasoft.it> 1.1.2-1mamba
- automatic version update by autodist
* Sun Feb 06 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 1.1.1.20220202git.a514383-1mamba
- update to 1.1.1.20220202git.a514383
* Sat Jan 29 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 1.1.1-1mamba
- update to 1.1.1
* Fri Feb 26 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 0.4.3-1mamba
- update to 0.4.3
* Sat Jun 29 2013 openmamba WebBuild System <webbuild@openmamba.org> 0.1.0-1mamba
- package created by davide using the webbuild interface