Changes of Revision 8
[-] | Changed | hddtemp.spec |
x 1
2 %__make DESTDIR=%{buildroot} install 3 %__install -D -m644 %{S:1} %{buildroot}/usr/share/misc/hddtemp.db 4 %__patch -p0 %{buildroot}/usr/share/misc/hddtemp.db %{S:4} 5 -%__install -D -m755 %{S:2} %{buildroot}%{_initdir}/%{name} 6 +%__install -D -m755 %{S:2} %{buildroot}%{_sysconfdir}/init.d/%{name} 7 8 %if 0%{?suse_version} 9 %__install -D -m644 %{S:3} %{buildroot}/var/adm/fillup-templates/sysconfig.%{name} 10
11 fi 12 case "$1" in 13 1) # new install 14 - %fillup_and_insserv 15 + %{fillup_and_insserv -f -Y hddtemp} 16 ;; 17 2) # upgrade/reinstall 18 - %restart_on_update %{name} 19 + %{restart_on_update hddtemp} 20 ;; 21 esac 22 23 %preun 24 if [ "$1" = "0" ]; then # remove 25 - %stop_on_removal %{name} 26 + %{stop_on_removal hddtemp} 27 fi 28 29 30
31 %files 32 %defattr(-,root,root,755) 33 /usr/sbin/* 34 +%{_sysconfdir}/init.d/%{name} 35 %{_datadir}/locale/*/LC_MESSAGES/hddtemp.mo 36 %{_mandir}/man8/hddtemp.8* 37 %{_datadir}/misc/hddtemp.db 38 |