From 0289bd26a003bf9154caaa8ab24db476f131fb20 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 10:38:31 +0100 Subject: [PATCH] python 2.7 rebuild [release 2.28.6-3mamba;Sun May 19 2013] --- README.md | 2 + ...deprecated_GI_INFO_TYPE_ERROR_DOMAIN.patch | 28 ++++ pygobject2.spec | 147 ++++++++++++++++++ 3 files changed, 177 insertions(+) create mode 100644 pygobject-2.28.6-deprecated_GI_INFO_TYPE_ERROR_DOMAIN.patch create mode 100644 pygobject2.spec diff --git a/README.md b/README.md index a208ed3..716c0fd 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # pygobject2 +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. + diff --git a/pygobject-2.28.6-deprecated_GI_INFO_TYPE_ERROR_DOMAIN.patch b/pygobject-2.28.6-deprecated_GI_INFO_TYPE_ERROR_DOMAIN.patch new file mode 100644 index 0000000..f01ef48 --- /dev/null +++ b/pygobject-2.28.6-deprecated_GI_INFO_TYPE_ERROR_DOMAIN.patch @@ -0,0 +1,28 @@ +--- pygobject-2.28.6/gi/pygi-info.c.orig 2011-10-24 01:31:23.517670697 +0200 ++++ pygobject-2.28.6/gi/pygi-info.c 2011-10-24 01:32:02.006279384 +0200 +@@ -162,9 +162,6 @@ + case GI_INFO_TYPE_CONSTANT: + type = &PyGIConstantInfo_Type; + break; +- case GI_INFO_TYPE_ERROR_DOMAIN: +- type = &PyGIErrorDomainInfo_Type; +- break; + case GI_INFO_TYPE_UNION: + type = &PyGIUnionInfo_Type; + break; +@@ -481,7 +478,6 @@ + case GI_INFO_TYPE_INVALID: + case GI_INFO_TYPE_FUNCTION: + case GI_INFO_TYPE_CONSTANT: +- case GI_INFO_TYPE_ERROR_DOMAIN: + case GI_INFO_TYPE_VALUE: + case GI_INFO_TYPE_SIGNAL: + case GI_INFO_TYPE_PROPERTY: +@@ -860,7 +856,6 @@ + case GI_INFO_TYPE_INVALID: + case GI_INFO_TYPE_FUNCTION: + case GI_INFO_TYPE_CONSTANT: +- case GI_INFO_TYPE_ERROR_DOMAIN: + case GI_INFO_TYPE_VALUE: + case GI_INFO_TYPE_SIGNAL: + case GI_INFO_TYPE_PROPERTY: diff --git a/pygobject2.spec b/pygobject2.spec new file mode 100644 index 0000000..198928d --- /dev/null +++ b/pygobject2.spec @@ -0,0 +1,147 @@ +%define majver %(echo %version | cut -d. -f 1-2) + +Name: pygobject2 +Version: 2.28.6 +Release: 3mamba +Summary: A convenient wrapper for the GObject+ library for use in Python programs +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://www.pygtk.org +Source: http://ftp.gnome.org/pub/GNOME/sources/pygobject/%{majver}/pygobject-%{version}.tar.bz2 +Patch0: pygobject-2.28.6-deprecated_GI_INFO_TYPE_ERROR_DOMAIN.patch +License: LGPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-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 +%if "%{stage1}" != "1" +BuildRequires: py2cairo-devel +%endif +Requires: python >= %python_version +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. + +%package devel +Summary: Devel package for %{name} +Group: Development/Libraries +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 +%setup -q -n pygobject-%{version} +%patch0 -p1 + +%build +%configure \ + --enable-docs \ + --disable-introspection \ + PYTHON=%{__python} + +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{python_sitearch}/* +%{_libdir}/libpyglib-2.0-python%{python_version}.so.* +%dir %{_datadir}/gtk-doc/html/pygobject +%dir %{_datadir}/pygobject +%{_datadir}/pygobject/* +%doc AUTHORS COPYING + +%files devel +%defattr(-,root,root) +%{_bindir}/pygobject-codegen-2.0 +%dir %{_includedir}/pygtk-2.0 +%{_includedir}/pygtk-2.0/*.h +#%{_includedir}/pygobject/bank.h +%{_libdir}/libpyglib-2.0-python%{python_version}.la +%{_libdir}/libpyglib-2.0-python%{python_version}.so +%{_libdir}/pkgconfig/*.pc +%{_datadir}/gtk-doc/html/pygobject/* +%doc ChangeLog NEWS README + +%changelog +* Sun May 19 2013 Silvan Calarco 2.28.6-3mamba +- python 2.7 rebuild + +* Wed Oct 19 2011 Silvan Calarco 2.28.6-2mamba +- rebuilt as legacy package + +* Sun Jun 19 2011 Automatic Build System 2.28.6-1mamba +- automatic update by autodist + +* Fri Apr 15 2011 Silvan Calarco 2.28.3-1mamba +- update to 2.28.3 + +* Mon Oct 04 2010 Automatic Build System 2.26.0-1mamba +- automatic update to 2.26.0 by autodist + +* Sat Sep 25 2010 Silvan Calarco 2.21.5-2mamba +- rebuilt with libffi 3.0.9 + +* Tue Aug 17 2010 Silvan Calarco 2.21.5-1mamba +- update to 2.21.5 + +* Wed Jun 30 2010 Automatic Build System 2.21.4-1mamba +- automatic update to 2.21.4 by autodist + +* Mon Jun 21 2010 Automatic Build System 2.21.3-1mamba +- automatic update to 2.21.3 by autodist + +* Fri Jun 11 2010 Automatic Build System 2.21.2-1mamba +- automatic update to 2.21.2 by autodist + +* Mon May 31 2010 Automatic Build System 2.21.1-1mamba +- automatic update to 2.21.1 by autodist + +* Mon Sep 28 2009 Automatic Build System 2.20.0-1mamba +- automatic update to 2.20.0 by autodist + +* Thu Dec 04 2008 Silvan Calarco 2.15.4-2mamba +- rebuilt with python 2.6 + +* Wed Oct 01 2008 gil 2.15.4-1mamba +- update to 2.15.4 +- removed patch + +* Thu Sep 20 2007 Silvan Calarco 2.14.0-1mamba +- update to 2.14.0 + +* Fri Mar 16 2007 Silvan Calarco 2.12.3-2qilnx +- added buildroot_fix patch to remove buildroot in compiled files + +* Mon Feb 05 2007 Silvan Calarco 2.12.3-1qilnx +- package created by autospec