From 76f0da0ba351fa2706054d034f9f297179dc8fe8 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Jun 20 2018 13:59:08 +0000 Subject: drop dependency on initscripts #1592356 --- diff --git a/glpi.spec b/glpi.spec index 01d574b..47e8091 100644 --- a/glpi.spec +++ b/glpi.spec @@ -32,9 +32,10 @@ %endif %global with_tests 0%{!?_without_tests:1} + Name: %{gh_project} Version: 9.2.3 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Free IT asset management software Summary(fr): Gestion Libre de Parc Informatique @@ -151,8 +152,8 @@ Provides: bundled(tiny_mce) = 4.3.13 Requires: php-composer(fedora/autoloader) Requires: %{_sysconfdir}/logrotate.d -Requires(postun): /sbin/service -Requires(post): /sbin/service +Requires(postun): %{_bindir}/systemctl +Requires(post): %{_bindir}/systemctl %if %{useselinux} Requires(post): /sbin/restorecon Requires(post): /usr/sbin/semanage @@ -400,7 +401,7 @@ restorecon -R %{_localstatedir}/lib/%{name} restorecon -R %{_localstatedir}/log/%{name} ) &>/dev/null %endif -/sbin/service httpd condrestart > /dev/null 2>&1 || : +%{_bindir}/systemctl condrestart httpd > /dev/null 2>&1 || : %postun @@ -415,7 +416,7 @@ if [ "$1" -eq "0" ]; then ) &>/dev/null fi %endif -/sbin/service httpd condrestart > /dev/null 2>&1 || : +%{_bindir}/systemctl condrestart httpd > /dev/null 2>&1 || : %files -f %{name}.lang @@ -459,7 +460,8 @@ fi %changelog -* Wed Jun 20 2018 Remi Collet - 9.2.3-2 +* Wed Jun 20 2018 Remi Collet - 9.2.3-3 +- drop dependency on initscripts #1592356 - use range dependencies on F27+ * Fri Apr 27 2018 Remi Collet - 9.2.3-1