File gst-omx.spec of Package gst-omx

#
# spec file for package gst-omx
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2012 Guillaume GARDET <guillaume@opensuse.org>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           gst-omx
Version:        1.7.99
Release:        0
Summary:        OpenMAX IL GStreamer wrapper
License:        LGPL-2.1+
Group:          System/Libraries
Url:            http://cgit.freedesktop.org/gstreamer/gst-omx/
Source0:        gst-omx.tar.bz2
Patch0:         gst-omx-config-files.patch
Source1:        gstomx.conf
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  gstreamer-devel gstreamer-plugins-base-devel  gstreamer-plugins-bad-devel
BuildRequires:  libomxil-bellagio glu-devel libSM-devel  libICE-devel
BuildRequires:  pkg-config autoconf libtool automake Mesa-devel libdrm-devel
BuildRequires:  wayland-devel libwayland-egl-devel
BuildRequires:  pkgconfig(wayland-client)
BuildRequires:  pkgconfig(wayland-server)

%description
GStreamer plugin for OMX (OpenMAX).

%prep
%setup -q -n gst-omx
#%patch0 -p1

%build
autoreconf -fi
%configure --with-omx-target=bellagio
make 

%install
%make_install
rm -f %{buildroot}%{_sysconfdir}/xdg/gstomx.conf
cp   %_sourcedir/gstomx.conf %{buildroot}%{_sysconfdir}/xdg/
sed -i -e 's|/usr/lib64/|%_libdir/|g' %{buildroot}%{_sysconfdir}/xdg/gstomx.conf

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root)
%{_libdir}/gstreamer-1.0/libgstomx.la
%{_libdir}/gstreamer-1.0/libgstomx.so
%config(noreplace) %{_sysconfdir}/xdg/gstomx.conf

%changelog