1
0
forked from pool/gsmartcontrol

4 Commits

4 changed files with 66 additions and 26 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:fc409f2b8a84cc40bb103d6c82401b9d4c0182d5a3b223c93959c7ad66191847
size 691155

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7cebd83fd34883d51e143389aa88f8173ea7b67c760b12b7de847f3c3c8cee34
size 1609401

View File

@@ -1,3 +1,46 @@
-------------------------------------------------------------------
Thu Mar 27 18:02:37 UTC 2025 - Andreas Stieger <andreas.stieger@gmx.de>
- remove unused pcre build dependency, code was ported to
std::regex in v2.0.0
-------------------------------------------------------------------
Fri Mar 14 15:11:15 UTC 2025 - ecsos <ecsos@opensuse.org>
- Update to 2.0.2
- Support GCC 11 (and Ubuntu 22.04) by using and vendoring fmt library (#77).
- Support an option of saving smartctl output to text instead of JSON (#76).
- Restored pre-2.0.0 runtime support for smartctl < 7.3 (based on Text parser);
this is an unsupported, old method without NVMe, provided for compatibility only (#77).
- Restored pre-2.0.0 support for standard (non-extended) self-test log found in very old ATA drives;
the new JSON parser did not support this previously (#79).
- Better support for temperature values in JSON parser; this fixes unreasonably large temperature values (#78).
- Add a tooltip explaining self-test "lifetime hours" wrapping behavior (#73).
- Windows: Fixed a crash on Windows 7 when opening drive information by using Windows 7-compatible librsvg (#71).
- Windows: Avoid using non-integer font sizes.
- Changes from 2.0.1
- Windows: Fixed a crash when saving or opening smartctl data.
- Changes from 2.0.0
- New JSON-based parser for smartctl output (requires smartctl 7.3+) (#4).
- Support for NVMe drives (self-tests require smartctl 7.4+) (#4).
- New "Basic" JSON parser for SCSI, flash, and other non-ATA/NVMe drives.
- PCRE library is no longer required (the code has been ported to std::regex) (#40).
- A lot of code has been refactored and modernized using C++17 and C++20 features, removing much of the custom library code.
- The build process requires a C++20-compliant compiler now (GCC 13+, Clang 17+, Apple Clang 15+).
- CMake (3.14+) is now used as a build system instead of autotools.
- GSmartControl is now licensed under GNU GPL 3 only.
- Icons come from Oxygen project now (LGPL 3+) instead of Crystal project.
- Documentation in md format comes with the source code ("docs" directory).
- Support new versions and prereleases of smartctl (#46, #42).
- Better detection of drive types thanks to the JSON parser.
- Removed ATA AODC feature, it has been deprecated for a while now.
- Information window: Some values are aligned and monospaced to improve readability.
- Fixed command execution popup dialog being on top of all windows (#17).
- Other minor UI improvements and fixes.
- Windows: Better support for HiDPI (including fractional scaling).
- Windows: NSIS package is generated by CPack now.
- Windows: Packages are built using GitHub CI now.
-------------------------------------------------------------------
Tue Aug 9 09:26:06 UTC 2022 - ecsos <ecsos@opensuse.org>

View File

@@ -1,7 +1,7 @@
#
# spec file for package gsmartcontrol
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,24 +17,30 @@
Name: gsmartcontrol
Version: 1.1.4
Version: 2.0.2
Release: 0
Summary: Hard Disk Health Inspection Tool
License: GPL-2.0-only OR GPL-3.0-only
Group: Hardware/Other
URL: http://gsmartcontrol.sourceforge.net/
Source0: http://downloads.sourceforge.net/%{name}/%{version}/%{name}-%{version}.tar.bz2
#Source0: http://downloads.sourceforge.net/%%{name}/%%{version}/%%{name}-%%{version}.tar.bz2
Source0: https://github.com/ashaduri/gsmartcontrol/archive/v%{version}/%{name}-%{version}.tar.gz
Source1: %{name}-rpmlintrc
BuildRequires: cmake >= 3.14
BuildRequires: fdupes
%if 0%{?suse_version} < 1600
BuildRequires: gcc13
BuildRequires: gcc13-c++
%else
BuildRequires: gcc
BuildRequires: gcc-c++
%endif
BuildRequires: hicolor-icon-theme
BuildRequires: libstdc++-devel
BuildRequires: pkgconfig
BuildRequires: polkit
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(gtkmm-3.0) >= 3.4
BuildRequires: pkgconfig(libpcre)
Requires: pcre
Requires: polkit
Requires: smartmontools >= 5.43
Recommends: xdg-utils
@@ -46,31 +52,24 @@ Technology) data in hard disk drives. It allows inspecting the drive's
SMART data to determine its health, as well as run various tests on it.
%prep
%setup -q
#rpmlintrc
sed -i -e 's|\/usr\/bin\/env bash|\/usr\/bin\/bash|g' data/gsmartcontrol-root.in
%autosetup -p1
%build
%configure --docdir=%{_defaultdocdir}/%{name} --enable-optimize-options=auto
%make_build
%if 0%{?suse_version} < 1600
export CC=gcc-13
export CXX=g++-13
%endif
%cmake .. -DCMAKE_BUILD_TYPE=Release
%install
%make_install
%cmake_install
%suse_update_desktop_file %{name}
%fdupes -s %{buildroot}%{_prefix}
rm %{buildroot}%{_defaultdocdir}/%{name}/LICENSE_*.txt
%post
%desktop_database_post
%icon_theme_cache_post
%postun
%desktop_database_postun
%icon_theme_cache_postun
%files
%doc README.md
%doc %{_defaultdocdir}/%{name}
%license COPYING LICENSE_*.txt
%license LICENSE.txt LICENSE.LGPL3.txt dependencies/*/*/LICENSE.*
%{_sbindir}/%{name}
%{_bindir}/%{name}-root
%{_mandir}/man1/%{name}.1%{?ext_man}
@@ -80,8 +79,6 @@ rm %{buildroot}%{_defaultdocdir}/%{name}/LICENSE_*.txt
%dir %{_datadir}/metainfo
%{_datadir}/metainfo/%{name}.appdata.xml
%{_datadir}/icons/hicolor/*/apps/%{name}.png
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/pixmaps/%{name}.xpm
%{_datadir}/polkit-1/actions/org.gsmartcontrol.policy
%changelog