1ebe369
Name:           epel-rpm-macros
1ebe369
Version:        8
93fbfe9
Release:        11
1ebe369
Summary:        Extra Packages for Enterprise Linux RPM macros
1ebe369
1ebe369
Group:          System Environment/Base
1ebe369
License:        GPLv2
1ebe369
1ebe369
# This is a EPEL maintained package which is specific to
1ebe369
# our distribution.  Thus the source is only available from
1ebe369
# within this srpm.
1ebe369
URL:            http://download.fedoraproject.org/pub/epel
1ebe369
Source0:        macros.epel-rpm-macros
1ebe369
Source1:        macros.zzz-epel-override
4bf0de7
Source2:        gpgverify
0a2c9ff
Source3:        pythondist.attr
1ebe369
Source9:        GPL
1ebe369
1ebe369
BuildArch:      noarch
1ebe369
Requires:       redhat-release >= %{version}
1ebe369
# For python buildroot macros
1ebe369
Requires:       python-srpm-macros
1ebe369
# Since the RHEL python-devel package doesn't require them, bring them in here
1ebe369
Requires:       python-rpm-macros
1ebe369
Requires:       python2-rpm-macros
93fbfe9
# Make sure EPEL8's Python 3 packages use /usr/bin/python3.6 or python3.8 
93fbfe9
#   instead of /usr/libexec/platform-python
93fbfe9
Requires:       (python36-rpm-macros if python36-devel)
93fbfe9
Requires:       (python38-rpm-macros if python38-devel)
1ebe369
1ebe369
%description
1ebe369
This package contains the Extra Packages for Enterprise Linux (EPEL) RPM
1ebe369
macros for building EPEL packages.
1ebe369
1ebe369
%prep
1ebe369
%setup -cT
1ebe369
install -pm 644 %{SOURCE9} .
1ebe369
1ebe369
%install
1ebe369
#GPG Key
1ebe369
# Can't depend upon %%rpmmacrodir yet, since we're providing it
1ebe369
install -Dpm 644 %{SOURCE0} \
1ebe369
    %buildroot/usr/lib/rpm/macros.d/macros.epel-rpm-macros
1ebe369
1ebe369
install -Dpm 644 %{SOURCE1} \
1ebe369
    %buildroot/etc/rpm/macros.zzz-epel-override
1ebe369
4bf0de7
install -Dpm 755 %{SOURCE2} \
4bf0de7
    %{buildroot}%{_rpmconfigdir}/gpgverify
4bf0de7
0a2c9ff
install -Dpm 644 %{SOURCE3} \
0a2c9ff
    %{buildroot}%{_fileattrsdir}/pythondist.attr
