From e98ac1b46eba2795b2d325d2001245688dbc10dee671e45d77587920a08eb5ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klaus=20K=C3=A4mpf?= Date: Fri, 14 Dec 2012 08:30:38 +0000 Subject: [PATCH] reduce rpmlint warnings OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/cfengine?expand=0&rev=31 --- cfengine.spec | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/cfengine.spec b/cfengine.spec index c83cb60..8a36426 100644 --- a/cfengine.spec +++ b/cfengine.spec @@ -82,7 +82,7 @@ BuildRequires: systemd %endif %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 applications and services. Based on popular and flexible open source configuration management software, CFEngine configuration management @@ -158,9 +158,12 @@ CC=gcc CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" \ --with-workdir=%{workdir} %{__make} %{?_smp_mflags} -# --datadir=/var/lib/%{name}/inputs \ +# --datadir=/var/lib/%%{name}/inputs \ %install + +chmod -x ChangeLog + %if 0%{?rhel_version} || 0%{?centos_version} || 0%{?fedora_version} [ -d %{buildroot} ] && [ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot} %endif @@ -169,7 +172,7 @@ CC=gcc CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" \ # create dirs needed for better organizing dirs and files %{__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} -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} done -# Install masterfiles (as %config(noreplace) ) +# Install masterfiles (as %%config(noreplace) ) %{__install} -d %{buildroot}/%{basedir}/masterfiles %{__install} -m 0644 masterfiles/def.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 -# will appear in %docdir +# will appear in %%docdir rm -rf %{buildroot}/%{_datadir}/%{name}/ChangeLog rm -rf %{buildroot}/%{_datadir}/%{name}/README @@ -345,7 +348,7 @@ fi /var/%{name} %exclude %{basedir}/backup %exclude %{basedir}/config -#%exclude %{basedir}/failsafe +#%%exclude %%{basedir}/failsafe %dir %{_datadir}/%{name} %{_datadir}/%{name}/*