2016-11-23 15:09:42 +10:00
|
|
|
Summary: GSmartControl - Hard Disk Health Inspection Tool
|
2012-02-01 19:21:51 +04:00
|
|
|
Name: gsmartcontrol
|
2021-08-11 11:02:57 +10:00
|
|
|
Version: 1.1.3
|
|
|
|
Release: 1
|
2016-11-23 15:09:42 +10:00
|
|
|
License: GPLv2+
|
2012-02-01 19:21:51 +04:00
|
|
|
Group: System/Kernel and hardware
|
2016-11-23 15:09:42 +10:00
|
|
|
Url: http://gsmartcontrol.berlios.de
|
2013-09-06 12:27:06 +04:00
|
|
|
Source0: http://download.berlios.de/%{name}/%{name}-%{version}.tar.bz2
|
2021-08-11 11:02:57 +10:00
|
|
|
BuildRequires: pkgconfig(gtkmm-3.0)
|
|
|
|
BuildRequires: pkgconfig(libpcrecpp)
|
2012-08-02 20:46:37 +00:00
|
|
|
Requires: smartmontools
|
|
|
|
Requires: usermode-consoleonly
|
2012-02-01 19:21:51 +04:00
|
|
|
|
|
|
|
%description
|
2016-11-23 15:09:42 +10:00
|
|
|
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.
|
|
|
|
|
|
|
|
%files
|
|
|
|
%doc %{_datadir}/doc/%{name}
|
2021-08-11 11:02:57 +10:00
|
|
|
%{_appdatadir}/%{name}.appdata.xml
|
2016-11-23 15:09:42 +10:00
|
|
|
%{_bindir}/*
|
|
|
|
%{_sbindir}/%{name}
|
|
|
|
%{_datadir}/%{name}
|
|
|
|
%{_datadir}/applications/%{name}.desktop
|
|
|
|
%{_datadir}/icons/*
|
|
|
|
%{_datadir}/pixmaps/*
|
2021-08-11 11:02:57 +10:00
|
|
|
%{_datadir}/polkit-1/actions/org.gsmartcontrol.policy
|
2016-11-23 15:09:42 +10:00
|
|
|
%{_mandir}/man1/%{name}-root.1*
|
|
|
|
%{_mandir}/man1/%{name}.1*
|
|
|
|
%config(noreplace) %{_sysconfdir}/pam.d/%{name}
|
|
|
|
%config(noreplace) %{_sysconfdir}/security/console.apps/%{name}
|
|
|
|
|
|
|
|
#----------------------------------------------------------------------------
|
2012-02-01 19:21:51 +04:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
sed -i -e "s/Exec=.*gsmartcontrol-root\"/Exec=gsmartcontrol/" data/gsmartcontrol.desktop.in
|
|
|
|
|
|
|
|
%build
|
2020-01-04 03:46:13 +03:00
|
|
|
%configure
|
2020-01-13 15:15:27 +03:00
|
|
|
%make
|
2012-02-01 19:21:51 +04:00
|
|
|
|
|
|
|
%install
|
2020-01-13 15:15:27 +03:00
|
|
|
%makeinstall_std
|
2012-02-01 19:21:51 +04:00
|
|
|
|
2013-09-06 12:27:06 +04:00
|
|
|
# dirty fix mugged from rawhide
|
|
|
|
rm %{buildroot}%{_bindir}/%{name}-root
|
2021-08-11 11:02:57 +10:00
|
|
|
ln -s %{_bindir}/consolehelper %{buildroot}%{_bindir}/%{name}
|
2013-09-06 12:27:06 +04:00
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/pam.d
|
|
|
|
cat <<EOF >%{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 <<EOF >%{buildroot}%{_sysconfdir}/security/console.apps/%{name}
|
|
|
|
USER=root
|
|
|
|
PROGRAM=/usr/sbin/gsmartcontrol
|
|
|
|
SESSION=true
|
|
|
|
EOF
|
|
|
|
# end
|