mirror of
https://abf.rosa.ru/djam/sane.git
synced 2025-02-23 17:23:00 +00:00
sync to cooker
This commit is contained in:
parent
78fe8bc34c
commit
58b3799cf2
2 changed files with 45 additions and 181 deletions
|
@ -1,7 +1,7 @@
|
||||||
Index: doc/descriptions/epson.desc
|
Index: doc/descriptions/epson.desc
|
||||||
===================================================================
|
===================================================================
|
||||||
--- doc/descriptions/epson.desc
|
--- ./doc/descriptions/epson.desc
|
||||||
+++ doc/descriptions/epson.desc 2010-05-03 09:47:04.000000000 +0200
|
+++ ./doc/descriptions/epson.desc 2010-05-03 09:47:04.000000000 +0200
|
||||||
@@ -172,7 +172,7 @@
|
@@ -172,7 +172,7 @@
|
||||||
:status :complete
|
:status :complete
|
||||||
|
|
||||||
|
@ -13,8 +13,8 @@ Index: doc/descriptions/epson.desc
|
||||||
:model "Expression 1600"
|
:model "Expression 1600"
|
||||||
Index: doc/descriptions/epson2.desc
|
Index: doc/descriptions/epson2.desc
|
||||||
===================================================================
|
===================================================================
|
||||||
--- doc/descriptions/epson2.desc
|
--- ./doc/descriptions/epson2.desc
|
||||||
+++ doc/descriptions/epson2.desc 2010-05-03 09:48:31.000000000 +0200
|
+++ ./doc/descriptions/epson2.desc 2010-05-03 09:48:31.000000000 +0200
|
||||||
@@ -239,7 +239,7 @@
|
@@ -239,7 +239,7 @@
|
||||||
:comment "overseas version of the GT-9500"
|
:comment "overseas version of the GT-9500"
|
||||||
|
|
||||||
|
|
218
sane.spec
218
sane.spec
|
@ -1,9 +1,9 @@
|
||||||
%define beta %nil
|
|
||||||
%define libmajor 1
|
|
||||||
%define libname %mklibname %{name} %{libmajor}
|
|
||||||
%define develname %mklibname %{name} %{libmajor} -d
|
|
||||||
|
|
||||||
%define iscanversion 2.24.0
|
%define iscanversion 2.24.0
|
||||||
|
%define beta %nil
|
||||||
|
%define major 1
|
||||||
|
%define libname %mklibname %{name} %{major}
|
||||||
|
%define devname %mklibname %{name} %{major} -d
|
||||||
|
|
||||||
|
|
||||||
# All sane backends have SONAME libsane.so.1. We do not want
|
# All sane backends have SONAME libsane.so.1. We do not want
|
||||||
# sane-backends-iscan to provide libsane.so.1, so filter these out.
|
# sane-backends-iscan to provide libsane.so.1, so filter these out.
|
||||||
|
@ -34,16 +34,16 @@
|
||||||
%define epkowa_support 0
|
%define epkowa_support 0
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
Summary: SANE - local and remote scanner access
|
||||||
Name: sane
|
Name: sane
|
||||||
Version: 1.0.23
|
Version: 1.0.23
|
||||||
Release: 3
|
Release: 4
|
||||||
Summary: SANE - local and remote scanner access
|
|
||||||
# lib/ is LGPLv2+, backends are GPLv2+ with exceptions
|
# lib/ is LGPLv2+, backends are GPLv2+ with exceptions
|
||||||
# Tools are GPLv2+, docs are public domain
|
# Tools are GPLv2+, docs are public domain
|
||||||
License: GPLv2+ and GPLv2+ with exceptions and Public Domain
|
License: GPLv2+ and GPLv2+ with exceptions and Public Domain
|
||||||
Group: Graphics
|
Group: Graphics
|
||||||
URL: http://www.sane-project.org/
|
Url: http://www.sane-project.org/
|
||||||
Source0: ftp://ftp.sane-project.org/pub/sane/sane-%version/sane-backends-%{version}%{beta}.tar.gz
|
Source0: ftp://ftp.sane-project.org/pub/sane/sane-%{version}/sane-backends-%{version}%{beta}.tar.gz
|
||||||
Source3: http://belnet.dl.sourceforge.net/sourceforge/px-backend/primaxscan-1.1.beta1.tar.bz2
|
Source3: http://belnet.dl.sourceforge.net/sourceforge/px-backend/primaxscan-1.1.beta1.tar.bz2
|
||||||
Source5: saned-xinetd
|
Source5: saned-xinetd
|
||||||
Source9: http://heanet.dl.sourceforge.net/sourceforge/hp44x0backend/sane_hp_rts88xx-0.18.tar.bz2
|
Source9: http://heanet.dl.sourceforge.net/sourceforge/hp44x0backend/sane_hp_rts88xx-0.18.tar.bz2
|
||||||
|
@ -58,11 +58,8 @@ Source13: iscan_%{iscanversion}-4-free.tar.bz2
|
||||||
Source14: http://downloads.sourceforge.net/project/geniusvp2/sane-backend-geniusvp2/1.0.16.1/sane-backend-geniusvp2_1.0.16.1.tar.gz
|
Source14: http://downloads.sourceforge.net/project/geniusvp2/sane-backend-geniusvp2/1.0.16.1/sane-backend-geniusvp2_1.0.16.1.tar.gz
|
||||||
Source15: sane.rpmlintrc
|
Source15: sane.rpmlintrc
|
||||||
Patch1: sane-backends-1.0.18-plustek-s12.patch
|
Patch1: sane-backends-1.0.18-plustek-s12.patch
|
||||||
Patch9: sane-sparc.patch
|
|
||||||
#Patch20: http://projects.troy.rollo.name/rt-scanners/hp3500.diff
|
|
||||||
Patch21: sane-hp_rts88xx-0.18_fix_link.patch
|
Patch21: sane-hp_rts88xx-0.18_fix_link.patch
|
||||||
Patch23: iscan-2.10.0-1_fix_link.patch
|
Patch23: iscan-2.10.0-1_fix_link.patch
|
||||||
Patch24: sane-backends-1.0.21-link.patch
|
|
||||||
Patch26: iscan-2.20.1-no_non-free_please.diff
|
Patch26: iscan-2.20.1-no_non-free_please.diff
|
||||||
Patch27: iscan-2.20.1-linkage_fix.patch
|
Patch27: iscan-2.20.1-linkage_fix.patch
|
||||||
# (fc) 1.0.19-12mdv fix group for device
|
# (fc) 1.0.19-12mdv fix group for device
|
||||||
|
@ -75,16 +72,10 @@ Patch31: sane-backends-1.0.22-strformat.patch
|
||||||
# Debian patches
|
# Debian patches
|
||||||
# new build system breaks build when using pthreads.
|
# new build system breaks build when using pthreads.
|
||||||
Patch101: 01_missing_pthreads.dpatch
|
Patch101: 01_missing_pthreads.dpatch
|
||||||
# only link the frontends with the libraries they need.
|
|
||||||
Patch102: 02_frontends_libs.dpatch
|
|
||||||
# reduce libsane.so deps to the bare minimum.
|
|
||||||
Patch103: 03_libsane_deps.dpatch
|
|
||||||
# add back SANE_CAP_ALWAYS_SETTABLE which was mistakenly
|
# add back SANE_CAP_ALWAYS_SETTABLE which was mistakenly
|
||||||
# removed from SANE 1.0.20
|
# removed from SANE 1.0.20
|
||||||
Patch106: 06_cap_always_settable.dpatch
|
Patch106: 06_cap_always_settable.dpatch
|
||||||
# Update es translation and add new gl translation, courtesy of
|
# Update es translation and add new gl translation, courtesy of
|
||||||
# Miguel Bouzada <mbouzada@gmail.com>.
|
|
||||||
Patch109: 09_po_update_es_add_gl.dpatch
|
|
||||||
# Use fedora's patch to remove rpath
|
# Use fedora's patch to remove rpath
|
||||||
# Patch to the dll backend to look for pieces of dll.conf inside the
|
# Patch to the dll backend to look for pieces of dll.conf inside the
|
||||||
# /etc/sane.d/dll.d/ directory. This is a facility for packages providing
|
# /etc/sane.d/dll.d/ directory. This is a facility for packages providing
|
||||||
|
@ -93,34 +84,23 @@ Patch113: 22_dll_backend_conf.dpatch
|
||||||
Patch115: 24_sane-desc.c_debian_mods.dpatch
|
Patch115: 24_sane-desc.c_debian_mods.dpatch
|
||||||
|
|
||||||
# Fedora patches
|
# Fedora patches
|
||||||
Patch202: sane-backends-1.0.20-open-macro.patch
|
Patch202: sane-backends-1.0.20-open-macro.patch
|
||||||
Patch203: sane-backends-1.0.20-hal.patch
|
Patch205: sane-backends-1.0.20-epson-expression800.patch
|
||||||
Patch205: sane-backends-1.0.20-epson-expression800.patch
|
|
||||||
|
|
||||||
Requires: %{libname} = %{version}-%{release}
|
|
||||||
Requires: sane-backends = %{version}-%{release}
|
|
||||||
|
|
||||||
BuildRequires: jpeg-devel
|
|
||||||
BuildRequires: tiff-devel
|
|
||||||
BuildRequires: pkgconfig(libusb)
|
|
||||||
BuildRequires: ieee1284-devel
|
|
||||||
BuildRequires: libtool-devel
|
|
||||||
BuildRequires: tetex-latex
|
|
||||||
BuildRequires: tetex-dvips
|
|
||||||
BuildRequires: texlive
|
|
||||||
BuildRequires: gettext
|
BuildRequires: gettext
|
||||||
BuildRequires: gettext-devel
|
BuildRequires: gettext-devel
|
||||||
|
BuildRequires: ieee1284-devel
|
||||||
|
BuildRequires: libtool-devel
|
||||||
|
BuildRequires: jpeg-devel
|
||||||
|
BuildRequires: tiff-devel
|
||||||
BuildRequires: pkgconfig(gtk+-2.0)
|
BuildRequires: pkgconfig(gtk+-2.0)
|
||||||
|
BuildRequires: pkgconfig(libusb)
|
||||||
%if %{gphoto2_support}
|
%if %{gphoto2_support}
|
||||||
BuildRequires: pkgconfig(libgphoto2)
|
BuildRequires: pkgconfig(libgphoto2)
|
||||||
%endif
|
%endif
|
||||||
%if %{v4l_support}
|
%if %{v4l_support}
|
||||||
BuildRequires: pkgconfig(libv4l1)
|
BuildRequires: pkgconfig(libv4l1)
|
||||||
%endif
|
%endif
|
||||||
%if %{epkowa_support}
|
|
||||||
BuildRequires: autoconf
|
|
||||||
BuildRequires: automake
|
|
||||||
%endif
|
|
||||||
# ensure resmgr is not pulled
|
# ensure resmgr is not pulled
|
||||||
BuildConflicts: resmgr-devel
|
BuildConflicts: resmgr-devel
|
||||||
|
|
||||||
|
@ -140,49 +120,26 @@ to enable it, install the saned package.
|
||||||
|
|
||||||
%package -n %{libname}
|
%package -n %{libname}
|
||||||
Group: System/Kernel and hardware
|
Group: System/Kernel and hardware
|
||||||
License: LGPL
|
License: LGPLv2
|
||||||
Summary: SANE - local and remote scanner access. This package contains the sane library
|
Summary: SANE - local and remote scanner access. This package contains the sane library
|
||||||
Provides: libsane = %{version}-%{release}
|
|
||||||
|
|
||||||
%description -n %{libname}
|
%description -n %{libname}
|
||||||
SANE (Scanner Access Now Easy) is a sane and simple interface
|
This package contains the shared libraries for %{name}.
|
||||||
to both local and networked scanners and other image acquisition devices
|
|
||||||
like digital still and video cameras. SANE currently includes modules for
|
|
||||||
accessing a range of scanners, including models from Agfa SnapScan, Apple,
|
|
||||||
Artec, Canon, CoolScan, Epson, HP, Microtek, Mustek, Nikon, Siemens,
|
|
||||||
Tamarack, UMAX, Connectix, QuickCams and other SANE devices via network.
|
|
||||||
|
|
||||||
For the latest information on SANE, the SANE standard definition, and
|
%package -n %{devname}
|
||||||
mailing list access, see http://www.mostang.com/sane/
|
|
||||||
|
|
||||||
This package does not enable network scanning by default; if you wish
|
|
||||||
to enable it, install the saned package.
|
|
||||||
|
|
||||||
%package -n %{develname}
|
|
||||||
Group: Development/C
|
Group: Development/C
|
||||||
License: LGPL
|
License: LGPL
|
||||||
Summary: SANE - local and remote scanner access
|
Summary: SANE - local and remote scanner access
|
||||||
Requires: %{libname} = %{version}
|
Requires: %{libname} = %{version}-%{release}
|
||||||
Provides: libsane-devel = %{version}-%{release}
|
|
||||||
Provides: sane-devel = %{version}-%{release}
|
Provides: sane-devel = %{version}-%{release}
|
||||||
|
|
||||||
%description -n %{develname}
|
%description -n %{devname}
|
||||||
SANE (Scanner Access Now Easy) is a sane and simple interface
|
|
||||||
to both local and networked scanners and other image acquisition devices
|
|
||||||
like digital still and video cameras. SANE currently includes modules for
|
|
||||||
accessing a range of scanners, including models from Agfa SnapScan, Apple,
|
|
||||||
Artec, Canon, CoolScan, Epson, HP, Microtek, Mustek, Nikon, Siemens,
|
|
||||||
Tamarack, UMAX, Connectix, QuickCams and other SANE devices via network.
|
|
||||||
|
|
||||||
For the latest information on SANE, the SANE standard definition, and
|
|
||||||
mailing list access, see http://www.mostang.com/sane/
|
|
||||||
|
|
||||||
This package contains the headers and development libraries necessary
|
This package contains the headers and development libraries necessary
|
||||||
to develop applications using SANE.
|
to develop applications using SANE.
|
||||||
|
|
||||||
%package backends
|
%package backends
|
||||||
Group: System/Kernel and hardware
|
Group: System/Kernel and hardware
|
||||||
License: LGPL
|
License: LGPLv2
|
||||||
Summary: SANE - local and remote scanner access
|
Summary: SANE - local and remote scanner access
|
||||||
Provides: %{name} = %{version}-%{release}
|
Provides: %{name} = %{version}-%{release}
|
||||||
%if %epkowa_support
|
%if %epkowa_support
|
||||||
|
@ -190,44 +147,16 @@ Suggests: iscan
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%description backends
|
%description backends
|
||||||
SANE (Scanner Access Now Easy) is a sane and simple interface
|
|
||||||
to both local and networked scanners and other image acquisition devices
|
|
||||||
like digital still and video cameras. SANE currently includes modules for
|
|
||||||
accessing a range of scanners, including models from Agfa SnapScan, Apple,
|
|
||||||
Artec, Canon, CoolScan, Epson, HP, Microtek, Mustek, Nikon, Siemens,
|
|
||||||
Tamarack, UMAX, Connectix, QuickCams and other SANE devices via network.
|
|
||||||
|
|
||||||
For the latest information on SANE, the SANE standard definition, and
|
|
||||||
mailing list access, see http://www.mostang.com/sane/
|
|
||||||
|
|
||||||
This package does not enable network scanning by default; if you wish
|
|
||||||
to enable it, install the saned package and set up the sane-net backend.
|
|
||||||
This package contains the backends for different scanners.
|
This package contains the backends for different scanners.
|
||||||
|
|
||||||
%if %epkowa_support
|
%if %epkowa_support
|
||||||
%package backends-iscan
|
%package backends-iscan
|
||||||
Group: System/Kernel and hardware
|
Group: System/Kernel and hardware
|
||||||
License: LGPL
|
License: LGPLv2
|
||||||
Summary: SANE - local and remote scanner access
|
Summary: SANE - local and remote scanner access
|
||||||
Provides: iscan = %{iscanversion}
|
Provides: iscan = %{iscanversion}
|
||||||
Conflicts: sane-backends < 1.0.19-3
|
|
||||||
Conflicts: %{libname} < 1.0.19-5
|
|
||||||
Conflicts: %{develname} < 1.0.20-7
|
|
||||||
|
|
||||||
%description backends-iscan
|
%description backends-iscan
|
||||||
SANE (Scanner Access Now Easy) is a sane and simple interface
|
|
||||||
to both local and networked scanners and other image acquisition devices
|
|
||||||
like digital still and video cameras. SANE currently includes modules for
|
|
||||||
accessing a range of scanners, including models from Agfa SnapScan, Apple,
|
|
||||||
Artec, Canon, CoolScan, Epson, HP, Microtek, Mustek, Nikon, Siemens,
|
|
||||||
Tamarack, UMAX, Connectix, QuickCams and other SANE devices via network.
|
|
||||||
|
|
||||||
For the latest information on SANE, the SANE standard definition, and
|
|
||||||
mailing list access, see http://www.mostang.com/sane/
|
|
||||||
|
|
||||||
This package does not enable network scanning by default; if you wish
|
|
||||||
to enable it, install the saned package and set up the sane-net backend.
|
|
||||||
|
|
||||||
This package contains the iscan backend, in order to not conflict with
|
This package contains the iscan backend, in order to not conflict with
|
||||||
manufacturer-supplied packages.
|
manufacturer-supplied packages.
|
||||||
%endif
|
%endif
|
||||||
|
@ -240,90 +169,35 @@ Group: System/Kernel and hardware
|
||||||
This package contains the SANE backend documentation for different
|
This package contains the SANE backend documentation for different
|
||||||
scanners.
|
scanners.
|
||||||
|
|
||||||
SANE (Scanner Access Now Easy) is a sane and simple interface
|
|
||||||
to both local and networked scanners and other image acquisition devices
|
|
||||||
like digital still and video cameras. SANE currently includes modules for
|
|
||||||
accessing a range of scanners, including models from Agfa SnapScan, Apple,
|
|
||||||
Artec, Canon, CoolScan, Epson, HP, Microtek, Mustek, Nikon, Siemens,
|
|
||||||
Tamarack, UMAX, Connectix, QuickCams and other SANE devices via network.
|
|
||||||
|
|
||||||
For the latest information on SANE, the SANE standard definition, and
|
|
||||||
mailing list access, see http://www.mostang.com/sane/
|
|
||||||
|
|
||||||
This package does not enable network scanning by default; if you wish
|
|
||||||
to enable it, install the saned package and set up the sane-net backend.
|
|
||||||
|
|
||||||
%package -n saned
|
%package -n saned
|
||||||
Group: System/Kernel and hardware
|
Group: System/Kernel and hardware
|
||||||
License: LGPL
|
License: LGPLv2
|
||||||
Summary: SANE - local and remote scanner access
|
Summary: SANE - local and remote scanner access
|
||||||
Provides: %{name} = %{version}-%{release}
|
Provides: %{name} = %{version}-%{release}
|
||||||
Provides: saned = %{version}-%{release}
|
Provides: saned = %{version}-%{release}
|
||||||
Requires: sane-backends >= 1.0.15-2mdk
|
Requires: sane-backends >= %{version}-%{release}
|
||||||
Requires: xinetd
|
Requires: xinetd
|
||||||
Requires(preun,post): rpm-helper
|
Requires(preun,post): rpm-helper
|
||||||
|
|
||||||
%description -n saned
|
%description -n saned
|
||||||
SANE (Scanner Access Now Easy) is a sane and simple interface
|
|
||||||
to both local and networked scanners and other image acquisition devices
|
|
||||||
like digital still and video cameras. SANE currently includes modules for
|
|
||||||
accessing a range of scanners, including models from Agfa SnapScan, Apple,
|
|
||||||
Artec, Canon, CoolScan, Epson, HP, Microtek, Mustek, Nikon, Siemens,
|
|
||||||
Tamarack, UMAX, Connectix, QuickCams and other SANE devices via network.
|
|
||||||
|
|
||||||
For the latest information on SANE, the SANE standard definition, and
|
|
||||||
mailing list access, see http://www.mostang.com/sane/
|
|
||||||
|
|
||||||
This package contains saned, a daemon that allows remote clients to
|
This package contains saned, a daemon that allows remote clients to
|
||||||
access image acquisition devices available on the local host.
|
access image acquisition devices available on the local host.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n sane-backends-%{version}%{beta}
|
%setup -qn sane-backends-%{version}%{beta}
|
||||||
%patch1 -p1 -b .plusteks12
|
%patch1 -p1 -b .plusteks12
|
||||||
#patch24 -p0 -b .link
|
|
||||||
%patch28 -p1 -b .group
|
%patch28 -p1 -b .group
|
||||||
%patch30 -p1 -b .brother2list
|
%patch30 -p1 -b .brother2list
|
||||||
%patch31 -p1 -b .strformat
|
%patch31 -p1 -b .strformat
|
||||||
|
|
||||||
%patch101 -p1
|
%patch101 -p1
|
||||||
#patch102 -p1
|
|
||||||
##patch103 -p1
|
|
||||||
%patch106 -p1
|
%patch106 -p1
|
||||||
#%patch109 -p1
|
|
||||||
%patch113 -p1
|
%patch113 -p1
|
||||||
%patch115 -p1
|
%patch115 -p1
|
||||||
|
|
||||||
# Fedora patches
|
# Fedora patches
|
||||||
%patch202 -p1 -b .open-macro
|
%patch202 -p1 -b .open-macro
|
||||||
#%patch203 -p1 -b .hal
|
%patch205 -p1 -b .epson-expression800
|
||||||
%patch205 -p0 -b .epson-expression800
|
|
||||||
|
|
||||||
|
|
||||||
# Patches for non-x86 platforms
|
|
||||||
%ifarch sparc
|
|
||||||
%patch9 -p1 -b .sparc
|
|
||||||
%endif
|
|
||||||
|
|
||||||
# "geniusvp2" backend
|
|
||||||
#setup -q -T -D -a 14 -n sane-backends-%{version}
|
|
||||||
|
|
||||||
# "hp3500" backend
|
|
||||||
# Patch does not match on file unsupported.desc (change should not affect
|
|
||||||
# the backend itself), so we force it in
|
|
||||||
#bzcat %{PATCH20} | patch -p0 -b --suffix .hp3500 -f || :
|
|
||||||
|
|
||||||
# Fix parallel build (Gwenole)
|
|
||||||
#for a in `find . -name Makefile.in -print`; do \
|
|
||||||
# perl -p -i -e 's/^(\s*TARGETS\s+=\s+)(\S+)(\s+)(\$\(\S+_LTOBJS\))/$1$4$3$2/' $a; \
|
|
||||||
#done
|
|
||||||
|
|
||||||
# Patch for the HP ScanJet 44x0C scanners ("hp_rts88xx" backend)
|
|
||||||
#%setup -q -T -D -a 9 -n sane-backends-%{version}%{beta}
|
|
||||||
#cd sane_hp_rts88xx/sane_hp_rts88xx
|
|
||||||
#./patch-sane.sh %{_builddir}/sane-backends-%{version}%{beta}
|
|
||||||
#cd ../..
|
|
||||||
#patch21 -p1 -b .hp_rts88xx-0.18-fix_link
|
|
||||||
#echo 'hp_rts88xx' >> backend/dll.conf.in
|
|
||||||
|
|
||||||
# Primax parallel port scanners
|
# Primax parallel port scanners
|
||||||
%if %{primax_support}
|
%if %{primax_support}
|
||||||
|
@ -342,9 +216,6 @@ cat %{SOURCE12} > backend/primascan.c
|
||||||
echo '#primascan' >> backend/dll.conf.in
|
echo '#primascan' >> backend/dll.conf.in
|
||||||
autoreconf -fi
|
autoreconf -fi
|
||||||
|
|
||||||
# Scanners in some Brother MF devices
|
|
||||||
#setup -q -T -D -a 10 -n sane-backends-%{version}%{beta}
|
|
||||||
|
|
||||||
# Epson Avasys driver for Epson scanners
|
# Epson Avasys driver for Epson scanners
|
||||||
%if %{epkowa_support}
|
%if %{epkowa_support}
|
||||||
%setup -q -T -D -a 13 -n sane-backends-%{version}%{beta}
|
%setup -q -T -D -a 13 -n sane-backends-%{version}%{beta}
|
||||||
|
@ -352,7 +223,7 @@ autoreconf -fi
|
||||||
|
|
||||||
# lib64 fixes (avoid patch)
|
# lib64 fixes (avoid patch)
|
||||||
# NOTE: don't regenerate configure script past this line
|
# NOTE: don't regenerate configure script past this line
|
||||||
perl -pi -e "s@/lib(\"|\b[^/])@/%_lib\1@g if /LDFLAGS=.*with_ptal/" configure
|
perl -pi -e "s@/lib(\"|\b[^/])@/%{_lib}\1@g if /LDFLAGS=.*with_ptal/" configure
|
||||||
|
|
||||||
# Reduce number of retries done by the "snapscan" backend when accessing
|
# Reduce number of retries done by the "snapscan" backend when accessing
|
||||||
# the scanner
|
# the scanner
|
||||||
|
@ -378,18 +249,15 @@ rm -f backend/dll.conf
|
||||||
--without-gphoto2
|
--without-gphoto2
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
# Do not use macros here (with percent in the beginning) as parallelized
|
|
||||||
# build does not work
|
|
||||||
%make
|
%make
|
||||||
|
|
||||||
# Primax parallel port scanners
|
# Primax parallel port scanners
|
||||||
%if %{primax_support}
|
%if %{primax_support}
|
||||||
chmod a+rx tools/sane-config
|
chmod a+rx tools/sane-config
|
||||||
cd primaxscan*
|
cd primaxscan*
|
||||||
|
autoreconf -fi
|
||||||
PATH=`pwd`/../tools:${PATH}
|
PATH=`pwd`/../tools:${PATH}
|
||||||
CFLAGS="${RPM_OPT_FLAGS/-ffast-math/} -fPIC -I`pwd`/../include -L`pwd`/../backend/.libs/"\
|
CFLAGS="${RPM_OPT_FLAGS/-ffast-math/} -fPIC -I`pwd`/../include -L`pwd`/../backend/.libs/"\
|
||||||
#CFLAGS="${RPM_OPT_FLAGS/-ffast-math/} -I`pwd`/../include/sane -L`pwd`/../backend/.libs/"\
|
|
||||||
%configure2_5x \
|
%configure2_5x \
|
||||||
--disable-static
|
--disable-static
|
||||||
|
|
||||||
|
@ -403,7 +271,6 @@ cd ..
|
||||||
chmod a+rx tools/sane-config
|
chmod a+rx tools/sane-config
|
||||||
PATH=`pwd`/tools:${PATH}
|
PATH=`pwd`/tools:${PATH}
|
||||||
cd iscan-%{iscanversion}
|
cd iscan-%{iscanversion}
|
||||||
#autoconf
|
|
||||||
sh ./bootstrap
|
sh ./bootstrap
|
||||||
export CFLAGS="${RPM_OPT_FLAGS/-ffast-math/} -I`pwd`/../include -L`pwd`/../backend/ -fPIC"
|
export CFLAGS="${RPM_OPT_FLAGS/-ffast-math/} -I`pwd`/../include -L`pwd`/../backend/ -fPIC"
|
||||||
export CXXFLAGS="${RPM_OPT_FLAGS/-ffast-math/} -I`pwd`/../include -L`pwd`/../backend/ -fPIC"
|
export CXXFLAGS="${RPM_OPT_FLAGS/-ffast-math/} -I`pwd`/../include -L`pwd`/../backend/ -fPIC"
|
||||||
|
@ -415,14 +282,11 @@ cd ..
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf %{buildroot}
|
|
||||||
%makeinstall_std
|
%makeinstall_std
|
||||||
|
|
||||||
# Create missing lock dir
|
# Create missing lock dir
|
||||||
install -d %{buildroot}/var/lib/lock/sane
|
install -d %{buildroot}/var/lib/lock/sane
|
||||||
|
|
||||||
#mv %{buildroot}/%{_sbindir}/saned %{buildroot}/%{_sbindir}/in.saned
|
|
||||||
#install -m 755 tools/sane-find-scanner %{buildroot}/%{_bindir}
|
|
||||||
perl -pi -e "s/installed.*/installed=yes/g" %{buildroot}%{_libdir}/libsane.la
|
perl -pi -e "s/installed.*/installed=yes/g" %{buildroot}%{_libdir}/libsane.la
|
||||||
/sbin/ldconfig -n %{buildroot}%{_libdir} %{buildroot}%{_libdir}/sane
|
/sbin/ldconfig -n %{buildroot}%{_libdir} %{buildroot}%{_libdir}/sane
|
||||||
|
|
||||||
|
@ -456,14 +320,14 @@ EOF
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# Move documentation from /usr/doc to /usr/share/doc
|
# Move documentation from /usr/doc to /usr/share/doc
|
||||||
install -d %{buildroot}%{_docdir}/sane-backends-%version/
|
install -d %{buildroot}%{_docdir}/sane-backends-%{version}/
|
||||||
install -d %{buildroot}%{_docdir}/sane-backends-doc-%version/
|
install -d %{buildroot}%{_docdir}/sane-backends-doc-%{version}/
|
||||||
pushd %{buildroot}/usr/doc/sane-%{version}
|
pushd %{buildroot}/usr/doc/sane-%{version}
|
||||||
#pushd %{buildroot}/usr/doc/sane-1.0.18-cvs
|
#pushd %{buildroot}/usr/doc/sane-1.0.18-cvs
|
||||||
mv `find -mindepth 1 -type d` *.html *.txt %{buildroot}%{_docdir}/sane-backends-doc-%version/
|
mv `find -mindepth 1 -type d` *.html *.txt %{buildroot}%{_docdir}/sane-backends-doc-%{version}/
|
||||||
mv README README.linux %{buildroot}%{_docdir}/sane-backends-%version/
|
mv README README.linux %{buildroot}%{_docdir}/sane-backends-%{version}/
|
||||||
rm -f README.*
|
rm -f README.*
|
||||||
mv * %{buildroot}%{_docdir}/sane-backends-%version/
|
mv * %{buildroot}%{_docdir}/sane-backends-%{version}/
|
||||||
popd
|
popd
|
||||||
|
|
||||||
# Primax parallel port scanners
|
# Primax parallel port scanners
|
||||||
|
@ -518,7 +382,7 @@ sed -i '/^%dir/d' sane-backends.lang
|
||||||
%_postun_userdel saned
|
%_postun_userdel saned
|
||||||
|
|
||||||
%files backends -f sane-backends.lang
|
%files backends -f sane-backends.lang
|
||||||
%doc %{_docdir}/sane-backends-%version
|
%doc %{_docdir}/sane-backends-%{version}
|
||||||
%{_bindir}/sane-find-scanner
|
%{_bindir}/sane-find-scanner
|
||||||
%{_bindir}/scanimage
|
%{_bindir}/scanimage
|
||||||
%{_bindir}/gamma4scanimage
|
%{_bindir}/gamma4scanimage
|
||||||
|
@ -550,24 +414,24 @@ sed -i '/^%dir/d' sane-backends.lang
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files backends-doc
|
%files backends-doc
|
||||||
%doc %{_docdir}/sane-backends-doc-%version
|
%doc %{_docdir}/sane-backends-doc-%{version}
|
||||||
|
|
||||||
%files -n %{libname}
|
%files -n %{libname}
|
||||||
%{_libdir}/*.so.*
|
%{_libdir}/*.so.%{major}*
|
||||||
%dir %{_libdir}/sane
|
%dir %{_libdir}/sane
|
||||||
%{_libdir}/sane/*.so.*
|
%{_libdir}/sane/*.so.*
|
||||||
%if %epkowa_support
|
%if %epkowa_support
|
||||||
%exclude %_libdir/sane/libsane-epkowa.*
|
%exclude %{_libdir}/sane/libsane-epkowa.*
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files -n %{develname}
|
%files -n %{devname}
|
||||||
%{_bindir}/sane-config
|
%{_bindir}/sane-config
|
||||||
%{_libdir}/*.so
|
%{_libdir}/*.so
|
||||||
%{_libdir}/sane/*.so
|
%{_libdir}/sane/*.so
|
||||||
%_libdir/pkgconfig/*.pc
|
%{_libdir}/pkgconfig/*.pc
|
||||||
%{_includedir}/sane
|
%{_includedir}/sane
|
||||||
%if %epkowa_support
|
%if %epkowa_support
|
||||||
%exclude %_libdir/sane/libsane-epkowa*
|
%exclude %{_libdir}/sane/libsane-epkowa*
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files -n saned
|
%files -n saned
|
||||||
|
|
Loading…
Add table
Reference in a new issue