--- /dev/null
+--- hwsd-2.0.1/hwsd/gpuInfo.cpp.orig 2020-08-01 07:38:16.290443380 +0200
++++ hwsd-2.0.1/hwsd/gpuInfo.cpp 2020-08-01 07:38:20.360657269 +0200
+@@ -37,7 +37,15 @@
+ , unused(0)
+ {
+ invalidatePVP();
++#if __GNUC__ >= 8
++ /* ignore "specified bound 4 equals destination size" */
++#pragma GCC diagnostic push
++#pragma GCC diagnostic ignored "-Wstringop-truncation"
++#endif
+ strncpy(reinterpret_cast<char*>(&type), name.c_str(), 4);
++#if __GNUC__ >= 8
++#pragma GCC diagnostic push
++#endif
+ }
+
+ void GPUInfo::invalidatePVP()
Summary(pl.UTF-8): Lokalne i zdalne wykrywanie usług ZeroConf dla zasobów sprzętowych
Name: hwsd
Version: 2.0.1
-Release: 2
+Release: 3
License: LGPL v2.1 (library), GPL v3+ (applications)
Group: Libraries
#Source0Download: https://github.com/Eyescale/hwsd/releases
Source0: https://github.com/Eyescale/hwsd/archive/%{version}/%{name}-%{version}.tar.gz
# Source0-md5: d2285a1d878a12905fe9a062bc158aae
Patch0: servus.patch
+Patch1: %{name}-Werror.patch
URL: https://github.com/Eyescale/hwsd/
BuildRequires: Eyescale-CMake
BuildRequires: Lunchbox-devel >= 1.10
Summary: HW-SD API documentation
Summary(pl.UTF-8): Dokumentacja API biblioteki HW-SD
Group: Documentation
-%if "%{_rpmversion}" >= "5"
+%if "%{_rpmversion}" >= "4.6"
BuildArch: noarch
%endif
%prep
%setup -q
%patch0 -p1
+%patch1 -p1
rmdir CMake/common
ln -s %{_datadir}/Eyescale-CMake CMake/common