Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:X0F:HSF
hardinfo
hardinfo.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
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 https://bugs.opensuse.org/ # %define use_gtk3 1 %define use_clang 1 %define use_lto 0 Name: hardinfo Version: 0.5.1+1368~git20211121.c9d5ec9 Release: 0 Summary: Displays system information License: GPL-2.0-only Group: System/Benchmark URL: https://github.com/lpereira/hardinfo Source: %{name}-%{version}.tar.xz # PATCH-FIX-UPSTREAM hardinfo-0.5.1-reproducible.patch bwiedemann@suse.com -- make build reproducible #Patch0: hardinfo-0.5.1-reproducible.patch #Patch1: hardinfo-dyamic-libsoup.patch BuildRequires: binutils-gold BuildRequires: cmake BuildRequires: fdupes BuildRequires: gcc-c++ %if 0%{use_clang} BuildRequires: clang-devel BuildRequires: llvm-gold #BuildRequires: lld %endif BuildRequires: pkgconfig BuildRequires: update-desktop-files %if 0%{use_gtk3} BuildRequires: pkgconfig(cairo) BuildRequires: pkgconfig(cairo-png) BuildRequires: pkgconfig(gtk+-3.0) %else BuildRequires: pkgconfig(gtk+-2.0) %endif BuildRequires: pkgconfig(json-glib-1.0) BuildRequires: pkgconfig(libffi) BuildRequires: pkgconfig(libselinux) BuildRequires: pkgconfig(libsoup-2.4) BuildRequires: pkgconfig(mount) # https://github.com/lpereira/hardinfo/issues/243 Requires: kmod Requires: lsscsi Requires: pciutils Requires: sensors Requires: usbutils Requires: util-linux Recommends: apcupsd Recommends: cdrecord Recommends: dmidecode Recommends: glxinfo Recommends: net-tools-deprecated Recommends: read-edid Recommends: samba-client Recommends: xdpyinfo Recommends: xrandr ExclusiveArch: %{ix86} x86_64 %description 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. %{lang_package} %prep %autosetup -p1 cat > %{name}.desktop << EOF [Desktop Entry] Type=Application Name=HardInfo GenericName=HardInfo Exec=%{name} %U Comment=System Profiler and Benchmark Comment[pt_BR]=Informações e Testes do Sistema Comment[ru]=Системный профайлер и бенчмарк Comment[uk]=Системний профайлер і бенчмарк Icon=%{name} Categories=System;Utility;DesktopUtility;Monitor; EOF %build CFLAGS="-w -DNDEBUG -fPIC -O2 -pthread -fno-strict-aliasing" export LDFLAGS="-fuse-ld=gold -fPIC -Wl,--sort-common -Wl,--gc-sections -Wl,--icf=safe -Wl,-O1" export LD=ld.gold %if 0%{use_clang} export CC=clang export CXX=clang++ export CFLAGS="${CFLAGS} -v -pipe" export CXXFLAGS="${CFLAGS}" export HOST="$(${CC} -print-target-triple)" %if 0%{use_lto} %global _lto_cflags -flto=thin %global _lto_ldlags -flto=thin %else %global _lto_cflags %nil %global _lto_ldlags %nil %endif %else export CC=gcc export CXX=g++ export CFLAGS="${CFLAGS} -ftree-parallelize-loops=4 -ftree-vectorize -fvect-cost-model=cheap -fsimd-cost-model=cheap -fpredictive-commoning" export CXXFLAGS="${CFLAGS} -fpermissive" export HOST="%{_target_platform}" %if 0%{use_lto} %global _lto_cflags -fuse-linker-plugin %_lto_cflags -ffat-lto-objects -flto-odr-type-merging %global _lto_ldlags -fuse-linker-plugin -flto=thin %else %global _lto_cflags %nil %global _lto_ldlags %nil %endif %endif export TARGET="${HOST}" export CFLAGS="${CFLAGS} %_lto_cflags" export CXXFLAGS="${CXXFLAGS} %_lto_cflags" export LDFLAGS="${LDLAGS} %_lto_cflags %_lto_ldlags" %cmake \ %if 0%{use_gtk3} -DHARDINFO_GTK3=ON %else -DHARDINFO_GTK3=OFF %endif %cmake_build %install %cmake_install #install -Dpm 0644 pixmaps/logo.png %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/%{name}.png %suse_update_desktop_file -r %{name} System Utility DesktopUtility Monitor %find_lang %{name} %fdupes %{buildroot} %if 0%{?suse_version} < 1500 %post %desktop_database_post %icon_theme_cache_post %postun %desktop_database_postun %icon_theme_cache_postun %endif %files %license LICENSE %{_bindir}/%{name} %{_libdir}/%{name}/ %{_datadir}/%{name}/ %{_datadir}/applications/%{name}.desktop %{_datadir}/icons/hicolor/*/apps/%{name}.* %{_mandir}/man?/%{name}.?.* %files lang -f %{name}.lang %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor