From ffd8d59436d30d8baf7039a9d676f2b49b925a17931b3227130e703893c5536e Mon Sep 17 00:00:00 2001 From: Tomas Cech Date: Thu, 11 May 2017 11:57:54 +0000 Subject: [PATCH] Accepting request 493491 from home:alarrosa:branches:devel:languages:python - Use %python_exec to call %fdupes separately on each python_sitelib directory. Otherwise a symlink from the python3 sitelib directory was created to the python2 one, breaking the python3 package when the python2 package wasn't installed. OBS-URL: https://build.opensuse.org/request/show/493491 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylast?expand=0&rev=3 --- python-pylast.changes | 8 ++++++++ python-pylast.spec | 6 +++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/python-pylast.changes b/python-pylast.changes index 43b4424..33161ad 100644 --- a/python-pylast.changes +++ b/python-pylast.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Mon May 8 15:27:18 UTC 2017 - alarrosa@suse.com + +- Use %python_exec to call %fdupes separately on each python_sitelib + directory. Otherwise a symlink from the python3 sitelib directory + was created to the python2 one, breaking the python3 package when + the python2 package wasn't installed. + ------------------------------------------------------------------- Thu Apr 6 09:19:00 UTC 2017 - alarrosa@suse.com diff --git a/python-pylast.spec b/python-pylast.spec index 3858109..3e6b890 100644 --- a/python-pylast.spec +++ b/python-pylast.spec @@ -25,9 +25,9 @@ License: Apache-2.0 Group: Development/Languages/Python Url: https://github.com/pylast/pylast Source0: https://files.pythonhosted.org/packages/source/p/pylast/pylast-%{version}.tar.gz -BuildRequires: fdupes BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} +BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-six BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -56,8 +56,8 @@ Features: %python_build %install -%python_exec setup.py install -O1 --skip-build --prefix=%{_prefix} --root=%{buildroot} -%fdupes -s %{buildroot} +%python_install +%python_exec %fdupes -s %{buildroot}/%{python_sitelib} %files %{python_files} %defattr(-,root,root)