14
0

Accepting request 806963 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/806963
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-unidiff?expand=0&rev=5
This commit is contained in:
2020-05-19 12:48:34 +00:00
committed by Git OBS Bridge
2 changed files with 17 additions and 3 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon May 18 09:10:40 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
- %python3_only -> %python_alternative
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Jun 3 11:23:41 UTC 2019 - pgajdos@suse.com Mon Jun 3 11:23:41 UTC 2019 - pgajdos@suse.com

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-unidiff # spec file for package python-unidiff
# #
# 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
@@ -23,11 +23,13 @@ Release: 0
Summary: Unified diff parsing/metadata extraction library Summary: Unified diff parsing/metadata extraction library
License: MIT License: MIT
Group: Development/Languages/Python Group: Development/Languages/Python
URL: http://github.com/matiasb/python-unidiff URL: https://github.com/matiasb/python-unidiff
Source: https://github.com/matiasb/python-unidiff/archive/v%{version}.tar.gz Source: https://github.com/matiasb/python-unidiff/archive/v%{version}.tar.gz
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
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}
@@ -45,15 +47,22 @@ Python library to parse and interact with unified diff data.
%install %install
%python_install %python_install
%python_clone -a %{buildroot}%{_bindir}/unidiff
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
%pytest %pytest
%post
%python_install_alternative unidiff
%postun
%python_uninstall_alternative unidiff
%files %{python_files} %files %{python_files}
%doc HISTORY README.rst %doc HISTORY README.rst
%license LICENSE %license LICENSE
%python3_only %{_bindir}/unidiff %python_alternative %{_bindir}/unidiff
%{python_sitelib}/* %{python_sitelib}/*
%changelog %changelog