Hello community,

here is the log from the commit of package python-atspi for openSUSE:Factory 
checked in at 2017-06-19 13:22:30
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-atspi (Old)
 and      /work/SRC/openSUSE:Factory/.python-atspi.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-atspi"

Mon Jun 19 13:22:30 2017 rev:56 rq:504275 version:2.24.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-atspi/python-atspi.changes        
2017-03-22 23:12:35.068190750 +0100
+++ /work/SRC/openSUSE:Factory/.python-atspi.new/python-atspi.changes   
2017-06-19 13:22:33.539468377 +0200
@@ -1,0 +2,5 @@
+Thu Apr 27 20:38:54 UTC 2017 - toddrme2...@gmail.com
+
+- Implement single-spec version.
+
+-------------------------------------------------------------------

Old:
----
  pre_checkin.sh
  python3-atspi.changes
  python3-atspi.spec

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-atspi.spec ++++++
--- /var/tmp/diff_new_pack.eTfZ9a/_old  2017-06-19 13:22:34.211373742 +0200
+++ /var/tmp/diff_new_pack.eTfZ9a/_new  2017-06-19 13:22:34.215373179 +0200
@@ -16,24 +16,7 @@
 #
 
 
-%define build_for_python3 0
-
-%if %{build_for_python3}
-%define local_py_requires Requires: python(abi) = %py3_ver
-%define local_py_sitedir  %{python3_sitearch}
-%define local_py_sitelib  %{python3_sitelib}
-%define local_py_suffix   3
-%define local_py_pkg      python3
-%define local_lib_ver     3-0
-%else
-%define local_py_requires %{py_requires}
-%define local_py_sitedir  %{py_sitedir}
-%define local_py_sitelib  %{python_sitelib}
-%define local_py_suffix   2
-%define local_py_pkg      python
-%define local_lib_ver     2-0
-%endif
-
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-atspi
 %define _name   pyatspi
 Version:        2.24.0
@@ -44,31 +27,38 @@
 Url:            http://www.gnome.org/
 Source0:        
http://download.gnome.org/sources/pyatspi/2.24/%{_name}-%{version}.tar.xz
 BuildRequires:  fdupes
+BuildRequires:  python-rpm-macros
+BuildRequires:  python3-2to3
+BuildRequires:  %{python_module devel}
+BuildRequires:  %{python_module setuptools}
+BuildRequires:  %{python_module gobject >= 2.90.1}
+BuildRequires:  %{python_module gobject-devel >= 2.90.1}
 # Needed to have typelib() Requires.
 BuildRequires:  gobject-introspection
-BuildRequires:  pkgconfig(pygobject-3.0) >= 2.90.1
-%if %{build_for_python3}
-Requires:       dbus-1-python3
-Requires:       python3-gobject
-%else
+Requires:       python-gobject >= 2.90.1
+%ifpython2
 Requires:       dbus-1-python
-Requires:       python-gobject
+%endif
+%ifpython3
+Requires:       dbus-1-python3
 %endif
 # The bindings are really useful only if the at-spi registry is running. But
 # it's not a strict runtime dependency.
 Recommends:     at-spi2-core
 # Virtual package, so that apps can depend on it, without having to know which
 # at-spi stack is used. Only the default at-spi stack should define it.
-%if %{build_for_python3}
-Provides:       py3atspi
-%else
+%ifpython2
 Provides:       pyatspi
+Provides:       py2atspi
+%endif
+%ifpython3
+Provides:       py3atspi
 %endif
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildArch:      noarch
 # Old versions of at-spi 1.x provided the same files
 Conflicts:      at-spi < 1.29.3
-%py_requires
+%python_subpackages
 
 %description
 AT-SPI is a general interface for applications to make use of the
@@ -80,22 +70,28 @@
 %setup -q -n %{_name}-%{version}
 
 %build
-%if %{build_for_python3}
-export PYTHON=python3
-%endif
+# Configure for out-of-tree builds
+%define _configure ../configure
+
+%{python_expand mkdir build_%{$python_bin_suffix}
+pushd build_%{$python_bin_suffix}
+export PYTHON=$python
 %configure
 make %{?_smp_mflags}
+popd
+}
 
 %install
+%{python_expand pushd build_%{$python_bin_suffix}
 %make_install
-%fdupes %{buildroot}%{local_py_sitelib}
+popd
+}
 
-%clean
-rm -rf %{buildroot}
+%python_expand %fdupes %{buildroot}%{$python_sitelib}
 
-%files
+%files %{python_files}
 %defattr(-,root,root)
-%doc AUTHORS COPYING README
-%{local_py_sitelib}/pyatspi/
+%doc AUTHORS COPYING COPYING.GPL NEWS README
+%{python_sitelib}/pyatspi/
 
 %changelog


Reply via email to