Description of problem: epel 7 already contains %{epel} macro since epel-release-7-3. [root@host /]# rpm -ql epel-release /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 /etc/yum.repos.d/epel-testing.repo /etc/yum.repos.d/epel.repo /usr/lib/rpm/macros.d/macros.epel /usr/lib/systemd/system-preset/90-epel.preset /usr/share/doc/epel-release-7 /usr/share/doc/epel-release-7/GPL [root@host /]# cat /usr/lib/rpm/macros.d/macros.epel # epel macros %epel %{?rhel}%{!?rhel:7} It would be good to have the same in epel6 Version-Release number of selected component (if applicable): epel-release-6-8.noarch How reproducible: Deterministic Steps to Reproduce: 1. yum install -y epel-release 2. rpm --eval "%{epel}" Actual results: macro is not defined and not expanded Expected results: macro is defined with some reasonable value (probably 6) Additional info: [root@host /]# rpm -ql epel-release-6-8.noarch /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6 /etc/rpm/macros.ghc-srpm /etc/yum.repos.d/epel-testing.repo /etc/yum.repos.d/epel.repo /usr/share/doc/epel-release-6 /usr/share/doc/epel-release-6/GPL [root@host /]# cat /etc/rpm/macros.ghc-srpm # macro defining the archs that ghc runs on in epel %ghc_arches %{ix86} x86_64 ppc64 %ghc_arches_with_ghci %{ix86} x86_64
Moving to epel-rpm-macros Out of curiosity, what do you use this macro for?
Is epel-rpm-macros installed in mock for epel-6-...? If not then I would prefer to have it in package epel-release the same as in epel-release-7-3. And answer to your question is: We have optional dependency on unit test library cmocka. It's available only in epel. And we use the same upstream spec file for rhel, epel(centos) and fedora. An currently we cannot install optional build dependency in epel because %{epel} is not available in epel6 and result of this is that some unit test are not executed.
epel-rpm-macros is in the buildroot for all EPEL releases.
Thank you for info BTW "epel" macro is defined twice in epel7 [root@host /]# grep epel /usr/lib/rpm/macros.d/macros.epel-rpm-macros /usr/lib/rpm/macros.d/macros.epel /usr/lib/rpm/macros.d/macros.epel-rpm-macros:# epel macros /usr/lib/rpm/macros.d/macros.epel-rpm-macros:%epel %{?rhel}%{!?rhel:7} /usr/lib/rpm/macros.d/macros.epel:# epel macros /usr/lib/rpm/macros.d/macros.epel:%epel %{?rhel}%{!?rhel:7} [root@host /]# rpm -qf /usr/lib/rpm/macros.d/macros.epel-rpm-macros /usr/lib/rpm/macros.d/macros.epel epel-rpm-macros-7-7.noarch epel-release-7-5.noarch
Duplicate macros don't actually hurt (as long as they don't disagree) but I'm just going to move all macros out of epel-release and into epel-rpm-macros. I'll add the %epel macro to el6 and el5 as well, though the definition currently used in EL7 is.... pointless. Just "%epel 7" should be completely sufficient. I recall some discussion about this, probably on IRC, but it's been long enough that I doubt I could find it.
epel-rpm-macros-6-6 has been submitted as an update to Fedora EPEL 6. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-7c8a4eb5b6
epel-rpm-macros-5-2 has been submitted as an update to Fedora EPEL 5. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-0af0cf0896
epel-release-7-6 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-5b2ed552c8
epel-rpm-macros-6-7 has been submitted as an update to Fedora EPEL 6. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-e5a18d1bbd
The currently submitted updates implement %epel on all releases, remove the duplicate %epel definition from epel-release-7, and begin the procedure of moving the GHC macros out of epel-release-6 by copying them into epel-rpm-macros-6.
epel-rpm-macros-6-6 has been pushed to the Fedora EPEL 6 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-7c8a4eb5b6
epel-rpm-macros-5-2 has been pushed to the Fedora EPEL 5 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-0af0cf0896
epel-rpm-macros-6-7 has been pushed to the Fedora EPEL 6 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-e5a18d1bbd
epel-release-7-6 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-5b2ed552c8
epel-rpm-macros-5-3 has been submitted as an update to Fedora EPEL 5. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-0af0cf0896
epel-rpm-macros-5-3 has been pushed to the Fedora EPEL 5 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-0af0cf0896
epel-rpm-macros-5-3 has been pushed to the Fedora EPEL 5 stable repository. If problems still persist, please make note of it in this bug report.
epel-release-7-6 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.
epel-rpm-macros-6-7 has been pushed to the Fedora EPEL 6 stable repository. If problems still persist, please make note of it in this bug report.
This should all be done now.
Yes, it works well. Thank you very much.