]> git.pld-linux.org Git - packages/linux-gpib.git/blobdiff - linux-gpib.spec
- up to 4.0.4rc3
[packages/linux-gpib.git] / linux-gpib.spec
index a468390d46a556347271500db8f6b16818be95b4..3f6bd2fd2a89a98698527d99ff93ec999027f581 100644 (file)
@@ -12,7 +12,7 @@
 %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
 
@@ -33,17 +33,18 @@ exit 1
 %include       /usr/lib/rpm/macros.perl
 %define                php_name        php%{?php_suffix}
 
-%define                rel     3
+%define                _rc     rc3
+%define                rel     0.%{_rc}.1
 %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
-Release:       %{rel}
+Version:       4.0.4
+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:       http://downloads.sourceforge.net/linux-gpib/%{pname}-%{version}%{_rc}.tar.gz
+# Source0-md5: e12b4eeae623015c74f8ed01107e8f92
 Patch0:                %{pname}-include_file.patch
 Patch1:                %{pname}-destdir.patch
 Patch2:                %{pname}-python.patch
@@ -51,6 +52,7 @@ Patch3:               %{pname}-perl.patch
 Patch4:                %{pname}-firmwaredir.patch
 Patch5:                %{pname}-guile2.patch
 Patch6:                %{pname}-php7.patch
+Patch7:                kernel-4.11.patch
 URL:           http://linux-gpib.sourceforge.net/
 BuildRequires: autoconf >= 2.50
 BuildRequires: automake
@@ -242,6 +244,7 @@ TOPDIR=$(pwd)\
 %build_kernel_modules -C drivers/gpib -m gpib -- EARLYCPPFLAGS="-I$TOPDIR -I$TOPDIR/drivers/gpib/include -I$TOPDIR/include"\
 cd drivers/gpib\
 %install_kernel_modules -D installed -m agilent_82350b/agilent_82350b,cb7210/cb7210,cec/cec_gpib,hp_82335/hp82335,hp_82341/hp_82341,ines/ines_gpib,nec7210/nec7210,sys/gpib_common,tms9914/tms9914,tnt4882/tnt4882%{?with_drivers_isa:,pc2/pc2_gpib}%{?with_drivers_usb:,agilent_82357a/agilent_82357a,lpvo_usb_gpib/lpvo_usb_gpib,ni_usb/ni_usb_gpib} -d kernel/gpib\
+cd ../..\
 %{nil}
 
 %define install_kernel_pkg()\
@@ -250,7 +253,7 @@ cd drivers/gpib\
 %{?with_kernel:%{expand:%create_kernel_packages}}
 
 %prep
-%setup -q -n %{pname}-%{version}
+%setup -q -n %{pname}-%{version}%{_rc}
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
@@ -258,6 +261,7 @@ cd drivers/gpib\
 %patch4 -p1
 %patch5 -p1
 %patch6 -p1
+%patch7 -p1
 
 # disable modules build by default, just install userspace header
 echo 'SUBDIRS = gpib/include' > drivers/Makefile.am
@@ -435,7 +439,7 @@ fi
 %if %{with guile}
 %files -n guile-gpib
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libgpib-guile-%{version}.so
+%attr(755,root,root) %{_libdir}/libgpib-guile-%{version}%{_rc}.so
 %attr(755,root,root) %{_libdir}/libgpib-guile.so
 %endif
 
@@ -455,7 +459,7 @@ fi
 %files -n %{php_name}-gpib
 %defattr(644,root,root,755)
 %config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/gpib.ini
-%attr(755,root,root) %{php_extensiondir}/gpib_php-%{version}.so
+%attr(755,root,root) %{php_extensiondir}/gpib_php-%{version}%{_rc}.so
 %attr(755,root,root) %{php_extensiondir}/gpib_php.so
 %endif
 
@@ -472,7 +476,7 @@ fi
 %files -n tcl-gpib
 %defattr(644,root,root,755)
 %doc language/tcl/README
-%attr(755,root,root) %{_libdir}/libgpib_tcl-%{version}.so
+%attr(755,root,root) %{_libdir}/libgpib_tcl-%{version}%{_rc}.so
 %attr(755,root,root) %{_libdir}/libgpib_tcl.so
 %{_examplesdir}/tcl-gpib-%{version}
 %endif
This page took 0.056201 seconds and 4 git commands to generate.