From f9a56b8c11e65942d09bb0c78de8181ec854e6ae Mon Sep 17 00:00:00 2001 From: Davide Madrisan Date: Sat, 6 Jan 2024 07:56:13 +0100 Subject: [PATCH] package created by autospec [release 0.2.1-1mamba;Sun Jun 23 2013] --- README.md | 3 ++ ocaml-mm.spec | 98 +++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 101 insertions(+) create mode 100644 ocaml-mm.spec diff --git a/README.md b/README.md index 6bae5c8..d51f7d6 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,5 @@ # ocaml-mm +ocaml-mm is a library dedicated to performing operations on multimedia contents. +It is designed as a pure ocaml library (ie no dependencies are required). + diff --git a/ocaml-mm.spec b/ocaml-mm.spec new file mode 100644 index 0000000..446cbb2 --- /dev/null +++ b/ocaml-mm.spec @@ -0,0 +1,98 @@ +%define ocamlpck mm + +Name: ocaml-mm +Version: 0.2.1 +Release: 1mamba +Summary: OCaml multimedia library +Group: Development/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Davide Madrisan +URL: https://github.com/savonet/ocaml-mm +Source: http://sourceforge.net/projects/savonet/files/ocaml-mm/%{version}/ocaml-mm-%{version}.tar.gz +License: LGPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +## AUTOBUILDREQ-END +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: libv4l-devel +BuildRequires: ocaml-alsa-devel +BuildRequires: ocaml-ao-devel +BuildRequires: ocaml-gstreamer-devel +BuildRequires: ocaml-mad-devel +BuildRequires: ocaml-ogg-devel +BuildRequires: ocaml-sdl-devel +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +# FIXME: build requirements +# checking for OCaml library pulseaudio... not found +# checking for linux/videodev.h... no + +%description +ocaml-mm is a library dedicated to performing operations on multimedia contents. +It is designed as a pure ocaml library (ie no dependencies are required). + +%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}. + +%prep +%setup -q + +%build +./configure \ + --prefix=%{_prefix} \ + --disable-ldconf + +# do not use video4linux (linux/videodev.h is not provided by openmamba) +# --disable-v4l + +%make +%make doc + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +export DESTDIR=%{buildroot} +export OCAMLFIND_DESTDIR=%{buildroot}$(ocamlfind printconf destdir) +export OCAMLFIND_LDCONF=ignore +export DLLDIR=$OCAMLFIND_DESTDIR/stublibs + +install -d $OCAMLFIND_DESTDIR/%{ocamlpck} +make install + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%dir %{_libdir}/ocaml/%{ocamlpck} +%{_libdir}/ocaml/%{ocamlpck}/META +%{_libdir}/ocaml/%{ocamlpck}/*.cma +%{_libdir}/ocaml/%{ocamlpck}/*.cmi +%{_libdir}/ocaml/%{ocamlpck}/*.cmo +%{_libdir}/ocaml/%{ocamlpck}/*.so* + +%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/ +%doc examples/ + +%changelog +* Sun Jun 23 2013 Davide Madrisan 0.2.1-1mamba +- package created by autospec