%define php_name php%{?php_suffix}
-%define rel 2
+%define rel 3
%define pname linux-gpib
Summary: GPIB (IEEE 488) Linux support
Summary(pl.UTF-8): Obsługa GPIB (IEEE 488) dla Linuksa
Patch6: %{pname}-php7.patch
Patch8: kernel-5.2.patch
Patch9: kernel-5.10.patch
+Patch10: pkgconfig-version.patch
URL: http://linux-gpib.sourceforge.net/
BuildRequires: autoconf >= 2.50
BuildRequires: automake
BuildRequires: libtool
BuildRequires: rpmbuild(macros) >= 1.745
-%if %{with kernel}
-BuildRequires: kernel-module-build >= 3:2.6.8
-%endif
+%{?with_kernel:%{expand:%buildrequires_kernel kernel%%{_alt_kernel}-module-build >= 3:2.6.32}}
%if %{with userspace}
BuildRequires: bison
%{?with_doc:BuildRequires: docbook-utils}
%patch4 -p1
%patch5 -p1
#%patch6 -p1
+%patch10 -p1
cd ..
%endif