Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:16.0
python-iniparse
python-iniparse.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-iniparse.spec of Package python-iniparse
# # spec file for package python-iniparse # # Copyright (c) 2024 SUSE LLC # Copyright (c) 2017 Neal Gompa <ngompa13@gmail.com>. # # 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. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # Name: python-iniparse Version: 0.5 Release: 0 Summary: Python Module for Accessing and Modifying Configuration Data in INI files License: MIT URL: https://github.com/candlepin/python-iniparse Source: https://files.pythonhosted.org/packages/source/i/iniparse/iniparse-%{version}.tar.gz # 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 # https://github.com/candlepin/python-iniparse/commit/28dddd6f45fb5928d1477d14fac5daca92ffbb4c Patch1: python-iniparse-no-python2.patch # https://github.com/candlepin/python-iniparse/commit/b3684a45d02af784d3d8f6ea680a351b38a865dc Patch2: python-iniparse-no-six.patch # from https://github.com/candlepin/python-iniparse/pull/24 Patch3: python311-compat.patch # PATCH-FIX-UPSTREAM: python3117.patch gh#candlepin/python-iniparse#29 Patch4: python3117.patch BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module testsuite} BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch %python_subpackages %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 %autosetup -p1 -n iniparse-%{version} chmod 644 html/index.html sed -i "/.*test_multiprocessing.*/d" tests/__init__.py # NOTE(saschpe): Doesn't work and I'm lazy %build %pyproject_wheel %install %pyproject_install rm -rf %{buildroot}%{_datadir}/doc/iniparse-%{version} # Remove unwanted stuff %python_expand %fdupes %{buildroot}%{$python_sitelib} %check %python_exec runtests.py -v %files %{python_files} %license LICENSE %doc Changelog LICENSE-PSF README.md html/* %{python_sitelib}/iniparse %{python_sitelib}/iniparse-%{version}.dist-info %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor