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
#GPG Key
# Can't depend upon %%rpmmacrodir yet, since we're providing it
install -Dpm 644 %{SOURCE0} \
%buildroot/usr/lib/rpm/macros.d/macros.epel-rpm-macros
%{buildroot}%{_rpmmacrodir}/macros.epel-rpm-macros
install -Dpm 644 %{SOURCE1} \
%buildroot/etc/rpm/macros.zzz-epel-override
%{buildroot}%{_sysconfdir}/rpm/macros.zzz-epel-override
install -Dpm 755 %{SOURCE2} \
%{buildroot}%{_rpmconfigdir}/gpgverify
@ -59,22 +58,23 @@ install -Dpm 644 %{SOURCE3} \
# misc macros
install -Dpm 644 %{SOURCE150} \
%{buildroot}/usr/lib/rpm/macros.d/macros.build-constraints
%{buildroot}%{_rpmmacrodir}/macros.build-constraints
%files
%license GPL
/usr/lib/rpm/macros.d/macros.epel-rpm-macros
/etc/rpm/macros.zzz-epel-override
%{_rpmmacrodir}/macros.epel-rpm-macros
%{_sysconfdir}/rpm/macros.zzz-epel-override
%{_rpmconfigdir}/gpgverify
%{_fileattrsdir}/pythondist.attr
# misc macros
/usr/lib/rpm/macros.d/macros.build-constraints
%{_rpmmacrodir}/macros.build-constraints
%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
- Refactor to use standard macros, not hard-coded paths
* Wed Jul 14 2021 Miro Hrončok <mhroncok@redhat.com> - 8-22
- Introduce %%py3_check_import

Loading…
Cancel
Save