Group :: Development/Python
RPM: python-module-pygnome-desktop
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
%def_disable gtk_doc
%def_enable evince
%define major 2.26
%define oname gnome-python-desktop
%define extras_version 2.19
Name: python-module-pygnome-desktop
Version: %major.0
Release: alt1
Summary: Python modules for some GNOME libraries part of the GNOME Desktop
License: LGPL
Group: Development/Python
Url: http://www.pygtk.org/
Packager: GNOME Maintainers Team <gnome at packages.altlinux.org>
Source: http://ftp.gnome.org/pub/GNOME/sources/%oname/%major/%oname-%version.tar.bz2
%define bname python-module-pygnome
%define python_gnome_dir %python_sitelibdir/gtk-2.0/gnome
Requires: %bname-extras >= %extras_version
%{?_enable_evince:BuildRequires: libevince-devel}
BuildRequires: bug-buddy evolution-data-server-devel gcc-c++ glibc-devel gnome-media-devel
BuildRequires: libgnome-desktop-devel libgnome-keyring-devel libgnome-panel-devel
BuildRequires: libgnomeprintui-devel libgtop-devel libmetacity-devel libnautilus-cd-burner-devel
BuildRequires: librsvg-devel libtotem-devel libwnck-devel python-module-pycairo-devel libgtksourceview-devel
BuildRequires: libgnomeui-devel
BuildRequires: python-module-pygnome-devel >= 2.25.1
BuildRequires: python-module-pygtk-devel >= 2.13.0
%description
GnomePythonDesktop provides python interfacing modules for some
GNOME libraries part of the GNOME Desktop (gnomeapplet, gnomeprint,
gnomeprint.ui, gtksourceview, wnck, totem.plparser, gtop, nautilusburn,
mediaprofiles, metacity).
%package devel
Summary: files needed to build extra wrappers for GNOME libraries
Group: Development/Python
Requires: %name = %version-%release
Requires: %name-devel
Requires: %bname-extras-devel >= %extras_version
%description devel
This package contains files required to build wrappers for GNOME
libraries so that they interoperate with pygnome.
%package devel-doc
Summary: Development documentation for extra wrappers for GNOME libraries
Group: Development/Python
BuildArch: noarch
Conflicts: %name-devel < %version
%description devel-doc
This package contains development documentation required to develop
wrappers for GNOME libraries so that they interoperate with pygnome.
%package examples
Summary: Example programs that use extra wrappers for GNOME libraries
Group: Development/Python
BuildArch: noarch
Conflicts: %name < %version
%description examples
This package contains example program that use wrappers for GNOME libraries
%package -n %bname-applet
Summary: Python bindings for GNOME Panel applets
Group: System/Libraries
Obsoletes: pygnome-applet
Obsoletes: gnome-python2-applet
Provides: gnome-python2-applet
Requires: %name = %version-%release
%description -n %bname-applet
This module contains a wrapper that allows GNOME Panel applets to be
written in Python.
%package -n %bname-gtkhtml2
Summary: Python bindings for interacting with gtkhtml2
Group: System/Libraries
Requires: %name = %version-%release
Obsoletes: gnome-python2-gtkhtml2
Provides: gnome-python2-gtkhtml2
%description -n %bname-gtkhtml2
This module contains a wrapper that allows the use of gtkhtml2 via Python.
%package -n %bname-gnomeprint
Summary: Python bindings for interacting with libgnomeprint
Group: System/Libraries
Requires: libgnomeprint2, libgnomeprintui
Requires: %name = %version-%release
Obsoletes: gnome-python2-gnomeprint
Provides: gnome-python2-gnomeprint
%description -n %bname-gnomeprint
This module contains a wrapper that allows the user of libgnomeprint via Python.
%package -n %bname-nautilusburn
Summary: Python bindings for interacting with nautilus burn
Group: System/Libraries
Requires: %name = %version-%release
%description -n %bname-nautilusburn
This module contains a wrapper that allows the use of nautilusburn via Python
%package -n %bname-totem
Summary: Python bindings for interacting with totem
Group: System/Libraries
Requires: %name = %version-%release
%description -n %bname-totem
This module contains a wrapper that allows the use of totem via Python
%package -n %bname-metacity
Summary: Python bindings for interacting with metacity
Group: System/Libraries
Requires: %name = %version-%release
%description -n %bname-metacity
This module contains a wrapper that allows the use of metacity via Python
%package -n %bname-evolution
Summary: Python bindings for interacting with evolution
Group: System/Libraries
Requires: %name = %version-%release
%description -n %bname-evolution
This module contains a wrapper that allows the use of evolution via Python
%package -n %bname-evince
Summary: Python bindings for interacting with Evince
Group: System/Libraries
Obsoletes: python-module-evince
Provides: python-module-evince = %version-%release
Requires: %name = %version-%release
%description -n %bname-evince
This module contains a wrapper that allows the use of Evince document
viewer via Python
%prep
%setup -q -n %oname-%version
%build
%configure --enable-metacity \
--disable-dependency-tracking \
--enable-evolution \
--enable-evolution-ecal \
%{?_enable_gtk_doc:--enable-gtk-doc}
%make_build
%install
%makeinstall
mkdir -p %buildroot%_docdir/%name
cp -R examples %buildroot%_docdir/%name/
%files
%python_sitelibdir/gtk-2.0/gtop.so
%python_sitelibdir/gtk-2.0/rsvg.so
%python_sitelibdir/gtk-2.0/gnomekeyring.so
%python_sitelibdir/gtk-2.0/mediaprofiles.so
%python_sitelibdir/gtk-2.0/bugbuddy.*
%python_sitelibdir/gtk-2.0/wnck.so
%python_sitelibdir/gtk-2.0/gnomedesktop/
%dir %_docdir/%name
%doc AUTHORS ChangeLog README NEWS
%files devel
%_pkgconfigdir/*
%_datadir/pygtk/2.0/defs/*.defs
%files examples
%_docdir/%name/examples
%files devel-doc
%_datadir/gtk-doc/html/*
%files -n %bname-applet
%python_gnome_dir/applet.*
%python_sitelibdir/gtk-2.0/gnomeapplet.so
%files -n %bname-gnomeprint
%python_sitelibdir/gtk-2.0/gnomeprint/
%files -n %bname-totem
%python_sitelibdir/gtk-2.0/totem/
%files -n %bname-nautilusburn
%python_sitelibdir/gtk-2.0/nautilusburn.so
%files -n %bname-metacity
%python_sitelibdir/gtk-2.0/metacity.so
%files -n %bname-evolution
%python_sitelibdir/gtk-2.0/evolution/
%if_enabled evince
%files -n %bname-evince
%python_sitelibdir/gtk-2.0/evince.so
%endif
%exclude %python_sitelibdir/gtk-2.0/*.la
%changelog
…
Full changelog you can see here
%def_enable evince
%define major 2.26
%define oname gnome-python-desktop
%define extras_version 2.19
Name: python-module-pygnome-desktop
Version: %major.0
Release: alt1
Summary: Python modules for some GNOME libraries part of the GNOME Desktop
License: LGPL
Group: Development/Python
Url: http://www.pygtk.org/
Packager: GNOME Maintainers Team <gnome at packages.altlinux.org>
Source: http://ftp.gnome.org/pub/GNOME/sources/%oname/%major/%oname-%version.tar.bz2
%define bname python-module-pygnome
%define python_gnome_dir %python_sitelibdir/gtk-2.0/gnome
Requires: %bname-extras >= %extras_version
%{?_enable_evince:BuildRequires: libevince-devel}
BuildRequires: bug-buddy evolution-data-server-devel gcc-c++ glibc-devel gnome-media-devel
BuildRequires: libgnome-desktop-devel libgnome-keyring-devel libgnome-panel-devel
BuildRequires: libgnomeprintui-devel libgtop-devel libmetacity-devel libnautilus-cd-burner-devel
BuildRequires: librsvg-devel libtotem-devel libwnck-devel python-module-pycairo-devel libgtksourceview-devel
BuildRequires: libgnomeui-devel
BuildRequires: python-module-pygnome-devel >= 2.25.1
BuildRequires: python-module-pygtk-devel >= 2.13.0
%description
GnomePythonDesktop provides python interfacing modules for some
GNOME libraries part of the GNOME Desktop (gnomeapplet, gnomeprint,
gnomeprint.ui, gtksourceview, wnck, totem.plparser, gtop, nautilusburn,
mediaprofiles, metacity).
%package devel
Summary: files needed to build extra wrappers for GNOME libraries
Group: Development/Python
Requires: %name = %version-%release
Requires: %name-devel
Requires: %bname-extras-devel >= %extras_version
%description devel
This package contains files required to build wrappers for GNOME
libraries so that they interoperate with pygnome.
%package devel-doc
Summary: Development documentation for extra wrappers for GNOME libraries
Group: Development/Python
BuildArch: noarch
Conflicts: %name-devel < %version
%description devel-doc
This package contains development documentation required to develop
wrappers for GNOME libraries so that they interoperate with pygnome.
%package examples
Summary: Example programs that use extra wrappers for GNOME libraries
Group: Development/Python
BuildArch: noarch
Conflicts: %name < %version
%description examples
This package contains example program that use wrappers for GNOME libraries
%package -n %bname-applet
Summary: Python bindings for GNOME Panel applets
Group: System/Libraries
Obsoletes: pygnome-applet
Obsoletes: gnome-python2-applet
Provides: gnome-python2-applet
Requires: %name = %version-%release
%description -n %bname-applet
This module contains a wrapper that allows GNOME Panel applets to be
written in Python.
%package -n %bname-gtkhtml2
Summary: Python bindings for interacting with gtkhtml2
Group: System/Libraries
Requires: %name = %version-%release
Obsoletes: gnome-python2-gtkhtml2
Provides: gnome-python2-gtkhtml2
%description -n %bname-gtkhtml2
This module contains a wrapper that allows the use of gtkhtml2 via Python.
%package -n %bname-gnomeprint
Summary: Python bindings for interacting with libgnomeprint
Group: System/Libraries
Requires: libgnomeprint2, libgnomeprintui
Requires: %name = %version-%release
Obsoletes: gnome-python2-gnomeprint
Provides: gnome-python2-gnomeprint
%description -n %bname-gnomeprint
This module contains a wrapper that allows the user of libgnomeprint via Python.
%package -n %bname-nautilusburn
Summary: Python bindings for interacting with nautilus burn
Group: System/Libraries
Requires: %name = %version-%release
%description -n %bname-nautilusburn
This module contains a wrapper that allows the use of nautilusburn via Python
%package -n %bname-totem
Summary: Python bindings for interacting with totem
Group: System/Libraries
Requires: %name = %version-%release
%description -n %bname-totem
This module contains a wrapper that allows the use of totem via Python
%package -n %bname-metacity
Summary: Python bindings for interacting with metacity
Group: System/Libraries
Requires: %name = %version-%release
%description -n %bname-metacity
This module contains a wrapper that allows the use of metacity via Python
%package -n %bname-evolution
Summary: Python bindings for interacting with evolution
Group: System/Libraries
Requires: %name = %version-%release
%description -n %bname-evolution
This module contains a wrapper that allows the use of evolution via Python
%package -n %bname-evince
Summary: Python bindings for interacting with Evince
Group: System/Libraries
Obsoletes: python-module-evince
Provides: python-module-evince = %version-%release
Requires: %name = %version-%release
%description -n %bname-evince
This module contains a wrapper that allows the use of Evince document
viewer via Python
%prep
%setup -q -n %oname-%version
%build
%configure --enable-metacity \
--disable-dependency-tracking \
--enable-evolution \
--enable-evolution-ecal \
%{?_enable_gtk_doc:--enable-gtk-doc}
%make_build
%install
%makeinstall
mkdir -p %buildroot%_docdir/%name
cp -R examples %buildroot%_docdir/%name/
%files
%python_sitelibdir/gtk-2.0/gtop.so
%python_sitelibdir/gtk-2.0/rsvg.so
%python_sitelibdir/gtk-2.0/gnomekeyring.so
%python_sitelibdir/gtk-2.0/mediaprofiles.so
%python_sitelibdir/gtk-2.0/bugbuddy.*
%python_sitelibdir/gtk-2.0/wnck.so
%python_sitelibdir/gtk-2.0/gnomedesktop/
%dir %_docdir/%name
%doc AUTHORS ChangeLog README NEWS
%files devel
%_pkgconfigdir/*
%_datadir/pygtk/2.0/defs/*.defs
%files examples
%_docdir/%name/examples
%files devel-doc
%_datadir/gtk-doc/html/*
%files -n %bname-applet
%python_gnome_dir/applet.*
%python_sitelibdir/gtk-2.0/gnomeapplet.so
%files -n %bname-gnomeprint
%python_sitelibdir/gtk-2.0/gnomeprint/
%files -n %bname-totem
%python_sitelibdir/gtk-2.0/totem/
%files -n %bname-nautilusburn
%python_sitelibdir/gtk-2.0/nautilusburn.so
%files -n %bname-metacity
%python_sitelibdir/gtk-2.0/metacity.so
%files -n %bname-evolution
%python_sitelibdir/gtk-2.0/evolution/
%if_enabled evince
%files -n %bname-evince
%python_sitelibdir/gtk-2.0/evince.so
%endif
%exclude %python_sitelibdir/gtk-2.0/*.la
%changelog
…
Full changelog you can see here