mirror of
https://abf.rosa.ru/djam/gsmartcontrol.git
synced 2025-02-23 09:12:50 +00:00
Updated to release 1.1.3, dropped now useless PAM stuff (now polkit is used) and added P0 to fix provided desktop file
This commit is contained in:
parent
d7453ba8c6
commit
f6fe185bee
3 changed files with 39 additions and 39 deletions
2
.abf.yml
2
.abf.yml
|
@ -1,2 +1,2 @@
|
|||
sources:
|
||||
gsmartcontrol-0.8.7.tar.bz2: 36c255e8f493b003a616cb1eff3a86ccc6b8f80a
|
||||
gsmartcontrol-1.1.3.tar.bz2: 8baf7e3964a8da8ddc6004718f184913ca2ad91e
|
||||
|
|
18
gsmartcontrol-1.1.3-fix-desktop-file.patch
Normal file
18
gsmartcontrol-1.1.3-fix-desktop-file.patch
Normal file
|
@ -0,0 +1,18 @@
|
|||
diff -rupN gsmartcontrol-1.1.3.old/data/gsmartcontrol.desktop.in gsmartcontrol-1.1.3/data/gsmartcontrol.desktop.in
|
||||
--- gsmartcontrol-1.1.3.old/data/gsmartcontrol.desktop.in 2017-09-23 19:12:46.000000000 +0200
|
||||
+++ gsmartcontrol-1.1.3/data/gsmartcontrol.desktop.in 2019-05-20 16:12:28.210486220 +0200
|
||||
@@ -8,7 +8,7 @@ Categories=System;Monitor;
|
||||
|
||||
Name=GSmartControl
|
||||
# short description, usually shown in parentheses after Name
|
||||
-GenericName=Hard Disk and SSD Health Inspection
|
||||
+GenericName=Hard disk and SSD health inspection
|
||||
GenericName[fr]=Inspecteur de santé de disque dur et de SSD
|
||||
|
||||
# tooltip
|
||||
@@ -26,4 +26,4 @@ Icon=gsmartcontrol
|
||||
#X-KDE-RootOnly=true
|
||||
|
||||
# Run with root permissions.
|
||||
-Exec="@prefix@/bin/gsmartcontrol-root"
|
||||
+Exec="gsmartcontrol-root"
|
|
@ -1,19 +1,23 @@
|
|||
Summary: GSmartControl - Hard Disk Health Inspection Tool
|
||||
%define _enable_debug_packages %{nil}
|
||||
%define debug_package %{nil}
|
||||
|
||||
Summary: Hard disk health inspection Tool
|
||||
Name: gsmartcontrol
|
||||
Version: 0.8.7
|
||||
Release: 73
|
||||
Version: 1.1.3
|
||||
Release: 1
|
||||
License: GPLv2+
|
||||
Group: System/Kernel and hardware
|
||||
Url: http://gsmartcontrol.berlios.de
|
||||
Source0: http://download.berlios.de/%{name}/%{name}-%{version}.tar.bz2
|
||||
BuildRequires: pkgconfig(gtkmm-2.4)
|
||||
BuildRequires: pkgconfig(libpcre)
|
||||
Url: http://gsmartcontrol.sourceforge.net
|
||||
Source0: http://sourceforge.net/projects/%{name}/files/%{version}/%{name}-%{version}.tar.bz2
|
||||
Patch0: gsmartcontrol-1.1.3-fix-desktop-file.patch
|
||||
BuildRequires: pkgconfig(gtkmm-3.0) >= 3.4.0
|
||||
BuildRequires: pkgconfig(libpcrecpp)
|
||||
Requires: polkit
|
||||
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
|
||||
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.
|
||||
|
||||
|
@ -23,47 +27,25 @@ its health, as well as run various tests on it.
|
|||
%{_sbindir}/%{name}
|
||||
%{_datadir}/%{name}
|
||||
%{_datadir}/applications/%{name}.desktop
|
||||
%{_datadir}/metainfo/*.xml
|
||||
%{_datadir}/icons/*
|
||||
%{_datadir}/pixmaps/*
|
||||
%{_datadir}/polkit-1/actions/*.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
|
||||
%apply_patches
|
||||
|
||||
|
||||
%build
|
||||
export CXXFLAGS="%{optflags} -std=gnu++11"
|
||||
%configure2_5x
|
||||
%configure2_5x --enable-optimize-options=gnu
|
||||
%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 <<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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue