%define _major 0.3 %define _name pigment %define _minor 5.1 %define _svn svn20080320 Name: libpigment Summary: Pigment Media Center Toolkit License: %lgpl2plus Group: System/Libraries Version: %{_major}.%{_minor} Release: alt1 Url: https://core.fluendo.com/pigment/trac/ Source: http://www.fluendo.com/elisa/downloads/pigment/%{_name}-%{_major}.%{_minor}.tar.bz2 Source2: ChangeLog-rpm.old Requires: glib2 Requires: gstreamer >= 0.10.0 Requires: gst-plugins-base >= 0.10.0 Requires: libcairo Requires: python-module-pygtk >= 2.8.4 BuildPreReq: rpm-build-licenses BuildPreReq: gdk-pixbuf-devel BuildPreReq: glib2-devel >= 2.8.0 BuildPreReq: gstreamer-devel >= 0.10.0 BuildPreReq: gst-plugins-devel >= 0.10.0 BuildPreReq: libX11-devel BuildPreReq: libglade-devel BuildPreReq: libpango-devel >= 1.8 BuildPreReq: python-module-pygtk-devel # Automatically added by buildreq on Fri Mar 21 2008 BuildRequires: gcc-c++ gtk-doc libgtk+2-devel libmesa-devel valgrind %description Pigment is a toolkit for writing Media Center software. Pigment is a Python library designed to easily build user interfaces with embedded multimedia. Its design allows to use it on several platforms, thanks to a plugin system allowing to choose the underlying graphical API. Pigment is the rendering engine of Elisa, the Fluendo Media Center project. This package contains the shared libraries for Pigment. %package -n devel Summary: Libraries/include files for Pigment Group: Development/C++ Requires: %name = %version #aRequires: glib2-devel #aRequires: gstreamer010-devel #aRequires: gstreamer010-plugins-base-devel #aRequires: python-devel #aRequires: python-gobject2-devel #aRequires: python-gtk-devel >= 2.8.4 #Provides: libpigment-devel = 0.3.2 #aObsoletes: pigment-devel <= 0.3.2 %description -n devel Pigment is a toolkit for writing Media Center software. This package contains the libraries and includes files necessary to develop applications and plugins using Pigment. %package -n gtk Summary: Shared libraries for Pigment Group: System/Libraries #aProvides: libpigment-gtk3 = 0.3.4.3 #aObsoletes: libpigment-gtk3 <= 0.3.4.3 %description -n gtk Pigment is a toolkit for writing Media Center software. Pigment is a Python library designed to easily build user interfaces with embedded multimedia. Its design allows to use it on several platforms, thanks to a plugin system allowing to choose the underlying graphical API. This package contains the shared libraries for Pigment. %package -n gtk-devel Summary: Libraries/include files for Pigment Group: Development/GNOME and GTK+ Requires: libpigment-gtk = %version #Requires: gtk2-devel %description -n gtk-devel Pigment is a toolkit for writing Media Center software. This package contains the libraries and includes files necessary to develop applications and plugins using Pigment. %package -n doc Summary: Documentation for Pigment Group: Development/Documentation %description -n doc Documentation for Pigment. %package -n plugin-opengl Summary: OpenGL plugin for Pigment Group: System/Libraries #aRequires: gstreamer010 #aRequires: gstreamer010-plugins-base #aRequires: %name = %version %description -n plugin-opengl Pigment is a toolkit for writing Media Center software. Pigment is a Python library designed to easily build user interfaces with embedded multimedia. Its design allows to use it on several platforms, thanks to a plugin system allowing to choose the underlying graphical API. This package contains the OpenGL plugin for Pigment. %package -n plugin Summary: Plugins for Pigment Group: System/Libraries #aRequires: gstreamer010 #aRequires: %name = %version %description -n plugin Pigment is a toolkit for writing Media Center software. Pigment is a Python library designed to easily build user interfaces with embedded multimedia. Its design allows to use it on several platforms, thanks to a plugin system allowing to choose the underlying graphical API. This package contains some plugins for Pigment. %prep %setup -q -n %_name-%version install -p -m644 %SOURCE2 . %build gtkdocize autoreconf -v --install #__autoreconf #undefine _configure_target %configure \ --enable-gtk-doc \ --disable-static %make_build %{__make} check %install #{__make} install DESTDIR=%{buildroot} %makeinstall \ docdir="`pwd`/installed-doc" find %{buildroot} -name '*.la' -exec rm -f {} \; %post -p %post_ldconfig %postun -p %postun_ldconfig %files %doc AUTHORS ChangeLog ChangeLog-rpm.old COPYING README TODO %_libdir/%name-%_major.so.* %files -n devel %dir %_includedir/%_name-%_major %_includedir/%_name-%_major/pgm/*.h %_libdir/%name-%_major.so %_libdir/pkgconfig/%_name-%_major.pc %_datadir/gtk-doc/html/%_name %files -n doc %doc docs/pgm/html/* %files -n plugin-opengl %dir %_libdir/%_name-%_major %_libdir/%_name-%_major/%version/libpgmopengl.so %files -n plugin %dir %_libdir/%_name-%_major %_libdir/%_name-%_major/%version/libpgmboilerplate.so %files -n gtk %_libdir/libpigment-gtk-%_major.so.* %files -n gtk-devel %_includedir/%_name-%_major/pgm/gtk/pgmgtk.h %_libdir/%name-gtk-%_major.so %_libdir/pkgconfig/pigment-gtk-%_major.pc #exclude %_libdir/%_name/*/*.la %changelog * Fri Mar 21 2008 Marat Khairullin 0.3.5-alt0.1 - initial build