commit 7282f96b52e1d1cb69d3816215f50e90da18bfe6 Author: tigro Date: Wed Oct 4 13:28:51 2023 +0300 import cargo2rpm-0.1.8-1.el9 diff --git a/.cargo2rpm.metadata b/.cargo2rpm.metadata new file mode 100644 index 0000000..ba979f1 --- /dev/null +++ b/.cargo2rpm.metadata @@ -0,0 +1 @@ +73ddbdc3cd8758b3d9f7f7663d1376d376c8ebdc SOURCES/cargo2rpm-0.1.8.tar.gz diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..bae178e --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/cargo2rpm-0.1.8.tar.gz diff --git a/SPECS/cargo2rpm.spec b/SPECS/cargo2rpm.spec new file mode 100644 index 0000000..c912c88 --- /dev/null +++ b/SPECS/cargo2rpm.spec @@ -0,0 +1,97 @@ +## 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 +%if %{defined el9} +%global python3_pkgversion 3.11 +%endif + +Name: cargo2rpm +Version: 0.1.8 +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: python%{python3_pkgversion}-devel +%if %{with check} +BuildRequires: %{py3_dist pytest} +%endif + +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 + +%build +%pyproject_wheel + +%install +%pyproject_install +%pyproject_save_files cargo2rpm + +%check +%pyproject_check_import +%if %{with check} +%pytest +%endif + +%files -f %{pyproject_files} +%doc README.md +%doc CHANGELOG.md +%{_bindir}/cargo2rpm + +%changelog +* Wed Oct 04 2023 Arkady L. Shane - 0.1.8-1 +- Rebuilt for MSVSphere 9.2 + +* Mon Sep 18 2023 Fabio Valentini - 0.1.8-1 +- Update to version 0.1.8; Fixes RHBZ#2239513 + +* Mon Jul 31 2023 Fabio Valentini - 0.1.7-1 +- Update to version 0.1.7; Fixes RHBZ#2227751 + +* Tue Jun 13 2023 Fabio Valentini - 0.1.5-1 +- Update to version 0.1.5 + +* Fri May 19 2023 Fabio Valentini - 0.1.4-1 +- Update to version 0.1.4; Fixes RHBZ#2196881 + +* Sat Apr 01 2023 Fabio Valentini - 0.1.3-1 +- Update to version 0.1.3; Fixes RHBZ#2175302 + +* Wed Feb 22 2023 Maxwell G - 0.1.2-2 +- cargo2rpm: build for Python 3.11 on epel9 +- Conditionally set %%python3_pkgversion +- Use pytest directly in place of tox. tox is not packaged for python3.11. + +* 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)