support for -py3 [release 3.14.0-2mamba;Thu Nov 06 2014]

This commit is contained in:
Silvan Calarco 2024-01-06 10:38:19 +01:00
parent a374521c29
commit 7a387e52ff

View File

@ -2,7 +2,7 @@
Name: pygobject Name: pygobject
Version: 3.14.0 Version: 3.14.0
Release: 1mamba Release: 2mamba
Summary: A convenient wrapper for the GObject+ library for use in Python programs Summary: A convenient wrapper for the GObject+ library for use in Python programs
Group: System/Libraries Group: System/Libraries
Vendor: openmamba Vendor: openmamba
@ -14,25 +14,12 @@ Patch0: %{name}-2.12.3-buildroot_fix.patch
License: LGPL License: LGPL
## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel BuildRequires: glibc-devel
BuildRequires: gobject-introspection-devel
BuildRequires: libcairo-devel BuildRequires: libcairo-devel
BuildRequires: libexpat-devel
BuildRequires: libffi-devel BuildRequires: libffi-devel
BuildRequires: libfontconfig-devel
BuildRequires: libfreetype-devel
BuildRequires: libGL-devel
BuildRequires: libglib-devel BuildRequires: libglib-devel
BuildRequires: libpixman-devel
BuildRequires: libpng-devel
BuildRequires: libpthread-stubs-devel
BuildRequires: libpython-devel
BuildRequires: libselinux-devel BuildRequires: libselinux-devel
BuildRequires: libX11-devel
BuildRequires: libXau-devel
BuildRequires: libxcb-devel
BuildRequires: libXdmcp-devel
BuildRequires: libXrender-devel
BuildRequires: libz-devel BuildRequires: libz-devel
BuildRequires: udev-devel
## AUTOBUILDREQ-END ## AUTOBUILDREQ-END
BuildRequires: py2cairo-devel BuildRequires: py2cairo-devel
Requires: python >= %python_version Requires: python >= %python_version
@ -41,6 +28,28 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description %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. 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 %package devel
Summary: Devel package for %{name} Summary: Devel package for %{name}
Group: Development/Libraries Group: Development/Libraries
@ -48,7 +57,6 @@ Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description devel %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. 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. This package contains static libraries and header files need for development.
%prep %prep
@ -69,7 +77,11 @@ This package contains static libraries and header files need for development.
%clean %clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%if "%?with_pyver"
%files py%{pyver}
%else
%files %files
%endif
%defattr(-,root,root) %defattr(-,root,root)
%{python_sitearch}/* %{python_sitearch}/*
#%{_libdir}/libpyglib-gi-2.0-python%{python_version}.so.* #%{_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 %doc ChangeLog NEWS README
%changelog %changelog
* Thu Nov 06 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 3.14.0-2mamba
- support for -py3
* Wed Sep 24 2014 Automatic Build System <autodist@mambasoft.it> 3.14.0-1mamba * Wed Sep 24 2014 Automatic Build System <autodist@mambasoft.it> 3.14.0-1mamba
- automatic version update by autodist - automatic version update by autodist