Accepting request 74061 from devel:languages:python

Create python3-gobject source package, sharing the same original .spec to build python3 module. Please add a python-gobject3 link in devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/74061
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-gobject?expand=0&rev=8
This commit is contained in:
Sascha Peilicke
2011-06-24 08:50:51 +00:00
committed by Git OBS Bridge
parent e7e636fcc0
commit 9c7fbe961d
6 changed files with 838 additions and 15 deletions

View File

@@ -1,3 +1,27 @@
-------------------------------------------------------------------
Fri Jun 17 11:53:53 CEST 2011 - vuntz@opensuse.org
- Change the source package so we can build both python 2
(python-gobject) and python 3 (python3-gobject) versions, based
on the same .spec file:
+ define a build_for_python3 variable to control the behavior
+ use local_py_requires and local_py_sitedir variables, that
proxy the appropriate values depending on what is being built
+ do not change anything for the python 2 build
+ for the python 3 build:
. replace python-cairo-devel and python-devel BuildRequires
with python3-cairo-devel and python3-devel
. do not keep any Provides/Obsoletes that are related to
python-gobject2
. add Conflicts with python-gobject-devel to the devel
subpackage, as both devel subpackages install the same files
. export PYTHON=python3 for the build
- Add libffi-devel BuildRequires that will now work, since
libffi-devel finally comes with a pkg-config file.
- Add python-gobject-python3.patch: patches taken from git, to fix
build with python 3. Add call to autoreconf, as configure.ac is
modified.
-------------------------------------------------------------------
Fri Jun 17 06:17:54 CEST 2011 - vuntz@opensuse.org