forked from pool/python-pylast
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
This commit is contained in:
committed by
Git OBS Bridge
parent
6e71e84285
commit
ffd8d59436
@@ -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
|
Thu Apr 6 09:19:00 UTC 2017 - alarrosa@suse.com
|
||||||
|
|
||||||
|
@@ -25,9 +25,9 @@ License: Apache-2.0
|
|||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Url: https://github.com/pylast/pylast
|
Url: https://github.com/pylast/pylast
|
||||||
Source0: https://files.pythonhosted.org/packages/source/p/pylast/pylast-%{version}.tar.gz
|
Source0: https://files.pythonhosted.org/packages/source/p/pylast/pylast-%{version}.tar.gz
|
||||||
BuildRequires: fdupes
|
|
||||||
BuildRequires: %{python_module devel}
|
BuildRequires: %{python_module devel}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-six
|
Requires: python-six
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
@@ -56,8 +56,8 @@ Features:
|
|||||||
%python_build
|
%python_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_exec setup.py install -O1 --skip-build --prefix=%{_prefix} --root=%{buildroot}
|
%python_install
|
||||||
%fdupes -s %{buildroot}
|
%python_exec %fdupes -s %{buildroot}/%{python_sitelib}
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
|
Reference in New Issue
Block a user