2017-05-15 16:06:24 +02:00
|
|
|
Name: python-rpm-generators
|
2018-02-11 00:00:36 +01:00
|
|
|
Summary: Dependency generators for Python RPMs
|
2021-02-03 14:07:07 +01:00
|
|
|
Version: 12
|
2021-07-23 09:18:27 +00:00
|
|
|
Release: 8%{?dist}
|
2018-02-11 00:00:36 +01:00
|
|
|
|
|
|
|
# Originally all those files were part of RPM, so license is kept here
|
2017-05-15 16:06:24 +02:00
|
|
|
License: GPLv2+
|
2018-02-11 00:00:36 +01:00
|
|
|
Url: https://src.fedoraproject.org/python-rpm-generators
|
|
|
|
# Commit is the last change in following files
|
|
|
|
Source0: https://raw.githubusercontent.com/rpm-software-management/rpm/102eab50b3d0d6546dfe082eac0ade21e6b3dbf1/COPYING
|
|
|
|
Source1: python.attr
|
2018-07-28 14:19:20 +02:00
|
|
|
Source2: pythondist.attr
|
2020-03-05 23:40:17 +01:00
|
|
|
Source3: pythonname.attr
|
|
|
|
Source4: pythondistdeps.py
|
2020-06-26 12:57:41 +02:00
|
|
|
Source5: pythonbundles.py
|
2017-05-15 16:06:24 +02:00
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description
|
2018-02-11 00:00:36 +01:00
|
|
|
%{summary}.
|
2017-05-15 16:06:24 +02:00
|
|
|
|
2018-02-11 00:00:36 +01:00
|
|
|
%package -n python3-rpm-generators
|
2017-05-15 16:06:24 +02:00
|
|
|
Summary: %{summary}
|
2021-02-17 12:18:26 +01:00
|
|
|
Requires: python3-packaging
|
2020-04-01 13:54:32 +02:00
|
|
|
# We have parametric macro generators, we need RPM 4.16 (4.15.90+ is 4.16 alpha)
|
|
|
|
Requires: rpm > 4.15.90-0
|
2020-05-05 13:26:30 +02:00
|
|
|
# This contains the Lua functions we use:
|
|
|
|
Requires: python-srpm-macros >= 3.8-5
|
2017-05-15 16:06:24 +02:00
|
|
|
|
|
|
|
%description -n python3-rpm-generators
|
2018-02-11 00:00:36 +01:00
|
|
|
%{summary}.
|
2017-05-15 16:06:24 +02:00
|
|
|
|
|
|
|
%prep
|
2018-02-11 00:00:36 +01:00
|
|
|
%autosetup -c -T
|
|
|
|
cp -a %{sources} .
|
2017-05-15 16:06:24 +02:00
|
|
|
|
|
|
|
%install
|
2020-03-05 23:40:17 +01:00
|
|
|
install -Dpm0644 -t %{buildroot}%{_fileattrsdir} *.attr
|
2020-06-26 12:57:41 +02:00
|
|
|
install -Dpm0755 -t %{buildroot}%{_rpmconfigdir} *.py
|
2017-05-15 16:06:24 +02:00
|
|
|
|
|
|
|
%files -n python3-rpm-generators
|
2017-05-18 11:07:51 +02:00
|
|
|
%license COPYING
|
2017-05-15 16:06:24 +02:00
|
|
|
%{_fileattrsdir}/python.attr
|
2018-07-28 14:30:57 +02:00
|
|
|
%{_fileattrsdir}/pythondist.attr
|
2020-03-05 23:40:17 +01:00
|
|
|
%{_fileattrsdir}/pythonname.attr
|
2017-05-15 16:06:24 +02:00
|
|
|
%{_rpmconfigdir}/pythondistdeps.py
|
2020-06-26 12:57:41 +02:00
|
|
|
%{_rpmconfigdir}/pythonbundles.py
|
2017-05-15 16:06:24 +02:00
|
|
|
|
|
|
|
%changelog
|
2021-07-23 09:18:27 +00:00
|
|
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 12-8
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
2021-05-25 17:56:00 +02:00
|
|
|
* Tue May 25 2021 Tomas Orsava <torsava@redhat.com> - 12-7
|
|
|
|
- pythondistdeps.py: Detect missing or corrupted metadata
|
|
|
|
- pythondistdeps.py: Catch all exceptions and terminate the build if one is raised
|
|
|
|
|
2021-04-19 22:56:25 +02:00
|
|
|
* Mon Apr 19 2021 Miro Hrončok <mhroncok@redhat.com> - 12-6
|
|
|
|
- Get rid of distutils deprecation warning (by not using it)
|
|
|
|
- The distutils module is deprecated in Python 3.10+
|
|
|
|
- https://www.python.org/dev/peps/pep-0632/
|
|
|
|
|
2021-03-15 18:59:40 +01:00
|
|
|
* Wed Mar 31 2021 Miro Hrončok <mhroncok@redhat.com> - 12-5
|
|
|
|
- Do not generate setuptools requirement for console_scripts on Python 3.10+
|
|
|
|
- See https://fedoraproject.org/wiki/Changes/Reduce_dependencies_on_python3-setuptools
|
|
|
|
|
2021-03-11 12:43:37 +01:00
|
|
|
* Thu Mar 11 2021 Tomas Orsava <torsava@redhat.com> - 12-4
|
|
|
|
- scripts/pythondistdeps: Treat extras names case-insensitively and always
|
|
|
|
output them in lower case (#1936875)
|
|
|
|
|
2021-02-22 13:16:24 +01:00
|
|
|
* Mon Feb 22 2021 Tomas Orsava <torsava@redhat.com> - 12-3
|
|
|
|
- scripts/pythondistdeps: Fix for Python 3.10
|
|
|
|
|
2021-02-17 12:18:26 +01:00
|
|
|
* Wed Feb 17 2021 Tomas Orsava <torsava@redhat.com> - 12-2
|
|
|
|
- scripts/pythondistdeps: Switch from using pkg_resources to importlib.metadata
|
|
|
|
for reading the egg/dist-info metadata
|
|
|
|
- The script no longer requires setuptools but instead requires packaging
|
|
|
|
|
2021-02-03 14:07:07 +01:00
|
|
|
* Wed Feb 03 2021 Miro Hrončok <mhroncok@redhat.com> - 12-1
|
|
|
|
- Disable the dist generators for Python 2
|
|
|
|
- https://fedoraproject.org/wiki/Changes/Disable_Python_2_Dist_RPM_Generators_and_Freeze_Python_2_Macros
|
|
|
|
|
2021-01-27 13:13:21 +00:00
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 11-13
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
2020-10-19 12:50:23 +02:00
|
|
|
* Mon Oct 19 2020 Tomas Orsava <torsava@redhat.com> - 11-12
|
|
|
|
- Run scripts in an isolated Python environment (#1889080)
|
|
|
|
|
2020-07-29 03:42:44 +00:00
|
|
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 11-11
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
2020-07-21 22:11:16 +02:00
|
|
|
* Tue Jul 21 2020 Miro Hrončok <mhroncok@redhat.com> - 11-10
|
|
|
|
- pythondistdeps: Split Python Extras names after the rightmost plus sign
|
2020-07-03 22:38:41 -07:00
|
|
|
- pythondistdeps: Handle edge cases of version comparisons more closely to
|
|
|
|
upstream, despite irrationality
|
|
|
|
See: https://github.com/pypa/packaging/issues/320
|
2020-07-21 22:11:16 +02:00
|
|
|
|
2020-07-10 13:08:20 +02:00
|
|
|
* Fri Jul 10 2020 Tomas Orsava <torsava@redhat.com> - 11-9
|
2020-06-17 14:36:33 +02:00
|
|
|
- pythondistdeps: Implement provides/requires for extras packages
|
|
|
|
- Enable --require-extras-subpackages
|
2020-07-10 15:08:30 +02:00
|
|
|
- Adapt Python version marker workaround for setuptools 42+
|
2020-06-17 14:36:33 +02:00
|
|
|
|
2020-06-26 12:57:41 +02:00
|
|
|
* Fri Jun 26 2020 Miro Hrončok <mhroncok@redhat.com> - 11-8
|
2020-06-17 15:55:57 +02:00
|
|
|
- Fix python(abi) requires generator, it picked files from almost good directories
|
2020-06-26 12:57:41 +02:00
|
|
|
- Add a script to generate Python bundled provides
|
2020-06-17 15:55:57 +02:00
|
|
|
|
2020-05-21 17:43:19 +02:00
|
|
|
* Thu May 21 2020 Miro Hrončok <mhroncok@redhat.com> - 11-7
|
|
|
|
- Use PEP 503 names for requires
|
|
|
|
|
2020-05-05 13:26:30 +02:00
|
|
|
* Tue May 05 2020 Miro Hrončok <mhroncok@redhat.com> - 11-6
|
|
|
|
- Deduplicate automatically provided names trough Python RPM Lua macros
|
|
|
|
|
2020-04-30 16:24:11 +02:00
|
|
|
* Wed Apr 29 2020 Tomas Orsava <torsava@redhat.com> - 11-5
|
|
|
|
- Backporting proposed upstream changes
|
|
|
|
https://github.com/rpm-software-management/rpm/pull/1195
|
|
|
|
- Only provide python3dist(..) for the main Python versions (BZ#1812083)
|
|
|
|
- Preparation for the proper handling of normalized names (BZ#1791530)
|
|
|
|
- Add a test suite (and enable it in Fedora CI)
|
|
|
|
- Better error messages for unsupported package versions
|
|
|
|
- Fix sorting of dev versions
|
|
|
|
|
2020-04-28 14:47:32 +02:00
|
|
|
* Tue Apr 28 2020 Miro Hrončok <mhroncok@redhat.com> - 11-4
|
|
|
|
- Don't define global Lua variables from Python generator
|
|
|
|
|
2020-04-19 14:24:00 -07:00
|
|
|
* Mon Apr 20 2020 Gordon Messmer <gordon.messmer@gmail.com> - 11-3
|
|
|
|
- Handle all-zero versions without crashing
|
|
|
|
|
2020-04-07 14:41:51 +02:00
|
|
|
* Tue Apr 07 2020 Miro Hrončok <mhroncok@redhat.com> - 11-2
|
|
|
|
- Use dynamic %%_prefix value when matching files for python(abi) provides
|
2020-04-10 07:41:01 +02:00
|
|
|
- Sync with upstream RPM dist generator
|
2020-04-07 14:41:51 +02:00
|
|
|
|
2020-04-01 13:54:32 +02:00
|
|
|
* Wed Apr 01 2020 Miro Hrončok <mhroncok@redhat.com> - 11-1
|
|
|
|
- Rewrite python(abi) generators to Lua to make them faster
|
|
|
|
- RPM 4.16+ is needed
|
2020-03-05 23:40:17 +01:00
|
|
|
- Automatically call %%python_provide
|
2020-04-01 13:54:32 +02:00
|
|
|
|
2020-01-30 15:05:48 +00:00
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 10-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
2020-01-17 17:27:09 +01:00
|
|
|
* Fri Jan 17 2020 Miro Hrončok <mhroncok@redhat.com> - 10-3
|
|
|
|
- Also provide pythonXdist() with PEP 503 normalized names (#1791530)
|
|
|
|
|
2020-01-03 11:00:19 +01:00
|
|
|
* Fri Jan 03 2020 Miro Hrončok <mhroncok@redhat.com> - 10-2
|
|
|
|
- Fix more complicated requirement expressions by adding parenthesis
|
|
|
|
|
2020-01-01 23:17:07 +01:00
|
|
|
* Wed Jan 01 2020 Miro Hrončok <mhroncok@redhat.com> - 10-1
|
|
|
|
- Handle version ending with ".*" (#1758141)
|
|
|
|
- Handle compatible-release operator "~=" (#1758141)
|
|
|
|
- Use rich deps for semantically versioned dependencies
|
|
|
|
- Match Python version if minor has multiple digits (e.g. 3.10, #1777382)
|
|
|
|
- Only add setuptools requirement for egg-info packages
|
|
|
|
|
2019-07-26 16:06:05 +00:00
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 9-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
2019-06-20 11:03:40 +02:00
|
|
|
* Mon Jun 24 2019 Tomas Orsava <torsava@redhat.com> - 9-1
|
|
|
|
- Canonicalize Python versions and properly handle != spec
|
|
|
|
|
2019-04-17 14:35:46 +02:00
|
|
|
* Wed Apr 17 2019 Miro Hrončok <mhroncok@redhat.com> - 8-1
|
|
|
|
- console_scripts entry points to require setuptools
|
|
|
|
https://github.com/rpm-software-management/rpm/pull/666
|
|
|
|
|
2019-02-02 09:09:35 +00:00
|
|
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 7-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
2018-12-20 14:21:14 +01:00
|
|
|
* Thu Dec 20 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 7-1
|
|
|
|
- Enable requires generator
|
|
|
|
|
2018-10-03 14:21:26 +02:00
|
|
|
* Wed Oct 03 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 6-1
|
|
|
|
- Tighten regex for depgen
|
|
|
|
|
2018-07-28 22:15:16 +02:00
|
|
|
* Sat Jul 28 2018 Miro Hrončok <mhroncok@redhat.com> - 5-4
|
|
|
|
- Use nonstandardlib for purelib definition (#1609492)
|
|
|
|
|
2018-07-28 14:19:20 +02:00
|
|
|
* Sat Jul 28 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 5-3
|
|
|
|
- Add pythondist generator
|
|
|
|
|
2018-07-14 01:58:03 +00:00
|
|
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 5-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
2018-02-11 00:00:36 +01:00
|
|
|
* Sun Feb 11 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 5-1
|
|
|
|
- Fork upstream generators
|
2018-02-11 00:32:23 +01:00
|
|
|
- "Fix" support of environment markers
|
2018-02-11 00:00:36 +01:00
|
|
|
|
2018-02-09 10:39:37 +00:00
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.14.0-2.1
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2017-09-21 15:25:57 +02:00
|
|
|
* Tue Nov 28 2017 Tomas Orsava <torsava@redhat.com> - 4.14.0-2
|
|
|
|
- Switch bootsrapping macro to a bcond for modularity
|
|
|
|
|
2017-10-20 11:52:42 +02:00
|
|
|
* Fri Oct 20 2017 Tomas Orsava <torsava@redhat.com> - 4.14.0-1
|
|
|
|
- Rebase to rpm 4.14.0 final (http://rpm.org/wiki/Releases/4.14.0)
|
|
|
|
- Re-synchronize version/release macros with the rpm Fedora package
|
|
|
|
|
2017-09-18 16:54:18 +02:00
|
|
|
* Mon Sep 18 2017 Tomas Orsava <torsava@redhat.com> - 4.14.0-0.rc1.1
|
|
|
|
- Update to a new upstream version of RPM
|
|
|
|
- Drop upstreamed patches
|
|
|
|
- Renumber remaining patches
|
|
|
|
|
2017-08-24 13:50:13 +02:00
|
|
|
* Thu Aug 24 2017 Miro Hrončok <mhroncok@redhat.com> - 4.13.0.1-4
|
|
|
|
- Add patch 10: Do not provide pythonXdist for platform-python packages (rhbz#1484607)
|
|
|
|
|
2017-08-14 15:39:58 +02:00
|
|
|
* Tue Aug 08 2017 Tomas Orsava <torsava@redhat.com> - 4.13.0.1-3
|
|
|
|
- Add patch 9: Generate requires and provides for platform-python(abi)
|
|
|
|
(https://fedoraproject.org/wiki/Changes/Platform_Python_Stack)
|
|
|
|
|
2017-07-27 11:44:11 +00:00
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.13.0.1-2.1
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-05-18 11:07:51 +02:00
|
|
|
* Thu May 18 2017 Tomas Orsava <torsava@redhat.com> - 4.13.0.1-2
|
|
|
|
- Added a license file
|
|
|
|
- Added a dependency on rpm for the proper directory structure
|
|
|
|
- Properly owning the __pycache__ directory
|
|
|
|
|
2017-05-15 16:06:24 +02:00
|
|
|
* Tue May 02 2017 Tomas Orsava <torsava@redhat.com> - 4.13.0.1-1
|
|
|
|
- Splitting Python RPM generators from the `rpm` package to standalone one
|