2016-01-12 23:52:28 +00:00
|
|
|
Name: python-rpm-macros
|
|
|
|
Version: 3
|
2019-12-28 18:10:09 +00:00
|
|
|
Release: 51%{?dist}
|
2016-01-12 23:52:28 +00:00
|
|
|
Summary: The unversioned Python RPM macros
|
|
|
|
|
2019-07-11 12:24:39 +00:00
|
|
|
# macros: MIT, compileall2.py: PSFv2
|
|
|
|
License: MIT and Python
|
2016-01-12 23:52:28 +00:00
|
|
|
Source0: macros.python
|
2016-01-15 03:49:29 +00:00
|
|
|
Source1: macros.python-srpm
|
2016-01-12 23:52:28 +00:00
|
|
|
Source2: macros.python2
|
|
|
|
Source3: macros.python3
|
2018-03-23 12:52:23 +00:00
|
|
|
Source4: macros.pybytecompile
|
2019-07-11 12:24:39 +00:00
|
|
|
Source5: https://github.com/fedora-python/compileall2/raw/v0.5.0/compileall2.py
|
2016-01-12 23:52:28 +00:00
|
|
|
|
|
|
|
BuildArch: noarch
|
2019-07-11 12:24:39 +00:00
|
|
|
# For %%python3_pkgversion used in %%python_provide and compileall2.py
|
|
|
|
Requires: python-srpm-macros >= 3-46
|
2016-01-12 23:52:28 +00:00
|
|
|
Obsoletes: python-macros < 3
|
|
|
|
Provides: python-macros = %{version}-%{release}
|
|
|
|
|
|
|
|
%description
|
|
|
|
This package contains the unversioned Python RPM macros, that most
|
|
|
|
implementations should rely on.
|
|
|
|
|
|
|
|
You should not need to install this package manually as the various
|
|
|
|
python?-devel packages require it. So install a python-devel package instead.
|
|
|
|
|
|
|
|
%package -n python-srpm-macros
|
|
|
|
Summary: RPM macros for building Python source packages
|
2019-07-11 12:24:39 +00:00
|
|
|
Requires: redhat-rpm-config
|
2016-01-12 23:52:28 +00:00
|
|
|
|
|
|
|
%description -n python-srpm-macros
|
|
|
|
RPM macros for building Python source packages.
|
|
|
|
|
2016-01-13 17:54:20 +00:00
|
|
|
%package -n python2-rpm-macros
|
2016-01-12 23:52:28 +00:00
|
|
|
Summary: RPM macros for building Python 2 packages
|
2018-09-20 09:59:50 +00:00
|
|
|
Requires: python-srpm-macros >= 3-38
|
2016-01-12 23:52:28 +00:00
|
|
|
# Would need to be different for each release - worth it?
|
|
|
|
#Conflicts: python2-devel < 2.7.11-3
|
|
|
|
|
2016-01-13 17:54:20 +00:00
|
|
|
%description -n python2-rpm-macros
|
2016-01-12 23:52:28 +00:00
|
|
|
RPM macros for building Python 2 packages.
|
|
|
|
|
2016-01-13 17:54:20 +00:00
|
|
|
%package -n python3-rpm-macros
|
2016-01-12 23:52:28 +00:00
|
|
|
Summary: RPM macros for building Python 3 packages
|
2018-09-20 09:59:50 +00:00
|
|
|
Requires: python-srpm-macros >= 3-38
|
2016-01-12 23:52:28 +00:00
|
|
|
|
2016-01-13 17:54:20 +00:00
|
|
|
%description -n python3-rpm-macros
|
2016-01-12 23:52:28 +00:00
|
|
|
RPM macros for building Python 3 packages.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
%install
|
2019-07-11 12:24:39 +00:00
|
|
|
mkdir -p %{buildroot}%{rpmmacrodir}
|
2018-03-23 12:52:23 +00:00
|
|
|
install -m 644 %{SOURCE0} %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} \
|
2019-07-11 12:24:39 +00:00
|
|
|
%{buildroot}%{rpmmacrodir}/
|
2016-01-12 23:52:28 +00:00
|
|
|
|
2019-07-11 12:24:39 +00:00
|
|
|
mkdir -p %{buildroot}%{_rpmconfigdir}/redhat
|
|
|
|
install -m 644 %{SOURCE5} \
|
|
|
|
%{buildroot}%{_rpmconfigdir}/redhat/
|
2016-05-12 18:28:05 +00:00
|
|
|
|
2016-01-12 23:52:28 +00:00
|
|
|
%files
|
2016-08-24 22:47:08 +00:00
|
|
|
%{rpmmacrodir}/macros.python
|
2018-03-23 12:52:23 +00:00
|
|
|
%{rpmmacrodir}/macros.pybytecompile
|
2016-01-12 23:52:28 +00:00
|
|
|
|
|
|
|
%files -n python-srpm-macros
|
2016-08-24 22:47:08 +00:00
|
|
|
%{rpmmacrodir}/macros.python-srpm
|
2019-07-11 12:24:39 +00:00
|
|
|
%{_rpmconfigdir}/redhat/compileall2.py
|
2016-01-12 23:52:28 +00:00
|
|
|
|
2016-01-13 17:54:20 +00:00
|
|
|
%files -n python2-rpm-macros
|
2016-08-24 22:47:08 +00:00
|
|
|
%{rpmmacrodir}/macros.python2
|
2016-01-12 23:52:28 +00:00
|
|
|
|
2016-01-13 17:54:20 +00:00
|
|
|
%files -n python3-rpm-macros
|
2016-08-24 22:47:08 +00:00
|
|
|
%{rpmmacrodir}/macros.python3
|
2016-01-12 23:52:28 +00:00
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2019-12-28 18:10:09 +00:00
|
|
|
* Sat Dec 28 2019 Miro Hrončok <mhroncok@redhat.com> - 3-51
|
|
|
|
- Define %%python, but make it work only if %%__python is redefined
|
2019-12-28 18:12:37 +00:00
|
|
|
- Add the %%pycached macro
|
2019-12-28 18:10:09 +00:00
|
|
|
|
2019-11-26 13:04:57 +00:00
|
|
|
* Tue Nov 26 2019 Lumír Balhar <lbalhar@redhat.com> - 3-50
|
|
|
|
- Update of bundled compileall2 module
|
|
|
|
|
2019-08-01 11:48:51 +00:00
|
|
|
* Fri Sep 27 2019 Miro Hrončok <mhroncok@redhat.com> - 3-49
|
|
|
|
- Define %%python2 and %%python3
|
|
|
|
|
2019-08-26 07:34:39 +00:00
|
|
|
* Mon Aug 26 2019 Miro Hrončok <mhroncok@redhat.com> - 3-48
|
|
|
|
- Drop --strip-file-prefix option from %%pyX_install_wheel macros, it is not needed
|
|
|
|
|
2019-07-26 16:06:16 +00:00
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3-47
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
2019-07-12 14:36:27 +00:00
|
|
|
* Fri Jul 12 2019 Miro Hrončok <mhroncok@redhat.com> - 3-46
|
|
|
|
- %%python_provide: Switch python2 and python3 behavior
|
|
|
|
- https://fedoraproject.org/wiki/Changes/Python_means_Python3
|
2019-07-11 12:24:39 +00:00
|
|
|
- Use compileall2 module for byte-compilation with Python >= 3.4
|
|
|
|
- Do not allow passing arguments to Python during byte-compilation
|
|
|
|
- Use `-s` argument for Python during byte-compilation
|
2019-07-12 14:36:27 +00:00
|
|
|
|
2019-07-09 11:40:59 +00:00
|
|
|
* Tue Jul 09 2019 Miro Hrončok <mhroncok@redhat.com> - 3-45
|
|
|
|
- %%python_provide: Don't try to obsolete %%_isa provides
|
|
|
|
|
2019-06-17 13:33:25 +00:00
|
|
|
* Mon Jun 17 2019 Miro Hrončok <mhroncok@redhat.com> - 3-44
|
|
|
|
- Make %%__python /usr/bin/python once again until we are ready
|
|
|
|
|
2019-06-10 12:45:52 +00:00
|
|
|
* Mon Jun 10 2019 Miro Hrončok <mhroncok@redhat.com> - 3-43
|
|
|
|
- Define %%python_sitelib, %%python_sitearch, %%python_version, %%python_version_nodots,
|
|
|
|
in rpm 4.15 those are no longer defined, the meaning of python is derived from %%__python.
|
|
|
|
- Usage of %%__python or the above-mentioned macros will error unless user defined.
|
2019-06-17 07:34:06 +00:00
|
|
|
- The %%python_provide macro no longer gives the arched provide for arched packages (#1705656)
|
2019-06-10 12:45:52 +00:00
|
|
|
|
2019-02-02 09:09:45 +00:00
|
|
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3-42
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
2018-12-20 13:35:02 +00:00
|
|
|
* Thu Dec 20 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3-41
|
|
|
|
- Add %%python_disable_dependency_generator
|
|
|
|
|
2018-12-05 14:35:41 +00:00
|
|
|
* Wed Dec 05 2018 Miro Hrončok <mhroncok@redhat.com> - 3-40
|
|
|
|
- Workaround leaking buildroot PATH in %py_byte_compile (#1647212)
|
|
|
|
|
2018-11-01 10:06:22 +00:00
|
|
|
* Thu Nov 01 2018 Petr Viktorin <pviktori@redhat.com> - 3-39
|
|
|
|
- Move "sleep 1" workaround from py3_build to py2_build (#1644923)
|
|
|
|
|
2018-09-20 09:59:50 +00:00
|
|
|
* Thu Sep 20 2018 Tomas Orsava <torsava@redhat.com> - 3-38
|
|
|
|
- Move the __python2/3 macros to the python-srpm-macros subpackage
|
|
|
|
- This facilitates using the %%{__python2/3} in Build/Requires
|
|
|
|
|
2018-08-15 16:26:37 +00:00
|
|
|
* Wed Aug 15 2018 Miro Hrončok <mhroncok@redhat.com> - 3-37
|
|
|
|
- Make %%py_byte_compile terminate build on SyntaxErrors (#1616219)
|
|
|
|
|
2018-08-15 09:56:37 +00:00
|
|
|
* Wed Aug 15 2018 Miro Hrončok <mhroncok@redhat.com> - 3-36
|
|
|
|
- Make %%py_build wokr if %%__python is defined to custom value
|
|
|
|
|
2018-07-28 12:21:13 +00:00
|
|
|
* Sat Jul 28 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3-35
|
|
|
|
- Change way how enabling-depgen works internally
|
|
|
|
|
2018-07-11 13:11:52 +00:00
|
|
|
* Sat Jul 14 2018 Tomas Orsava <torsava@redhat.com> - 3-34
|
|
|
|
- macros.pybytecompile: Detect Python version through sys.version_info instead
|
|
|
|
of guessing from the executable name
|
|
|
|
|
2018-07-14 01:58:10 +00:00
|
|
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3-33
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
2018-07-10 13:02:20 +00:00
|
|
|
* Tue Jul 10 2018 Tomas Orsava <torsava@redhat.com> - 3-32
|
|
|
|
- Fix %%py_byte_compile macro: when invoked with a Python 2 binary it also
|
|
|
|
mistakenly ran py3_byte_compile
|
|
|
|
|
2018-07-03 12:17:33 +00:00
|
|
|
* Tue Jul 03 2018 Miro Hrončok <mhroncok@redhat.com> - 3-31
|
|
|
|
- Add %%python3_platform useful for PYTHONPATH on arched builds
|
|
|
|
|
2018-06-18 17:54:12 +00:00
|
|
|
* Mon Jun 18 2018 Jason L Tibbitts III <tibbs@math.uh.edu> - 3-30
|
|
|
|
- Add %%pypi_source macro, as well as %%__pypi_url and
|
|
|
|
%%_pypi_default_extension.
|
|
|
|
|
2018-03-23 12:52:23 +00:00
|
|
|
* Wed Apr 18 2018 Miro Hrončok <mhroncok@redhat.com> - 3-29
|
|
|
|
- move macros.pybytecompile from python3-devel
|
|
|
|
|
2018-04-06 09:48:08 +00:00
|
|
|
* Fri Apr 06 2018 Tomas Orsava <torsava@redhat.com> - 3-28
|
|
|
|
- Fix the %%py_dist_name macro to not convert dots (".") into dashes, so that
|
|
|
|
submodules can be addressed as well
|
|
|
|
Resolves: rhbz#1564095
|
|
|
|
|
2018-02-03 11:57:13 +00:00
|
|
|
* Fri Mar 23 2018 Miro Hrončok <mhroncok@redhat.com> - 3-27
|
|
|
|
- make LDFLAGS propagated whenever CFLAGS are
|
|
|
|
|
2018-02-09 10:39:49 +00:00
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3-26
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2018-01-19 14:37:47 +00:00
|
|
|
* Fri Jan 19 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3-25
|
|
|
|
- Add %%python_enable_dependency_generator
|
|
|
|
|
2017-11-28 10:51:13 +00:00
|
|
|
* Tue Nov 28 2017 Tomas Orsava <torsava@redhat.com> - 3-24
|
|
|
|
- Remove platform-python macros (https://fedoraproject.org/wiki/Changes/Platform_Python_Stack)
|
|
|
|
|
2017-10-25 18:56:17 +00:00
|
|
|
* Thu Oct 26 2017 Ville Skyttä <ville.skytta@iki.fi> - 3-23
|
|
|
|
- Use -Es/-I to invoke macro scriptlets (#1506355)
|
|
|
|
|
2017-08-14 12:35:46 +00:00
|
|
|
* Wed Aug 02 2017 Tomas Orsava <torsava@redhat.com> - 3-22
|
|
|
|
- Add platform-python macros (https://fedoraproject.org/wiki/Changes/Platform_Python_Stack)
|
|
|
|
|
2017-07-27 11:44:18 +00:00
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3-21
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-03-03 12:52:35 +00:00
|
|
|
* Fri Mar 03 2017 Michal Cyprian <mcyprian@redhat.com> - 3-20
|
|
|
|
- Revert "Switch %%__python3 to /usr/libexec/system-python"
|
|
|
|
after the Fedora Change https://fedoraproject.org/wiki/Changes/Making_sudo_pip_safe
|
|
|
|
was postponed
|
|
|
|
|
2017-02-17 13:48:08 +00:00
|
|
|
* Fri Feb 17 2017 Michal Cyprian <mcyprian@redhat.com> - 3-19
|
|
|
|
- Switch %%__python3 to /usr/libexec/system-python
|
|
|
|
|
2017-02-11 10:23:28 +00:00
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3-18
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2017-01-23 17:52:17 +00:00
|
|
|
* Mon Jan 23 2017 Michal Cyprian <mcyprian@redhat.com> - 3-17
|
|
|
|
- Add --no-deps option to py_install_wheel macros
|
|
|
|
|
2017-01-17 09:28:13 +00:00
|
|
|
* Tue Jan 17 2017 Tomas Orsava <torsava@redhat.com> - 3-16
|
|
|
|
- Added macros for Build/Requires tags using Python dist tags:
|
|
|
|
https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
|
|
2016-11-24 14:53:47 +00:00
|
|
|
* Thu Nov 24 2016 Orion Poplawski <orion@cora.nwra.com> 3-15
|
2016-11-24 14:59:27 +00:00
|
|
|
- Make expanded macros start on the same line as the macro
|
2016-11-24 14:53:47 +00:00
|
|
|
|
2016-11-17 04:32:46 +00:00
|
|
|
* Wed Nov 16 2016 Orion Poplawski <orion@cora.nwra.com> 3-14
|
|
|
|
- Fix %%py3_install_wheel (bug #1395953)
|
|
|
|
|
2016-11-16 23:28:31 +00:00
|
|
|
* Wed Nov 16 2016 Orion Poplawski <orion@cora.nwra.com> 3-13
|
|
|
|
- Add missing sleeps to other build macros
|
|
|
|
- Fix build_egg macros
|
|
|
|
- Add %%py_build_wheel and %%py_install_wheel macros
|
|
|
|
|
2016-11-15 23:26:40 +00:00
|
|
|
* Tue Nov 15 2016 Orion Poplawski <orion@cora.nwra.com> 3-12
|
|
|
|
- Add %%py_build_egg and %%py_install_egg macros
|
|
|
|
- Allow multiple args to %%py_build/install macros
|
|
|
|
- Tidy up macro formatting
|
|
|
|
|
2016-08-24 22:47:08 +00:00
|
|
|
* Wed Aug 24 2016 Orion Poplawski <orion@cora.nwra.com> 3-11
|
|
|
|
- Use %%rpmmacrodir
|
|
|
|
|
2016-07-12 17:14:21 +00:00
|
|
|
* Tue Jul 12 2016 Orion Poplawski <orion@cora.nwra.com> 3-10
|
|
|
|
- Do not generate useless Obsoletes with %%{?_isa}
|
|
|
|
|
2016-05-13 20:20:24 +00:00
|
|
|
* Fri May 13 2016 Orion Poplawski <orion@cora.nwra.com> 3-9
|
|
|
|
- Make python-rpm-macros require python-srpm-macros (bug #1335860)
|
|
|
|
|
2016-05-12 18:28:05 +00:00
|
|
|
* Thu May 12 2016 Jason L Tibbitts III <tibbs@math.uh.edu> - 3-8
|
|
|
|
- Add single-second sleeps to work around setuptools bug.
|
|
|
|
|
2016-02-04 20:51:34 +00:00
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2016-01-15 03:50:53 +00:00
|
|
|
* Thu Jan 14 2016 Orion Poplawski <orion@cora.nwra.com> 3-6
|
|
|
|
- Fix typo in %%python_provide
|
|
|
|
|
2016-01-14 23:17:51 +00:00
|
|
|
* Thu Jan 14 2016 Orion Poplawski <orion@cora.nwra.com> 3-5
|
|
|
|
- Handle noarch python sub-packages (bug #1290900)
|
|
|
|
|
2016-01-13 17:54:20 +00:00
|
|
|
* Wed Jan 13 2016 Orion Poplawski <orion@cora.nwra.com> 3-4
|
|
|
|
- Fix python2/3-rpm-macros package names
|
|
|
|
|
2016-01-13 15:59:38 +00:00
|
|
|
* Thu Jan 7 2016 Orion Poplawski <orion@cora.nwra.com> 3-3
|
2016-01-12 23:52:28 +00:00
|
|
|
- Add empty %%prep and %%build
|
|
|
|
|
|
|
|
* Mon Jan 4 2016 Orion Poplawski <orion@cora.nwra.com> 3-2
|
|
|
|
- Combined package
|
|
|
|
|
|
|
|
* Wed Dec 30 2015 Orion Poplawski <orion@cora.nwra.com> 3-1
|
|
|
|
- Initial package
|