18
0

Accepting request 611172 from devel:languages:python:singlespec-staging

- Uprgade to version 1.3.15
    * Many trivial bug fixes, see CHANGES
- Renamed skip-setuptools-hg-require.patch to
  ciscoconfparse-1.2.40-fix-tests.patch

- singlespec auto-conversion

OBS-URL: https://build.opensuse.org/request/show/611172
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ciscoconfparse?expand=0&rev=7
This commit is contained in:
2018-05-22 08:55:18 +00:00
committed by Git OBS Bridge
parent 91749083d9
commit 8de0bb51e9
6 changed files with 113 additions and 36 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-ciscoconfparse
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,26 +16,31 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-ciscoconfparse
Version: 1.2.40
Version: 1.3.15
Release: 0
Summary: Parse, Audit, Query, Build, and Modify Cisco IOS-style configurations
License: GPL-3.0+
License: GPL-3.0-or-later
Group: Development/Languages/Python
Url: http://www.pennington.net/py/ciscoconfparse/
Source: https://pypi.io/packages/source/c/ciscoconfparse/ciscoconfparse-%{version}.tar.gz
# PATCH-FIX-OPENSUSE skip-setuptools-hg-require.patch
Patch0: skip-setuptools-hg-require.patch
BuildRequires: python-colorama
BuildRequires: python-devel
BuildRequires: python-dnspython
BuildRequires: python-ipaddr
BuildRequires: python-setuptools
URL: https://github.com/mpenning/ciscoconfparse
Source: https://files.pythonhosted.org/packages/source/c/ciscoconfparse/ciscoconfparse-%{version}.tar.gz
# PATCH fix tests
Patch0: ciscoconfparse-1.2.40-fix-tests.patch
BuildRequires: %{python_module colorama}
BuildRequires: %{python_module dnspython}
BuildRequires: %{python_module setuptools}
BuildRequires: python2-ipaddress
BuildRequires: python2-mock
# For tests
BuildRequires: %{python_module pytest}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-colorama
Requires: python-dnspython
Requires: python-ipaddr
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%python_subpackages
%description
ciscoconfparse is a Python library, which parses through Cisco IOS-style
@@ -52,19 +57,25 @@ relationships.
%prep
%setup -q -n ciscoconfparse-%{version}
%patch0 -p1
%autopatch -p1
%build
python setup.py build
%python_build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%files
%defattr(-,root,root,-)
%doc CHANGES LICENSE README.rst
%check
# Upstream has broken tests.
# https://github.com/mpenning/ciscoconfparse/issues/106
# %%python_expand PYTHONPATH=%%{buildroot}%%{$python_sitelib} py.test-%%{$python_version}
%files %{python_files}
%license LICENSE
%doc CHANGES README.rst
%{python_sitelib}/ciscoconfparse
%{python_sitelib}/version_info
%{python_sitelib}/ciscoconfparse-%{version}-py%{py_ver}.egg-info
%{python_sitelib}/ciscoconfparse-%{version}-py%{python_version}.egg-info
%changelog