A new user interface for you! Read more...

File python-gstreamer-0_10.spec of Package python-gstreamer-0_10

#
# spec file for package python-gstreamer-0_10 (Version 0.10.20)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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/
#

# norootforbuild


Name:           python-gstreamer-0_10
%define _name gst-python
BuildRequires:  fdupes
BuildRequires:  gstreamer-0_10-plugins-base-devel python-devel python-gtk-devel
%ifarch %ix86 ppc x86_64
BuildRequires:  valgrind
%endif
Url:            http://www.gstreamer.net/
Summary:        Python Bindings for GStreamer
Version:        0.10.20
Release:        1
License:        LGPLv2.1+
Group:          Development/Languages/Python
Source:         %{_name}-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       python-gtk python-gnome
Requires:       gstreamer-0_10 >= 0.10.24
# Name up to 10.3:
Provides:       python-gstreamer010 = %{version}
Obsoletes:      python-gstreamer010 < %{version}
Provides:       %{name}-devel = %{version}-%{release}
%{py_requires}

%description
This module contains a wrapper that allows GStreamer applications to be
written in Python.

%package devel
License:        LGPLv2.1+
Summary:        Python Bindings for GStreamer
Group:          Development/Languages/Python
Requires:       %{name} = %{version}
Requires:       python-gtk-devel gstreamer-0_10-devel

%description devel
This module contains a wrapper that allows GStreamer applications to be
written in Python.

%prep
%setup -q -n %{_name}-%{version}

%build
%configure
make %{?jobs:-j%jobs}

%install
%makeinstall
find $RPM_BUILD_ROOT -name '*.la' -or -name '*.a' | xargs rm -v
%fdupes $RPM_BUILD_ROOT/%{py_sitedir}

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc AUTHORS COPYING NEWS README RELEASE TODO
%{_libdir}/gstreamer-0.10/*.so
%{py_sitedir}/gst-0.10/
%{py_sitedir}/pygst.*
%{py_sitedir}/*.so
# we explicitly list the directories here to be sure we don't include something
# that should live in the devel package
%dir %{_datadir}/%{_name}
%dir %{_datadir}/%{_name}/0.10
%{_datadir}/%{_name}/0.10/examples/

%files devel
%defattr(-,root,root)
%{_libdir}/pkgconfig/*.pc
# we explicitly list the directories here to be sure we don't include something
# that should live in the main package
%dir %{_datadir}/%{_name}
%dir %{_datadir}/%{_name}/0.10
%{_datadir}/%{_name}/0.10/defs/
%{_datadir}/%{_name}/0.10/defs/

%changelog