Merge remote-tracking branch 'origin/pr/835'
authorMarc Fournier <marc.fournier@camptocamp.com>
Wed, 14 Jan 2015 22:28:18 +0000 (23:28 +0100)
committerMarc Fournier <marc.fournier@camptocamp.com>
Wed, 14 Jan 2015 22:28:18 +0000 (23:28 +0100)
1  2 
contrib/redhat/collectd.spec

@@@ -213,9 -213,15 +213,15 @@@ Source:          http://collectd.org/files/%{na
  License:      GPLv2
  Group:                System Environment/Daemons
  BuildRoot:    %{_tmppath}/%{name}-%{version}-root
 -BuildRequires:        libgcrypt-devel, kernel-headers
 +BuildRequires:        libgcrypt-devel, kernel-headers, libtool-ltdl-devel
  Vendor:               collectd development team <collectd@verplant.org>
  
+ %if 0%{?el7:1}
+ Requires(pre):                initscripts
+ Requires(post):               systemd
+ Requires(preun):      systemd
+ Requires(postun):     systemd
+ %else
  Requires(post):               chkconfig
  Requires(preun):      chkconfig, initscripts
  Requires(postun):     initscripts