Blame SPECS/python-rpm-generators.spec

6cc59f
# Disable automatic bytecompilation. We install only one script and we will
6cc59f
# never "import" it.
6cc59f
%undefine py_auto_byte_compile
6cc59f
6cc59f
Name:           python-rpm-generators
6cc59f
Summary:        Dependency generators for Python RPMs
6cc59f
Version:        5
f84b6a
Release:        8%{?dist}
6cc59f
6cc59f
# Originally all those files were part of RPM, so license is kept here
6cc59f
License:        GPLv2+
6cc59f
Url:            https://src.fedoraproject.org/python-rpm-generators
6cc59f
# Commit is the last change in following files
6cc59f
Source0:        https://raw.githubusercontent.com/rpm-software-management/rpm/102eab50b3d0d6546dfe082eac0ade21e6b3dbf1/COPYING
6cc59f
Source1:        python.attr
6cc59f
Source2:        pythondeps.sh
6cc59f
Source3:        pythondistdeps.py
6cc59f
6cc59f
BuildArch:      noarch
6cc59f
6cc59f
%description
6cc59f
%{summary}.
6cc59f
6cc59f
%package -n python3-rpm-generators
6cc59f
Summary:        %{summary}
6cc59f
%if 0%{?rhel} && 0%{?rhel} >= 8
6cc59f
Requires:       platform-python-setuptools
6cc59f
%else
6cc59f
Requires:       python3-setuptools
6cc59f
%endif
6cc59f
# The point of split
6cc59f
Conflicts:      rpm-build < 4.13.0.1-2
6cc59f
6cc59f
%description -n python3-rpm-generators
6cc59f
%{summary}.
6cc59f
6cc59f
%prep
6cc59f
%autosetup -c -T
6cc59f
cp -a %{sources} .
6cc59f
34d1bd
# Set which Python versions should have the major-version provides
34d1bd
# (pythonXdist...) generated
34d1bd
sed -i 's/@MAJORVER-PROVIDES-VERSIONS@/2.7,3.6/' python.attr
34d1bd
6cc59f
%install
6cc59f
install -Dpm0644 -t %{buildroot}%{_fileattrsdir} python.attr
6cc59f
install -Dpm0755 -t %{buildroot}%{_rpmconfigdir} pythondeps.sh pythondistdeps.py
6cc59f
6cc59f
%files -n python3-rpm-generators
6cc59f
%license COPYING
6cc59f
%{_fileattrsdir}/python.attr
6cc59f
%{_rpmconfigdir}/pythondeps.sh
6cc59f
%{_rpmconfigdir}/pythondistdeps.py
6cc59f
6cc59f
%changelog
f84b6a
* Mon Nov 14 2022 Charalampos Stratakis <cstratak@redhat.com> - 5-8
f84b6a
- Fix the pythondeps.sh and pythondistdeps.py scripts for multiple digits python versions
f84b6a
- Resolves: rhbz#2143990
f84b6a
35458f
* Tue Jun 15 2021 Tomas Orsava <torsava@redhat.com> - 5-7
35458f
- Do not parse nested dist/egg-info metadata
35458f
- Resolves: rhbz#1916172
35458f
34d1bd
* Thu Dec 12 2019 Tomas Orsava <torsava@redhat.com> - 5-6
34d1bd
- Enabled gating
34d1bd
- Related: rhbz#1776941
34d1bd
34d1bd
* Wed Nov 27 2019 Tomas Orsava <torsava@redhat.com> - 5-5
34d1bd
- Create major-version provides only on major Python versions (2.7, 3.6)
34d1bd
- Fix an extra parenthesis in python.attr
34d1bd
- Resolves: rhbz#1776941
34d1bd
6cc59f
* Fri Nov 16 2018 Lumír Balhar <lbalhar@redhat.com> - 5-4
6cc59f
- Require platform-python-setuptools instead of python3-setuptools
6cc59f
- Resolves: rhbz#1650544
6cc59f
6cc59f
* Sat Jul 28 2018 Miro Hrončok <mhroncok@redhat.com> - 5-3
6cc59f
- Use nonstandardlib for purelib definition (#1609492)
6cc59f
6cc59f
* Tue Jun 05 2018 Tomas Orsava <torsava@redhat.com> - 5-2
6cc59f
- Switch the pythondistdeps.py script to /usr/libexec/platform-python
6cc59f
6cc59f
* Sun Feb 11 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 5-1
6cc59f
- Fork upstream generators
6cc59f
- "Fix" support of environment markers
6cc59f
6cc59f
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.14.0-2.1
6cc59f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
6cc59f
6cc59f
* Tue Nov 28 2017 Tomas Orsava <torsava@redhat.com> - 4.14.0-2
6cc59f
- Switch bootsrapping macro to a bcond for modularity
6cc59f
6cc59f
* Fri Oct 20 2017 Tomas Orsava <torsava@redhat.com> - 4.14.0-1
6cc59f
- Rebase to rpm 4.14.0 final (http://rpm.org/wiki/Releases/4.14.0)
6cc59f
- Re-synchronize version/release macros with the rpm Fedora package
6cc59f
6cc59f
* Mon Sep 18 2017 Tomas Orsava <torsava@redhat.com> - 4.14.0-0.rc1.1
6cc59f
- Update to a new upstream version of RPM
6cc59f
- Drop upstreamed patches
6cc59f
- Renumber remaining patches
6cc59f
6cc59f
* Thu Aug 24 2017 Miro Hrončok <mhroncok@redhat.com> - 4.13.0.1-4
6cc59f
- Add patch 10: Do not provide pythonXdist for platform-python packages (rhbz#1484607)
6cc59f
6cc59f
* Tue Aug 08 2017 Tomas Orsava <torsava@redhat.com> - 4.13.0.1-3
6cc59f
- Add patch 9: Generate requires and provides for platform-python(abi)
6cc59f
  (https://fedoraproject.org/wiki/Changes/Platform_Python_Stack)
6cc59f
6cc59f
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.13.0.1-2.1
6cc59f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
6cc59f
6cc59f
* Thu May 18 2017 Tomas Orsava <torsava@redhat.com> - 4.13.0.1-2
6cc59f
- Added a license file
6cc59f
- Added a dependency on rpm for the proper directory structure
6cc59f
- Properly owning the __pycache__ directory
6cc59f
6cc59f
* Tue May 02 2017 Tomas Orsava <torsava@redhat.com> - 4.13.0.1-1
6cc59f
- Splitting Python RPM generators from the `rpm` package to standalone one