Blame SPECS/python-rpm-macros.spec

2599dd
Name:           python-rpm-macros
2599dd
Version:        3
363efe
Release:        45%{?dist}
2599dd
Summary:        The unversioned Python RPM macros
2599dd
2599dd
License:        MIT
2599dd
Source0:        macros.python
2599dd
Source1:        macros.python-srpm
2599dd
Source2:        macros.python2
2599dd
Source3:        macros.python3
2599dd
Source4:        macros.pybytecompile
2599dd
2599dd
BuildArch:      noarch
2599dd
# For %%python3_pkgversion used in %%python_provide
2599dd
Requires:       python-srpm-macros
2599dd
Obsoletes:      python-macros < 3
2599dd
Provides:       python-macros = %{version}-%{release}
2599dd
2599dd
%description
2599dd
This package contains the unversioned Python RPM macros, that most
2599dd
implementations should rely on.
2599dd
2599dd
You should not need to install this package manually as the various
2599dd
python?-devel packages require it. So install a python-devel package instead.
2599dd
2599dd
%package -n python-srpm-macros
2599dd
Summary:        RPM macros for building Python source packages
2599dd
2599dd
%description -n python-srpm-macros
2599dd
RPM macros for building Python source packages.
2599dd
2599dd
%package -n python2-rpm-macros
2599dd
Summary:        RPM macros for building Python 2 packages
bae33e
# For %%py_setup
bae33e
Requires:       python-rpm-macros = %{version}-%{release}
2599dd
2599dd
%description -n python2-rpm-macros
2599dd
RPM macros for building Python 2 packages.
2599dd
2599dd
%package -n python3-rpm-macros
2599dd
Summary:        RPM macros for building Python 3 packages
bae33e
# Older versions have old pathfix.py without -ka options support
bae33e
Conflicts:      platform-python-devel < 3.6.8-35
bae33e
# For %%py_setup
bae33e
Requires:       python-rpm-macros = %{version}-%{release}
d6955c
# For %%_python3_pkgversion_with_dot needed by %%__pytest
d6955c
Requires:       python-srpm-macros = %{version}-%{release}
2599dd
2599dd
%description -n python3-rpm-macros
2599dd
RPM macros for building Python 3 packages.
2599dd
2599dd
2599dd
%prep
2599dd
2599dd
%build
2599dd
2599dd
%install
2599dd
mkdir -p %{buildroot}/%{rpmmacrodir}
2599dd
install -m 644 %{SOURCE0} %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} \
2599dd
  %{buildroot}/%{rpmmacrodir}/
2599dd
2599dd
2599dd
%files
2599dd
%{rpmmacrodir}/macros.python
2599dd
%{rpmmacrodir}/macros.pybytecompile
2599dd
2599dd
%files -n python-srpm-macros
2599dd
%{rpmmacrodir}/macros.python-srpm
2599dd
2599dd
%files -n python2-rpm-macros
2599dd
%{rpmmacrodir}/macros.python2
2599dd
2599dd
%files -n python3-rpm-macros
2599dd
%{rpmmacrodir}/macros.python3
2599dd
2599dd
2599dd
%changelog
363efe
* Wed Feb 22 2023 Miro Hrončok <mhroncok@redhat.com> - 3-45
363efe
- Fix %%python3_version macros for Python 3.10+
363efe
Resolves: rhbz#2169780
363efe
363efe
* Fri Oct 14 2022 Charalampos Stratakis <cstratak@redhat.com> - 3-44
363efe
- Backport the %%python_wheel_pkg_prefix and the %%python_wheel_dir macros from Fedora
363efe
Resolves: rhbz#2143991
363efe
d6955c
* Tue Jul 26 2022 Tomas Orsava <torsava@redhat.com> - 3-43
d6955c
- Make %%pytest macro respect %%python3_pkgversion
d6955c
Resolves: rhbz#2091462
d6955c
d6955c
* Wed May 25 2022 Miro Hrončok <mhroncok@redhat.com> - 3-42
d6955c
- Make %%py3_dist respect %%python3_pkgversion
d6955c
Resolves: rhbz#2090007
d6955c
bae33e
* Mon Feb 01 2021 Lumír Balhar <lbalhar@redhat.com> - 3-41
bae33e
- Fix dependencies between subpackages
bae33e
Resolves: rhbz#1892797
bae33e
bae33e
* Thu Jan 14 2021 Lumír Balhar <lbalhar@redhat.com> - 3-40
bae33e
- New macros backported from Fedora/EPEL
bae33e
Resolves: rhbz#1892797
bae33e
a4e7c7
* Tue Jun 16 2020 Charalampos Stratakis <cstratak@redhat.com> - 3-39
a4e7c7
- Strip tildes from %%version in %%pypi_source by default
a4e7c7
- Resolves: rhbz#1844902
a4e7c7
2e4bbb
* Mon Oct 14 2019 Charalampos Stratakis <cstratak@redhat.com> - 3-38
2e4bbb
- Fix the %%py_build macro to respect the global definition of %%__python
2e4bbb
- Resolves: rhbz#1757833
2e4bbb
2599dd
* Fri Dec 14 2018 Miro Hrončok <mhroncok@redhat.com> - 3-37
2599dd
- Workaround leaking buildroot PATH in %py_byte_compile
2599dd
- Resolves: rhbz#1644455
2599dd
2599dd
* Fri Dec 14 2018 Miro Hrončok <mhroncok@redhat.com> - 3-36
2599dd
- Make %%py_byte_compile terminate build on SyntaxErrors
2599dd
- Resolves: rhbz#1620168
2599dd
2599dd
* Mon Sep 17 2018 Tomas Orsava <torsava@redhat.com> - 3-35
2599dd
- Disable the python_provide macro for `python2-` prefixed packages
2599dd
- Resolves: rhbz#1636029
2599dd
2599dd
* Mon Jul 16 2018 Tomas Orsava <torsava@redhat.com> - 3-34
2599dd
- macros.pybytecompile: Macro was not line-continued properly and thus didn't work
2599dd
2599dd
* Wed Jul 11 2018 Tomas Orsava <torsava@redhat.com> - 3-33
2599dd
- macros.pybytecompile: Detect Python version through sys.version_info instead
2599dd
  of guessing from the executable name
