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 154c4316aa
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/ninja.spec
... ... +++ b/ninja.spec
... ... @@ -1,7 +1,7 @@
1 1
Summary:	A small build system with a focus on speed
2 2
Name:		ninja
3 3
Version:	1.8.2
4
Release:	3
4
Release:	4
5 5
License:	ASL 2.0
6 6
Group:		Development/Tools
7 7
Url:		http://martine.github.com/ninja/
... ... @@ -26,7 +26,7 @@ fast as possible.
26 26
%doc COPYING README doc/manual.html
27 27
%{_bindir}/ninja
28 28
%{_sysconfdir}/bash_completion.d/
29
%{_sys_macros_dir}/%{name}.macros
29
%{_rpmmacrodir}/*%{name}*
30 30
31 31
#----------------------------------------------------------------------------
32 32
... ... @@ -100,8 +100,7 @@ install -p -m 644 %{SOURCE1} %{buildroot}%{_datadir}/vim/vimfiles/ftdetect/ninja
100 100
install -p -m 755 -d %{buildroot}%{_datadir}/zsh/site-functions
101 101
install -p -m 644 misc/zsh-completion %{buildroot}%{_datadir}/zsh/site-functions/_ninja
102 102
103
install -p -m 755 -d %{buildroot}%{_sys_macros_dir}
104
install -p -m 644 %{SOURCE2} %{buildroot}%{_sys_macros_dir}/%{name}.macros
103
%install_macro ninja %{SOURCE2}
105 104
106 105
%check
107 106
# workaround possible too low default limits

Comments