Hello community,
here is the log from the commit of package python-compizconfig for
openSUSE:Factory checked in at 2018-06-27 10:21:39
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-compizconfig (Old)
and /work/SRC/openSUSE:Factory/.python-compizconfig.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-compizconfig"
Wed Jun 27 10:21:39 2018 rev:9 rq:618980 version:0.8.14
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-compizconfig/python-compizconfig.changes
2018-05-23 16:09:34.052958732 +0200
+++
/work/SRC/openSUSE:Factory/.python-compizconfig.new/python-compizconfig.changes
2018-06-27 10:21:41.255455292 +0200
@@ -1,0 +2,5 @@
+Mon Jun 25 14:50:52 UTC 2018 - [email protected]
+
+- Use %python_expand.
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-compizconfig.spec ++++++
--- /var/tmp/diff_new_pack.HWZA3W/_old 2018-06-27 10:21:41.779436181 +0200
+++ /var/tmp/diff_new_pack.HWZA3W/_new 2018-06-27 10:21:41.783436035 +0200
@@ -16,8 +16,8 @@
#
-%define _name compizconfig-python
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%define _name compizconfig-python
Name: python-compizconfig
Version: 0.8.14
Release: 0
@@ -26,6 +26,7 @@
Group: Development/Languages/Python
URL: https://github.com/compiz-reloaded/compizconfig-python
Source:
https://github.com/compiz-reloaded/%{_name}/releases/download/v%{version}/%{_name}-%{version}.tar.xz
+BuildRequires: %{python_module Cython}
BuildRequires: %{python_module devel}
BuildRequires: autoconf
BuildRequires: automake
@@ -38,7 +39,6 @@
BuildRequires: pkgconfig(libcompizconfig) < 0.9
BuildRequires: pkgconfig(x11)
Requires: compiz < 0.9
-BuildRequires: %{python_module Cython}
%ifpython2
Obsoletes: ccs-python < %{version}
Provides: ccs-python = %{version}
@@ -54,20 +54,18 @@
%build
NOCONFIGURE=1 ./autogen.sh
%global _configure ../configure
-for pyver in %{python_version} %{python3_version}; do
- mkdir -p "build-py$pyver"
- pushd "build-py$pyver"
- export PYTHON="python$pyver"
- %configure \
+%{python_expand mkdir -p "build-$python"
+pushd "build-$python"
+export PYTHON="$python"
+%configure \
--disable-static \
- --with-cython="cython-$pyver"
- make %{?_smp_mflags} V=1
- popd
-done
+ --with-cython="cython-%{$python_version}"
+make %{?_smp_mflags} V=1
+popd
+}
%install
-%make_install -C build-py%{python_version}
-%make_install -C build-py%{python3_version}
+%python_expand %make_install -C "build-$python"
find %{buildroot} -type f -name "*.la" -delete -print
rm -r %{buildroot}%{_libdir}/pkgconfig/