2599dd
2599dd
* Tue Jul 10 2018 Tomas Orsava <torsava@redhat.com> - 3-32
2599dd
- Merging: (Tue Jul 10 2018 Tomas Orsava <torsava@redhat.com> - 3-32)
2599dd
  - Fix %%py_byte_compile macro: when invoked with a Python 2 binary it also
2599dd
    mistakenly ran py3_byte_compile
2599dd
- Merging: (Tue Jul 03 2018 Miro Hrončok <mhroncok@redhat.com> - 3-31)
2599dd
  - Add %%python3_platform useful for PYTHONPATH on arched builds
2599dd
- Merging: (Mon Jun 18 2018 Jason L Tibbitts III <tibbs@math.uh.edu> - 3-30)
2599dd
  - Add %%pypi_source macro, as well as %%__pypi_url and
2599dd
    %%_pypi_default_extension.
2599dd
- Merging: (Wed Apr 18 2018 Miro Hrončok <mhroncok@redhat.com> - 3-29)
2599dd
  - move macros.pybytecompile from python3-devel
2599dd
2599dd
* Wed Jun 27 2018 Tomas Orsava <torsava@redhat.com> - 3-31
2599dd
- Remove RHEL_ALLOW_PYTHON2_FOR_BUILD=1 from build and install macros,
2599dd
  as that is where the user needs to set it themself
2599dd
2599dd
* Thu Jun 21 2018 Tomas Orsava <torsava@redhat.com> - 3-30
2599dd
- Explicitly enable Python 2 when invoking Python 2 macros
2599dd
  See: https://url.corp.redhat.com/rhel8-py2
2599dd
2599dd
* Wed May 09 2018 Tomas Orsava <torsava@redhat.com> - 3-29
2599dd
- Switch the Python 3 executable to /usr/libexec/platform-python
2599dd
- Update macros using pip or easy_install to be invoked through the main
2599dd
  executable
2599dd
2599dd
* Fri Apr 06 2018 Tomas Orsava <torsava@redhat.com> - 3-28
2599dd
- Fix the %%py_dist_name macro to not convert dots (".") into dashes, so that
2599dd
  submodules can be addressed as well
