rpms/xorg-x11-drv-nvidia/devel xorg-x11-drv-nvidia.spec,1.142,1.143
Nicolas Chauvet
kwizart at rpmfusion.org
Sat Aug 16 16:09:57 CEST 2014
Author: kwizart
Update of /cvs/nonfree/rpms/xorg-x11-drv-nvidia/devel
In directory old02.ovh.rpmfusion.lan:/tmp/cvs-serv20854
Modified Files:
xorg-x11-drv-nvidia.spec
Log Message:
Add systemd units macros since fedora 18
Index: xorg-x11-drv-nvidia.spec
===================================================================
RCS file: /cvs/nonfree/rpms/xorg-x11-drv-nvidia/devel/xorg-x11-drv-nvidia.spec,v
retrieving revision 1.142
retrieving revision 1.143
diff -u -r1.142 -r1.143
--- xorg-x11-drv-nvidia.spec 16 Aug 2014 13:50:44 -0000 1.142
+++ xorg-x11-drv-nvidia.spec 16 Aug 2014 14:09:57 -0000 1.143
@@ -319,7 +319,11 @@
%post libs -p /sbin/ldconfig
-%post cuda -p /sbin/ldconfig
+%post cuda
+/sbin/ldconfig
+%if 0%{?rhel} > 6 || 0%{?fedora} >= 18
+%systemd_post nvidia-persistenced.service
+%endif
%posttrans
[ -f %{_sysconfdir}/X11/xorg.conf ] || \
@@ -351,9 +355,18 @@
mv %{_sysconfdir}/X11/xorg.conf %{_sysconfdir}/X11/xorg.conf.%{name}_uninstalled &>/dev/null
fi ||:
+%if 0%{?rhel} > 6 || 0%{?fedora} >= 18
+%preun cuda
+%systemd_preun nvidia-persistenced.service
+%endif
+
%postun libs -p /sbin/ldconfig
-%postun cuda -p /sbin/ldconfig
+%postun cuda
+/sbin/ldconfig
+%if 0%{?rhel} > 6 || 0%{?fedora} >= 18
+%systemd_postun_with_restart nvidia-persistenced.service
+%endif
%files
%defattr(-,root,root,-)
More information about the rpmfusion-commits
mailing list