mirror of
https://abf.rosa.ru/djam/gsmartcontrol.git
synced 2025-02-24 01:32:52 +00:00
66 lines
1.9 KiB
RPMSpec
66 lines
1.9 KiB
RPMSpec
Summary: GSmartControl - Hard Disk Health Inspection Tool
|
|
Name: gsmartcontrol
|
|
Version: 1.1.4
|
|
Release: 1
|
|
License: GPLv2+
|
|
Group: System/Kernel and hardware
|
|
Url: http://gsmartcontrol.berlios.de
|
|
Source0: https://github.com/ashaduri/gsmartcontrol/releases/download/v%{version}/gsmartcontrol-%{version}.tar.bz2
|
|
BuildRequires: pkgconfig(gtkmm-3.0)
|
|
BuildRequires: pkgconfig(libpcrecpp)
|
|
Requires: smartmontools
|
|
Requires: usermode-consoleonly
|
|
|
|
%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.
|
|
|
|
%files
|
|
%doc %{_datadir}/doc/%{name}
|
|
%{_appdatadir}/%{name}.appdata.xml
|
|
%{_bindir}/*
|
|
%{_sbindir}/%{name}
|
|
%{_datadir}/%{name}
|
|
%{_datadir}/applications/%{name}.desktop
|
|
%{_datadir}/icons/*
|
|
%{_datadir}/pixmaps/*
|
|
%{_datadir}/polkit-1/actions/org.gsmartcontrol.policy
|
|
%{_mandir}/man1/%{name}-root.1*
|
|
%{_mandir}/man1/%{name}.1*
|
|
%config(noreplace) %{_sysconfdir}/pam.d/%{name}
|
|
%config(noreplace) %{_sysconfdir}/security/console.apps/%{name}
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
%prep
|
|
%setup -q
|
|
sed -i -e "s/Exec=.*gsmartcontrol-root\"/Exec=gsmartcontrol/" data/gsmartcontrol.desktop.in
|
|
|
|
%build
|
|
%configure
|
|
%make
|
|
|
|
%install
|
|
%makeinstall_std
|
|
|
|
# dirty fix mugged from rawhide
|
|
rm %{buildroot}%{_bindir}/%{name}-root
|
|
ln -s %{_bindir}/consolehelper %{buildroot}%{_bindir}/%{name}
|
|
|
|
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
|