Due to huge amount of bots taking interest in registering here registration is now invite-only. Any user can make an invite, you need to create it here and give resulting link to someone to register.
avatar
mikhailnov has added b89610d921
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.

... ... --- a/python3.spec
... ... +++ b/python3.spec
... ... @@ -377,9 +377,8 @@ chmod u+w %{buildroot}%{_libdir}/libpython%{lib_major}*.so.1.0 %{buildroot}%{_li
377 377
378 378
%multiarch_includes %{buildroot}/usr/include/python*/pyconfig.h
379 379
380
mkdir -p %{buildroot}%{_sysconfdir}/rpm/macros.d
381
install -m644 %{SOURCE2} %{buildroot}%{_sysconfdir}/rpm/macros.d/
382
install -m 644 %{SOURCE3} %{buildroot}/%{_sysconfdir}/rpm/macros.d/
380
%install_macro python3 %{SOURCE2}
381
%install_macro pybytecompile %{SOURCE3}
383 382
384 383
%check
385 384
# (misc) if the home is nfs mounted, rmdir fails
... ... @@ -393,7 +392,8 @@ export TMP="/tmp" TMPDIR="/tmp"
392 392
393 393
%files
394 394
%doc README.urpmi
395
%{_sysconfdir}/rpm/macros.d/*.macros
395
%{_rpmmacrodir}/*python3*
396
%{_rpmmacrodir}/*pybytecompile*
396 397
%{_includedir}/python*/pyconfig.h
397 398
%multiarch_includedir/python*/pyconfig.h
398 399
%{_libdir}/python*/config*/Makefile

Comments