14
0
forked from pool/python-unify

Accepting request 806919 from home:pgajdos:python

submit

OBS-URL: https://build.opensuse.org/request/show/806919
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-unify?expand=0&rev=14
This commit is contained in:
Tomáš Chvátal
2020-05-18 13:01:26 +00:00
committed by Git OBS Bridge
parent 679e40aa59
commit 45dc0621e2
2 changed files with 16 additions and 2 deletions

View File

@@ -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>

View File

@@ -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