mikhailnov has added 3d193c2fd9 Add %%install_macro which has been invented by us as a common macro i...
...nstallation method for both rpm5 and rpm4
... | ... | --- a/macros/mandriva.in |
... | ... | +++ b/macros/mandriva.in |
... | ... | @@ -495,6 +495,7 @@ Internationalization and locale data for %{?1:%{1}}%{?!1:%{name}}\ |
495 | 495 |
|
496 | 496 |
|
497 | 497 |
### Forward compatibility with macros from rpm4 in rosa2019.1+
|
498 |
|
|
498 | 499 |
%make_build %make
|
499 | 500 |
%make_install %makeinstall_std
|
500 | 501 |
%set_build_flags %setup_compile_flags
|
... | ... | @@ -502,3 +503,11 @@ Internationalization and locale data for %{?1:%{1}}%{?!1:%{name}}\ |
… | … | |
503 | 503 |
%build_cflags %{optflags}
|
504 | 504 |
%build_cxxflags %{optflags}
|
505 | 505 |
%build_fflags %{optflags}
|
506 |
%{_rpmmacrodir} %{_sys_macros_dir}
|
|
507 |
|
|
508 |
# Install files with additional macros in a standardized form
|
|
509 |
# arg1 is the name of the macro, arg2 is path to file with macros
|
|
510 |
# Example: %%install_macro meson %%{SOURCE9}
|
|
511 |
%install_macro() \
|
|
512 |
%{__install} -D --mode=644 %2 %{buildroot}%{_sys_macros_dir}/%1.macros \
|
|
513 |
%{nil}
|
New comment