Accepting request 809255 from home:pgajdos:python

submit

OBS-URL: https://build.opensuse.org/request/show/809255
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flex?expand=0&rev=4
This commit is contained in:
Tomáš Chvátal 2020-05-27 10:08:48 +00:00 committed by Git OBS Bridge
parent 6bdc2e6a05
commit 495b6b693e
2 changed files with 16 additions and 2 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue May 26 06:34:16 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
- %python3_only -> %python_alternative
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Mar 14 12:12:22 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com> Thu Mar 14 12:12:22 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>

View File

@ -1,7 +1,7 @@
# #
# spec file for package python-flex # spec file for package python-flex
# #
# 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
@ -49,6 +49,8 @@ Requires: python-rfc3987 >= 1.3.4
Requires: python-six >= 1.7.3 Requires: python-six >= 1.7.3
Requires: python-strict-rfc3339 >= 0.7 Requires: python-strict-rfc3339 >= 0.7
Requires: python-validate_email >= 1.2 Requires: python-validate_email >= 1.2
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch BuildArch: noarch
%python_subpackages %python_subpackages
@ -63,15 +65,22 @@ Validation tooling for Swagger 2.0 specifications.
%install %install
%python_install %python_install
%python_clone -a %{buildroot}%{_bindir}/swagger-flex
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
%pytest %pytest
%post
%python_install_alternative swagger-flex
%postun
%python_uninstall_alternative swagger-flex
%files %{python_files} %files %{python_files}
%license LICENSE %license LICENSE
%doc CHANGELOG README.md %doc CHANGELOG README.md
%{python_sitelib}/* %{python_sitelib}/*
%python3_only %{_bindir}/swagger-flex %python_alternative %{_bindir}/swagger-flex
%changelog %changelog