2599dd
Resolves: rhbz#1564095
2599dd
2599dd
* Fri Mar 23 2018 Miro Hrončok <mhroncok@redhat.com> - 3-27
2599dd
- make LDFLAGS propagated whenever CFLAGS are
2599dd
2599dd
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3-26
2599dd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
2599dd
2599dd
* Fri Jan 19 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3-25
2599dd
- Add %%python_enable_dependency_generator
2599dd
2599dd
* Tue Nov 28 2017 Tomas Orsava <torsava@redhat.com> - 3-24
2599dd
- Remove platform-python macros (https://fedoraproject.org/wiki/Changes/Platform_Python_Stack)
2599dd
2599dd
* Thu Oct 26 2017 Ville Skyttä <ville.skytta@iki.fi> - 3-23
2599dd
- Use -Es/-I to invoke macro scriptlets (#1506355)
2599dd
2599dd
* Wed Aug 02 2017 Tomas Orsava <torsava@redhat.com> - 3-22
2599dd
- Add platform-python macros (https://fedoraproject.org/wiki/Changes/Platform_Python_Stack)
2599dd
2599dd
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3-21
2599dd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
2599dd
2599dd
* Fri Mar 03 2017 Michal Cyprian <mcyprian@redhat.com> - 3-20
2599dd
- Revert "Switch %%__python3 to /usr/libexec/system-python"
2599dd
  after the Fedora Change https://fedoraproject.org/wiki/Changes/Making_sudo_pip_safe
2599dd
  was postponed
2599dd
2599dd
* Fri Feb 17 2017 Michal Cyprian <mcyprian@redhat.com> - 3-19
2599dd
- Switch %%__python3 to /usr/libexec/system-python
2599dd
2599dd
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3-18
2599dd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
2599dd
2599dd
* Mon Jan 23 2017 Michal Cyprian <mcyprian@redhat.com> - 3-17
2599dd
- Add --no-deps option to py_install_wheel macros
2599dd
2599dd
* Tue Jan 17 2017 Tomas Orsava <torsava@redhat.com> - 3-16
2599dd
- Added macros for Build/Requires tags using Python dist tags:
2599dd
  https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
2599dd
2599dd
* Thu Nov 24 2016 Orion Poplawski <orion@cora.nwra.com> 3-15
2599dd
- Make expanded macros start on the same line as the macro
2599dd
2599dd
* Wed Nov 16 2016 Orion Poplawski <orion@cora.nwra.com> 3-14
2599dd
- Fix %%py3_install_wheel (bug #1395953)
2599dd
2599dd
* Wed Nov 16 2016 Orion Poplawski <orion@cora.nwra.com> 3-13
2599dd
- Add missing sleeps to other build macros
2599dd
- Fix build_egg macros
2599dd
- Add %%py_build_wheel and %%py_install_wheel macros
2599dd
2599dd
* Tue Nov 15 2016 Orion Poplawski <orion@cora.nwra.com> 3-12
2599dd
- Add %%py_build_egg and %%py_install_egg macros
2599dd
- Allow multiple args to %%py_build/install macros
2599dd
- Tidy up macro formatting
2599dd
2599dd
* Wed Aug 24 2016 Orion Poplawski <orion@cora.nwra.com> 3-11
2599dd
- Use %%rpmmacrodir
2599dd
2599dd
* Tue Jul 12 2016 Orion Poplawski <orion@cora.nwra.com> 3-10
2599dd
- Do not generate useless Obsoletes with %%{?_isa}
2599dd
2599dd
* Fri May 13 2016 Orion Poplawski <orion@cora.nwra.com> 3-9
2599dd
- Make python-rpm-macros require python-srpm-macros (bug #1335860)
2599dd
2599dd
* Thu May 12 2016 Jason L Tibbitts III <tibbs@math.uh.edu> - 3-8
2599dd
- Add single-second sleeps to work around setuptools bug.
2599dd
2599dd
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3-7
2599dd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
2599dd
2599dd
* Thu Jan 14 2016 Orion Poplawski <orion@cora.nwra.com> 3-6
2599dd
- Fix typo in %%python_provide
2599dd
2599dd
* Thu Jan 14 2016 Orion Poplawski <orion@cora.nwra.com> 3-5
2599dd
- Handle noarch python sub-packages (bug #1290900)
2599dd
2599dd
* Wed Jan 13 2016 Orion Poplawski <orion@cora.nwra.com> 3-4
2599dd
- Fix python2/3-rpm-macros package names
2599dd
2599dd
* Thu Jan 7 2016 Orion Poplawski <orion@cora.nwra.com> 3-3
2599dd
- Add empty %%prep and %%build
2599dd
2599dd
* Mon Jan 4 2016 Orion Poplawski <orion@cora.nwra.com> 3-2
2599dd
- Combined package
2599dd
2599dd
* Wed Dec 30 2015 Orion Poplawski <orion@cora.nwra.com> 3-1
2599dd
- Initial package