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
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed May 20 07:26:54 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
|
||||||
|
|
||||||
|
- %python3_only -> %python_alternative
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Mar 20 11:17:22 UTC 2020 - pgajdos@suse.com
|
Fri Mar 20 11:17:22 UTC 2020 - pgajdos@suse.com
|
||||||
|
|
||||||
|
@@ -31,6 +31,8 @@ BuildRequires: fdupes
|
|||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-setuptools
|
Requires: python-setuptools
|
||||||
Requires: python-text-unidecode >= 1.3
|
Requires: python-text-unidecode >= 1.3
|
||||||
|
Requires(post): update-alternatives
|
||||||
|
Requires(postun): update-alternatives
|
||||||
Suggests: python-Unidecode >= 1.1.1
|
Suggests: python-Unidecode >= 1.1.1
|
||||||
Conflicts: python-awesome-slugify
|
Conflicts: python-awesome-slugify
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
@@ -48,15 +50,22 @@ sed -i 's/==/>=/' setup.py
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%python_install
|
||||||
|
%python_clone -a %{buildroot}%{_bindir}/slugify
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%python_exec ./test.py
|
%python_exec ./test.py
|
||||||
|
|
||||||
|
%post
|
||||||
|
%python_install_alternative slugify
|
||||||
|
|
||||||
|
%postun
|
||||||
|
%python_uninstall_alternative slugify
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc CHANGELOG.md README.md
|
%doc CHANGELOG.md README.md
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%python3_only %{_bindir}/slugify
|
%python_alternative %{_bindir}/slugify
|
||||||
%{python_sitelib}/python_slugify-%{version}-py*.egg-info
|
%{python_sitelib}/python_slugify-%{version}-py*.egg-info
|
||||||
%{python_sitelib}/slugify/
|
%{python_sitelib}/slugify/
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user