Blame SPECS/python-rpm-macros.spec

f5a09a
%global rpmmacrodir %{_sysconfdir}/rpm
f5a09a
f5a09a
Name:           python-rpm-macros
f5a09a
Version:        3
90b56c
Release:        34%{?dist}
f5a09a
Summary:        The unversioned Python RPM macros
f5a09a
f5a09a
License:        MIT
f5a09a
Source0:        macros.python
f5a09a
Source1:        macros.python-srpm
f5a09a
Source2:        macros.python2
f5a09a
Source3:        macros.python3
f5a09a
Source4:        macros.pybytecompile
f5a09a
f5a09a
BuildArch:      noarch
f5a09a
# The macro file has been moved from the python-devel package
f5a09a
Conflicts:      python-devel < 2.7.5-78
f5a09a
# For %%python3_pkgversion used in %%python_provide
f5a09a
Requires:       python-srpm-macros
f5a09a
f5a09a
%description
f5a09a
This package contains the unversioned Python RPM macros, that most
f5a09a
implementations should rely on.
f5a09a
f5a09a
You should not need to install this package manually as the various
f5a09a
python?-devel packages require it. So install a python-devel package instead.
f5a09a
f5a09a
%package -n python-srpm-macros
f5a09a
Summary:        RPM macros for building Python source packages
f5a09a
f5a09a
%description -n python-srpm-macros
f5a09a
RPM macros for building Python source packages.
f5a09a
f5a09a
%package -n python2-rpm-macros
f5a09a
Summary:        RPM macros for building Python 2 packages
f5a09a
# The macro file has been moved from the python-devel package
f5a09a
Conflicts:      python-devel < 2.7.5-78
f5a09a
f5a09a
%description -n python2-rpm-macros
f5a09a
RPM macros for building Python 2 packages.
f5a09a
f5a09a
%package -n python3-rpm-macros
f5a09a
Summary:        RPM macros for building Python 3 packages
f5a09a
# Would need to be different for each release - worth it?
f5a09a
#Conflicts:      python3-devel < 3.5.1-3
f5a09a
f5a09a
%description -n python3-rpm-macros
f5a09a
RPM macros for building Python 3 packages.
f5a09a
f5a09a
f5a09a
%prep
f5a09a
f5a09a
%build
f5a09a
f5a09a
%install
f5a09a
mkdir -p %{buildroot}/%{_sysconfdir}/rpm
f5a09a
mkdir -p %{buildroot}/%{rpmmacrodir}
f5a09a
install -m 644 %{SOURCE0} %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} \
f5a09a
  %{buildroot}/%{_sysconfdir}/rpm/
f5a09a
f5a09a
f5a09a
%files
f5a09a
%{rpmmacrodir}/macros.python
f5a09a
%{rpmmacrodir}/macros.pybytecompile
f5a09a
f5a09a
%files -n python-srpm-macros
f5a09a
%{rpmmacrodir}/macros.python-srpm
f5a09a
f5a09a
%files -n python2-rpm-macros
f5a09a
%{rpmmacrodir}/macros.python2
f5a09a
f5a09a
%files -n python3-rpm-macros
f5a09a
%{rpmmacrodir}/macros.python3
f5a09a
f5a09a
f5a09a
%changelog
90b56c
* Tue Mar 17 2020 Miro Hrončok <mhroncok@redhat.com> - 3-34
90b56c
- Make the %%py3_dist macro compatible with Python RPM generators
90b56c
Resolves: rhbz#1812665
90b56c
90b56c
* Wed Mar 04 2020 Charalampos Stratakis <cstratak@redhat.com> - 3-33
90b56c
- Fix the %%py_build macro to respect the global definition of %%__python
90b56c
Resolves: rhbz#1757834
90b56c
f5a09a
* Wed Apr 24 2019 Miro Hrončok <mhroncok@redhat.com> - 3-32
f5a09a
- %%python_provide: Obsolete and provide python36- from python3-
f5a09a
- %%python_provide: Provide python3- from python36-
f5a09a
Resolves: rhbz#1702719
f5a09a
f5a09a
* Mon Jan 14 2019 Lumír Balhar <lbalhar@redhat.com> - 3-31
f5a09a
- Converting specfile from F28 to RHEL7
f5a09a
- Move the macros to the standard RHEL7 macro location at /etc/rpm/,
f5a09a
  instead of Fedora's location at /usr/lib/rpm/macros.d/
f5a09a
- Import the macros.python{,2} files from the python-devel package where they
f5a09a
  resided until now, and Conflict with that old version of python-devel
f5a09a
- Import the macros.pybytecompile from Fedora rawhide / RHEL8
f5a09a
Resolves: rhbz#1660579
f5a09a
f5a09a
* Mon Jul 09 2018 Jason L Tibbitts III <tibbs@math.uh.edu> - 3-30
f5a09a
- Backport %%python3_platform macro.
f5a09a
f5a09a
* Mon Jun 18 2018 Jason L Tibbitts III <tibbs@math.uh.edu> - 3-29
f5a09a
- Add %%pypi_source macro.
f5a09a
f5a09a
* Fri Apr 06 2018 Tomas Orsava <torsava@redhat.com> - 3-28
f5a09a
- Fix the %%py_dist_name macro to not convert dots (".") into dashes, so that
f5a09a
  submodules can be addressed as well Resolves: rhbz#1564095
