2018-05-31 15:24:33 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-unidiff
|
|
|
|
#
|
2019-06-03 11:36:17 +00:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2018-05-31 15:24:33 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2018-12-04 14:11:32 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-07-30 07:33:48 +00:00
|
|
|
#
|
2018-05-31 15:24:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
|
|
Name: python-unidiff
|
|
|
|
Version: 0.5.5
|
|
|
|
Release: 0
|
|
|
|
Summary: Unified diff parsing/metadata extraction library
|
2018-07-30 07:33:48 +00:00
|
|
|
License: MIT
|
2018-05-31 15:24:33 +00:00
|
|
|
Group: Development/Languages/Python
|
2019-06-03 11:36:17 +00:00
|
|
|
URL: http://github.com/matiasb/python-unidiff
|
|
|
|
Source: https://github.com/matiasb/python-unidiff/archive/v%{version}.tar.gz
|
2018-05-31 15:24:33 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
BuildArch: noarch
|
2019-06-03 11:36:17 +00:00
|
|
|
# SECTION test requirements
|
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
# /SECTION
|
2018-05-31 15:24:33 +00:00
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
2018-07-30 07:33:48 +00:00
|
|
|
Python library to parse and interact with unified diff data.
|
2018-05-31 15:24:33 +00:00
|
|
|
|
|
|
|
%prep
|
2019-06-03 11:36:17 +00:00
|
|
|
%setup -q -n python-unidiff-%{version}
|
2018-05-31 15:24:33 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
2019-06-03 11:36:17 +00:00
|
|
|
%check
|
|
|
|
%pytest
|
|
|
|
|
2018-05-31 15:24:33 +00:00
|
|
|
%files %{python_files}
|
|
|
|
%doc HISTORY README.rst
|
|
|
|
%license LICENSE
|
|
|
|
%python3_only %{_bindir}/unidiff
|
|
|
|
%{python_sitelib}/*
|
|
|
|
|
|
|
|
%changelog
|