Update summary and description from upstream

This commit is contained in:
Benjamin A. Beasley 2022-06-13 10:30:19 -04:00
parent 79a0e6327d
commit 0b6573e9ef

View File

@ -1,60 +1,68 @@
%global modname iniparse
# Use the same directory of the main package for subpackage licence and docs
%global _docdir_fmt %{name}
Name: python-%{modname}
Name: python-iniparse
Version: 0.5
Release: 1%{?dist}
Summary: Python Module for Accessing and Modifying Configuration Data in INI files
Release: 2%{?dist}
Summary: Accessing and Modifying INI files
# From LICENSE:
# iniparse/compat.py and tests/test_compat.py contain code derived from
# lib/python-2.3/ConfigParser.py and lib/python-2.3/test/test_cfgparse.py
# respectively. Other code may contain small snippets from those two files
# as well. The Python license (LICENSE-PSF) applies to that code.
License: MIT and Python
URL: https://github.com/candlepin/python-iniparse
Source0: https://github.com/candlepin/python-iniparse/archive/%{version}/%{name}-%{version}.tar.gz
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
BuildArch: noarch
%global _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.
%description %{_description}
%package -n python3-%{modname}
Summary: %{summary}
%{?python_provide:%python_provide python3-%{modname}}
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-six
BuildRequires: python3-test
%description -n python3-%{modname} %{_description}
%global _description %{expand: \
iniparse is an INI parser for Python which is API compatible with the standard
librarys 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.}
Python 3 version.
%description
%{_description}
%package -n python3-iniparse
Summary: %{summary}
%description -n python3-iniparse
%{_description}
%prep
%autosetup -p1
%autosetup
chmod -c -x html/index.html
%generate_buildrequires
%pyproject_buildrequires -t
%build
%py3_build
%pyproject_wheel
%install
%py3_install
%pyproject_install
rm -vfr %{buildroot}%{_docdir}/*
%pyproject_save_files iniparse
%check
%{__python3} runtests.py
%tox
%files -n python3-%{modname}
%license LICENSE LICENSE-PSF
%files -n python3-iniparse -f %{pyproject_files}
# pyproject_files handles both license files; verify with “rpm -qL -p …”
%doc README.md Changelog html/
%{python3_sitelib}/%{modname}/
%{python3_sitelib}/%{modname}-%{version}-*.egg-info/
%changelog
* Mon Jun 13 2022 Benjamin A. Beasley <code@musicinmybrain.net> - 0.5-2
- Port to pyproject-rpm-macros
- Mention license breakdown in a spec file comment
- Update summary and description from upstream
* Mon Jun 13 2022 Jiri Hnidek <jhnidek@redhat.com> - 0.5-1
- Release 0.5
- Moved project to https://github.com/candlepin/python-iniparse