File hardinfo.spec of Package hardinfo

# spec file for package hardinfo
# Copyright (c) 2021 SUSE LLC
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

Name:           hardinfo
Version:        0.5.1
Release:        0
Summary:        Displays system information
License:        GPL-2.0-only
Group:          System/Benchmark
# PATCH-FIX-UPSTREAM hardinfo-0.5.1-reproducible.patch -- make build reproducible
Patch0:         hardinfo-0.5.1-reproducible.patch
Patch1:         hardinfo-dyamic-libsoup.patch
BuildRequires:  fdupes
BuildRequires:  pkgconfig
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  pkgconfig(libffi)
BuildRequires:  pkgconfig(libselinux)
BuildRequires:  pkgconfig(libsoup-2.4)
BuildRequires:  pkgconfig(mount)
Recommends:     apcupsd
Recommends:     sensors
ExclusiveArch:  %{ix86} x86_64

HardInfo is a small application that displays information about your
hardware and operating system.

Currently it knows about PCI, ISA PnP, USB, IDE, SCSI, Serial and
parallel port devices.

%autosetup -p1

cat > %{name}.desktop << EOF
[Desktop Entry]
Exec=%{name} %U
Comment=System Profiler and Benchmark
Comment[pt_BR]=Informações e Testes do Sistema
Comment[ru]=Системный профайлер и бенчмарк
Comment[uk]=Системний профайлер і бенчмарк

%if 0%{?suse_version} < 1500
SOURCE_DATE="$(sed -n '/^----/n;s/ - .*$//;p;q' "%{_sourcedir}/%{name}.changes")"
export SOURCE_DATE_EPOCH="$(date -d "$SOURCE_DATE" "+%%s")"

%configure --prefix=%{_prefix}
%make_build ARCHOPTS="%{optflags} -fgnu89-inline"

install -Dpm 0644 pixmaps/logo.png %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
%suse_update_desktop_file %{name}
%fdupes %{buildroot}

%if 0%{?suse_version} < 1500


%license LICENSE

openSUSE Build Service is sponsored by