mirror of
https://abf.rosa.ru/djam/python38.git
synced 2025-02-23 15:22:50 +00:00
Use universal macro installation for both RPM 4 and RPM 5
%%install_macro has been added to the RPM 4 package, %%install_macro and %%_rpmacrodir will be added to RPM 5.
This commit is contained in:
parent
037f1a2f53
commit
b89610d921
1 changed files with 4 additions and 4 deletions
|
@ -377,9 +377,8 @@ chmod u+w %{buildroot}%{_libdir}/libpython%{lib_major}*.so.1.0 %{buildroot}%{_li
|
|||
|
||||
%multiarch_includes %{buildroot}/usr/include/python*/pyconfig.h
|
||||
|
||||
mkdir -p %{buildroot}%{_sysconfdir}/rpm/macros.d
|
||||
install -m644 %{SOURCE2} %{buildroot}%{_sysconfdir}/rpm/macros.d/
|
||||
install -m 644 %{SOURCE3} %{buildroot}/%{_sysconfdir}/rpm/macros.d/
|
||||
%install_macro python3 %{SOURCE2}
|
||||
%install_macro pybytecompile %{SOURCE3}
|
||||
|
||||
%check
|
||||
# (misc) if the home is nfs mounted, rmdir fails
|
||||
|
@ -393,7 +392,8 @@ export TMP="/tmp" TMPDIR="/tmp"
|
|||
|
||||
%files
|
||||
%doc README.urpmi
|
||||
%{_sysconfdir}/rpm/macros.d/*.macros
|
||||
%{_rpmmacrodir}/*python3*
|
||||
%{_rpmmacrodir}/*pybytecompile*
|
||||
%{_includedir}/python*/pyconfig.h
|
||||
%multiarch_includedir/python*/pyconfig.h
|
||||
%{_libdir}/python*/config*/Makefile
|
||||
|
|
Loading…
Add table
Reference in a new issue