exit 1
%endif
+%if %{without userspace}
+# nothing to be placed to debuginfo package
+%define _enable_debug_packages 0
+%endif
+
%ifnarch %{ix86}
%undefine with_drivers_isa
%endif
Summary: GPIB (IEEE 488) Linux support
Summary(pl.UTF-8): Obsługa GPIB (IEEE 488) dla Linuksa
Name: %{pname}%{?_pld_builder:%{?with_kernel:-kernel}}%{_alt_kernel}
-Version: 4.3.3
+Version: 4.3.6
Release: %{rel}%{?_pld_builder:%{?with_kernel:@%{_kernel_ver_str}}}
License: GPL v2+
Group: Applications/System
Source0: http://downloads.sourceforge.net/linux-gpib/%{pname}-%{version}.tar.gz
-# Source0-md5: 1243aa44f788cf23f9b40ded54c14685
+# Source0-md5: ffefc4e5c03b891c57f406a4b82395b7
Patch2: %{pname}-python.patch
Patch3: %{pname}-perl.patch
Patch4: %{pname}-firmwaredir.patch
Patch6: %{pname}-php7.patch
Patch8: kernel-5.2.patch
Patch9: kernel-5.10.patch
+Patch10: pkgconfig-version.patch
+Patch11: linux-gpib-guile3.patch
+Patch12: isa-dma.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}
%{nil}
%define build_kernel_pkg()\
+%{__make} VERBOSE=1 LINUX_SRCDIR=%{_kernelsrcdir} clean\
%{__make} VERBOSE=1 LINUX_SRCDIR=%{_kernelsrcdir}\
cd drivers/gpib\
%if %{_kernel_version_code} < %{_kernel_version_magic 5 10 0}\
%patch4 -p1
%patch5 -p1
#%patch6 -p1
+%patch10 -p1
+%patch11 -p1
cd ..
%endif
%if %{with kernel}
tar xzf linux-gpib-kernel-%{version}.tar.gz
cd linux-gpib-kernel-%{version}
+%patch9 -p1
%ifarch %{ix86}
%patch8 -p1
%endif
-%patch9 -p1
+%patch12 -p1
%endif
%build
%{__autoheader}
%{__automake}
%if %{with guile}
-CPPFLAGS="%{rpmcppflags} -I/usr/include/guile/2.2"
+CPPFLAGS="%{rpmcppflags} -I/usr/include/guile/3.0"
%endif
%configure \
--with-udev-libdir=/lib/udev \
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gpib.conf
%attr(755,root,root) %{_bindir}/ibterm
%attr(755,root,root) %{_bindir}/ibtest
+%attr(755,root,root) %{_bindir}/findlisteners
%attr(755,root,root) %{_sbindir}/gpib_config
/lib/udev/rules.d/98-gpib-generic.rules
/lib/udev/rules.d/99-agilent_82357a.rules
+/lib/udev/rules.d/99-lpvo_usb_gpib.rules
/lib/udev/rules.d/99-ni_usb_gpib.rules
%attr(755,root,root) /lib/udev/gpib_udev_config
%attr(755,root,root) /lib/udev/gpib_udev_fxloader