forked from pool/python-python-slugify
Accepting request 807638 from home:pgajdos:python
submit OBS-URL: https://build.opensuse.org/request/show/807638 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-slugify?expand=0&rev=16
This commit is contained in:
committed by
Git OBS Bridge
parent
7494404b1b
commit
2ab5eeffc1
@@ -31,6 +31,8 @@ BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-setuptools
|
||||
Requires: python-text-unidecode >= 1.3
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
Suggests: python-Unidecode >= 1.1.1
|
||||
Conflicts: python-awesome-slugify
|
||||
BuildArch: noarch
|
||||
@@ -48,15 +50,22 @@ sed -i 's/==/>=/' setup.py
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%python_clone -a %{buildroot}%{_bindir}/slugify
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
%python_exec ./test.py
|
||||
|
||||
%post
|
||||
%python_install_alternative slugify
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative slugify
|
||||
|
||||
%files %{python_files}
|
||||
%doc CHANGELOG.md README.md
|
||||
%license LICENSE
|
||||
%python3_only %{_bindir}/slugify
|
||||
%python_alternative %{_bindir}/slugify
|
||||
%{python_sitelib}/python_slugify-%{version}-py*.egg-info
|
||||
%{python_sitelib}/slugify/
|
||||
|
||||
|
Reference in New Issue
Block a user