File python-pigment.spec of Package python-pigment
# Copyright (c) 2008 oc2pus
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments to toni@links2linux.de
# norootforbuild
%define _prefix /usr
%define _major 0.3
%define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")
%define python_sitelib_arch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(plat_specific=1)")
Name: python-pigment
Summary: Pigment Python bindings
License: LGPL
Group: Development/Libraries/Python
Version: 0.3.2
Release: 0%{?dist}
Source: pigment-python-%{version}.tar.bz2
URL: https://core.fluendo.com/pigment/trac/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
#%py_requires
BuildRequires: glib2-devel
BuildRequires: gdk-pixbuf-devel
BuildRequires: gstreamer-devel
BuildRequires: gstreamer-plugins-base-devel gstreamer-plugins-base
BuildRequires: gtk2-devel
BuildRequires: pigment-devel >= 0.3.4
BuildRequires: mesa-libGL-devel
BuildRequires: pkgconfig
BuildRequires: python-devel
BuildRequires: pygobject2-devel
BuildRequires: pygtk2-devel >= 2.8.4
BuildRequires: elinks
Requires: python >= %{py_ver}
Requires: pygtk2 >= 2.8.4
Requires: gstreamer
Requires: gstreamer-plugins-base
Provides: pigment = 0.3.2
Obsoletes: pigment <= 0.3.2
%description
Pigment is a toolkit for writing Media Center software.
Pigment-python contains modules that allow you to use Pigment
in Python programs. At present, it is a fairly complete set of
bindings.
%debug_package
%prep
%setup -q -n pigment-python-%{version}
%build
export GDKPIXBUFXLIB_CFLAGS="`pkg-config --cflags gdk-pixbuf-xlib-2.0`"
export GDKPIXBUFXLIB_LIBS="`pkg-config --libs gdk-pixbuf-xlib-2.0`"
%configure
%__make %{?jobs:-j%{jobs}}
%install
# Install doc temporarily in order to be included later by rpm
%makeinstall
# Do not package .la files
find %{buildroot}%{_libdir} -name "*.la" -exec rm {} \;
%clean
[ -d %{buildroot} -a "%{buildroot}" != "" ] && %__rm -rf %{buildroot}
%files
%defattr(-, root, root)
%doc AUTHORS ChangeLog COPYING README TODO
%{python_sitelib_arch}/*.so
%dir %{python_sitelib}/pgm
%{python_sitelib}/pgm/*
%dir %{_datadir}/pigment-python/
%dir %{_datadir}/pigment-python/%{_major}
%{_datadir}/pigment-python/%{_major}/*
%changelog
* Sat Feb 09 2008 Mauricio Teixeira <mteixeira@webset.net> - 0.3.2-0
- Fedora package
* Fri Jan 25 2008 Toni Graffy <toni@links2linux.de> - 0.3.2-0.pm.1
- update to 0.3.2
* Thu Jan 17 2008 Toni Graffy <toni@links2linux.de> - 0.3.1-0.pm.1
- update to 0.3.1
- split off from pigment package