Blame SPECS/python-rpm-generators.spec

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