0a2c9ff
1ebe369
%files
1ebe369
%license GPL
1ebe369
/usr/lib/rpm/macros.d/macros.epel-rpm-macros
1ebe369
/etc/rpm/macros.zzz-epel-override
4bf0de7
%{_rpmconfigdir}/gpgverify
0a2c9ff
%{_fileattrsdir}/pythondist.attr
1ebe369
1ebe369
1ebe369
%changelog
93fbfe9
* Thu Apr 30 2020 Troy Dawson <tdawson@redhat.com> - 8-11
93fbfe9
- Install python36-rpm-macros or python38-rpm-macros correctly
93fbfe9
db76dd3
* Tue Apr 14 2020 Miro Hrončok <mhroncok@redhat.com> - 8-10
db76dd3
- Define %%python, but make it work only if %%__python is redefined
64bc4a7
- Add the %%pycached macro
db76dd3
7d7c796
* Fri Apr 03 2020 Troy Dawson <tdawson@redhat.com> - 8-9
7d7c796
- Add %qt5_qtwebengine_arches to macros
7d7c796
55df886
* Thu Nov 21 2019 Troy Dawson <tdawson@redhat.com> - 8-8
55df886
- Bump release to be in sync with playground build.
55df886
0a2c9ff
* Wed Nov 20 2019 Troy Dawson <tdawson@redhat.com> - 8-6
0a2c9ff
- Enable python requires generator
0a2c9ff
76a0765
* Wed Nov 13 2019 Kevin Fenzi <kevin@scrye.com> - 8-5
76a0765
- Bump release, because 8-4 was built in epel8-playground
76a0765
4bf0de7
* Wed Oct 30 2019 Orion Poplawski <orion@nwra.com> - 8-4
4bf0de7
- Add gpgverify macro and script
4bf0de7
c32cf91
* Mon Oct 21 2019 Miro Hrončok <mhroncok@redhat.com> - 8-3
c32cf91
- Make sure EPEL8's Python 3 packages use /usr/bin/python3.6 instead of /usr/libexec/platform-python
c32cf91
77c53c7
* Mon Sep 30 2019 Miro Hrončok <mhroncok@redhat.com> - 8-2
77c53c7
- Define %%python2 and %%python3
77c53c7
1ebe369
* Wed Jun  5 2019 Stephen Smoogen <smooge@smoogen-laptop.localdomain> - 8-1
1ebe369
- Make an initial macro set for 8. 
1ebe369
1ebe369
* Fri Jun 15 2018 Jason L Tibbitts III <tibbs@math.uh.edu> - 7-19
1ebe369
- Add %%set_build_flags macro.
1ebe369
1ebe369
* Mon May 14 2018 Jason L Tibbitts III <tibbs@math.uh.edu> - 7-18
1ebe369
- Add various %%build_* macros from Fedora.
1ebe369
1ebe369
* Fri Apr 20 2018 Jason L Tibbitts III <tibbs@math.uh.edu> - 7-17
1ebe369
- Add %%_rpmmacrodir from Fedora.
1ebe369
1ebe369
* Fri Apr 20 2018 Jason L Tibbitts III <tibbs@math.uh.edu> - 7-16
1ebe369
- Add %%_metainfodir macro.
1ebe369
1ebe369
* Thu Feb 15 2018 Jason L Tibbitts III <tibbs@math.uh.edu> - 7-15
1ebe369
- Add %%vimfiles_root (bug #1545901)
1ebe369
1ebe369
* Mon Jan 29 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 7-14
1ebe369
- Backport ldconfig macros
1ebe369
1ebe369
* Thu Dec 15 2016 Jason L Tibbitts III <tibbs@math.uh.edu> - 7-13
1ebe369
- Backport vpath macros.
1ebe369
1ebe369
* Fri Dec 9 2016 Orion Poplawski <orion@cora.nwra.com> 7-12
1ebe369
- Fix override macro file name
1ebe369
1ebe369
* Tue Dec 6 2016 Orion Poplawski <orion@cora.nwra.com> 7-11
1ebe369
- Override %%_pkgdocdir (bug #1392354)
1ebe369
1ebe369
* Fri Sep 16 2016 Jason L Tibbitts III <tibbs@math.uh.edu> - 7-10
1ebe369
- Add overrides file (seems that it must be in /etc/rpm) and override
1ebe369
  %%nodejs_arches.
1ebe369
1ebe369
* Thu Aug 11 2016 Jason L Tibbitts III <tibbs@math.uh.edu> - 7-9
1ebe369
- Add %%bash_completion_dir.
1ebe369
1ebe369
* Wed Mar 30 2016 Jason L Tibbitts III <tibbs@math.uh.edu> - 7-8
1ebe369
- Use simpler definition of %%epel.
1ebe369
1ebe369
* Thu Feb 18 2016 Jason L Tibbitts III <tibbs@math.uh.edu> - 7-7
1ebe369
- Add mono macros requested in rhbz 1295117.
1ebe369
1ebe369
* Mon Jan 25 2016 Orion Poplawski <orion@cora.nwra.com> 7-6
1ebe369
- Bring in python macros via the python-rpm-macros packages
1ebe369
- Use %%setup so fedpkg local works
1ebe369
1ebe369
* Mon Jan 4 2016 Orion Poplawski <orion@cora.nwra.com> 7-5
1ebe369
- Fix python_provide macro for EPEL7 python3 package names
1ebe369
1ebe369
* Thu Oct  8 2015 Thomas Spura <tomspur@fedoraproject.org> - 7-4
1ebe369
- Fix python_provide macro to use epoch and obsolete previous python- package
1ebe369
1ebe369
* Tue Aug 18 2015 Orion Poplawski <orion@cora.nwra.com> 7-3
1ebe369
- Fix py2_install macro
1ebe369
- Cleanup spec
1ebe369
1ebe369
* Sat Aug 01 2015 Kevin Fenzi <kevin@scrye.com> 7-2
1ebe369
- Add python macros. Fixes bug #1241655
1ebe369
1ebe369
* Wed Apr 29 2015 Kevin Fenzi <kevin@scrye.com> 7-1
1ebe369
- Initial version for epel.