%bcond_without static_libs # static library
%bcond_without guile # guile binding
%bcond_without perl # Perl binding
-%bcond_without php # PHP binding
+%bcond_with php # PHP binding
%bcond_without python # Python binding
%bcond_without tcl # Tcl binding
%include /usr/lib/rpm/macros.perl
%define php_name php%{?php_suffix}
-%define rel 6
+%define rel 3
%define pname linux-gpib
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.0.3
+Version: 4.1.0
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: 2d97191e538a57ba7350fcc011ee2596
+# Source0-md5: 2614bb6dcfde4bf01f6047fdf0ea021f
Patch0: %{pname}-include_file.patch
Patch1: %{pname}-destdir.patch
Patch2: %{pname}-python.patch
Patch4: %{pname}-firmwaredir.patch
Patch5: %{pname}-guile2.patch
Patch6: %{pname}-php7.patch
+Patch7: kernel-4.11.patch
+Patch8: kernel-4.15.patch
URL: http://linux-gpib.sourceforge.net/
BuildRequires: autoconf >= 2.50
BuildRequires: automake
%patch4 -p1
%patch5 -p1
%patch6 -p1
+%patch7 -p1
+%patch8 -p1
# disable modules build by default, just install userspace header
echo 'SUBDIRS = gpib/include' > drivers/Makefile.am