%define debug_package %{nil} %define distsuffix mrb Name: gsmartcontrol Version: 0.8.7 Release: 70 License: GPLv2, GPLv3 Url: http://gsmartcontrol.berlios.de Group: System/Kernel and hardware Source0: http://download.berlios.de/%{name}/%{name}-%{version}.tar.bz2 Summary: GSmartControl - Hard Disk Health Inspection Tool Requires: gtkmm2.4 >= 2.12.0 Requires: smartmontools Requires: usermode-consoleonly BuildRequires: pkgconfig(libpcre) BuildRequires: pkgconfig(gtkmm-2.4) >= 2.12.0 %description GUI for smartctl, which is a tool for querying and controlling SMART (Self-Monitoring, Analysis, and Reporting Technology) data in hard disk drives. It allows you to inspect the drive's SMART data to determine its health, as well as run various tests on it. %prep %setup -q sed -i -e "s/Exec=.*gsmartcontrol-root\"/Exec=gsmartcontrol/" data/gsmartcontrol.desktop.in %build %configure2_5x %make %install %makeinstall_std mkdir %{buildroot}%{_sbindir} mv %{buildroot}%{_bindir}/%{name} %{buildroot}%{_sbindir}/%{name} ln -s %{_bindir}/consolehelper %{buildroot}%{_bindir}/%{name} # dirty fix mugged from rawhide rm %{buildroot}%{_bindir}/%{name}-root mkdir -p %{buildroot}%{_sysconfdir}/pam.d cat <%{buildroot}%{_sysconfdir}/pam.d/%{name} #%%PAM-1.0 auth include config-util account include config-util session include config-util EOF mkdir -p %{buildroot}%{_sysconfdir}/security/console.apps cat <%{buildroot}%{_sysconfdir}/security/console.apps/%{name} USER=root PROGRAM=/usr/sbin/gsmartcontrol SESSION=true EOF # end %files %doc %{_datadir}/doc/%{name} %{_bindir}/* %{_sbindir}/%{name} %{_datadir}/%{name} %{_datadir}/applications/%{name}.desktop %{_datadir}/icons/* %{_datadir}/pixmaps/* %{_mandir}/man1/%{name}-root.1* %{_mandir}/man1/%{name}.1* %config(noreplace) %{_sysconfdir}/pam.d/%{name} %config(noreplace) %{_sysconfdir}/security/console.apps/%{name}