Sisyphus repository
Last update: 17 september 2021 | SRPMs: 17378 | Visits: 21889538
en ru br
ALT Linux repos

Group :: System/Kernel and hardware
RPM: linux-gpib

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: linux-gpib
Version: 4.3.4
Release: alt1

Summary: Support package for GPIB (IEEE 488) hardware
Group: System/Kernel and hardware
License: GPLv2

BuildRequires(pre): rpm-build-python3
BuildRequires: rpm-build-kernel docbook-utils
BuildRequires: python3-devel tcl-devel perl-devel
Requires: fxload firmware-gpib

Source0: %name-%version.tar
Source1: %name-kernel-%version.tar.bz2

The Linux GPIB Package is a support package for GPIB (IEEE 488) hardware.
The package contains kernel driver modules, and a C user-space library
with Guile, Perl, PHP, Python and TCL bindings. The API of the C library
is intended to be compatible with National Instrument's GPIB library.

%package devel
Summary: Development files for %name
Group: Development/Other
%description devel
This package contains development files for %name

%package -n python3-module-%name
Summary: Python bindings for %name
Group: Development/Other
%description -n python3-module-%name
This package contains python bindings for %name

%package -n tcl-%name
Summary: Tcl bindings for %name
Group: Development/Other
%description -n tcl-%name
This package contains tcl bindings for %name

%package -n kernel-source-%name
Summary: GPIB modules sources for Linux kernel
Group: Development/Kernel
BuildArch: noarch
Provides: kernel-src-%name = %version-%release
%description -n kernel-source-%name
This package contains GPIB modules sources for Linux kernel.



# Version in pc-file is set to GPIB_SO_VERSION which is 3:0:3.
# This causes "invalid pkg-config output" error. Replacing it with 3.0.3:
sed -r -i -e '/Version:/s/([0-9]+):/\1./g' %buildroot/%_pkgconfigdir/libgpib.pc

# move doc and example folders

mkdir -p %buildroot%_docdir
mv %buildroot%_datadir/linux-gpib-user %buildroot%_docdir/%name-%version
cp COPYING README doc/linux-gpib.pdf %buildroot%_docdir/%name-%version
cp -r language/tcl/examples  %buildroot%_docdir/%name-%version/tcl-examples

# install kernel module sources

install -pDm0644 %SOURCE1 %kernel_srcdir/%name-%version.tar.bz2

%_sbindir/groupadd -r -f gpib 2> /dev/null ||:

%dir %_docdir/%name-%version
%dir %_docdir/%name-%version/html
%doc %_docdir/%name-%version/COPYING
%doc %_docdir/%name-%version/README
%doc %_docdir/%name-%version/linux-gpib.pdf
%doc %_docdir/%name-%version/html/*
%config(noreplace) %_sysconfdir/udev/rules.d/*
%config(noreplace) %_sysconfdir/gpib.conf

%files devel

%files -n python3-module-%name

%files -n tcl-%name
%doc %_docdir/%name-%version/tcl-examples/*
%doc %_docdir/%name-%version/tcl-examples/.xsetup

%files -n kernel-source-%name


Full changelog you can see here

design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin