forked from pool/python-unidiff
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:
@@ -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
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# 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
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -23,11 +23,13 @@ Release: 0
|
||||
Summary: Unified diff parsing/metadata extraction library
|
||||
License: MIT
|
||||
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
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
BuildArch: noarch
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module pytest}
|
||||
@@ -45,15 +47,22 @@ Python library to parse and interact with unified diff data.
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%python_clone -a %{buildroot}%{_bindir}/unidiff
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
%pytest
|
||||
|
||||
%post
|
||||
%python_install_alternative unidiff
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative unidiff
|
||||
|
||||
%files %{python_files}
|
||||
%doc HISTORY README.rst
|
||||
%license LICENSE
|
||||
%python3_only %{_bindir}/unidiff
|
||||
%python_alternative %{_bindir}/unidiff
|
||||
%{python_sitelib}/*
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user