Sophie

Sophie

distrib > Mageia > 2 > i586 > media > core-release-src > by-pkgid > 3d222835169d2f23bc0f63cdff944bc1 > files > 3

ocaml-gstreamer-0.1.0-3.mga2.src.rpm

Name:           ocaml-gstreamer
Summary:        OCaml bindings for gstreamer
Version:        0.1.0
Release:        %mkrel 3
Source0:        http://downloads.sourceforge.net/project/savonet/%{name}/%{version}/%{name}-%{version}.tar.gz
Patch0:         configure-requires-bigarray.patch
License:        LGPLv2
Group:          Development/Other
URL:            http://savonet.sourceforge.net/
BuildRequires:  ocaml
BuildRequires:  ocaml-findlib
BuildRequires:  ocaml-camlidl-devel
BuildRequires:  libgstreamer-devel
BuildRequires:  libgstreamer-plugins-base-devel

%description
This package provides an interface to the gstreamer library
for OCaml programmers.

%package        devel
Summary:        Development files for %{name}
Group:          Development/Other
Requires:       %{name} = %{version}-%{release}
Requires:       libgstreamer-devel
Requires:       ocaml-camlidl-devel
Requires:       libgstreamer-devel
Requires:       libgstreamer-plugins-base-devel

%description    devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.

%prep
%setup -q
%patch0 -p0

%build
./configure --libdir=%{_libdir}
make OCAMLMKLIB_FLAGS=`ocamlc -where`/libcamlidl.a

%install
rm -rf %{buildroot}
export DESTDIR=%{buildroot}
export OCAMLFIND_DESTDIR=%{buildroot}/%{_libdir}/ocaml
export DLLDIR=$OCAMLFIND_DESTDIR/stublibs
mkdir -p $OCAMLFIND_DESTDIR/stublibs
mkdir -p $OCAMLFIND_DESTDIR/gstreamer
make install

%files
%doc COPYING CHANGES README
%dir %{_libdir}/ocaml/gstreamer
%{_libdir}/ocaml/gstreamer/META
%{_libdir}/ocaml/gstreamer/*.cma
%{_libdir}/ocaml/gstreamer/*.cmi
%{_libdir}/ocaml/stublibs/*.so*

%files devel
%{_libdir}/ocaml/gstreamer/*.a
%{_libdir}/ocaml/gstreamer/*.cmxa
%{_libdir}/ocaml/gstreamer/*.cmx
%{_libdir}/ocaml/gstreamer/*.mli


%changelog

* Tue Apr 03 2012 blue_prawn <blue_prawn> 0.1.0-3.mga2
+ Revision: 228213
- provide libcamlidl.a for the "undefined symbol: camlidl_free" problem with dllgstreamer_stubs.so
- patch the configure file for the bigarray dependency in the META file

* Mon Nov 21 2011 malo <malo> 0.1.0-2.mga2
+ Revision: 170184
- missing Requires to ocaml-camlidl-devel

* Sun Nov 20 2011 malo <malo> 0.1.0-1.mga2
+ Revision: 170035
- imported package ocaml-gstreamer