ocaml-mm/ocaml-mm.spec

99 lines
2.7 KiB
RPMSpec
Raw Normal View History

%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 <davide.madrisan@gmail.com>
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 <davide.madrisan@gmail.com> 0.2.1-1mamba
- package created by autospec