%undefine py_auto_byte_compile Name: python-rpm-generators Version: 14 Release: 1 Summary: Dependency generators for Python RPMs License: GPL-2.0-or-later AND LGPL-2.1-or-later AND (Public Domain OR LGPL-2.1-or-later OR GPL-2.0-or-later) URL: https://src.fedoraproject.org/rpms/python-rpm-generators Source0: https://raw.githubusercontent.com/rpm-software-management/rpm/102eab50b3d0d6546dfe082eac0ade21e6b3dbf1/COPYING Source1: python.attr Source2: pythondist.attr # This one is also originally from RPM, but it has its own license declaration: LGPL-2.1-or-later Source4: pythondistdeps.py # This was crafted in-place with the following license declaration: # Public-Domain OR CC0-1.0 OR LGPL-2.1-or-later OR GPL-2.0-or-later Source5: pythonbundles.py BuildArch: noarch %description Fedora's dependency generators for Python RPMS. %package -n python3-rpm-generators Summary: %{summary} Requires: rpm > 4.15.90 Requires: python3dist(packaging) Conflicts: rpm-build < 4.13.0.1-2 Conflicts: python-rpm-macros < 3-35 %description -n python3-rpm-generators Fedora's dependency generators for Python RPMS. %prep %autosetup -c -T cp -a %{sources} . %install install -Dpm0644 -t %{buildroot}%{_fileattrsdir} *.attr install -Dpm0755 -t %{buildroot}%{_rpmconfigdir} *.py %files -n python3-rpm-generators %license COPYING %{_fileattrsdir}/python.attr %{_fileattrsdir}/pythondist.attr %{_rpmconfigdir}/pythondistdeps.py %{_rpmconfigdir}/pythonbundles.py %changelog * Sat Oct 19 2024 Funda Wang - 14-1 - update to latest upstream version * Tue Aug 06 2024 chenhuihan - 9-5 - Fix python provide and requires * Sun Apr 23 2023 caodongxia - 9-4 - Fix the python3 version cannot be found when pyproject.toml is used for building * Thu Oct 27 2022 zhangruifang - 9-3 - Rebuild for next release * Fri Jan 07 2022 shixuantong - 9-2 - downgrade version to 9 * Thu Dec 09 2021 liudabo - 12-1 - upgrade version to 12 * Tue Sep 17 2019 openEuler Buildteam - 9-1 - Package init