Refactor to use standard macros, not hard-coded paths

Signed-off-by: Michel Alexandre Salim <salimma@fedoraproject.org>
epel9
Michel Alexandre Salim 3 years ago
parent f44829e9fc
commit 4e27a744ca

@ -44,12 +44,11 @@ install -pm 644 %{SOURCE9} .
%install %install
#GPG Key #GPG Key
# Can't depend upon %%rpmmacrodir yet, since we're providing it
install -Dpm 644 %{SOURCE0} \ install -Dpm 644 %{SOURCE0} \
%buildroot/usr/lib/rpm/macros.d/macros.epel-rpm-macros %{buildroot}%{_rpmmacrodir}/macros.epel-rpm-macros
install -Dpm 644 %{SOURCE1} \ install -Dpm 644 %{SOURCE1} \
%buildroot/etc/rpm/macros.zzz-epel-override %{buildroot}%{_sysconfdir}/rpm/macros.zzz-epel-override
install -Dpm 755 %{SOURCE2} \ install -Dpm 755 %{SOURCE2} \
%{buildroot}%{_rpmconfigdir}/gpgverify %{buildroot}%{_rpmconfigdir}/gpgverify
@ -59,22 +58,23 @@ install -Dpm 644 %{SOURCE3} \
# misc macros # misc macros
install -Dpm 644 %{SOURCE150} \ install -Dpm 644 %{SOURCE150} \
%{buildroot}/usr/lib/rpm/macros.d/macros.build-constraints %{buildroot}%{_rpmmacrodir}/macros.build-constraints
%files %files
%license GPL %license GPL
/usr/lib/rpm/macros.d/macros.epel-rpm-macros %{_rpmmacrodir}/macros.epel-rpm-macros
/etc/rpm/macros.zzz-epel-override %{_sysconfdir}/rpm/macros.zzz-epel-override
%{_rpmconfigdir}/gpgverify %{_rpmconfigdir}/gpgverify
%{_fileattrsdir}/pythondist.attr %{_fileattrsdir}/pythondist.attr
# misc macros # misc macros
/usr/lib/rpm/macros.d/macros.build-constraints %{_rpmmacrodir}/macros.build-constraints
%changelog %changelog
* Sat Jul 24 2021 Michel Alexandre Salim <salimma@fedoraproject.org> - 8-23 * Mon Aug 2 2021 Michel Alexandre Salim <salimma@fedoraproject.org> - 8-23
- Add macros.build-constraints - Add macros.build-constraints
- Refactor to use standard macros, not hard-coded paths
* Wed Jul 14 2021 Miro Hrončok <mhroncok@redhat.com> - 8-22 * Wed Jul 14 2021 Miro Hrončok <mhroncok@redhat.com> - 8-22
- Introduce %%py3_check_import - Introduce %%py3_check_import

Loading…
Cancel
Save