|
| 1 | +%bcond_without check |
| 2 | + |
| 3 | +Name: cargo2rpm |
| 4 | +Version: 0.3.2 |
| 5 | +Release: 2%{?dist} |
| 6 | +Summary: Translation layer between cargo and RPM |
| 7 | +License: MIT |
| 8 | +Vendor: Microsoft Corporation |
| 9 | +Distribution: Azure Linux |
| 10 | +URL: https://codeberg.org/rust2rpm/cargo2rpm |
| 11 | +Source: %{url}/archive/v%{version}.tar.gz |
| 12 | + |
| 13 | +BuildArch: noarch |
| 14 | + |
| 15 | +BuildRequires: python3-pip |
| 16 | +BuildRequires: python3-wheel |
| 17 | +BuildRequires: python3-devel |
| 18 | +%if %{with check} |
| 19 | +BuildRequires: %{py3_dist pytest} |
| 20 | +%endif |
| 21 | + |
| 22 | +Requires: cargo |
| 23 | + |
| 24 | +%description |
| 25 | +cargo2rpm implements a translation layer between cargo and RPM. It |
| 26 | +provides a CLI interface (for implementing RPM macros and generators) |
| 27 | +and a Python API (which rust2rpm is built upon). |
| 28 | + |
| 29 | +%prep |
| 30 | +%autosetup -n cargo2rpm -p1 |
| 31 | + |
| 32 | +%generate_buildrequires |
| 33 | +%pyproject_buildrequires |
| 34 | + |
| 35 | +%build |
| 36 | +%pyproject_wheel |
| 37 | + |
| 38 | +%install |
| 39 | +%pyproject_install |
| 40 | +%pyproject_save_files cargo2rpm |
| 41 | + |
| 42 | +%check |
| 43 | +%pyproject_check_import |
| 44 | +%if %{with check} |
| 45 | +%pytest |
| 46 | +%endif |
| 47 | + |
| 48 | +%files -f %{pyproject_files} |
| 49 | +%doc README.md |
| 50 | +%doc CHANGELOG.md |
| 51 | +%{_bindir}/cargo2rpm |
| 52 | + |
| 53 | +%changelog |
| 54 | +* Fri Dec 26 2025 Aditya Singh <v-aditysing@microsoft.com> - 0.3.2-2 |
| 55 | +- Initial Azure Linux import from Fedora 44 (license: MIT). |
| 56 | +- License verified. |
| 57 | + |
| 58 | +* Sat Dec 06 2025 Fabio Valentini <decathorpe@gmail.com> - 0.3.2-1 |
| 59 | +- Update to version 0.3.2; Fixes RHBZ#2419692 |
| 60 | + |
| 61 | +* Thu Nov 20 2025 Fabio Valentini <decathorpe@gmail.com> - 0.3.1-1 |
| 62 | +- Update to version 0.3.1; Fixes RHBZ#2416167 |
| 63 | + |
| 64 | +* Wed Nov 12 2025 Fabio Valentini <decathorpe@gmail.com> - 0.3.0-1 |
| 65 | +- Update to version 0.3.0; Fixes RHBZ#2403101 |
| 66 | + |
| 67 | +* Fri Sep 19 2025 Python Maint <python-maint@redhat.com> - 0.1.18-6 |
| 68 | +- Rebuilt for Python 3.14.0rc3 bytecode |
| 69 | + |
| 70 | +* Fri Aug 15 2025 Python Maint <python-maint@redhat.com> - 0.1.18-5 |
| 71 | +- Rebuilt for Python 3.14.0rc2 bytecode |
| 72 | + |
| 73 | +* Wed Jul 23 2025 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.18-4 |
| 74 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild |
| 75 | + |
| 76 | +* Mon Jun 02 2025 Python Maint <python-maint@redhat.com> - 0.1.18-3 |
| 77 | +- Rebuilt for Python 3.14 |
| 78 | + |
| 79 | +* Thu Jan 16 2025 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.18-2 |
| 80 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild |
| 81 | + |
| 82 | +* Thu Oct 10 2024 Fabio Valentini <decathorpe@gmail.com> - 0.1.18-1 |
| 83 | +- Update to version 0.1.18; Fixes RHBZ#2317824 |
| 84 | + |
| 85 | +* Sun Sep 08 2024 Fabio Valentini <decathorpe@gmail.com> - 0.1.17-1 |
| 86 | +- Update to version 0.1.17; Fixes RHBZ#2310726 |
| 87 | + |
| 88 | +* Wed Jul 17 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.16-3 |
| 89 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild |
| 90 | + |
| 91 | +* Fri Jun 07 2024 Python Maint <python-maint@redhat.com> - 0.1.16-2 |
| 92 | +- Rebuilt for Python 3.13 |
| 93 | + |
| 94 | +* Fri May 24 2024 Fabio Valentini <decathorpe@gmail.com> - 0.1.16-1 |
| 95 | +- Update to version 0.1.16; Fixes RHBZ#2283015 |
| 96 | + |
| 97 | +* Tue Jan 23 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.15-3 |
| 98 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild |
| 99 | + |
| 100 | +* Fri Jan 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.15-2 |
| 101 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild |
| 102 | + |
| 103 | +* Fri Dec 08 2023 Fabio Valentini <decathorpe@gmail.com> - 0.1.15-1 |
| 104 | +- Update to version 0.1.15; Fixes RHBZ#2253432 |
| 105 | + |
| 106 | +* Fri Dec 01 2023 Fabio Valentini <decathorpe@gmail.com> - 0.1.14-1 |
| 107 | +- Update to version 0.1.14; Fixes RHBZ#2252412 |
| 108 | + |
| 109 | +* Thu Nov 02 2023 Fabio Valentini <decathorpe@gmail.com> - 0.1.13-1 |
| 110 | +- Update to version 0.1.13; Fixes RHBZ#2247679 |
| 111 | + |
| 112 | +* Fri Oct 06 2023 Fabio Valentini <decathorpe@gmail.com> - 0.1.12-1 |
| 113 | +- Update to version 0.1.12; Fixes RHBZ#2242404 |
| 114 | + |
| 115 | +* Sun Sep 24 2023 Robert-André Mauchin <zebob.m@gmail.com> - 0.1.9-1 |
| 116 | +- Update to version 0.1.9; Fixes RHBZ#2240213 |
| 117 | + |
| 118 | +* Mon Sep 18 2023 Fabio Valentini <decathorpe@gmail.com> - 0.1.8-1 |
| 119 | +- Update to version 0.1.8; Fixes RHBZ#2239513 |
| 120 | + |
| 121 | +* Mon Jul 31 2023 Fabio Valentini <decathorpe@gmail.com> - 0.1.7-1 |
| 122 | +- Update to version 0.1.7; Fixes RHBZ#2227751 |
| 123 | + |
| 124 | +* Wed Jul 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.5-3 |
| 125 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild |
| 126 | + |
| 127 | +* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 0.1.5-2 |
| 128 | +- Rebuilt for Python 3.12 |
| 129 | + |
| 130 | +* Tue Jun 13 2023 Fabio Valentini <decathorpe@gmail.com> - 0.1.5-1 |
| 131 | +- Update to version 0.1.5 |
| 132 | + |
| 133 | +* Thu Jun 01 2023 Fabio Valentini <decathorpe@gmail.com> - 0.1.4-2 |
| 134 | +- Avoid dependency on tox and run tests with pytest directly |
| 135 | + |
| 136 | +* Wed May 17 2023 Fabio Valentini <decathorpe@gmail.com> - 0.1.4-1 |
| 137 | +- Update to version 0.1.4; Fixes RHBZ#2196881 |
| 138 | + |
| 139 | +* Mon Mar 06 2023 Fabio Valentini <decathorpe@gmail.com> - 0.1.3-1 |
| 140 | +- Update to version 0.1.3; Fixes RHBZ#2175302 |
| 141 | + |
| 142 | +* Thu Feb 16 2023 Fabio Valentini <decathorpe@gmail.com> - 0.1.2-1 |
| 143 | +- Update to version 0.1.2 |
| 144 | + |
| 145 | +* Thu Feb 16 2023 Fabio Valentini <decathorpe@gmail.com> - 0.1.1-2 |
| 146 | +- Update to more modern Python packaging |
| 147 | + |
| 148 | +* Tue Feb 14 2023 Fabio Valentini <decathorpe@gmail.com> - 0.1.1-1 |
| 149 | +- Update to version 0.1.1 |
| 150 | + |
| 151 | +* Mon Feb 13 2023 Fabio Valentini <decathorpe@gmail.com> - 0.1.0-1 |
| 152 | +- Initial import (#2169233) |
0 commit comments