Blame SPECS/python-rpm-macros.spec

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