diff --git a/pygobject.spec b/pygobject.spec index b24e351..1ffacb4 100644 --- a/pygobject.spec +++ b/pygobject.spec @@ -2,7 +2,7 @@ Name: pygobject Version: 3.14.0 -Release: 1mamba +Release: 2mamba Summary: A convenient wrapper for the GObject+ library for use in Python programs Group: System/Libraries Vendor: openmamba @@ -14,25 +14,12 @@ Patch0: %{name}-2.12.3-buildroot_fix.patch License: LGPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel +BuildRequires: gobject-introspection-devel BuildRequires: libcairo-devel -BuildRequires: libexpat-devel BuildRequires: libffi-devel -BuildRequires: libfontconfig-devel -BuildRequires: libfreetype-devel -BuildRequires: libGL-devel BuildRequires: libglib-devel -BuildRequires: libpixman-devel -BuildRequires: libpng-devel -BuildRequires: libpthread-stubs-devel -BuildRequires: libpython-devel BuildRequires: libselinux-devel -BuildRequires: libX11-devel -BuildRequires: libXau-devel -BuildRequires: libxcb-devel -BuildRequires: libXdmcp-devel -BuildRequires: libXrender-devel BuildRequires: libz-devel -BuildRequires: udev-devel ## AUTOBUILDREQ-END BuildRequires: py2cairo-devel Requires: python >= %python_version @@ -41,6 +28,28 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-root %description PyGObject provides a convenient wrapper for the GObject+ library for use in Python programs, and takes care of many of the boring details such as managing memory and type casting. When combined with PyGTK, PyORBit and gnome-python, it can be used to write full featured Gnome applications. +%if "%?with_pyver" +%define pyver %{with_pyver} +%define __python %(rpm --eval %{__python%{with_pyver}}) +%define python_sitearch %(rpm --eval %{python%{with_pyver}_sitearch}) +%define python_sitelib %(rpm --eval %{python%{with_pyver}_sitelib}) +%define python_inc %(rpm --eval %{python%{with_pyver}_inc}) +%define python_version %(rpm --eval %{python%{with_pyver}_version}) +%define python_provides %(rpm --eval %{python%{with_pyver}_provides}) +%define python_requires %(rpm --eval %{python%{with_pyver}_requires}) +%define py_requires %(rpm --eval %{py%{with_pyver}_requires}) +BuildRequires: py%{pyver}cairo + +%package py%{pyver} +Group: System/Libraries/Python +Summary: A convenient wrapper for the GObject+ library for use in Python programs +Requires: py%{pyver}cairo +%py_requires + +%description py%{pyver} +PyGObject provides a convenient wrapper for the GObject+ library for use in Python programs, and takes care of many of the boring details such as managing memory and type casting. When combined with PyGTK, PyORBit and gnome-python, it can be used to write full featured Gnome applications. +%endif + %package devel Summary: Devel package for %{name} Group: Development/Libraries @@ -48,7 +57,6 @@ Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} %description devel PyGObject provides a convenient wrapper for the GObject+ library for use in Python programs, and takes care of many of the boring details such as managing memory and type casting. When combined with PyGTK, PyORBit and gnome-python, it can be used to write full featured Gnome applications. - This package contains static libraries and header files need for development. %prep @@ -69,7 +77,11 @@ This package contains static libraries and header files need for development. %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%if "%?with_pyver" +%files py%{pyver} +%else %files +%endif %defattr(-,root,root) %{python_sitearch}/* #%{_libdir}/libpyglib-gi-2.0-python%{python_version}.so.* @@ -85,6 +97,9 @@ This package contains static libraries and header files need for development. %doc ChangeLog NEWS README %changelog +* Thu Nov 06 2014 Silvan Calarco 3.14.0-2mamba +- support for -py3 + * Wed Sep 24 2014 Automatic Build System 3.14.0-1mamba - automatic version update by autodist