fixed SPEC file so it comply with new systemd-rpm macros guidelines (#850258)

f38
Tomas Hozza 13 years ago
parent df6fb525c8
commit 67294c6f52

@ -1,6 +1,6 @@
Name: openvswitch Name: openvswitch
Version: 1.7.0 Version: 1.7.0
Release: 1%{?dist} Release: 2%{?dist}
Summary: Open vSwitch daemon/database/utilities Summary: Open vSwitch daemon/database/utilities
# Nearly all of openvswitch is ASL 2.0. The bugtool is LGPLv2+, and the # Nearly all of openvswitch is ASL 2.0. The bugtool is LGPLv2+, and the
@ -115,24 +115,16 @@ rm -f \
desktop-file-install --dir=$RPM_BUILD_ROOT%{_datadir}/applications %{SOURCE6} desktop-file-install --dir=$RPM_BUILD_ROOT%{_datadir}/applications %{SOURCE6}
%post %post
if [ $1 -eq 1 ] ; then # Initial installation
# Initial installation %systemd_post openvswitch.service
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
fi
%preun %preun
if [ "$1" = "0" ]; then # Package removal, not upgrade
# Package removal, not upgrade %systemd_preun openvswitch.service
/bin/systemctl --no-reload disable openvswitch.service > /dev/null 2>&1 || :
/bin/systemctl stop openvswitch.service > /dev/null 2>&1 || :
fi
%postun %postun
/bin/systemctl daemon-reload >/dev/null 2>&1 || : # Package upgrade, not uninstall
if [ $1 -ge 1 ] ; then %systemd_postun_with_restart openvswitch.service
# Package upgrade, not uninstall
/bin/systemctl try-restart openvswitch.service >/dev/null 2>&1 || :
fi
%files %files
@ -200,6 +192,9 @@ fi
%changelog %changelog
* Thu Aug 23 2012 Tomas Hozza <thozza@redhat.com> - 1.7.0-2
- fixed SPEC file so it comply with new systemd-rpm macros guidelines (#850258)
* Fri Aug 17 2012 Tomas Hozza <thozza@redhat.com> - 1.7.0-1 * Fri Aug 17 2012 Tomas Hozza <thozza@redhat.com> - 1.7.0-1
- Update to 1.7.0 - Update to 1.7.0
- Fixed openvswitch-configure-ovskmod-var-autoconfd.patch because - Fixed openvswitch-configure-ovskmod-var-autoconfd.patch because

Loading…
Cancel
Save