14
0

Accepting request 807154 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/807154
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-srcinfo?expand=0&rev=2
This commit is contained in:
2020-05-20 16:44:11 +00:00
committed by Git OBS Bridge
2 changed files with 16 additions and 2 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue May 19 08:03:02 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
- %python3_only -> %python_alternative
-------------------------------------------------------------------
Sat Oct 12 03:28:25 PM UTC 2019 - John Vandenberg <jayvdb@gmail.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-srcinfo
#
# 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
@@ -31,6 +31,8 @@ BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-parse
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module nose}
@@ -50,15 +52,22 @@ Python library to parse Arch .SRCINFO files.
%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/parse_srcinfo
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_exec setup.py test
%post
%python_install_alternative parse_srcinfo
%postun
%python_uninstall_alternative parse_srcinfo
%files %{python_files}
%doc README.rst
%license LICENSE
%python3_only %{_bindir}/parse_srcinfo
%python_alternative %{_bindir}/parse_srcinfo
%{python_sitelib}/*
%changelog