mirror of
https://github.com/ashaduri/gsmartcontrol.git
synced 2026-10-02 16:37:41 +00:00
GSmartControl now uses XDG config directory for per-user configuration on
UNIX and CSIDL_PROFILE directory on Windows. Existing configuration is
migrated automatically.
The names are shown correctly for unsupported devices even with the latest
smartctl snapshots now.
Smartctl SVN revision is shown (if available).
The progress bars update properly when parallel tests are run.
Windows: GSmartControl should be able to operate on any valid filesystem
path (not just locale-representable ones).
Windows: GSmartControl is now officially compilable on x86_64 via mingw64.
Fixed compilation under very old gtkmm/libglademm, and with gcc 4.4.
Fixed parsing of multiple error types in SMART error log.
Added minor features and fixed miscellaneous bugs.
157 lines
4.6 KiB
Plaintext
157 lines
4.6 KiB
Plaintext
Name: gsmartcontrol
|
|
Version: @VERSION@
|
|
Release: 1as
|
|
License: GPLv2, GPLv3
|
|
Url: http://gsmartcontrol.berlios.de
|
|
Vendor: Alexander Shaduri <ashaduri 'at' gmail.com>
|
|
Packager: Alexander Shaduri <ashaduri 'at' gmail.com>
|
|
Source: gsmartcontrol-%{version}.tar.bz2
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
Summary: GSmartControl - Hard Disk Health Inspection Tool
|
|
|
|
%if 0%{?mandriva_version}
|
|
Group: System/Kernel and hardware
|
|
%else
|
|
Group: Hardware/Other
|
|
%endif
|
|
|
|
# Support build service rpmlint. Disabled - the build service
|
|
# stopped recognizing the flag for some architectures.
|
|
# %if 0%{?opensuse_bs} && 0%{?suse_version} >= 1010
|
|
# Support: rpmlint-bs
|
|
# %endif
|
|
|
|
|
|
# Dependencies for various distributions. The actual deps are:
|
|
# smartmontools, pcre, (gtkmm2 >= 2.12 || (gtkmm2 >= 2.6.0 && libglademm >= 2.4.0))
|
|
# (with the respective -devel packages of the libraries for build requirements).
|
|
# For non-specified distributions we don't specify any dependencies to avoid errors.
|
|
|
|
# For mandriva, these contain the su programs.
|
|
# Suggests: libgnomesu, gksu, kdebase-progs
|
|
|
|
|
|
# SUSE / OpenSUSE. SLES also defines the correct suse_version.
|
|
%if 0%{?suse_version}
|
|
|
|
%if 0%{?%suse_version} >= 1030
|
|
Requires: smartmontools, pcre, gtkmm2 >= 2.12.0
|
|
BuildRequires: gcc-c++, libstdc++-devel, pcre-devel, gtkmm2-devel >= 2.12.0
|
|
%else
|
|
%if 0%{?%suse_version} == 1020
|
|
Requires: smartmontools, pcre, gtkmm2 >= 2.6.0, libglademm >= 2.4.0
|
|
BuildRequires: gcc-c++, libstdc++-devel, pcre-devel, gtkmm2-devel >= 2.6.0, libglademm-devel >= 2.4.0
|
|
%else
|
|
Requires: smartmontools, pcre, gtkmm24 >= 2.6.0, libglademm >= 2.4.0
|
|
BuildRequires: gcc-c++, libstdc++-devel, pcre-devel, gtkmm24-devel >= 2.6.0, libglademm-devel >= 2.4.0
|
|
%endif
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
# Fedora, CentOS, RHEL
|
|
%if 0%{?fedora_version} || 0%{?rhel_version} || 0%{?centos_version}
|
|
|
|
# I'm not sure about centos and rhel versions
|
|
%if 0%{?fedora_version} >= 8 || 0%{?rhel_version} >= 600 || 0%{?centos_version} >= 600
|
|
Requires: smartmontools, pcre, gtkmm24 >= 2.12.0
|
|
BuildRequires: gcc-c++, pcre-devel, gtkmm24-devel >= 2.12.0
|
|
%else
|
|
Requires: smartmontools, pcre, gtkmm24 >= 2.6.0, libglademm24 >= 2.4.0
|
|
BuildRequires: gcc-c++, pcre-devel, gtkmm24-devel >= 2.6.0, libglademm24-devel >= 2.4.0
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
# Mandriva. Check the latest official spec file at
|
|
# http://svn.mandriva.com/cgi-bin/viewvc.cgi/packages/cooker/gsmartcontrol/current/
|
|
%if 0%{?mandriva_version}
|
|
|
|
%if 0%{?mandriva_version} >= 2008
|
|
Requires: smartmontools, libpcre0, gtkmm2.4 >= 2.12.0
|
|
BuildRequires: gcc-c++, gcc-cpp, pcre-devel, gtkmm2.4-devel >= 2.12.0, desktop-file-utils
|
|
%else
|
|
Requires: smartmontools, libpcre0, gtkmm2.4 >= 2.6.0, libglademm2.4 >= 2.4.0
|
|
BuildRequires: gcc-c++, gcc-cpp, pcre-devel, gtkmm2.4-devel >= 2.6.0, libglademm2.4-devel >= 2.4.0, desktop-file-utils
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
%description
|
|
GSmartControl is a graphical user interface 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
|
|
%if 0%{?mandriva_version} <= 2006
|
|
%configure
|
|
%else
|
|
%configure --enable-optimize-options=auto
|
|
%endif
|
|
|
|
%build
|
|
# Set up for parallel builds
|
|
numprocs=`egrep -c ^cpu[0-9]+ /proc/stat || :`
|
|
if [ "$numprocs" = "0" ]; then
|
|
numprocs=1
|
|
fi
|
|
|
|
make -j$numprocs
|
|
# make
|
|
|
|
|
|
%install
|
|
# %makeinstall
|
|
make DESTDIR=%buildroot install-strip
|
|
# Remove the icon cache file "make install" generates, to avoid package conflicts.
|
|
rm -f $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/icon-theme.cache
|
|
|
|
|
|
%if 0%{?mandriva_version}
|
|
desktop-file-install --vendor="" \
|
|
--remove-category="Application" \
|
|
--add-category="System" \
|
|
--add-category="X-MandrivaLinux-System-Configuration-Hardware;Settings;HardwareSettings" \
|
|
--dir $RPM_BUILD_ROOT%{_datadir}/applications $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop
|
|
%endif
|
|
|
|
|
|
%clean
|
|
rm -rf %buildroot
|
|
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
|
|
%attr(0755,root,root) %{_bindir}/*
|
|
# %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/*
|
|
|
|
%doc %{_datadir}/doc/gsmartcontrol
|
|
%doc %{_mandir}/man1/*
|
|
|
|
%{_datadir}/gsmartcontrol
|
|
# %{_datadir}/gsmartcontrol/*
|
|
%{_datadir}/applications/*.desktop
|
|
%{_datadir}/icons/*
|
|
%{_datadir}/pixmaps/*
|
|
|
|
|
|
|
|
%changelog
|
|
* Fri Nov 14 2008 Alexander Shaduri <ashaduri 'at' gmail.com>
|
|
- Updated .spec file to incorporate changes from the official Mandriva package.
|
|
|
|
* Mon Oct 06 2008 Alexander Shaduri <ashaduri 'at' gmail.com>
|
|
- Updated .spec file to support OpenSUSE < 10.3, Fedora and friends,
|
|
Mandriva (for OpenSUSE Build Service).
|
|
|
|
* Mon Sep 15 2008 Alexander Shaduri <ashaduri 'at' gmail.com>
|
|
- Initial .spec file.
|