fix the .src rpm
OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/cfengine?expand=0&rev=167
This commit is contained in:
parent
3d578e038b
commit
a63aaa7496
@ -45,6 +45,12 @@ Group: Productivity/Networking/System
|
||||
Url: http://www.cfengine.org/
|
||||
Source: %{srcname}.tar.gz
|
||||
Source1: %{name}.SuSEfirewall2
|
||||
Source2: cf-execd.service
|
||||
Source3: cf-monitord.service
|
||||
Source4: cf-serverd.service
|
||||
Source5: cf-monitord
|
||||
Source6: cf-execd
|
||||
Source7: cf-serverd
|
||||
Source10: %{name}.cron
|
||||
Source11: %{name}-rpmlintrc
|
||||
# docs
|
||||
@ -87,19 +93,6 @@ BuildRequires: pcre-devel >= 8.38
|
||||
BuildRequires: util-linux
|
||||
Requires: %{libsoname} = %{version}
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if %{have_systemd}
|
||||
# go home, source_validator, you're drunk
|
||||
%define src7 cf-execd.service
|
||||
%define src8 cf-monitord.service
|
||||
%define src9 cf-serverd.service
|
||||
%else
|
||||
%define src7 cf-monitord
|
||||
%define src8 cf-execd
|
||||
%define src9 cf-serverd
|
||||
%endif
|
||||
Source7: %{src7}
|
||||
Source8: %{src8}
|
||||
Source9: %{src9}
|
||||
%if %{with mysql}
|
||||
BuildRequires: mysql-devel
|
||||
%endif
|
||||
@ -258,16 +251,15 @@ install -D -m0644 %{SOURCE10} %{buildroot}/%{_sysconfdir}/cron.d/%{name}
|
||||
|
||||
%if %{have_systemd}
|
||||
# install systemd scripts
|
||||
install -D -m 0644 %{SOURCE7} %{buildroot}/%{_unitdir}/cf-execd.service
|
||||
install -D -m 0644 %{SOURCE8} %{buildroot}/%{_unitdir}/cf-monitord.service
|
||||
install -D -m 0644 %{SOURCE9} %{buildroot}/%{_unitdir}/cf-serverd.service
|
||||
install -d %{buildroot}%{_unitddir}
|
||||
install -m 0644 %{SOURCE2} %{SOURCE3} %{SOURCE4} %{buildroot}/%{_unitdir}
|
||||
ln -s -f service %{buildroot}/%{_sbindir}/rccf-monitord
|
||||
ln -s -f service %{buildroot}/%{_sbindir}/rccf-execd
|
||||
ln -s -f service %{buildroot}/%{_sbindir}/rccf-serverd
|
||||
%else
|
||||
# install init scripts
|
||||
install -d %{buildroot}%{_initddir}
|
||||
install -m 0755 %{SOURCE7} %{SOURCE8} %{SOURCE9} %{buildroot}%{_initddir}/
|
||||
install -m 0755 %{SOURCE5} %{SOURCE6} %{SOURCE7} %{buildroot}%{_initddir}/
|
||||
ln -s -f ../..%{_initddir}/cf-monitord %{buildroot}/%{_sbindir}/rccf-monitord
|
||||
ln -s -f ../..%{_initddir}/cf-execd %{buildroot}/%{_sbindir}/rccf-execd
|
||||
ln -s -f ../..%{_initddir}/cf-serverd %{buildroot}/%{_sbindir}/rccf-serverd
|
||||
|
Loading…
x
Reference in New Issue
Block a user