From 99fecdedd8daf57c771d73642dc677d7cf57db1e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Mon, 12 Mar 2007 00:16:52 +0000 Subject: [PATCH] - rel 4 (use %service) Changed files: dict-bouvier.spec -> 1.15 --- dict-bouvier.spec | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/dict-bouvier.spec b/dict-bouvier.spec index 9e728e3..2b57a4d 100644 --- a/dict-bouvier.spec +++ b/dict-bouvier.spec @@ -2,7 +2,7 @@ Summary: John Bouvier's Law Dictionary dated 1856 for the USA in the DICTD forma Summary(pl.UTF-8): Słownik prawa USA Johna Bouviera z 1856 roku w formacie DICTD Name: dict-bouvier Version: 6 -Release: 3 +Release: 4 License: GPL # it was downloaded from http://www.constitution.org/bouv/bouvier.htm # Upstream Author(s): John Bouvier, 1856. @@ -17,6 +17,7 @@ URL: http://www.constitution.org/bouv/bouvier.htm BuildRequires: dictzip BuildRequires: python BuildRequires: python-dictlib +BuildRequires: rpmbuild(macros) >= 1.268 Requires: %{_sysconfdir}/dictd Requires: dictd BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -37,7 +38,6 @@ z tamtych czasów. %patch0 -p1 %build - python conv.py *.txt %install @@ -48,13 +48,11 @@ install -d $RPM_BUILD_ROOT{%{_datadir}/dictd/,%{_sysconfdir}/dictd} rm -rf $RPM_BUILD_ROOT %post -if [ -f /var/lock/subsys/dictd ]; then - /etc/rc.d/init.d/dictd restart 1>&2 -fi +%service -q dictd restart %postun -if [ -f /var/lock/subsys/dictd ]; then - /etc/rc.d/init.d/dictd restart 1>&2 || true +if [ "$1" = 0 ]; then + %service -q dictd restart fi %files -- 2.43.0