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
@@ -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)
|
||||
|
Reference in New Issue
Block a user