Skip to content

Commit

Permalink
rpm centos: use %systemd_requires
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Apr 22, 2016
1 parent daaeb57 commit 369f020
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions packages/rpm/centos/groonga.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,7 @@ License: LGPLv2
Requires: %{name}-server-common = %{version}-%{release}
Requires(pre): shadow-utils
%if %{use_systemd}
Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd
%systemd_requires
%else
Requires(post): /sbin/chkconfig
Requires(preun): /sbin/chkconfig
Expand All @@ -119,9 +117,7 @@ Requires: curl
Requires: %{name}-httpd = %{version}-%{release}
Requires(pre): shadow-utils
%if %{use_systemd}
Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd
%systemd_requires
%else
Requires(post): /sbin/chkconfig
Requires(preun): /sbin/chkconfig
Expand All @@ -140,9 +136,7 @@ Group: Applications/Text
License: LGPLv2 and BSD
Requires: %{name}-server-common = %{version}-%{release}
%if %{use_systemd}
Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd
%systemd_requires
%else
Requires(post): /sbin/chkconfig
Requires(preun): /sbin/chkconfig
Expand Down

0 comments on commit 369f020

Please sign in to comment.