%global desc %{expand: Python library for parsing and manipulating RPM spec files. Main focus is on modifying existing spec files, any change should result in a minimal diff.} Name: python-specfile Version: 0.5.0 Release: 1%{?dist} Summary: A library for parsing and manipulating RPM spec files License: MIT URL: https://github.com/packit/specfile Source0: %{pypi_source specfile} BuildArch: noarch BuildRequires: python%{python3_pkgversion}-devel BuildRequires: %{py3_dist setuptools setuptools-scm setuptools-scm-git-archive} BuildRequires: %{py3_dist arrow importlib-metadata rpm typing-extensions} BuildRequires: %{py3_dist flexmock pytest} %description %{desc} %package -n python%{python3_pkgversion}-specfile Summary: %{summary} %description -n python%{python3_pkgversion}-specfile %{desc} %prep %autosetup -p1 -n specfile-%{version} # Remove bundled egg-info rm -rf specfile.egg-info %build %py3_build %install %py3_install %check %pytest %files -n python%{python3_pkgversion}-specfile %license LICENSE %doc README.md %{python3_sitelib}/specfile %{python3_sitelib}/specfile-%{version}-py%{python3_version}.egg-info %changelog * Fri Jul 22 2022 Packit - 0.5.0-1 - Strict optional typing is now enforced (#68) - Fixed deduplication of tag names (#69) - Sources and patches can now be removed by number (#69) - Number of digits in a source number is now expressed the same way as packit does it (#69) - Empty lines are now compressed when deleting tags (#69) - Added convenience property for getting texts of tag comments (#69) - Added convenience method for adding a patch (#69) * Tue Jun 21 2022 Packit - 0.4.0-1 - Added convenience properties for most used tags (#63) - Hardened linting by ignoring only specific mypy errors (#64) - Fixed list of valid tag names and ensured newly added tags are not part of a condition block (#66) - Initial patch number and its default number of digits are now honored (#66) - Fixed a bug in `%prep` macro stringification (#67) * Mon May 16 2022 Packit - 0.3.0-1 - Made `Sources` a `MutableSequence` (#36) - Started using consistent terminology for source numbers and added the option to insert a source with a specific number (#47) - Added support for implicit source numbering (#48) - Documented sources and `%prep` macros in README (#49) - Implemented high-level manipulation of version and release (#54) - Added support for `* Mon May 16 2022 John Doe - 0.3.0-1.fc35 - local build` (#56) - Added `remote` property to sources and enabled addition of `Sources` (#59) - Implemented mid-level manipulation of `%prep` section, including modification of `%prep` macros (#37, #52) * Wed Mar 30 2022 Nikola Forró - 0.2.0-1 - New upstream release 0.2.0 * Mon Feb 21 2022 Nikola Forró - 0.1.1-1 - New upstream release 0.1.1 * Tue Feb 08 2022 Nikola Forró - 0.1.0-1 - Initial package