[net-tools/f18] use new systemd-rpm macros (#850225)

Jiří Popelka jpopelka at fedoraproject.org
Wed Aug 22 13:25:29 UTC 2012


commit 771a6a31a2a35501162279c8493c223c1be302a7
Author: Jiri Popelka <jpopelka at redhat.com>
Date:   Wed Aug 22 15:24:42 2012 +0200

    use new systemd-rpm macros (#850225)

 net-tools.spec |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/net-tools.spec b/net-tools.spec
index f1330b8..590089e 100644
--- a/net-tools.spec
+++ b/net-tools.spec
@@ -3,7 +3,7 @@
 Summary: Basic networking tools
 Name: net-tools
 Version: 1.60
-Release: 139.%{checkout}%{?dist}
+Release: 140.%{checkout}%{?dist}
 License: GPL+
 Group: System Environment/Base
 URL: http://net-tools.sourceforge.net
@@ -136,11 +136,7 @@ install -m 644 %{SOURCE9} %{buildroot}%{_unitdir}
 %find_lang %{name} --all-name --with-man
 
 %post
-# Initial installation
-if [ $1 -eq 1 ] ; then 
-    /bin/systemctl enable arp-ethers.service >/dev/null 2>&1 || :
-fi
-
+%systemd_post arp-ethers.service
 
 %files -f %{name}.lang
 %doc COPYING
@@ -160,6 +156,9 @@ fi
 %attr(0644,root,root)   %{_unitdir}/arp-ethers.service
 
 %changelog
+* Wed Aug 22 2012 Jiri Popelka <jpopelka at redhat.com> - 1.60-140.20120702git
+- use new systemd-rpm macros (#850225)
+
 * Fri Jul 20 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.60-139.20120702git
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
 


More information about the scm-commits mailing list