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)