## START: Set by rpmautospec ## (rpmautospec version 0.3.5) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %bcond_without check %undefine __brp_python_bytecompile Name: cargo2rpm Version: 0.1.3 Release: %autorelease Summary: Translation layer between cargo and RPM License: MIT URL: https://pagure.io/fedora-rust/cargo2rpm Source: %{url}/archive/%{version}/cargo2rpm-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel Requires: cargo %description cargo2rpm implements a translation layer between cargo and RPM. It provides a CLI interface (for implementing RPM macros and generators) and a Python API (which rust2rpm is built upon). %prep %autosetup -p1 %generate_buildrequires %pyproject_buildrequires %{?with_check:-t} %build %pyproject_wheel %install %pyproject_install %pyproject_save_files cargo2rpm (cd ../../BUILD/;sed -i -e '/__pycache__$/d' -e '/pyc$/d' cargo2rpm-0.1.3-1.el9.x86_64-pyproject-files) %check %if %{with check} %pyproject_check_import %tox %endif %files -f %{pyproject_files} %doc README.md %doc CHANGELOG.md %exclude /usr/lib/python*/site-packages/cargo2rpm/__pycache__/*.pyc %{_bindir}/cargo2rpm %changelog * Mon Mar 06 2023 Fabio Valentini - 0.1.3-1 - Update to version 0.1.3; Fixes RHBZ#2175302 * Thu Feb 16 2023 Fabio Valentini - 0.1.2-1 - Update to version 0.1.2 * Thu Feb 16 2023 Fabio Valentini - 0.1.1-2 - Update to more modern Python packaging * Tue Feb 14 2023 Fabio Valentini - 0.1.1-1 - Update to version 0.1.1 * Mon Feb 13 2023 Fabio Valentini - 0.1.0-1 - Initial import (#2169233)