forked from pool/python-unify
Accepting request 806962 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/806962 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-unify?expand=0&rev=5
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon May 18 09:10:41 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
|
||||||
|
|
||||||
|
- %python3_only -> %python_alternative
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Sep 10 09:32:34 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
Tue Sep 10 09:32:34 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-unify
|
# spec file for package python-unify
|
||||||
#
|
#
|
||||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2020 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -31,6 +31,8 @@ BuildRequires: fdupes
|
|||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-setuptools
|
Requires: python-setuptools
|
||||||
Requires: python-untokenize
|
Requires: python-untokenize
|
||||||
|
Requires(post): update-alternatives
|
||||||
|
Requires(postun): update-alternatives
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
# SECTION test requirements
|
# SECTION test requirements
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
@@ -59,11 +61,18 @@ cp %{SOURCE9} .
|
|||||||
%python_install
|
%python_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
mv %{buildroot}%{_bindir}/unify %{buildroot}%{_bindir}/unify_quotes
|
mv %{buildroot}%{_bindir}/unify %{buildroot}%{_bindir}/unify_quotes
|
||||||
|
%python_clone -a %{buildroot}%{_bindir}/unify_quotes
|
||||||
|
|
||||||
|
%post
|
||||||
|
%python_install_alternative unify_quotes
|
||||||
|
|
||||||
|
%postun
|
||||||
|
%python_uninstall_alternative unify_quotes
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc README.rst README.suse
|
%doc README.rst README.suse
|
||||||
%python3_only %{_bindir}/unify_quotes
|
%python_alternative %{_bindir}/unify_quotes
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user