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:
parent
6bdc2e6a05
commit
495b6b693e
@ -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>
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# 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
|
||||
# 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-strict-rfc3339 >= 0.7
|
||||
Requires: python-validate_email >= 1.2
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
@ -63,15 +65,22 @@ Validation tooling for Swagger 2.0 specifications.
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%python_clone -a %{buildroot}%{_bindir}/swagger-flex
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
%pytest
|
||||
|
||||
%post
|
||||
%python_install_alternative swagger-flex
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative swagger-flex
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
%doc CHANGELOG README.md
|
||||
%{python_sitelib}/*
|
||||
%python3_only %{_bindir}/swagger-flex
|
||||
%python_alternative %{_bindir}/swagger-flex
|
||||
|
||||
%changelog
|
||||
|
Loading…
x
Reference in New Issue
Block a user