f5a09a
f5a09a
* Fri Mar 23 2018 Miro Hrončok <mhroncok@redhat.com> - 3-27
f5a09a
- make LDFLAGS propagated whenever CFLAGS are
f5a09a
f5a09a
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3-26
f5a09a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
f5a09a
f5a09a
* Fri Jan 19 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3-25
f5a09a
- Add %%python_enable_dependency_generator
f5a09a
f5a09a
* Tue Nov 28 2017 Tomas Orsava <torsava@redhat.com> - 3-24
f5a09a
- Remove platform-python macros (https://fedoraproject.org/wiki/Changes/Platform_Python_Stack)
f5a09a
f5a09a
* Thu Oct 26 2017 Ville Skyttä <ville.skytta@iki.fi> - 3-23
f5a09a
- Use -Es/-I to invoke macro scriptlets (#1506355)
f5a09a
f5a09a
* Wed Aug 02 2017 Tomas Orsava <torsava@redhat.com> - 3-22
f5a09a
- Add platform-python macros (https://fedoraproject.org/wiki/Changes/Platform_Python_Stack)
f5a09a
f5a09a
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3-21
f5a09a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
f5a09a
f5a09a
* Fri Mar 03 2017 Michal Cyprian <mcyprian@redhat.com> - 3-20
f5a09a
- Revert "Switch %%__python3 to /usr/libexec/system-python"
f5a09a
  after the Fedora Change https://fedoraproject.org/wiki/Changes/Making_sudo_pip_safe
f5a09a
  was postponed
f5a09a
f5a09a
* Fri Feb 17 2017 Michal Cyprian <mcyprian@redhat.com> - 3-19
f5a09a
- Switch %%__python3 to /usr/libexec/system-python
f5a09a
f5a09a
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3-18
f5a09a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
f5a09a
f5a09a
* Mon Jan 23 2017 Michal Cyprian <mcyprian@redhat.com> - 3-17
f5a09a
- Add --no-deps option to py_install_wheel macros
f5a09a
f5a09a
* Tue Jan 17 2017 Tomas Orsava <torsava@redhat.com> - 3-16
f5a09a
- Added macros for Build/Requires tags using Python dist tags:
f5a09a
  https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
f5a09a
f5a09a
* Thu Nov 24 2016 Orion Poplawski <orion@cora.nwra.com> 3-15
f5a09a
- Make expanded macros start on the same line as the macro
f5a09a
f5a09a
* Wed Nov 16 2016 Orion Poplawski <orion@cora.nwra.com> 3-14
f5a09a
- Fix %%py3_install_wheel (bug #1395953)
f5a09a
f5a09a
* Wed Nov 16 2016 Orion Poplawski <orion@cora.nwra.com> 3-13
f5a09a
- Add missing sleeps to other build macros
f5a09a
- Fix build_egg macros
f5a09a
- Add %%py_build_wheel and %%py_install_wheel macros
f5a09a
f5a09a
* Tue Nov 15 2016 Orion Poplawski <orion@cora.nwra.com> 3-12
f5a09a
- Add %%py_build_egg and %%py_install_egg macros
f5a09a
- Allow multiple args to %%py_build/install macros
f5a09a
- Tidy up macro formatting
f5a09a
f5a09a
* Wed Aug 24 2016 Orion Poplawski <orion@cora.nwra.com> 3-11
f5a09a
- Use %%rpmmacrodir
f5a09a
f5a09a
* Tue Jul 12 2016 Orion Poplawski <orion@cora.nwra.com> 3-10
f5a09a
- Do not generate useless Obsoletes with %%{?_isa}
f5a09a
f5a09a
* Fri May 13 2016 Orion Poplawski <orion@cora.nwra.com> 3-9
f5a09a
- Make python-rpm-macros require python-srpm-macros (bug #1335860)
f5a09a
f5a09a
* Thu May 12 2016 Jason L Tibbitts III <tibbs@math.uh.edu> - 3-8
f5a09a
- Add single-second sleeps to work around setuptools bug.
f5a09a
f5a09a
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3-7
f5a09a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
f5a09a
f5a09a
* Thu Jan 14 2016 Orion Poplawski <orion@cora.nwra.com> 3-6
f5a09a
- Fix typo in %%python_provide
f5a09a
f5a09a
* Thu Jan 14 2016 Orion Poplawski <orion@cora.nwra.com> 3-5
f5a09a
- Handle noarch python sub-packages (bug #1290900)
f5a09a
f5a09a
* Wed Jan 13 2016 Orion Poplawski <orion@cora.nwra.com> 3-4
f5a09a
- Fix python2/3-rpm-macros package names
f5a09a
f5a09a
* Thu Jan 7 2016 Orion Poplawski <orion@cora.nwra.com> 3-3
f5a09a
- Add empty %%prep and %%build
f5a09a
f5a09a
* Mon Jan 4 2016 Orion Poplawski <orion@cora.nwra.com> 3-2
f5a09a
- Combined package
f5a09a
f5a09a
* Wed Dec 30 2015 Orion Poplawski <orion@cora.nwra.com> 3-1
f5a09a
- Initial package