reduce rpmlint warnings

OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/cfengine?expand=0&rev=31
This commit is contained in:
Klaus Kämpf 2012-12-14 08:30:38 +00:00 committed by Git OBS Bridge
parent ddeddb39d2
commit e98ac1b46e

View File

@ -82,7 +82,7 @@ BuildRequires: systemd
%endif %endif
%description %description
CFEngine automates large-scale IT computing infrastructure: ensuring CFEngine is the core of a configuration management system: ensuring
the availability, security and compliance of mission-critical the availability, security and compliance of mission-critical
applications and services. Based on popular and flexible open source applications and services. Based on popular and flexible open source
configuration management software, CFEngine configuration management configuration management software, CFEngine configuration management
@ -158,9 +158,12 @@ CC=gcc CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" \
--with-workdir=%{workdir} --with-workdir=%{workdir}
%{__make} %{?_smp_mflags} %{__make} %{?_smp_mflags}
# --datadir=/var/lib/%{name}/inputs \ # --datadir=/var/lib/%%{name}/inputs \
%install %install
chmod -x ChangeLog
%if 0%{?rhel_version} || 0%{?centos_version} || 0%{?fedora_version} %if 0%{?rhel_version} || 0%{?centos_version} || 0%{?fedora_version}
[ -d %{buildroot} ] && [ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot} [ -d %{buildroot} ] && [ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot}
%endif %endif
@ -169,7 +172,7 @@ CC=gcc CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" \
# create dirs needed for better organizing dirs and files # create dirs needed for better organizing dirs and files
%{__install} -d %{buildroot}/%{basedir}/{backup,failsafe,config} %{__install} -d %{buildroot}/%{basedir}/{backup,failsafe,config}
#%{__install} -d %{buildroot}/%{basedir}/config/{development,production} #%%{__install} -d %{buildroot}/%%{basedir}/config/{development,production}
# install cron file # install cron file
%{__install} -D -m0644 %{S:10} %{buildroot}/%{_sysconfdir}/cron.d/%{name} %{__install} -D -m0644 %{S:10} %{buildroot}/%{_sysconfdir}/cron.d/%{name}
@ -203,7 +206,7 @@ for i in cf-agent cf-execd cf-key cf-monitord cf-promises cf-report cf-runagent
%{__ln_s} -f ../../..%{_sbindir}/${i} %{buildroot}%{workdir}/bin/${i} %{__ln_s} -f ../../..%{_sbindir}/${i} %{buildroot}%{workdir}/bin/${i}
done done
# Install masterfiles (as %config(noreplace) ) # Install masterfiles (as %%config(noreplace) )
%{__install} -d %{buildroot}/%{basedir}/masterfiles %{__install} -d %{buildroot}/%{basedir}/masterfiles
%{__install} -m 0644 masterfiles/def.cf %{buildroot}/%{basedir}/masterfiles %{__install} -m 0644 masterfiles/def.cf %{buildroot}/%{basedir}/masterfiles
%{__install} -m 0644 masterfiles/promises.cf %{buildroot}/%{basedir}/masterfiles %{__install} -m 0644 masterfiles/promises.cf %{buildroot}/%{basedir}/masterfiles
@ -212,7 +215,7 @@ done
rm -rf %{buildroot}/%{_libdir}/%{name}/libpromises.la rm -rf %{buildroot}/%{_libdir}/%{name}/libpromises.la
# will appear in %docdir # will appear in %%docdir
rm -rf %{buildroot}/%{_datadir}/%{name}/ChangeLog rm -rf %{buildroot}/%{_datadir}/%{name}/ChangeLog
rm -rf %{buildroot}/%{_datadir}/%{name}/README rm -rf %{buildroot}/%{_datadir}/%{name}/README
@ -345,7 +348,7 @@ fi
/var/%{name} /var/%{name}
%exclude %{basedir}/backup %exclude %{basedir}/backup
%exclude %{basedir}/config %exclude %{basedir}/config
#%exclude %{basedir}/failsafe #%%exclude %%{basedir}/failsafe
%dir %{_datadir}/%{name} %dir %{_datadir}/%{name}
%{_datadir}/%{name}/* %{_datadir}/%{name}/*