2009-01-13 03:46:25 +00:00
|
|
|
#
|
2012-02-01 08:59:41 +00:00
|
|
|
# spec file for package python-iniparse
|
2009-01-13 03:46:25 +00:00
|
|
|
#
|
2022-03-02 14:26:55 +00:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2017-06-06 14:17:30 +00:00
|
|
|
# Copyright (c) 2017 Neal Gompa <ngompa13@gmail.com>.
|
2009-01-13 03:46:25 +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 13:34:36 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2009-01-13 03:46:25 +00:00
|
|
|
#
|
|
|
|
|
|
2013-05-27 14:38:55 +00:00
|
|
|
|
2017-06-06 14:17:30 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2009-01-13 03:46:25 +00:00
|
|
|
Name: python-iniparse
|
2020-04-14 13:46:58 +00:00
|
|
|
Version: 0.5
|
2012-02-01 08:59:41 +00:00
|
|
|
Release: 0
|
2009-01-13 03:46:25 +00:00
|
|
|
Summary: Python Module for Accessing and Modifying Configuration Data in INI files
|
2011-12-06 17:56:05 +00:00
|
|
|
License: MIT
|
2012-02-01 08:59:41 +00:00
|
|
|
Group: Development/Libraries/Python
|
2020-04-14 13:46:58 +00:00
|
|
|
URL: https://github.com/candlepin/python-iniparse
|
|
|
|
|
Source: https://files.pythonhosted.org/packages/source/i/iniparse/iniparse-%{version}.tar.gz
|
2013-05-27 14:38:55 +00:00
|
|
|
# PATCH-FIX-UPSTREAM: speilicke@suse.com -- Backport of https://code.google.com/p/iniparse/issues/detail?id=31
|
|
|
|
|
Patch0: iniparse-insert-after-commented-option.patch
|
2017-06-06 14:17:30 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
|
BuildRequires: %{python_module six}
|
|
|
|
|
BuildRequires: python-rpm-macros
|
2018-12-06 23:26:47 +00:00
|
|
|
# python2-devel contains test module, even for noarch package
|
2022-03-02 14:26:55 +00:00
|
|
|
BuildRequires: %{python_module devel}
|
2017-06-06 14:17:30 +00:00
|
|
|
# tests require testsuite modules
|
2020-10-30 12:36:08 +00:00
|
|
|
BuildRequires: %{python_module testsuite}
|
2017-09-19 09:28:52 +00:00
|
|
|
Requires: python-six
|
2020-04-14 13:46:58 +00:00
|
|
|
BuildArch: noarch
|
2017-06-06 14:17:30 +00:00
|
|
|
%python_subpackages
|
2009-01-13 03:46:25 +00:00
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
iniparse is an INI parser for Python which is API compatible with the
|
|
|
|
|
standard library's ConfigParser, preserves structure of INI files
|
|
|
|
|
(order of sections & options, indentation, comments, and blank lines
|
|
|
|
|
are preserved when data is updated), and is more convenient to use.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n iniparse-%{version}
|
2020-04-14 13:46:58 +00:00
|
|
|
%patch0
|
2017-06-06 14:17:30 +00:00
|
|
|
|
2012-02-01 08:59:41 +00:00
|
|
|
chmod 644 html/index.html
|
2013-05-27 14:38:55 +00:00
|
|
|
sed -i "/.*test_multiprocessing.*/d" tests/__init__.py # NOTE(saschpe): Doesn't work and I'm lazy
|
2009-01-13 03:46:25 +00:00
|
|
|
|
|
|
|
|
%build
|
2017-06-06 14:17:30 +00:00
|
|
|
%python_build
|
2009-01-13 03:46:25 +00:00
|
|
|
|
|
|
|
|
%install
|
2017-06-06 14:17:30 +00:00
|
|
|
%python_install
|
2012-02-01 08:59:41 +00:00
|
|
|
rm -rf %{buildroot}%{_datadir}/doc/iniparse-%{version} # Remove unwanted stuff
|
2009-01-13 03:46:25 +00:00
|
|
|
|
2013-05-27 14:38:55 +00:00
|
|
|
%check
|
2022-03-02 14:26:55 +00:00
|
|
|
%python_exec runtests.py -v
|
2013-05-27 14:38:55 +00:00
|
|
|
|
2017-06-06 14:17:30 +00:00
|
|
|
%files %{python_files}
|
2020-04-14 13:46:58 +00:00
|
|
|
%license LICENSE
|
|
|
|
|
%doc Changelog LICENSE-PSF README.md html/*
|
2012-02-01 08:59:41 +00:00
|
|
|
%{python_sitelib}/*
|
2009-01-13 03:46:25 +00:00
|
|
|
|
|
|
|
|
%changelog
|