|
| 1 | +# Upstream does not tag releases on GitHub (and did not upload a source archive |
| 2 | +# to PyPI for version 1.9). |
| 3 | +%global commit ba89b41638df8ad2011c2818672f208a91a5a4a0 |
| 4 | +%global shortcommit %(c=%{commit}; echo ${c:0:7}) |
| 5 | +%global snapdate 20200222 |
| 6 | + |
| 7 | +Name: python-junit_xml |
| 8 | +Summary: Python module for creating JUnit XML test result documents |
| 9 | +Version: 1.9^%{snapdate}git%{shortcommit} |
| 10 | +Release: 21%{?dist} |
| 11 | +Vendor: Microsoft Corporation |
| 12 | +Distribution: Azure Linux |
| 13 | + |
| 14 | +# SPDX |
| 15 | +License: MIT |
| 16 | +URL: https://github.com/kyrus/python-junit-xml |
| 17 | +Source: %{url}/archive/%{commit}/python-junit-xml-%{commit}.tar.gz |
| 18 | + |
| 19 | +BuildArch: noarch |
| 20 | + |
| 21 | +BuildRequires: python3-devel |
| 22 | +BuildRequires: python3-pip |
| 23 | +BuildRequires: python3-six |
| 24 | +BuildRequires: python3-wheel |
| 25 | + |
| 26 | +%global common_description %{expand: |
| 27 | +A Python module for creating JUnit XML test result documents that can be read |
| 28 | +by tools such as Jenkins or Bamboo. If you are ever working with test tool or |
| 29 | +test suite written in Python and want to take advantage of Jenkins’ or Bamboo’s |
| 30 | +pretty graphs and test reporting capabilities, this module will let you |
| 31 | +generate the XML test reports.} |
| 32 | + |
| 33 | +%description %{common_description} |
| 34 | + |
| 35 | + |
| 36 | +%package -n python3-junit-xml |
| 37 | +Summary: %{summary} |
| 38 | + |
| 39 | +Requires: python3-six |
| 40 | + |
| 41 | +# The source package is named python-junit_xml for historical reasons. The |
| 42 | +# binary package, python3-junit-xml, is named using the canonical project |
| 43 | +# name[1]; see also [2]. |
| 44 | +# |
| 45 | +# The %%py_provides macro is used to provide an upgrade path from |
| 46 | +# python3-junit_xml and to produce the appropriate Provides for the importable |
| 47 | +# module[3]. |
| 48 | +# |
| 49 | +# [1] https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_canonical_project_name |
| 50 | +# [2] https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_library_naming |
| 51 | +# [3] https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_provides_for_importable_modules |
| 52 | + |
| 53 | +# Provide an upgrade path |
| 54 | +%py_provides python3-junit_xml |
| 55 | +Obsoletes: python3-junit_xml < 1.9^20200222gitba89b41-8 |
| 56 | + |
| 57 | +%description -n python3-junit-xml %{common_description} |
| 58 | + |
| 59 | + |
| 60 | +%prep |
| 61 | +%autosetup -n python-junit-xml-%{commit} |
| 62 | +# Remove shebang line in non-script source |
| 63 | +sed -r -i '1{/^#!/d}' junit_xml/__init__.py |
| 64 | +# Do not require pytest-sugar for testing; it is only for prettier output. |
| 65 | +sed -r -i 's/^([[:blank:]]+)(pytest-sugar)/\1# \2/' tox.ini |
| 66 | + |
| 67 | + |
| 68 | +%generate_buildrequires |
| 69 | +%pyproject_buildrequires -t |
| 70 | + |
| 71 | + |
| 72 | +%build |
| 73 | +%pyproject_wheel |
| 74 | + |
| 75 | + |
| 76 | +%install |
| 77 | +%pyproject_install |
| 78 | +%pyproject_save_files junit_xml |
| 79 | + |
| 80 | + |
| 81 | +%check |
| 82 | +# Removing the 'python3-packaging' package. It conflicts with |
| 83 | +# the modules installed by "pip3" below. |
| 84 | +rpm -e python3-packaging --nodeps |
| 85 | + |
| 86 | +# Freezing 'pytest' to a known working version as updates tend to introduce regressions. |
| 87 | +pip3 install pytest==7.4.3 tox tox-current-env virtualenv |
| 88 | +%tox |
| 89 | + |
| 90 | + |
| 91 | +%files -n python3-junit-xml -f %{pyproject_files} |
| 92 | +%doc README.rst |
| 93 | + |
| 94 | + |
| 95 | +%changelog |
| 96 | +* Wed Jun 25 2025 Pawel Winogrodzki <[email protected]> - 1.9^20200222gitba89b41-21 |
| 97 | +- Initial CBL-Mariner import from Fedora 42 (license: MIT). |
| 98 | +- License verified. |
| 99 | +- Manually added run-time dependency on 'python3-six'. |
| 100 | + |
| 101 | +* Sat Jan 18 2025 Fedora Release Engineering <[email protected]> - 1.9^20200222gitba89b41-20 |
| 102 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild |
| 103 | + |
| 104 | +* Sun Aug 25 2024 Benjamin A. Beasley <[email protected]> - 1.9^20200222gitba89b41-19 |
| 105 | +- Do not require pytest-sugar for testing; it is only for prettier output |
| 106 | + |
| 107 | +* Fri Jul 19 2024 Fedora Release Engineering <[email protected]> - 1.9^20200222gitba89b41-18 |
| 108 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild |
| 109 | + |
| 110 | +* Fri Jun 07 2024 Python Maint <[email protected]> - 1.9^20200222gitba89b41-17 |
| 111 | +- Rebuilt for Python 3.13 |
| 112 | + |
| 113 | +* Fri Jan 26 2024 Fedora Release Engineering <[email protected]> - 1.9^20200222gitba89b41-15 |
| 114 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild |
| 115 | + |
| 116 | +* Mon Jan 22 2024 Fedora Release Engineering <[email protected]> - 1.9^20200222gitba89b41-14 |
| 117 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild |
| 118 | + |
| 119 | +* Mon Dec 18 2023 Benjamin A. Beasley <[email protected]> - 1.9^20200222gitba89b41-13 |
| 120 | +- Assert that %%pyproject_files contains a license file |
| 121 | + |
| 122 | +* Fri Jul 21 2023 Fedora Release Engineering <[email protected]> - 1.9^20200222gitba89b41-12 |
| 123 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild |
| 124 | + |
| 125 | +* Wed Jun 14 2023 Python Maint <[email protected]> - 1.9^20200222gitba89b41-11 |
| 126 | +- Rebuilt for Python 3.12 |
| 127 | + |
| 128 | +* Thu May 25 2023 Benjamin A. Beasley <[email protected]> - 1.9^20200222gitba89b41-10 |
| 129 | +- Rename the binary RPM to match the canonical name |
| 130 | + |
| 131 | +* Thu May 25 2023 Benjamin A. Beasley <[email protected]> - 1.9^20200222gitba89b41-9 |
| 132 | +- Remove a shebang from a non-script Python source |
| 133 | + |
| 134 | +* Fri Jan 20 2023 Fedora Release Engineering <[email protected]> - 1.9^20200222gitba89b41-5 |
| 135 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild |
| 136 | + |
| 137 | +* Sat Oct 22 2022 Benjamin A. Beasley <[email protected]> - 1.9^20200222gitba89b41-4 |
| 138 | +- Confirm License is SPDX MIT |
| 139 | + |
| 140 | +* Fri Jul 22 2022 Fedora Release Engineering <[email protected]> - 1.9^20200222gitba89b41-3 |
| 141 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild |
| 142 | + |
| 143 | +* Mon Jun 13 2022 Python Maint <[email protected]> - 1.9^20200222gitba89b41-2 |
| 144 | +- Rebuilt for Python 3.11 |
| 145 | + |
| 146 | +* Wed Apr 20 2022 Benjamin A. Beasley <[email protected]> - 1.9^20200222gitba89b41-1 |
| 147 | +- Drop “forge” macros and use “modern” snapshot versioning |
| 148 | + |
| 149 | +* Fri Jan 21 2022 Fedora Release Engineering <[email protected]> - 1.9-18 |
| 150 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild |
| 151 | + |
| 152 | +* Mon Sep 13 2021 Benjamin A. Beasley <[email protected]> - 1.9-17 |
| 153 | +- Let pyproject-rpm-macros handle the license file |
| 154 | + |
| 155 | +* Sun Sep 12 2021 Benjamin A. Beasley <[email protected]> - 1.9-16 |
| 156 | +- Drop BR on pyproject-rpm-macros, now implied by python3-devel |
| 157 | + |
| 158 | +* Sun Sep 12 2021 Benjamin A. Beasley <[email protected]> - 1.9-15 |
| 159 | +- Add Python provides for junit-xml name |
| 160 | + |
| 161 | +* Sun Sep 12 2021 Benjamin A. Beasley <[email protected]> - 1.9-14 |
| 162 | +- Drop BR on pyproject-rpm-macros, now implied by python3-devel |
| 163 | + |
| 164 | +* Tue Jul 27 2021 Benjamin A. Beasley <[email protected]> - 1.9-13 |
| 165 | +- Move %%generate_buildrequires after %%prep to make the spec file easier |
| 166 | + to follow |
| 167 | + |
| 168 | +* Fri Jul 23 2021 Fedora Release Engineering <[email protected]> - 1.9-12 |
| 169 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild |
| 170 | + |
| 171 | +* Fri Jul 09 2021 Benjamin A. Beasley <[email protected]> - 1.9-9 |
| 172 | +- Merged PR#1; drop patch for RHBZ#1935212 |
| 173 | + |
| 174 | +* Fri Jun 04 2021 Python Maint <[email protected]> - 1.9-8 |
| 175 | +- Rebuilt for Python 3.10 |
| 176 | + |
| 177 | +* Wed May 12 2021 Benjamin A. Beasley <[email protected]> - 1.9-7 |
| 178 | +- Move “forge” macros to the top of the spec file |
| 179 | + |
| 180 | +* Tue Mar 16 2021 Benjamin A. Beasley <[email protected]> - 1.9-6 |
| 181 | +- Drop python3dist(setuptools) BR, redundant with %%pyproject_buildrequires |
| 182 | + |
| 183 | +* Mon Mar 08 2021 Benjamin A. Beasley <[email protected]> - 1.9-5 |
| 184 | +- Replace ' with ’ in description |
| 185 | + |
| 186 | +* Thu Feb 11 2021 Benjamin A. Beasley <[email protected]> - 1.9-4 |
| 187 | +- Rebuilt for pyproject-rpm-macros-0-38 to fix unowned nested __pycache__ |
| 188 | + directories (RHBZ#1925963) |
| 189 | + |
| 190 | +* Wed Jan 27 2021 Fedora Release Engineering <[email protected]> - 1.9-3 |
| 191 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild |
| 192 | + |
| 193 | +* Thu Jan 14 2021 Benjamin A. Beasley <[email protected]> - 1.9-2 |
| 194 | +- Drop conditionals for Fedora 32 |
| 195 | + |
| 196 | +* Thu Jan 14 2021 Benjamin A. Beasley <[email protected]> - 1.9-1 |
| 197 | +- Update to 1.9 (RHBZ#1486729) |
| 198 | + |
| 199 | +* Thu Jan 14 2021 Benjamin A. Beasley <[email protected]> - 1.8-13 |
| 200 | +- Drop EPEL compatibility and unnecessary macros; EPEL7/8 will be supported by |
| 201 | + a forked spec file instead of conditional macros |
| 202 | +- Use pyproject-rpm-macros, including generated BR’s |
| 203 | +- Fix banned %%{python3_sitelib}/* in %%files |
| 204 | +- Use %%pytest, %%pypi_source macros |
| 205 | +- Update summary and description from upstream |
| 206 | + |
| 207 | +* Wed Jul 29 2020 Fedora Release Engineering <[email protected]> - 1.8-12 |
| 208 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild |
| 209 | + |
| 210 | +* Tue May 26 2020 Miro Hrončok <[email protected]> - 1.8-11 |
| 211 | +- Rebuilt for Python 3.9 |
| 212 | + |
| 213 | +* Thu Jan 30 2020 Fedora Release Engineering <[email protected]> - 1.8-10 |
| 214 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild |
| 215 | + |
| 216 | +* Wed Sep 11 2019 Adrian Reber <[email protected]> - 1.8-9 |
| 217 | +- Apply adapted upstream fix for test failures |
| 218 | + |
| 219 | +* Mon Aug 19 2019 Miro Hrončok <[email protected]> - 1.8-8 |
| 220 | +- Rebuilt for Python 3.8 |
| 221 | + |
| 222 | +* Fri Jul 26 2019 Fedora Release Engineering <[email protected]> - 1.8-7 |
| 223 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild |
| 224 | + |
| 225 | +* Sat Feb 02 2019 Fedora Release Engineering <[email protected]> - 1.8-6 |
| 226 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild |
| 227 | + |
| 228 | +* Wed Oct 17 2018 Zbigniew Jędrzejewski-Szmek <[email protected]> - 1.8-5 |
| 229 | +- Subpackage python2-junit_xml has been removed |
| 230 | + See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal |
| 231 | + |
| 232 | +* Sat Jul 14 2018 Fedora Release Engineering <[email protected]> - 1.8-4 |
| 233 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild |
| 234 | + |
| 235 | +* Tue Jun 19 2018 Miro Hrončok <[email protected]> - 1.8-3 |
| 236 | +- Rebuilt for Python 3.7 |
| 237 | + |
| 238 | +* Fri Feb 09 2018 Fedora Release Engineering <[email protected]> - 1.8-2 |
| 239 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild |
| 240 | + |
| 241 | +* Wed Aug 30 2017 James Hogarth <[email protected]> - 1.8-1 |
| 242 | +- update to 1.8 |
| 243 | + |
| 244 | +* Thu Jul 27 2017 Fedora Release Engineering <[email protected]> - 1.7-2 |
| 245 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild |
| 246 | + |
| 247 | +* Wed Feb 15 2017 James Hogarth <[email protected]> - 1.7-1 |
| 248 | +- Initial package |
| 249 | + |
| 250 | +## END: Generated by rpmautospec |
0 commit comments