sane-backends/sane-backends.spec

483 lines
24 KiB
RPMSpec
Raw Normal View History

#
# spec file for package sane-backends
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
Accepting request 777794 from home:StefanBruens:branches:graphics - Move udev rules from /etc/udev/ to /usr/udev. - Package libsane1 library as a separate package. This avoids pulling in the backends just a application links to it. - Hide the backends from automatic Provides generation, as these all have a libsane.so SONAME. - Update to 1.0.29: * Backends + adds an escl backend (theoretically supporting all AirPrint devices with a scan unit) + adds support for 23 new scanner models via existing backends + significantly changes genesys and pixma backends + fixes bugs in canon_dr, fujitsu, hp3900, mustek_usb2, plustek and xerox_mfp backends + fixes all compiler warnings on Debian 10 (#120) + fixes portability issues for uClibc-ng and MacOS builds + adds support to record and replay USB I/O traffic + adds timestamps to debug logs * Frontends + fixes a 32-bit arithmetic overflow issue in scanimage * Documentation + updates translations for British English, Catalan, German, Ukrainian, Valencian + adds scangearmp2 external backend descriptions + updates hpaio and utsushi external backend descriptions + adds the ChangeLogs/ directory to the source tarball (#103) * Build + additionally requires libcurl and libxml2 to build the escl backend + requires libxml2 for USB I/O recording and replay functionality + re-enables pthread support for backends that use its API directly, irrespective of the pthread_t type (#153) + moves genesys and pixma backends to a directory of their own - Update to 1.0.28: * Backends + adds a ricoh2 backend + adds support for 40+ new scanner models + significantly changes canon_dr, fujitsu, genesys, gt68xx, + hp5590 and, pixma backends + fixes bugs in as6e, avision, mustek and plustek backends + fixes scores of compiler warnings * Frontends + adds, changes and removes options for saned (see man 8 saned for details) - adds: -l (listen), -D (daemonize), -o (once), -e (stderr), -u (user) - removes: -s (syslog). Use -a -d level -o -f for the old behavior - changes: -d (debug). Use -a -d level -o -f -e for the old behavior + saned now cancels scans if the data connections appears to have gone away (after 4 seconds by default, configurable in saned.conf) + adds --output-file option to scanimage + adds --help option to scan-find-scanner + changes sane-desc to create relative hyperlinks * Documentation + adds translations for Catalan, Hebrew and Valencian + updates translations for British English, Dutch, German and + Ukrainian + marks unmaintained backends as such + documents USB workaround in sane-usb manual page * Build + requires a C++11 compatible compiler for the genesys backend + requires a JPEG library when building the pixma backend + fixes unneeded linking when not using preloadable backend support + disables pthread support for systems with non-integral pthread_t type + normalizes trailing whitespace in source code files. If you have local patches that no longer apply, have a look at the whitespace ignoring options of patch and git apply. - Rebased patches: * sane-backends.builttime.patch - Dropped patches: * no-descriptions-external-hpoj.patch OBS-URL: https://build.opensuse.org/request/show/777794 OBS-URL: https://build.opensuse.org/package/show/graphics/sane-backends?expand=0&rev=95
2020-02-23 13:44:14 +01:00
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
# Cf. https://rpm.org/user_doc/conditional_builds.html
# by default enable support for PWG eSCL network backend
Accepting request 777794 from home:StefanBruens:branches:graphics - Move udev rules from /etc/udev/ to /usr/udev. - Package libsane1 library as a separate package. This avoids pulling in the backends just a application links to it. - Hide the backends from automatic Provides generation, as these all have a libsane.so SONAME. - Update to 1.0.29: * Backends + adds an escl backend (theoretically supporting all AirPrint devices with a scan unit) + adds support for 23 new scanner models via existing backends + significantly changes genesys and pixma backends + fixes bugs in canon_dr, fujitsu, hp3900, mustek_usb2, plustek and xerox_mfp backends + fixes all compiler warnings on Debian 10 (#120) + fixes portability issues for uClibc-ng and MacOS builds + adds support to record and replay USB I/O traffic + adds timestamps to debug logs * Frontends + fixes a 32-bit arithmetic overflow issue in scanimage * Documentation + updates translations for British English, Catalan, German, Ukrainian, Valencian + adds scangearmp2 external backend descriptions + updates hpaio and utsushi external backend descriptions + adds the ChangeLogs/ directory to the source tarball (#103) * Build + additionally requires libcurl and libxml2 to build the escl backend + requires libxml2 for USB I/O recording and replay functionality + re-enables pthread support for backends that use its API directly, irrespective of the pthread_t type (#153) + moves genesys and pixma backends to a directory of their own - Update to 1.0.28: * Backends + adds a ricoh2 backend + adds support for 40+ new scanner models + significantly changes canon_dr, fujitsu, genesys, gt68xx, + hp5590 and, pixma backends + fixes bugs in as6e, avision, mustek and plustek backends + fixes scores of compiler warnings * Frontends + adds, changes and removes options for saned (see man 8 saned for details) - adds: -l (listen), -D (daemonize), -o (once), -e (stderr), -u (user) - removes: -s (syslog). Use -a -d level -o -f for the old behavior - changes: -d (debug). Use -a -d level -o -f -e for the old behavior + saned now cancels scans if the data connections appears to have gone away (after 4 seconds by default, configurable in saned.conf) + adds --output-file option to scanimage + adds --help option to scan-find-scanner + changes sane-desc to create relative hyperlinks * Documentation + adds translations for Catalan, Hebrew and Valencian + updates translations for British English, Dutch, German and + Ukrainian + marks unmaintained backends as such + documents USB workaround in sane-usb manual page * Build + requires a C++11 compatible compiler for the genesys backend + requires a JPEG library when building the pixma backend + fixes unneeded linking when not using preloadable backend support + disables pthread support for systems with non-integral pthread_t type + normalizes trailing whitespace in source code files. If you have local patches that no longer apply, have a look at the whitespace ignoring options of patch and git apply. - Rebased patches: * sane-backends.builttime.patch - Dropped patches: * no-descriptions-external-hpoj.patch OBS-URL: https://build.opensuse.org/request/show/777794 OBS-URL: https://build.opensuse.org/package/show/graphics/sane-backends?expand=0&rev=95
2020-02-23 13:44:14 +01:00
%bcond_without escl
# by default disable support for PWG eSCL network backend
#bcond_with escl
Accepting request 777794 from home:StefanBruens:branches:graphics - Move udev rules from /etc/udev/ to /usr/udev. - Package libsane1 library as a separate package. This avoids pulling in the backends just a application links to it. - Hide the backends from automatic Provides generation, as these all have a libsane.so SONAME. - Update to 1.0.29: * Backends + adds an escl backend (theoretically supporting all AirPrint devices with a scan unit) + adds support for 23 new scanner models via existing backends + significantly changes genesys and pixma backends + fixes bugs in canon_dr, fujitsu, hp3900, mustek_usb2, plustek and xerox_mfp backends + fixes all compiler warnings on Debian 10 (#120) + fixes portability issues for uClibc-ng and MacOS builds + adds support to record and replay USB I/O traffic + adds timestamps to debug logs * Frontends + fixes a 32-bit arithmetic overflow issue in scanimage * Documentation + updates translations for British English, Catalan, German, Ukrainian, Valencian + adds scangearmp2 external backend descriptions + updates hpaio and utsushi external backend descriptions + adds the ChangeLogs/ directory to the source tarball (#103) * Build + additionally requires libcurl and libxml2 to build the escl backend + requires libxml2 for USB I/O recording and replay functionality + re-enables pthread support for backends that use its API directly, irrespective of the pthread_t type (#153) + moves genesys and pixma backends to a directory of their own - Update to 1.0.28: * Backends + adds a ricoh2 backend + adds support for 40+ new scanner models + significantly changes canon_dr, fujitsu, genesys, gt68xx, + hp5590 and, pixma backends + fixes bugs in as6e, avision, mustek and plustek backends + fixes scores of compiler warnings * Frontends + adds, changes and removes options for saned (see man 8 saned for details) - adds: -l (listen), -D (daemonize), -o (once), -e (stderr), -u (user) - removes: -s (syslog). Use -a -d level -o -f for the old behavior - changes: -d (debug). Use -a -d level -o -f -e for the old behavior + saned now cancels scans if the data connections appears to have gone away (after 4 seconds by default, configurable in saned.conf) + adds --output-file option to scanimage + adds --help option to scan-find-scanner + changes sane-desc to create relative hyperlinks * Documentation + adds translations for Catalan, Hebrew and Valencian + updates translations for British English, Dutch, German and + Ukrainian + marks unmaintained backends as such + documents USB workaround in sane-usb manual page * Build + requires a C++11 compatible compiler for the genesys backend + requires a JPEG library when building the pixma backend + fixes unneeded linking when not using preloadable backend support + disables pthread support for systems with non-integral pthread_t type + normalizes trailing whitespace in source code files. If you have local patches that no longer apply, have a look at the whitespace ignoring options of patch and git apply. - Rebased patches: * sane-backends.builttime.patch - Dropped patches: * no-descriptions-external-hpoj.patch OBS-URL: https://build.opensuse.org/request/show/777794 OBS-URL: https://build.opensuse.org/package/show/graphics/sane-backends?expand=0&rev=95
2020-02-23 13:44:14 +01:00
Name: sane-backends
Accepting request 1171485 from home:Arnavion - Updated to sane-backends version 1.3.0 * Backends + avision: - Correction for ADF presence detect which caused a hang. - Internationalised some text items in the backend to make them available for translation. + epsonds: - Some small changes to option documentation. - Added support for models: ES-C220, DS-C330, and DS-C490. + escl: - Fix for pwf:Version item. - Fix for crash in libjpeg when cropping image. - Fix for issue with configured device when AVAHI not running. - Fix for build without poppler-glib. + fujitsu: - Added support for Ricoh scanners: FI-8040, FI-70F. + genesys: - Added missing configuration for Plustek OpticFilm 7500i and Plustek OpticFilm 8100. + hpljm1005: - Fixes to maximum geometries and various cropping and geometry details specifically for the HP LaserJet M1005. + lexmark_X2670: - Added new backend for the Lexmark X26xx series of scanners. + pixma: - Fix to prevent mode change when source is selected. Mode should not change if still valid for source. - Added support for models: TS8630 Series, XK110 Series, GX3000 Series, GX4000 Series, G3070 Series, G2070 Series, G4070 Series, G3030 Series, G2030 Series, TC-20M, TC-5200M, TR4500 Series, TS8700 series, XK120 series, GX1000 series, GX2000 series, TS6630 series, TS7700 series, TS7600i series, TS6730 series, TR7800 series, TS7700i series, TS7700A series, GX6500 series, i-SENSYS MF750 Series + snapscan: - Corrections for Agfa ARCUS 1200 scan area. + test: - Fix for a crash in the backend. + xerox_mfp: - Added support for Dell 1135n, which is a clone of the Samsung SCX-4623F. - Added support for Xerox WorkCentre 3335. - Added JPEG mitigation for modules that don't properly support JPEG output: Xerox WorkCentre 3225 - Fix to remove USB CLEAR HALT during initialisation which can potentially lock up devices. - General fixes to support the SCX-4521F model. * Frontends + saned: - Default scan buffer is now 1MB. -B option added to permit the buffersize to be set. - Documentation fixes. + scanimage: - Fix for keyboard prompt processing - Default scan buffer is now 1MB. --buffer-size and -B options now require an argument to be provided. - Fix for PDF generation, missing newline in generated file. * Build + Fixes for clang-16 compiler + Fixes for FreeBSD build. + Fixes for escl build option involving poppler-glib. + Optionally take build version from ChangeLog if not other version source is available. + Fixes to autoconf files to remove unnecessary warnings from test logs. + Fix for macOS builds related to threading support: SANE in macOS doesn't work for multi-process with libusb. * Tools + sane-find-scanner: Added some Linux SCSI device names since some later potential names are missing. Better solution in the pipeline. * Documentation + Fixes for a number of man pages. + Added documentation for a number of Ricoh scanners which are rebranded products acquired from Fujitsu. * Miscellaneous + sanei_config: Fix for a potential crash. + New Georgian translation added. + Translations updated for: British English, Ukrainian, French and Simplified Chinese. OBS-URL: https://build.opensuse.org/request/show/1171485 OBS-URL: https://build.opensuse.org/package/show/graphics/sane-backends?expand=0&rev=111
2024-05-03 07:38:08 +02:00
BuildRequires: autoconf-archive
BuildRequires: automake
Accepting request 777794 from home:StefanBruens:branches:graphics - Move udev rules from /etc/udev/ to /usr/udev. - Package libsane1 library as a separate package. This avoids pulling in the backends just a application links to it. - Hide the backends from automatic Provides generation, as these all have a libsane.so SONAME. - Update to 1.0.29: * Backends + adds an escl backend (theoretically supporting all AirPrint devices with a scan unit) + adds support for 23 new scanner models via existing backends + significantly changes genesys and pixma backends + fixes bugs in canon_dr, fujitsu, hp3900, mustek_usb2, plustek and xerox_mfp backends + fixes all compiler warnings on Debian 10 (#120) + fixes portability issues for uClibc-ng and MacOS builds + adds support to record and replay USB I/O traffic + adds timestamps to debug logs * Frontends + fixes a 32-bit arithmetic overflow issue in scanimage * Documentation + updates translations for British English, Catalan, German, Ukrainian, Valencian + adds scangearmp2 external backend descriptions + updates hpaio and utsushi external backend descriptions + adds the ChangeLogs/ directory to the source tarball (#103) * Build + additionally requires libcurl and libxml2 to build the escl backend + requires libxml2 for USB I/O recording and replay functionality + re-enables pthread support for backends that use its API directly, irrespective of the pthread_t type (#153) + moves genesys and pixma backends to a directory of their own - Update to 1.0.28: * Backends + adds a ricoh2 backend + adds support for 40+ new scanner models + significantly changes canon_dr, fujitsu, genesys, gt68xx, + hp5590 and, pixma backends + fixes bugs in as6e, avision, mustek and plustek backends + fixes scores of compiler warnings * Frontends + adds, changes and removes options for saned (see man 8 saned for details) - adds: -l (listen), -D (daemonize), -o (once), -e (stderr), -u (user) - removes: -s (syslog). Use -a -d level -o -f for the old behavior - changes: -d (debug). Use -a -d level -o -f -e for the old behavior + saned now cancels scans if the data connections appears to have gone away (after 4 seconds by default, configurable in saned.conf) + adds --output-file option to scanimage + adds --help option to scan-find-scanner + changes sane-desc to create relative hyperlinks * Documentation + adds translations for Catalan, Hebrew and Valencian + updates translations for British English, Dutch, German and + Ukrainian + marks unmaintained backends as such + documents USB workaround in sane-usb manual page * Build + requires a C++11 compatible compiler for the genesys backend + requires a JPEG library when building the pixma backend + fixes unneeded linking when not using preloadable backend support + disables pthread support for systems with non-integral pthread_t type + normalizes trailing whitespace in source code files. If you have local patches that no longer apply, have a look at the whitespace ignoring options of patch and git apply. - Rebased patches: * sane-backends.builttime.patch - Dropped patches: * no-descriptions-external-hpoj.patch OBS-URL: https://build.opensuse.org/request/show/777794 OBS-URL: https://build.opensuse.org/package/show/graphics/sane-backends?expand=0&rev=95
2020-02-23 13:44:14 +01:00
BuildRequires: gcc-c++
BuildRequires: libjpeg-devel
BuildRequires: libpng-devel
BuildRequires: libtiff-devel
Accepting request 1171485 from home:Arnavion - Updated to sane-backends version 1.3.0 * Backends + avision: - Correction for ADF presence detect which caused a hang. - Internationalised some text items in the backend to make them available for translation. + epsonds: - Some small changes to option documentation. - Added support for models: ES-C220, DS-C330, and DS-C490. + escl: - Fix for pwf:Version item. - Fix for crash in libjpeg when cropping image. - Fix for issue with configured device when AVAHI not running. - Fix for build without poppler-glib. + fujitsu: - Added support for Ricoh scanners: FI-8040, FI-70F. + genesys: - Added missing configuration for Plustek OpticFilm 7500i and Plustek OpticFilm 8100. + hpljm1005: - Fixes to maximum geometries and various cropping and geometry details specifically for the HP LaserJet M1005. + lexmark_X2670: - Added new backend for the Lexmark X26xx series of scanners. + pixma: - Fix to prevent mode change when source is selected. Mode should not change if still valid for source. - Added support for models: TS8630 Series, XK110 Series, GX3000 Series, GX4000 Series, G3070 Series, G2070 Series, G4070 Series, G3030 Series, G2030 Series, TC-20M, TC-5200M, TR4500 Series, TS8700 series, XK120 series, GX1000 series, GX2000 series, TS6630 series, TS7700 series, TS7600i series, TS6730 series, TR7800 series, TS7700i series, TS7700A series, GX6500 series, i-SENSYS MF750 Series + snapscan: - Corrections for Agfa ARCUS 1200 scan area. + test: - Fix for a crash in the backend. + xerox_mfp: - Added support for Dell 1135n, which is a clone of the Samsung SCX-4623F. - Added support for Xerox WorkCentre 3335. - Added JPEG mitigation for modules that don't properly support JPEG output: Xerox WorkCentre 3225 - Fix to remove USB CLEAR HALT during initialisation which can potentially lock up devices. - General fixes to support the SCX-4521F model. * Frontends + saned: - Default scan buffer is now 1MB. -B option added to permit the buffersize to be set. - Documentation fixes. + scanimage: - Fix for keyboard prompt processing - Default scan buffer is now 1MB. --buffer-size and -B options now require an argument to be provided. - Fix for PDF generation, missing newline in generated file. * Build + Fixes for clang-16 compiler + Fixes for FreeBSD build. + Fixes for escl build option involving poppler-glib. + Optionally take build version from ChangeLog if not other version source is available. + Fixes to autoconf files to remove unnecessary warnings from test logs. + Fix for macOS builds related to threading support: SANE in macOS doesn't work for multi-process with libusb. * Tools + sane-find-scanner: Added some Linux SCSI device names since some later potential names are missing. Better solution in the pipeline. * Documentation + Fixes for a number of man pages. + Added documentation for a number of Ricoh scanners which are rebranded products acquired from Fujitsu. * Miscellaneous + sanei_config: Fix for a potential crash. + New Georgian translation added. + Translations updated for: British English, Ukrainian, French and Simplified Chinese. OBS-URL: https://build.opensuse.org/request/show/1171485 OBS-URL: https://build.opensuse.org/package/show/graphics/sane-backends?expand=0&rev=111
2024-05-03 07:38:08 +02:00
BuildRequires: libtool
BuildRequires: libv4l-devel
BuildRequires: net-snmp-devel
Accepting request 777794 from home:StefanBruens:branches:graphics - Move udev rules from /etc/udev/ to /usr/udev. - Package libsane1 library as a separate package. This avoids pulling in the backends just a application links to it. - Hide the backends from automatic Provides generation, as these all have a libsane.so SONAME. - Update to 1.0.29: * Backends + adds an escl backend (theoretically supporting all AirPrint devices with a scan unit) + adds support for 23 new scanner models via existing backends + significantly changes genesys and pixma backends + fixes bugs in canon_dr, fujitsu, hp3900, mustek_usb2, plustek and xerox_mfp backends + fixes all compiler warnings on Debian 10 (#120) + fixes portability issues for uClibc-ng and MacOS builds + adds support to record and replay USB I/O traffic + adds timestamps to debug logs * Frontends + fixes a 32-bit arithmetic overflow issue in scanimage * Documentation + updates translations for British English, Catalan, German, Ukrainian, Valencian + adds scangearmp2 external backend descriptions + updates hpaio and utsushi external backend descriptions + adds the ChangeLogs/ directory to the source tarball (#103) * Build + additionally requires libcurl and libxml2 to build the escl backend + requires libxml2 for USB I/O recording and replay functionality + re-enables pthread support for backends that use its API directly, irrespective of the pthread_t type (#153) + moves genesys and pixma backends to a directory of their own - Update to 1.0.28: * Backends + adds a ricoh2 backend + adds support for 40+ new scanner models + significantly changes canon_dr, fujitsu, genesys, gt68xx, + hp5590 and, pixma backends + fixes bugs in as6e, avision, mustek and plustek backends + fixes scores of compiler warnings * Frontends + adds, changes and removes options for saned (see man 8 saned for details) - adds: -l (listen), -D (daemonize), -o (once), -e (stderr), -u (user) - removes: -s (syslog). Use -a -d level -o -f for the old behavior - changes: -d (debug). Use -a -d level -o -f -e for the old behavior + saned now cancels scans if the data connections appears to have gone away (after 4 seconds by default, configurable in saned.conf) + adds --output-file option to scanimage + adds --help option to scan-find-scanner + changes sane-desc to create relative hyperlinks * Documentation + adds translations for Catalan, Hebrew and Valencian + updates translations for British English, Dutch, German and + Ukrainian + marks unmaintained backends as such + documents USB workaround in sane-usb manual page * Build + requires a C++11 compatible compiler for the genesys backend + requires a JPEG library when building the pixma backend + fixes unneeded linking when not using preloadable backend support + disables pthread support for systems with non-integral pthread_t type + normalizes trailing whitespace in source code files. If you have local patches that no longer apply, have a look at the whitespace ignoring options of patch and git apply. - Rebased patches: * sane-backends.builttime.patch - Dropped patches: * no-descriptions-external-hpoj.patch OBS-URL: https://build.opensuse.org/request/show/777794 OBS-URL: https://build.opensuse.org/package/show/graphics/sane-backends?expand=0&rev=95
2020-02-23 13:44:14 +01:00
BuildRequires: pkgconfig
%if %{with escl}
BuildRequires: pkgconfig(avahi-client) >= 0.6.24
BuildRequires: pkgconfig(libcurl)
# since sane-backends 1.0.31 the escl backend requires libpoppler-glib-devel
# cf. https://gitlab.com/sane-project/backends/-/blob/master/INSTALL.linux
BuildRequires: libpoppler-glib-devel
Accepting request 777794 from home:StefanBruens:branches:graphics - Move udev rules from /etc/udev/ to /usr/udev. - Package libsane1 library as a separate package. This avoids pulling in the backends just a application links to it. - Hide the backends from automatic Provides generation, as these all have a libsane.so SONAME. - Update to 1.0.29: * Backends + adds an escl backend (theoretically supporting all AirPrint devices with a scan unit) + adds support for 23 new scanner models via existing backends + significantly changes genesys and pixma backends + fixes bugs in canon_dr, fujitsu, hp3900, mustek_usb2, plustek and xerox_mfp backends + fixes all compiler warnings on Debian 10 (#120) + fixes portability issues for uClibc-ng and MacOS builds + adds support to record and replay USB I/O traffic + adds timestamps to debug logs * Frontends + fixes a 32-bit arithmetic overflow issue in scanimage * Documentation + updates translations for British English, Catalan, German, Ukrainian, Valencian + adds scangearmp2 external backend descriptions + updates hpaio and utsushi external backend descriptions + adds the ChangeLogs/ directory to the source tarball (#103) * Build + additionally requires libcurl and libxml2 to build the escl backend + requires libxml2 for USB I/O recording and replay functionality + re-enables pthread support for backends that use its API directly, irrespective of the pthread_t type (#153) + moves genesys and pixma backends to a directory of their own - Update to 1.0.28: * Backends + adds a ricoh2 backend + adds support for 40+ new scanner models + significantly changes canon_dr, fujitsu, genesys, gt68xx, + hp5590 and, pixma backends + fixes bugs in as6e, avision, mustek and plustek backends + fixes scores of compiler warnings * Frontends + adds, changes and removes options for saned (see man 8 saned for details) - adds: -l (listen), -D (daemonize), -o (once), -e (stderr), -u (user) - removes: -s (syslog). Use -a -d level -o -f for the old behavior - changes: -d (debug). Use -a -d level -o -f -e for the old behavior + saned now cancels scans if the data connections appears to have gone away (after 4 seconds by default, configurable in saned.conf) + adds --output-file option to scanimage + adds --help option to scan-find-scanner + changes sane-desc to create relative hyperlinks * Documentation + adds translations for Catalan, Hebrew and Valencian + updates translations for British English, Dutch, German and + Ukrainian + marks unmaintained backends as such + documents USB workaround in sane-usb manual page * Build + requires a C++11 compatible compiler for the genesys backend + requires a JPEG library when building the pixma backend + fixes unneeded linking when not using preloadable backend support + disables pthread support for systems with non-integral pthread_t type + normalizes trailing whitespace in source code files. If you have local patches that no longer apply, have a look at the whitespace ignoring options of patch and git apply. - Rebased patches: * sane-backends.builttime.patch - Dropped patches: * no-descriptions-external-hpoj.patch OBS-URL: https://build.opensuse.org/request/show/777794 OBS-URL: https://build.opensuse.org/package/show/graphics/sane-backends?expand=0&rev=95
2020-02-23 13:44:14 +01:00
%endif
BuildRequires: pkgconfig(libusb-1.0)
# The pixma backend requires libxml2
BuildRequires: pkgconfig(libxml-2.0)
Accepting request 777794 from home:StefanBruens:branches:graphics - Move udev rules from /etc/udev/ to /usr/udev. - Package libsane1 library as a separate package. This avoids pulling in the backends just a application links to it. - Hide the backends from automatic Provides generation, as these all have a libsane.so SONAME. - Update to 1.0.29: * Backends + adds an escl backend (theoretically supporting all AirPrint devices with a scan unit) + adds support for 23 new scanner models via existing backends + significantly changes genesys and pixma backends + fixes bugs in canon_dr, fujitsu, hp3900, mustek_usb2, plustek and xerox_mfp backends + fixes all compiler warnings on Debian 10 (#120) + fixes portability issues for uClibc-ng and MacOS builds + adds support to record and replay USB I/O traffic + adds timestamps to debug logs * Frontends + fixes a 32-bit arithmetic overflow issue in scanimage * Documentation + updates translations for British English, Catalan, German, Ukrainian, Valencian + adds scangearmp2 external backend descriptions + updates hpaio and utsushi external backend descriptions + adds the ChangeLogs/ directory to the source tarball (#103) * Build + additionally requires libcurl and libxml2 to build the escl backend + requires libxml2 for USB I/O recording and replay functionality + re-enables pthread support for backends that use its API directly, irrespective of the pthread_t type (#153) + moves genesys and pixma backends to a directory of their own - Update to 1.0.28: * Backends + adds a ricoh2 backend + adds support for 40+ new scanner models + significantly changes canon_dr, fujitsu, genesys, gt68xx, + hp5590 and, pixma backends + fixes bugs in as6e, avision, mustek and plustek backends + fixes scores of compiler warnings * Frontends + adds, changes and removes options for saned (see man 8 saned for details) - adds: -l (listen), -D (daemonize), -o (once), -e (stderr), -u (user) - removes: -s (syslog). Use -a -d level -o -f for the old behavior - changes: -d (debug). Use -a -d level -o -f -e for the old behavior + saned now cancels scans if the data connections appears to have gone away (after 4 seconds by default, configurable in saned.conf) + adds --output-file option to scanimage + adds --help option to scan-find-scanner + changes sane-desc to create relative hyperlinks * Documentation + adds translations for Catalan, Hebrew and Valencian + updates translations for British English, Dutch, German and + Ukrainian + marks unmaintained backends as such + documents USB workaround in sane-usb manual page * Build + requires a C++11 compatible compiler for the genesys backend + requires a JPEG library when building the pixma backend + fixes unneeded linking when not using preloadable backend support + disables pthread support for systems with non-integral pthread_t type + normalizes trailing whitespace in source code files. If you have local patches that no longer apply, have a look at the whitespace ignoring options of patch and git apply. - Rebased patches: * sane-backends.builttime.patch - Dropped patches: * no-descriptions-external-hpoj.patch OBS-URL: https://build.opensuse.org/request/show/777794 OBS-URL: https://build.opensuse.org/package/show/graphics/sane-backends?expand=0&rev=95
2020-02-23 13:44:14 +01:00
BuildRequires: pkgconfig(systemd)
%systemd_requires
Accepting request 777794 from home:StefanBruens:branches:graphics - Move udev rules from /etc/udev/ to /usr/udev. - Package libsane1 library as a separate package. This avoids pulling in the backends just a application links to it. - Hide the backends from automatic Provides generation, as these all have a libsane.so SONAME. - Update to 1.0.29: * Backends + adds an escl backend (theoretically supporting all AirPrint devices with a scan unit) + adds support for 23 new scanner models via existing backends + significantly changes genesys and pixma backends + fixes bugs in canon_dr, fujitsu, hp3900, mustek_usb2, plustek and xerox_mfp backends + fixes all compiler warnings on Debian 10 (#120) + fixes portability issues for uClibc-ng and MacOS builds + adds support to record and replay USB I/O traffic + adds timestamps to debug logs * Frontends + fixes a 32-bit arithmetic overflow issue in scanimage * Documentation + updates translations for British English, Catalan, German, Ukrainian, Valencian + adds scangearmp2 external backend descriptions + updates hpaio and utsushi external backend descriptions + adds the ChangeLogs/ directory to the source tarball (#103) * Build + additionally requires libcurl and libxml2 to build the escl backend + requires libxml2 for USB I/O recording and replay functionality + re-enables pthread support for backends that use its API directly, irrespective of the pthread_t type (#153) + moves genesys and pixma backends to a directory of their own - Update to 1.0.28: * Backends + adds a ricoh2 backend + adds support for 40+ new scanner models + significantly changes canon_dr, fujitsu, genesys, gt68xx, + hp5590 and, pixma backends + fixes bugs in as6e, avision, mustek and plustek backends + fixes scores of compiler warnings * Frontends + adds, changes and removes options for saned (see man 8 saned for details) - adds: -l (listen), -D (daemonize), -o (once), -e (stderr), -u (user) - removes: -s (syslog). Use -a -d level -o -f for the old behavior - changes: -d (debug). Use -a -d level -o -f -e for the old behavior + saned now cancels scans if the data connections appears to have gone away (after 4 seconds by default, configurable in saned.conf) + adds --output-file option to scanimage + adds --help option to scan-find-scanner + changes sane-desc to create relative hyperlinks * Documentation + adds translations for Catalan, Hebrew and Valencian + updates translations for British English, Dutch, German and + Ukrainian + marks unmaintained backends as such + documents USB workaround in sane-usb manual page * Build + requires a C++11 compatible compiler for the genesys backend + requires a JPEG library when building the pixma backend + fixes unneeded linking when not using preloadable backend support + disables pthread support for systems with non-integral pthread_t type + normalizes trailing whitespace in source code files. If you have local patches that no longer apply, have a look at the whitespace ignoring options of patch and git apply. - Rebased patches: * sane-backends.builttime.patch - Dropped patches: * no-descriptions-external-hpoj.patch OBS-URL: https://build.opensuse.org/request/show/777794 OBS-URL: https://build.opensuse.org/package/show/graphics/sane-backends?expand=0&rev=95
2020-02-23 13:44:14 +01:00
%define libname libsane1
# SANE build systems mangles backend SONAMEs to be libsane.so.x
%define __provides_exclude_from %{_libdir}/sane
Summary: SANE (Scanner Access Now Easy) Scanner Drivers
License: GPL-2.0-or-later AND SUSE-GPL-2.0+-with-sane-exception AND SUSE-Public-Domain
Group: Hardware/Scanner
Version: 1.3.1
Release: 0
Accepting request 777794 from home:StefanBruens:branches:graphics - Move udev rules from /etc/udev/ to /usr/udev. - Package libsane1 library as a separate package. This avoids pulling in the backends just a application links to it. - Hide the backends from automatic Provides generation, as these all have a libsane.so SONAME. - Update to 1.0.29: * Backends + adds an escl backend (theoretically supporting all AirPrint devices with a scan unit) + adds support for 23 new scanner models via existing backends + significantly changes genesys and pixma backends + fixes bugs in canon_dr, fujitsu, hp3900, mustek_usb2, plustek and xerox_mfp backends + fixes all compiler warnings on Debian 10 (#120) + fixes portability issues for uClibc-ng and MacOS builds + adds support to record and replay USB I/O traffic + adds timestamps to debug logs * Frontends + fixes a 32-bit arithmetic overflow issue in scanimage * Documentation + updates translations for British English, Catalan, German, Ukrainian, Valencian + adds scangearmp2 external backend descriptions + updates hpaio and utsushi external backend descriptions + adds the ChangeLogs/ directory to the source tarball (#103) * Build + additionally requires libcurl and libxml2 to build the escl backend + requires libxml2 for USB I/O recording and replay functionality + re-enables pthread support for backends that use its API directly, irrespective of the pthread_t type (#153) + moves genesys and pixma backends to a directory of their own - Update to 1.0.28: * Backends + adds a ricoh2 backend + adds support for 40+ new scanner models + significantly changes canon_dr, fujitsu, genesys, gt68xx, + hp5590 and, pixma backends + fixes bugs in as6e, avision, mustek and plustek backends + fixes scores of compiler warnings * Frontends + adds, changes and removes options for saned (see man 8 saned for details) - adds: -l (listen), -D (daemonize), -o (once), -e (stderr), -u (user) - removes: -s (syslog). Use -a -d level -o -f for the old behavior - changes: -d (debug). Use -a -d level -o -f -e for the old behavior + saned now cancels scans if the data connections appears to have gone away (after 4 seconds by default, configurable in saned.conf) + adds --output-file option to scanimage + adds --help option to scan-find-scanner + changes sane-desc to create relative hyperlinks * Documentation + adds translations for Catalan, Hebrew and Valencian + updates translations for British English, Dutch, German and + Ukrainian + marks unmaintained backends as such + documents USB workaround in sane-usb manual page * Build + requires a C++11 compatible compiler for the genesys backend + requires a JPEG library when building the pixma backend + fixes unneeded linking when not using preloadable backend support + disables pthread support for systems with non-integral pthread_t type + normalizes trailing whitespace in source code files. If you have local patches that no longer apply, have a look at the whitespace ignoring options of patch and git apply. - Rebased patches: * sane-backends.builttime.patch - Dropped patches: * no-descriptions-external-hpoj.patch OBS-URL: https://build.opensuse.org/request/show/777794 OBS-URL: https://build.opensuse.org/package/show/graphics/sane-backends?expand=0&rev=95
2020-02-23 13:44:14 +01:00
URL: http://www.sane-project.org/
Accepting request 1171485 from home:Arnavion - Updated to sane-backends version 1.3.0 * Backends + avision: - Correction for ADF presence detect which caused a hang. - Internationalised some text items in the backend to make them available for translation. + epsonds: - Some small changes to option documentation. - Added support for models: ES-C220, DS-C330, and DS-C490. + escl: - Fix for pwf:Version item. - Fix for crash in libjpeg when cropping image. - Fix for issue with configured device when AVAHI not running. - Fix for build without poppler-glib. + fujitsu: - Added support for Ricoh scanners: FI-8040, FI-70F. + genesys: - Added missing configuration for Plustek OpticFilm 7500i and Plustek OpticFilm 8100. + hpljm1005: - Fixes to maximum geometries and various cropping and geometry details specifically for the HP LaserJet M1005. + lexmark_X2670: - Added new backend for the Lexmark X26xx series of scanners. + pixma: - Fix to prevent mode change when source is selected. Mode should not change if still valid for source. - Added support for models: TS8630 Series, XK110 Series, GX3000 Series, GX4000 Series, G3070 Series, G2070 Series, G4070 Series, G3030 Series, G2030 Series, TC-20M, TC-5200M, TR4500 Series, TS8700 series, XK120 series, GX1000 series, GX2000 series, TS6630 series, TS7700 series, TS7600i series, TS6730 series, TR7800 series, TS7700i series, TS7700A series, GX6500 series, i-SENSYS MF750 Series + snapscan: - Corrections for Agfa ARCUS 1200 scan area. + test: - Fix for a crash in the backend. + xerox_mfp: - Added support for Dell 1135n, which is a clone of the Samsung SCX-4623F. - Added support for Xerox WorkCentre 3335. - Added JPEG mitigation for modules that don't properly support JPEG output: Xerox WorkCentre 3225 - Fix to remove USB CLEAR HALT during initialisation which can potentially lock up devices. - General fixes to support the SCX-4521F model. * Frontends + saned: - Default scan buffer is now 1MB. -B option added to permit the buffersize to be set. - Documentation fixes. + scanimage: - Fix for keyboard prompt processing - Default scan buffer is now 1MB. --buffer-size and -B options now require an argument to be provided. - Fix for PDF generation, missing newline in generated file. * Build + Fixes for clang-16 compiler + Fixes for FreeBSD build. + Fixes for escl build option involving poppler-glib. + Optionally take build version from ChangeLog if not other version source is available. + Fixes to autoconf files to remove unnecessary warnings from test logs. + Fix for macOS builds related to threading support: SANE in macOS doesn't work for multi-process with libusb. * Tools + sane-find-scanner: Added some Linux SCSI device names since some later potential names are missing. Better solution in the pipeline. * Documentation + Fixes for a number of man pages. + Added documentation for a number of Ricoh scanners which are rebranded products acquired from Fujitsu. * Miscellaneous + sanei_config: Fix for a potential crash. + New Georgian translation added. + Translations updated for: British English, Ukrainian, French and Simplified Chinese. OBS-URL: https://build.opensuse.org/request/show/1171485 OBS-URL: https://build.opensuse.org/package/show/graphics/sane-backends?expand=0&rev=111
2024-05-03 07:38:08 +02:00
# On https://gitlab.com/sane-project/backends/-/releases , the "Source code (tar.gz)" link
# is a tarball auto-generated by GitLab and contains a snapshot of the git repository.
# The "sane-backends-*.tar.gz" link under "Packages" is a tarball uploaded by the maintainer.
# We use the latter.
Source0: https://gitlab.com/sane-project/backends/-/archive/%{version}/backends-%{version}.tar.gz#/sane-backends-%{version}.tar.gz
# Source100... is SUSE specific stuff:
# Source102 is the OpenSLP registration file for the saned:
Source102: sane.reg
# Source110 creates our hpaio.desc file directly from the models.dat file of HPLIP:
Source110: create_hpaio.desc_from_models.dat
# Source111 is the models.dat file of HPLIP:
Source111: models.dat
# Was initially just dumped in as Source1 to "package baselibs.conf"
# (see the matching explanatory entry in the RPM changelog):
Source190: baselibs.conf
# Source200... is scanner autoconfiguration stuff:
# Source200 and Source201 generate the 56-sane-backends-autoconfig.rules file
# for automated scanner driver activation via udev ("scanner autoconfiguration").
# Source200 is a copy of /usr/lib/YaST2/bin/create_scanner_database
# to avoid yast2-scanner in BuildRequires which would drag in almost the whole YaST:
Source200: create_scanner_database
# Source201 actually generates the 56-sane-backends-autoconfig.rules file
# by reading scanner.database which was created before by create_scanner_database
# to extract the needed info from which create_sane-backends-autoconfig.rules
# generates the 56-sane-backends-autoconfig.rules file:
Source201: create_sane-backends-autoconfig.rules
# Sources 202 and 203 are files to enable socket based service activation which replaced xinetd
Source202: saned@.service
Source203: saned.socket
# Patch100... is SUSE specific stuff:
# Patch102 adapt_epkowa.desc_for_yast2-scanner.patch adapts epkowa.desc for yast2-scanner
# (see https://bugzilla.opensuse.org/show_bug.cgi?id=788756#c14).
# It adds "requires DFSG non-free Image Scan software from Avasys" to all comments
# (or adds such a comment if there is not yet a comment) so that yast2-scanner
# (via "requires DFSG non-free" string match in create_scanner_database)
# shows always the info regarding "Image Scan" download from Avasys
# (compare https://bugzilla.novell.com/show_bug.cgi?id=569917
# and https://bugzilla.novell.com/show_bug.cgi?id=746038).
# Furthermore it removes "unsupported" models from epkowa.desc because
# otherwise there would be confusing model entries shown in yast2-scanner:
Patch102: adapt_epkowa.desc_for_yast2-scanner.patch
# See https://bugzilla.novell.com/show_bug.cgi?id=437293
%ifarch ppc64
Obsoletes: sane-64bit
%endif
# Up to SLE10 there was the package name 'sane' for 'sane-backends'.
# Therefore this RPM provides 'sane' and it also obsoletes it.
# The {version} is needed in both Provides and Obsoletes
# to avoid a RPMLINT warning that the package obsoletes itself:
Provides: sane = %{version}
Obsoletes: sane < %{version}
Accepting request 777794 from home:StefanBruens:branches:graphics - Move udev rules from /etc/udev/ to /usr/udev. - Package libsane1 library as a separate package. This avoids pulling in the backends just a application links to it. - Hide the backends from automatic Provides generation, as these all have a libsane.so SONAME. - Update to 1.0.29: * Backends + adds an escl backend (theoretically supporting all AirPrint devices with a scan unit) + adds support for 23 new scanner models via existing backends + significantly changes genesys and pixma backends + fixes bugs in canon_dr, fujitsu, hp3900, mustek_usb2, plustek and xerox_mfp backends + fixes all compiler warnings on Debian 10 (#120) + fixes portability issues for uClibc-ng and MacOS builds + adds support to record and replay USB I/O traffic + adds timestamps to debug logs * Frontends + fixes a 32-bit arithmetic overflow issue in scanimage * Documentation + updates translations for British English, Catalan, German, Ukrainian, Valencian + adds scangearmp2 external backend descriptions + updates hpaio and utsushi external backend descriptions + adds the ChangeLogs/ directory to the source tarball (#103) * Build + additionally requires libcurl and libxml2 to build the escl backend + requires libxml2 for USB I/O recording and replay functionality + re-enables pthread support for backends that use its API directly, irrespective of the pthread_t type (#153) + moves genesys and pixma backends to a directory of their own - Update to 1.0.28: * Backends + adds a ricoh2 backend + adds support for 40+ new scanner models + significantly changes canon_dr, fujitsu, genesys, gt68xx, + hp5590 and, pixma backends + fixes bugs in as6e, avision, mustek and plustek backends + fixes scores of compiler warnings * Frontends + adds, changes and removes options for saned (see man 8 saned for details) - adds: -l (listen), -D (daemonize), -o (once), -e (stderr), -u (user) - removes: -s (syslog). Use -a -d level -o -f for the old behavior - changes: -d (debug). Use -a -d level -o -f -e for the old behavior + saned now cancels scans if the data connections appears to have gone away (after 4 seconds by default, configurable in saned.conf) + adds --output-file option to scanimage + adds --help option to scan-find-scanner + changes sane-desc to create relative hyperlinks * Documentation + adds translations for Catalan, Hebrew and Valencian + updates translations for British English, Dutch, German and + Ukrainian + marks unmaintained backends as such + documents USB workaround in sane-usb manual page * Build + requires a C++11 compatible compiler for the genesys backend + requires a JPEG library when building the pixma backend + fixes unneeded linking when not using preloadable backend support + disables pthread support for systems with non-integral pthread_t type + normalizes trailing whitespace in source code files. If you have local patches that no longer apply, have a look at the whitespace ignoring options of patch and git apply. - Rebased patches: * sane-backends.builttime.patch - Dropped patches: * no-descriptions-external-hpoj.patch OBS-URL: https://build.opensuse.org/request/show/777794 OBS-URL: https://build.opensuse.org/package/show/graphics/sane-backends?expand=0&rev=95
2020-02-23 13:44:14 +01:00
# Pull in the same version, not just matching soname
Requires: %{libname} = %{version}
%description
The software consists of SANE scanner drivers,
"scanimage," and the "saned" daemon.
A SANE scanner driver is used via a SANE front-end.
This package contains the command line front-end "scanimage".
There are graphical front-ends in other packages like
XSane (package xsane), Skanlite for KDE4 (package skanlite),
and Kooka for KDE3 (package kdegraphics3-scan).
The "saned" daemon provides the service "sane-port"
to access scanners that are connected to a server
via network from client hosts that run the "net" meta driver.
%package devel
Summary: Development files for sane-backends
License: GPL-2.0-or-later AND SUSE-GPL-2.0+-with-sane-exception AND SUSE-Public-Domain
Group: Development/Libraries/C and C++
Accepting request 777794 from home:StefanBruens:branches:graphics - Move udev rules from /etc/udev/ to /usr/udev. - Package libsane1 library as a separate package. This avoids pulling in the backends just a application links to it. - Hide the backends from automatic Provides generation, as these all have a libsane.so SONAME. - Update to 1.0.29: * Backends + adds an escl backend (theoretically supporting all AirPrint devices with a scan unit) + adds support for 23 new scanner models via existing backends + significantly changes genesys and pixma backends + fixes bugs in canon_dr, fujitsu, hp3900, mustek_usb2, plustek and xerox_mfp backends + fixes all compiler warnings on Debian 10 (#120) + fixes portability issues for uClibc-ng and MacOS builds + adds support to record and replay USB I/O traffic + adds timestamps to debug logs * Frontends + fixes a 32-bit arithmetic overflow issue in scanimage * Documentation + updates translations for British English, Catalan, German, Ukrainian, Valencian + adds scangearmp2 external backend descriptions + updates hpaio and utsushi external backend descriptions + adds the ChangeLogs/ directory to the source tarball (#103) * Build + additionally requires libcurl and libxml2 to build the escl backend + requires libxml2 for USB I/O recording and replay functionality + re-enables pthread support for backends that use its API directly, irrespective of the pthread_t type (#153) + moves genesys and pixma backends to a directory of their own - Update to 1.0.28: * Backends + adds a ricoh2 backend + adds support for 40+ new scanner models + significantly changes canon_dr, fujitsu, genesys, gt68xx, + hp5590 and, pixma backends + fixes bugs in as6e, avision, mustek and plustek backends + fixes scores of compiler warnings * Frontends + adds, changes and removes options for saned (see man 8 saned for details) - adds: -l (listen), -D (daemonize), -o (once), -e (stderr), -u (user) - removes: -s (syslog). Use -a -d level -o -f for the old behavior - changes: -d (debug). Use -a -d level -o -f -e for the old behavior + saned now cancels scans if the data connections appears to have gone away (after 4 seconds by default, configurable in saned.conf) + adds --output-file option to scanimage + adds --help option to scan-find-scanner + changes sane-desc to create relative hyperlinks * Documentation + adds translations for Catalan, Hebrew and Valencian + updates translations for British English, Dutch, German and + Ukrainian + marks unmaintained backends as such + documents USB workaround in sane-usb manual page * Build + requires a C++11 compatible compiler for the genesys backend + requires a JPEG library when building the pixma backend + fixes unneeded linking when not using preloadable backend support + disables pthread support for systems with non-integral pthread_t type + normalizes trailing whitespace in source code files. If you have local patches that no longer apply, have a look at the whitespace ignoring options of patch and git apply. - Rebased patches: * sane-backends.builttime.patch - Dropped patches: * no-descriptions-external-hpoj.patch OBS-URL: https://build.opensuse.org/request/show/777794 OBS-URL: https://build.opensuse.org/package/show/graphics/sane-backends?expand=0&rev=95
2020-02-23 13:44:14 +01:00
Requires: %{libname} = %{version}
%description devel
This package contains the development files for sane-backends.
Accepting request 777794 from home:StefanBruens:branches:graphics - Move udev rules from /etc/udev/ to /usr/udev. - Package libsane1 library as a separate package. This avoids pulling in the backends just a application links to it. - Hide the backends from automatic Provides generation, as these all have a libsane.so SONAME. - Update to 1.0.29: * Backends + adds an escl backend (theoretically supporting all AirPrint devices with a scan unit) + adds support for 23 new scanner models via existing backends + significantly changes genesys and pixma backends + fixes bugs in canon_dr, fujitsu, hp3900, mustek_usb2, plustek and xerox_mfp backends + fixes all compiler warnings on Debian 10 (#120) + fixes portability issues for uClibc-ng and MacOS builds + adds support to record and replay USB I/O traffic + adds timestamps to debug logs * Frontends + fixes a 32-bit arithmetic overflow issue in scanimage * Documentation + updates translations for British English, Catalan, German, Ukrainian, Valencian + adds scangearmp2 external backend descriptions + updates hpaio and utsushi external backend descriptions + adds the ChangeLogs/ directory to the source tarball (#103) * Build + additionally requires libcurl and libxml2 to build the escl backend + requires libxml2 for USB I/O recording and replay functionality + re-enables pthread support for backends that use its API directly, irrespective of the pthread_t type (#153) + moves genesys and pixma backends to a directory of their own - Update to 1.0.28: * Backends + adds a ricoh2 backend + adds support for 40+ new scanner models + significantly changes canon_dr, fujitsu, genesys, gt68xx, + hp5590 and, pixma backends + fixes bugs in as6e, avision, mustek and plustek backends + fixes scores of compiler warnings * Frontends + adds, changes and removes options for saned (see man 8 saned for details) - adds: -l (listen), -D (daemonize), -o (once), -e (stderr), -u (user) - removes: -s (syslog). Use -a -d level -o -f for the old behavior - changes: -d (debug). Use -a -d level -o -f -e for the old behavior + saned now cancels scans if the data connections appears to have gone away (after 4 seconds by default, configurable in saned.conf) + adds --output-file option to scanimage + adds --help option to scan-find-scanner + changes sane-desc to create relative hyperlinks * Documentation + adds translations for Catalan, Hebrew and Valencian + updates translations for British English, Dutch, German and + Ukrainian + marks unmaintained backends as such + documents USB workaround in sane-usb manual page * Build + requires a C++11 compatible compiler for the genesys backend + requires a JPEG library when building the pixma backend + fixes unneeded linking when not using preloadable backend support + disables pthread support for systems with non-integral pthread_t type + normalizes trailing whitespace in source code files. If you have local patches that no longer apply, have a look at the whitespace ignoring options of patch and git apply. - Rebased patches: * sane-backends.builttime.patch - Dropped patches: * no-descriptions-external-hpoj.patch OBS-URL: https://build.opensuse.org/request/show/777794 OBS-URL: https://build.opensuse.org/package/show/graphics/sane-backends?expand=0&rev=95
2020-02-23 13:44:14 +01:00
%package -n %{libname}
Summary: Core SANE library
License: GPL-2.0-or-later AND LGPL-2.1-or-later AND SUSE-Public-Domain
Group: Hardware/Scanner
Conflicts: sane-backends < %{version}
Recommends: sane-backends
%description -n %{libname}
This contains the SANE library. Individual scanner backends are provided
by sane-backends or third party packages.
%package autoconfig
Summary: USB Scanner Autoconfiguration
Accepting request 777794 from home:StefanBruens:branches:graphics - Move udev rules from /etc/udev/ to /usr/udev. - Package libsane1 library as a separate package. This avoids pulling in the backends just a application links to it. - Hide the backends from automatic Provides generation, as these all have a libsane.so SONAME. - Update to 1.0.29: * Backends + adds an escl backend (theoretically supporting all AirPrint devices with a scan unit) + adds support for 23 new scanner models via existing backends + significantly changes genesys and pixma backends + fixes bugs in canon_dr, fujitsu, hp3900, mustek_usb2, plustek and xerox_mfp backends + fixes all compiler warnings on Debian 10 (#120) + fixes portability issues for uClibc-ng and MacOS builds + adds support to record and replay USB I/O traffic + adds timestamps to debug logs * Frontends + fixes a 32-bit arithmetic overflow issue in scanimage * Documentation + updates translations for British English, Catalan, German, Ukrainian, Valencian + adds scangearmp2 external backend descriptions + updates hpaio and utsushi external backend descriptions + adds the ChangeLogs/ directory to the source tarball (#103) * Build + additionally requires libcurl and libxml2 to build the escl backend + requires libxml2 for USB I/O recording and replay functionality + re-enables pthread support for backends that use its API directly, irrespective of the pthread_t type (#153) + moves genesys and pixma backends to a directory of their own - Update to 1.0.28: * Backends + adds a ricoh2 backend + adds support for 40+ new scanner models + significantly changes canon_dr, fujitsu, genesys, gt68xx, + hp5590 and, pixma backends + fixes bugs in as6e, avision, mustek and plustek backends + fixes scores of compiler warnings * Frontends + adds, changes and removes options for saned (see man 8 saned for details) - adds: -l (listen), -D (daemonize), -o (once), -e (stderr), -u (user) - removes: -s (syslog). Use -a -d level -o -f for the old behavior - changes: -d (debug). Use -a -d level -o -f -e for the old behavior + saned now cancels scans if the data connections appears to have gone away (after 4 seconds by default, configurable in saned.conf) + adds --output-file option to scanimage + adds --help option to scan-find-scanner + changes sane-desc to create relative hyperlinks * Documentation + adds translations for Catalan, Hebrew and Valencian + updates translations for British English, Dutch, German and + Ukrainian + marks unmaintained backends as such + documents USB workaround in sane-usb manual page * Build + requires a C++11 compatible compiler for the genesys backend + requires a JPEG library when building the pixma backend + fixes unneeded linking when not using preloadable backend support + disables pthread support for systems with non-integral pthread_t type + normalizes trailing whitespace in source code files. If you have local patches that no longer apply, have a look at the whitespace ignoring options of patch and git apply. - Rebased patches: * sane-backends.builttime.patch - Dropped patches: * no-descriptions-external-hpoj.patch OBS-URL: https://build.opensuse.org/request/show/777794 OBS-URL: https://build.opensuse.org/package/show/graphics/sane-backends?expand=0&rev=95
2020-02-23 13:44:14 +01:00
License: GPL-2.0-or-later AND LGPL-2.1-or-later AND SUSE-Public-Domain
Group: Hardware/Scanner
Accepting request 777794 from home:StefanBruens:branches:graphics - Move udev rules from /etc/udev/ to /usr/udev. - Package libsane1 library as a separate package. This avoids pulling in the backends just a application links to it. - Hide the backends from automatic Provides generation, as these all have a libsane.so SONAME. - Update to 1.0.29: * Backends + adds an escl backend (theoretically supporting all AirPrint devices with a scan unit) + adds support for 23 new scanner models via existing backends + significantly changes genesys and pixma backends + fixes bugs in canon_dr, fujitsu, hp3900, mustek_usb2, plustek and xerox_mfp backends + fixes all compiler warnings on Debian 10 (#120) + fixes portability issues for uClibc-ng and MacOS builds + adds support to record and replay USB I/O traffic + adds timestamps to debug logs * Frontends + fixes a 32-bit arithmetic overflow issue in scanimage * Documentation + updates translations for British English, Catalan, German, Ukrainian, Valencian + adds scangearmp2 external backend descriptions + updates hpaio and utsushi external backend descriptions + adds the ChangeLogs/ directory to the source tarball (#103) * Build + additionally requires libcurl and libxml2 to build the escl backend + requires libxml2 for USB I/O recording and replay functionality + re-enables pthread support for backends that use its API directly, irrespective of the pthread_t type (#153) + moves genesys and pixma backends to a directory of their own - Update to 1.0.28: * Backends + adds a ricoh2 backend + adds support for 40+ new scanner models + significantly changes canon_dr, fujitsu, genesys, gt68xx, + hp5590 and, pixma backends + fixes bugs in as6e, avision, mustek and plustek backends + fixes scores of compiler warnings * Frontends + adds, changes and removes options for saned (see man 8 saned for details) - adds: -l (listen), -D (daemonize), -o (once), -e (stderr), -u (user) - removes: -s (syslog). Use -a -d level -o -f for the old behavior - changes: -d (debug). Use -a -d level -o -f -e for the old behavior + saned now cancels scans if the data connections appears to have gone away (after 4 seconds by default, configurable in saned.conf) + adds --output-file option to scanimage + adds --help option to scan-find-scanner + changes sane-desc to create relative hyperlinks * Documentation + adds translations for Catalan, Hebrew and Valencian + updates translations for British English, Dutch, German and + Ukrainian + marks unmaintained backends as such + documents USB workaround in sane-usb manual page * Build + requires a C++11 compatible compiler for the genesys backend + requires a JPEG library when building the pixma backend + fixes unneeded linking when not using preloadable backend support + disables pthread support for systems with non-integral pthread_t type + normalizes trailing whitespace in source code files. If you have local patches that no longer apply, have a look at the whitespace ignoring options of patch and git apply. - Rebased patches: * sane-backends.builttime.patch - Dropped patches: * no-descriptions-external-hpoj.patch OBS-URL: https://build.opensuse.org/request/show/777794 OBS-URL: https://build.opensuse.org/package/show/graphics/sane-backends?expand=0&rev=95
2020-02-23 13:44:14 +01:00
Requires: %{libname} = %{version}
# When sane-backends is already installed, try to install also sane-backends-autoconfig if available:
Supplements: sane-backends
BuildArch: noarch
%description autoconfig
USB scanner autoconfiguration happens via udev.
Accepting request 777794 from home:StefanBruens:branches:graphics - Move udev rules from /etc/udev/ to /usr/udev. - Package libsane1 library as a separate package. This avoids pulling in the backends just a application links to it. - Hide the backends from automatic Provides generation, as these all have a libsane.so SONAME. - Update to 1.0.29: * Backends + adds an escl backend (theoretically supporting all AirPrint devices with a scan unit) + adds support for 23 new scanner models via existing backends + significantly changes genesys and pixma backends + fixes bugs in canon_dr, fujitsu, hp3900, mustek_usb2, plustek and xerox_mfp backends + fixes all compiler warnings on Debian 10 (#120) + fixes portability issues for uClibc-ng and MacOS builds + adds support to record and replay USB I/O traffic + adds timestamps to debug logs * Frontends + fixes a 32-bit arithmetic overflow issue in scanimage * Documentation + updates translations for British English, Catalan, German, Ukrainian, Valencian + adds scangearmp2 external backend descriptions + updates hpaio and utsushi external backend descriptions + adds the ChangeLogs/ directory to the source tarball (#103) * Build + additionally requires libcurl and libxml2 to build the escl backend + requires libxml2 for USB I/O recording and replay functionality + re-enables pthread support for backends that use its API directly, irrespective of the pthread_t type (#153) + moves genesys and pixma backends to a directory of their own - Update to 1.0.28: * Backends + adds a ricoh2 backend + adds support for 40+ new scanner models + significantly changes canon_dr, fujitsu, genesys, gt68xx, + hp5590 and, pixma backends + fixes bugs in as6e, avision, mustek and plustek backends + fixes scores of compiler warnings * Frontends + adds, changes and removes options for saned (see man 8 saned for details) - adds: -l (listen), -D (daemonize), -o (once), -e (stderr), -u (user) - removes: -s (syslog). Use -a -d level -o -f for the old behavior - changes: -d (debug). Use -a -d level -o -f -e for the old behavior + saned now cancels scans if the data connections appears to have gone away (after 4 seconds by default, configurable in saned.conf) + adds --output-file option to scanimage + adds --help option to scan-find-scanner + changes sane-desc to create relative hyperlinks * Documentation + adds translations for Catalan, Hebrew and Valencian + updates translations for British English, Dutch, German and + Ukrainian + marks unmaintained backends as such + documents USB workaround in sane-usb manual page * Build + requires a C++11 compatible compiler for the genesys backend + requires a JPEG library when building the pixma backend + fixes unneeded linking when not using preloadable backend support + disables pthread support for systems with non-integral pthread_t type + normalizes trailing whitespace in source code files. If you have local patches that no longer apply, have a look at the whitespace ignoring options of patch and git apply. - Rebased patches: * sane-backends.builttime.patch - Dropped patches: * no-descriptions-external-hpoj.patch OBS-URL: https://build.opensuse.org/request/show/777794 OBS-URL: https://build.opensuse.org/package/show/graphics/sane-backends?expand=0&rev=95
2020-02-23 13:44:14 +01:00
The file /udev/rules.d/56-sane-backends-autoconfig.rules contains
entries for those USB scanners where the USB IDs are known, which are
supported by a free driver, where the support status is "complete" or
"good", and which do not require firmware upload.
When a USB scanner is connected and its USB IDs match to an entry in
the 56-sane-backends-autoconfig.rules file, the matching scanner driver
is activated (i.e. the driver line in /etc/sane.d/dll.conf is
activated).
It enables scanner drivers but never disables them. The reason is that
enabled drivers do not hurt so that an automated disable would make it
only overcomplicated because when more than one scanner uses the same
driver, a complicated check would be needed to avoid that the driver is
accidentally disabled when only one scanner was disconnected.
If you do not like automated driver activation, do not install this
package or remove it when it is already installed.
%package -n sane-saned
Summary: Sane network server
License: GPL-2.0-or-later AND LGPL-2.1-or-later AND SUSE-Public-Domain
Group: Hardware/Scanner
Provides: sane-backends:%{_sbindir}/saned
Conflicts: %{name} < %{version}
%description -n sane-saned
Saned allows access to locally attached scanners over the network.
%prep
# Patch100... is SUSE specific stuff:
# Patch102 adapt_epkowa.desc_for_yast2-scanner.patch adapts epkowa.desc for yast2-scanner
# see https://bugzilla.opensuse.org/show_bug.cgi?id=788756#c14
Accepting request 1171485 from home:Arnavion - Updated to sane-backends version 1.3.0 * Backends + avision: - Correction for ADF presence detect which caused a hang. - Internationalised some text items in the backend to make them available for translation. + epsonds: - Some small changes to option documentation. - Added support for models: ES-C220, DS-C330, and DS-C490. + escl: - Fix for pwf:Version item. - Fix for crash in libjpeg when cropping image. - Fix for issue with configured device when AVAHI not running. - Fix for build without poppler-glib. + fujitsu: - Added support for Ricoh scanners: FI-8040, FI-70F. + genesys: - Added missing configuration for Plustek OpticFilm 7500i and Plustek OpticFilm 8100. + hpljm1005: - Fixes to maximum geometries and various cropping and geometry details specifically for the HP LaserJet M1005. + lexmark_X2670: - Added new backend for the Lexmark X26xx series of scanners. + pixma: - Fix to prevent mode change when source is selected. Mode should not change if still valid for source. - Added support for models: TS8630 Series, XK110 Series, GX3000 Series, GX4000 Series, G3070 Series, G2070 Series, G4070 Series, G3030 Series, G2030 Series, TC-20M, TC-5200M, TR4500 Series, TS8700 series, XK120 series, GX1000 series, GX2000 series, TS6630 series, TS7700 series, TS7600i series, TS6730 series, TR7800 series, TS7700i series, TS7700A series, GX6500 series, i-SENSYS MF750 Series + snapscan: - Corrections for Agfa ARCUS 1200 scan area. + test: - Fix for a crash in the backend. + xerox_mfp: - Added support for Dell 1135n, which is a clone of the Samsung SCX-4623F. - Added support for Xerox WorkCentre 3335. - Added JPEG mitigation for modules that don't properly support JPEG output: Xerox WorkCentre 3225 - Fix to remove USB CLEAR HALT during initialisation which can potentially lock up devices. - General fixes to support the SCX-4521F model. * Frontends + saned: - Default scan buffer is now 1MB. -B option added to permit the buffersize to be set. - Documentation fixes. + scanimage: - Fix for keyboard prompt processing - Default scan buffer is now 1MB. --buffer-size and -B options now require an argument to be provided. - Fix for PDF generation, missing newline in generated file. * Build + Fixes for clang-16 compiler + Fixes for FreeBSD build. + Fixes for escl build option involving poppler-glib. + Optionally take build version from ChangeLog if not other version source is available. + Fixes to autoconf files to remove unnecessary warnings from test logs. + Fix for macOS builds related to threading support: SANE in macOS doesn't work for multi-process with libusb. * Tools + sane-find-scanner: Added some Linux SCSI device names since some later potential names are missing. Better solution in the pipeline. * Documentation + Fixes for a number of man pages. + Added documentation for a number of Ricoh scanners which are rebranded products acquired from Fujitsu. * Miscellaneous + sanei_config: Fix for a potential crash. + New Georgian translation added. + Translations updated for: British English, Ukrainian, French and Simplified Chinese. OBS-URL: https://build.opensuse.org/request/show/1171485 OBS-URL: https://build.opensuse.org/package/show/graphics/sane-backends?expand=0&rev=111
2024-05-03 07:38:08 +02:00
%autosetup -p0 -n backends-%{version}
Accepting request 777794 from home:StefanBruens:branches:graphics - Move udev rules from /etc/udev/ to /usr/udev. - Package libsane1 library as a separate package. This avoids pulling in the backends just a application links to it. - Hide the backends from automatic Provides generation, as these all have a libsane.so SONAME. - Update to 1.0.29: * Backends + adds an escl backend (theoretically supporting all AirPrint devices with a scan unit) + adds support for 23 new scanner models via existing backends + significantly changes genesys and pixma backends + fixes bugs in canon_dr, fujitsu, hp3900, mustek_usb2, plustek and xerox_mfp backends + fixes all compiler warnings on Debian 10 (#120) + fixes portability issues for uClibc-ng and MacOS builds + adds support to record and replay USB I/O traffic + adds timestamps to debug logs * Frontends + fixes a 32-bit arithmetic overflow issue in scanimage * Documentation + updates translations for British English, Catalan, German, Ukrainian, Valencian + adds scangearmp2 external backend descriptions + updates hpaio and utsushi external backend descriptions + adds the ChangeLogs/ directory to the source tarball (#103) * Build + additionally requires libcurl and libxml2 to build the escl backend + requires libxml2 for USB I/O recording and replay functionality + re-enables pthread support for backends that use its API directly, irrespective of the pthread_t type (#153) + moves genesys and pixma backends to a directory of their own - Update to 1.0.28: * Backends + adds a ricoh2 backend + adds support for 40+ new scanner models + significantly changes canon_dr, fujitsu, genesys, gt68xx, + hp5590 and, pixma backends + fixes bugs in as6e, avision, mustek and plustek backends + fixes scores of compiler warnings * Frontends + adds, changes and removes options for saned (see man 8 saned for details) - adds: -l (listen), -D (daemonize), -o (once), -e (stderr), -u (user) - removes: -s (syslog). Use -a -d level -o -f for the old behavior - changes: -d (debug). Use -a -d level -o -f -e for the old behavior + saned now cancels scans if the data connections appears to have gone away (after 4 seconds by default, configurable in saned.conf) + adds --output-file option to scanimage + adds --help option to scan-find-scanner + changes sane-desc to create relative hyperlinks * Documentation + adds translations for Catalan, Hebrew and Valencian + updates translations for British English, Dutch, German and + Ukrainian + marks unmaintained backends as such + documents USB workaround in sane-usb manual page * Build + requires a C++11 compatible compiler for the genesys backend + requires a JPEG library when building the pixma backend + fixes unneeded linking when not using preloadable backend support + disables pthread support for systems with non-integral pthread_t type + normalizes trailing whitespace in source code files. If you have local patches that no longer apply, have a look at the whitespace ignoring options of patch and git apply. - Rebased patches: * sane-backends.builttime.patch - Dropped patches: * no-descriptions-external-hpoj.patch OBS-URL: https://build.opensuse.org/request/show/777794 OBS-URL: https://build.opensuse.org/package/show/graphics/sane-backends?expand=0&rev=95
2020-02-23 13:44:14 +01:00
# Remove hpoj.desc completely to avoid confusion with its successor hpaio.desc
# because since openSUSE 10.3 the package hp-officeJet (for hpoj.desc) is dropped.
Accepting request 1171485 from home:Arnavion - Updated to sane-backends version 1.3.0 * Backends + avision: - Correction for ADF presence detect which caused a hang. - Internationalised some text items in the backend to make them available for translation. + epsonds: - Some small changes to option documentation. - Added support for models: ES-C220, DS-C330, and DS-C490. + escl: - Fix for pwf:Version item. - Fix for crash in libjpeg when cropping image. - Fix for issue with configured device when AVAHI not running. - Fix for build without poppler-glib. + fujitsu: - Added support for Ricoh scanners: FI-8040, FI-70F. + genesys: - Added missing configuration for Plustek OpticFilm 7500i and Plustek OpticFilm 8100. + hpljm1005: - Fixes to maximum geometries and various cropping and geometry details specifically for the HP LaserJet M1005. + lexmark_X2670: - Added new backend for the Lexmark X26xx series of scanners. + pixma: - Fix to prevent mode change when source is selected. Mode should not change if still valid for source. - Added support for models: TS8630 Series, XK110 Series, GX3000 Series, GX4000 Series, G3070 Series, G2070 Series, G4070 Series, G3030 Series, G2030 Series, TC-20M, TC-5200M, TR4500 Series, TS8700 series, XK120 series, GX1000 series, GX2000 series, TS6630 series, TS7700 series, TS7600i series, TS6730 series, TR7800 series, TS7700i series, TS7700A series, GX6500 series, i-SENSYS MF750 Series + snapscan: - Corrections for Agfa ARCUS 1200 scan area. + test: - Fix for a crash in the backend. + xerox_mfp: - Added support for Dell 1135n, which is a clone of the Samsung SCX-4623F. - Added support for Xerox WorkCentre 3335. - Added JPEG mitigation for modules that don't properly support JPEG output: Xerox WorkCentre 3225 - Fix to remove USB CLEAR HALT during initialisation which can potentially lock up devices. - General fixes to support the SCX-4521F model. * Frontends + saned: - Default scan buffer is now 1MB. -B option added to permit the buffersize to be set. - Documentation fixes. + scanimage: - Fix for keyboard prompt processing - Default scan buffer is now 1MB. --buffer-size and -B options now require an argument to be provided. - Fix for PDF generation, missing newline in generated file. * Build + Fixes for clang-16 compiler + Fixes for FreeBSD build. + Fixes for escl build option involving poppler-glib. + Optionally take build version from ChangeLog if not other version source is available. + Fixes to autoconf files to remove unnecessary warnings from test logs. + Fix for macOS builds related to threading support: SANE in macOS doesn't work for multi-process with libusb. * Tools + sane-find-scanner: Added some Linux SCSI device names since some later potential names are missing. Better solution in the pipeline. * Documentation + Fixes for a number of man pages. + Added documentation for a number of Ricoh scanners which are rebranded products acquired from Fujitsu. * Miscellaneous + sanei_config: Fix for a potential crash. + New Georgian translation added. + Translations updated for: British English, Ukrainian, French and Simplified Chinese. OBS-URL: https://build.opensuse.org/request/show/1171485 OBS-URL: https://build.opensuse.org/package/show/graphics/sane-backends?expand=0&rev=111
2024-05-03 07:38:08 +02:00
sed -i -e '/descriptions-external\/hpoj.desc / d' doc/Makefile.am
rm doc/descriptions-external/hpoj.desc
Accepting request 777794 from home:StefanBruens:branches:graphics - Move udev rules from /etc/udev/ to /usr/udev. - Package libsane1 library as a separate package. This avoids pulling in the backends just a application links to it. - Hide the backends from automatic Provides generation, as these all have a libsane.so SONAME. - Update to 1.0.29: * Backends + adds an escl backend (theoretically supporting all AirPrint devices with a scan unit) + adds support for 23 new scanner models via existing backends + significantly changes genesys and pixma backends + fixes bugs in canon_dr, fujitsu, hp3900, mustek_usb2, plustek and xerox_mfp backends + fixes all compiler warnings on Debian 10 (#120) + fixes portability issues for uClibc-ng and MacOS builds + adds support to record and replay USB I/O traffic + adds timestamps to debug logs * Frontends + fixes a 32-bit arithmetic overflow issue in scanimage * Documentation + updates translations for British English, Catalan, German, Ukrainian, Valencian + adds scangearmp2 external backend descriptions + updates hpaio and utsushi external backend descriptions + adds the ChangeLogs/ directory to the source tarball (#103) * Build + additionally requires libcurl and libxml2 to build the escl backend + requires libxml2 for USB I/O recording and replay functionality + re-enables pthread support for backends that use its API directly, irrespective of the pthread_t type (#153) + moves genesys and pixma backends to a directory of their own - Update to 1.0.28: * Backends + adds a ricoh2 backend + adds support for 40+ new scanner models + significantly changes canon_dr, fujitsu, genesys, gt68xx, + hp5590 and, pixma backends + fixes bugs in as6e, avision, mustek and plustek backends + fixes scores of compiler warnings * Frontends + adds, changes and removes options for saned (see man 8 saned for details) - adds: -l (listen), -D (daemonize), -o (once), -e (stderr), -u (user) - removes: -s (syslog). Use -a -d level -o -f for the old behavior - changes: -d (debug). Use -a -d level -o -f -e for the old behavior + saned now cancels scans if the data connections appears to have gone away (after 4 seconds by default, configurable in saned.conf) + adds --output-file option to scanimage + adds --help option to scan-find-scanner + changes sane-desc to create relative hyperlinks * Documentation + adds translations for Catalan, Hebrew and Valencian + updates translations for British English, Dutch, German and + Ukrainian + marks unmaintained backends as such + documents USB workaround in sane-usb manual page * Build + requires a C++11 compatible compiler for the genesys backend + requires a JPEG library when building the pixma backend + fixes unneeded linking when not using preloadable backend support + disables pthread support for systems with non-integral pthread_t type + normalizes trailing whitespace in source code files. If you have local patches that no longer apply, have a look at the whitespace ignoring options of patch and git apply. - Rebased patches: * sane-backends.builttime.patch - Dropped patches: * no-descriptions-external-hpoj.patch OBS-URL: https://build.opensuse.org/request/show/777794 OBS-URL: https://build.opensuse.org/package/show/graphics/sane-backends?expand=0&rev=95
2020-02-23 13:44:14 +01:00
# For compliance with the other description files in the sane-backends sources
# change the manufacturer name from "Hewlett Packard" to "Hewlett-Packard":
for d in doc/descriptions-external/hp3770.desc doc/descriptions-external/hp8200.desc
do sed -i -e '/^:mfg/s/Hewlett Packard/Hewlett-Packard/' $d
done
# Create our hpaio.desc descriptions-external file
# (use it as bash input because sources may be installed without execute permissions):
bash %{SOURCE110} <%{SOURCE111} >doc/descriptions-external/hpaio.desc
# Copy the create_scanner_database script from the sources directory to the build directory
# to avoid that the original source becomes modified later in the install section
# and ends up in the source RPM, see https://bugzilla.novell.com/show_bug.cgi?id=463464#c11
cp %{SOURCE200} create_scanner_database
chmod u+x create_scanner_database
%build
Accepting request 777794 from home:StefanBruens:branches:graphics - Move udev rules from /etc/udev/ to /usr/udev. - Package libsane1 library as a separate package. This avoids pulling in the backends just a application links to it. - Hide the backends from automatic Provides generation, as these all have a libsane.so SONAME. - Update to 1.0.29: * Backends + adds an escl backend (theoretically supporting all AirPrint devices with a scan unit) + adds support for 23 new scanner models via existing backends + significantly changes genesys and pixma backends + fixes bugs in canon_dr, fujitsu, hp3900, mustek_usb2, plustek and xerox_mfp backends + fixes all compiler warnings on Debian 10 (#120) + fixes portability issues for uClibc-ng and MacOS builds + adds support to record and replay USB I/O traffic + adds timestamps to debug logs * Frontends + fixes a 32-bit arithmetic overflow issue in scanimage * Documentation + updates translations for British English, Catalan, German, Ukrainian, Valencian + adds scangearmp2 external backend descriptions + updates hpaio and utsushi external backend descriptions + adds the ChangeLogs/ directory to the source tarball (#103) * Build + additionally requires libcurl and libxml2 to build the escl backend + requires libxml2 for USB I/O recording and replay functionality + re-enables pthread support for backends that use its API directly, irrespective of the pthread_t type (#153) + moves genesys and pixma backends to a directory of their own - Update to 1.0.28: * Backends + adds a ricoh2 backend + adds support for 40+ new scanner models + significantly changes canon_dr, fujitsu, genesys, gt68xx, + hp5590 and, pixma backends + fixes bugs in as6e, avision, mustek and plustek backends + fixes scores of compiler warnings * Frontends + adds, changes and removes options for saned (see man 8 saned for details) - adds: -l (listen), -D (daemonize), -o (once), -e (stderr), -u (user) - removes: -s (syslog). Use -a -d level -o -f for the old behavior - changes: -d (debug). Use -a -d level -o -f -e for the old behavior + saned now cancels scans if the data connections appears to have gone away (after 4 seconds by default, configurable in saned.conf) + adds --output-file option to scanimage + adds --help option to scan-find-scanner + changes sane-desc to create relative hyperlinks * Documentation + adds translations for Catalan, Hebrew and Valencian + updates translations for British English, Dutch, German and + Ukrainian + marks unmaintained backends as such + documents USB workaround in sane-usb manual page * Build + requires a C++11 compatible compiler for the genesys backend + requires a JPEG library when building the pixma backend + fixes unneeded linking when not using preloadable backend support + disables pthread support for systems with non-integral pthread_t type + normalizes trailing whitespace in source code files. If you have local patches that no longer apply, have a look at the whitespace ignoring options of patch and git apply. - Rebased patches: * sane-backends.builttime.patch - Dropped patches: * no-descriptions-external-hpoj.patch OBS-URL: https://build.opensuse.org/request/show/777794 OBS-URL: https://build.opensuse.org/package/show/graphics/sane-backends?expand=0&rev=95
2020-02-23 13:44:14 +01:00
export CFLAGS="%{optflags} -D_GNU_SOURCE -DGIMP_ENABLE_COMPAT_CRUFT=1 -fno-strict-aliasing"
export LDFLAGS="-L/%_lib $LDFLAGS"
Accepting request 1171485 from home:Arnavion - Updated to sane-backends version 1.3.0 * Backends + avision: - Correction for ADF presence detect which caused a hang. - Internationalised some text items in the backend to make them available for translation. + epsonds: - Some small changes to option documentation. - Added support for models: ES-C220, DS-C330, and DS-C490. + escl: - Fix for pwf:Version item. - Fix for crash in libjpeg when cropping image. - Fix for issue with configured device when AVAHI not running. - Fix for build without poppler-glib. + fujitsu: - Added support for Ricoh scanners: FI-8040, FI-70F. + genesys: - Added missing configuration for Plustek OpticFilm 7500i and Plustek OpticFilm 8100. + hpljm1005: - Fixes to maximum geometries and various cropping and geometry details specifically for the HP LaserJet M1005. + lexmark_X2670: - Added new backend for the Lexmark X26xx series of scanners. + pixma: - Fix to prevent mode change when source is selected. Mode should not change if still valid for source. - Added support for models: TS8630 Series, XK110 Series, GX3000 Series, GX4000 Series, G3070 Series, G2070 Series, G4070 Series, G3030 Series, G2030 Series, TC-20M, TC-5200M, TR4500 Series, TS8700 series, XK120 series, GX1000 series, GX2000 series, TS6630 series, TS7700 series, TS7600i series, TS6730 series, TR7800 series, TS7700i series, TS7700A series, GX6500 series, i-SENSYS MF750 Series + snapscan: - Corrections for Agfa ARCUS 1200 scan area. + test: - Fix for a crash in the backend. + xerox_mfp: - Added support for Dell 1135n, which is a clone of the Samsung SCX-4623F. - Added support for Xerox WorkCentre 3335. - Added JPEG mitigation for modules that don't properly support JPEG output: Xerox WorkCentre 3225 - Fix to remove USB CLEAR HALT during initialisation which can potentially lock up devices. - General fixes to support the SCX-4521F model. * Frontends + saned: - Default scan buffer is now 1MB. -B option added to permit the buffersize to be set. - Documentation fixes. + scanimage: - Fix for keyboard prompt processing - Default scan buffer is now 1MB. --buffer-size and -B options now require an argument to be provided. - Fix for PDF generation, missing newline in generated file. * Build + Fixes for clang-16 compiler + Fixes for FreeBSD build. + Fixes for escl build option involving poppler-glib. + Optionally take build version from ChangeLog if not other version source is available. + Fixes to autoconf files to remove unnecessary warnings from test logs. + Fix for macOS builds related to threading support: SANE in macOS doesn't work for multi-process with libusb. * Tools + sane-find-scanner: Added some Linux SCSI device names since some later potential names are missing. Better solution in the pipeline. * Documentation + Fixes for a number of man pages. + Added documentation for a number of Ricoh scanners which are rebranded products acquired from Fujitsu. * Miscellaneous + sanei_config: Fix for a potential crash. + New Georgian translation added. + Translations updated for: British English, Ukrainian, French and Simplified Chinese. OBS-URL: https://build.opensuse.org/request/show/1171485 OBS-URL: https://build.opensuse.org/package/show/graphics/sane-backends?expand=0&rev=111
2024-05-03 07:38:08 +02:00
./autogen.sh
# Enable pthread instead of fork (used in Debian since Feb 2009 and no issues so far),
# see https://bugzilla.novell.com/show_bug.cgi?id=633780
# Disable locking because /var/lock/sane/ would be a world-writable directory.
./configure --prefix=/usr \
--exec-prefix=/usr \
--sysconfdir=%{_sysconfdir} \
--libdir=%{_libdir} \
--sbindir=%{_sbindir} \
--mandir=%{_mandir} \
--datadir=%{_datadir} \
--docdir=%{_defaultdocdir}/sane-backends \
--enable-pthread \
--with-usb \
Accepting request 777794 from home:StefanBruens:branches:graphics - Move udev rules from /etc/udev/ to /usr/udev. - Package libsane1 library as a separate package. This avoids pulling in the backends just a application links to it. - Hide the backends from automatic Provides generation, as these all have a libsane.so SONAME. - Update to 1.0.29: * Backends + adds an escl backend (theoretically supporting all AirPrint devices with a scan unit) + adds support for 23 new scanner models via existing backends + significantly changes genesys and pixma backends + fixes bugs in canon_dr, fujitsu, hp3900, mustek_usb2, plustek and xerox_mfp backends + fixes all compiler warnings on Debian 10 (#120) + fixes portability issues for uClibc-ng and MacOS builds + adds support to record and replay USB I/O traffic + adds timestamps to debug logs * Frontends + fixes a 32-bit arithmetic overflow issue in scanimage * Documentation + updates translations for British English, Catalan, German, Ukrainian, Valencian + adds scangearmp2 external backend descriptions + updates hpaio and utsushi external backend descriptions + adds the ChangeLogs/ directory to the source tarball (#103) * Build + additionally requires libcurl and libxml2 to build the escl backend + requires libxml2 for USB I/O recording and replay functionality + re-enables pthread support for backends that use its API directly, irrespective of the pthread_t type (#153) + moves genesys and pixma backends to a directory of their own - Update to 1.0.28: * Backends + adds a ricoh2 backend + adds support for 40+ new scanner models + significantly changes canon_dr, fujitsu, genesys, gt68xx, + hp5590 and, pixma backends + fixes bugs in as6e, avision, mustek and plustek backends + fixes scores of compiler warnings * Frontends + adds, changes and removes options for saned (see man 8 saned for details) - adds: -l (listen), -D (daemonize), -o (once), -e (stderr), -u (user) - removes: -s (syslog). Use -a -d level -o -f for the old behavior - changes: -d (debug). Use -a -d level -o -f -e for the old behavior + saned now cancels scans if the data connections appears to have gone away (after 4 seconds by default, configurable in saned.conf) + adds --output-file option to scanimage + adds --help option to scan-find-scanner + changes sane-desc to create relative hyperlinks * Documentation + adds translations for Catalan, Hebrew and Valencian + updates translations for British English, Dutch, German and + Ukrainian + marks unmaintained backends as such + documents USB workaround in sane-usb manual page * Build + requires a C++11 compatible compiler for the genesys backend + requires a JPEG library when building the pixma backend + fixes unneeded linking when not using preloadable backend support + disables pthread support for systems with non-integral pthread_t type + normalizes trailing whitespace in source code files. If you have local patches that no longer apply, have a look at the whitespace ignoring options of patch and git apply. - Rebased patches: * sane-backends.builttime.patch - Dropped patches: * no-descriptions-external-hpoj.patch OBS-URL: https://build.opensuse.org/request/show/777794 OBS-URL: https://build.opensuse.org/package/show/graphics/sane-backends?expand=0&rev=95
2020-02-23 13:44:14 +01:00
%if %{with escl}
--with-avahi \
Accepting request 777794 from home:StefanBruens:branches:graphics - Move udev rules from /etc/udev/ to /usr/udev. - Package libsane1 library as a separate package. This avoids pulling in the backends just a application links to it. - Hide the backends from automatic Provides generation, as these all have a libsane.so SONAME. - Update to 1.0.29: * Backends + adds an escl backend (theoretically supporting all AirPrint devices with a scan unit) + adds support for 23 new scanner models via existing backends + significantly changes genesys and pixma backends + fixes bugs in canon_dr, fujitsu, hp3900, mustek_usb2, plustek and xerox_mfp backends + fixes all compiler warnings on Debian 10 (#120) + fixes portability issues for uClibc-ng and MacOS builds + adds support to record and replay USB I/O traffic + adds timestamps to debug logs * Frontends + fixes a 32-bit arithmetic overflow issue in scanimage * Documentation + updates translations for British English, Catalan, German, Ukrainian, Valencian + adds scangearmp2 external backend descriptions + updates hpaio and utsushi external backend descriptions + adds the ChangeLogs/ directory to the source tarball (#103) * Build + additionally requires libcurl and libxml2 to build the escl backend + requires libxml2 for USB I/O recording and replay functionality + re-enables pthread support for backends that use its API directly, irrespective of the pthread_t type (#153) + moves genesys and pixma backends to a directory of their own - Update to 1.0.28: * Backends + adds a ricoh2 backend + adds support for 40+ new scanner models + significantly changes canon_dr, fujitsu, genesys, gt68xx, + hp5590 and, pixma backends + fixes bugs in as6e, avision, mustek and plustek backends + fixes scores of compiler warnings * Frontends + adds, changes and removes options for saned (see man 8 saned for details) - adds: -l (listen), -D (daemonize), -o (once), -e (stderr), -u (user) - removes: -s (syslog). Use -a -d level -o -f for the old behavior - changes: -d (debug). Use -a -d level -o -f -e for the old behavior + saned now cancels scans if the data connections appears to have gone away (after 4 seconds by default, configurable in saned.conf) + adds --output-file option to scanimage + adds --help option to scan-find-scanner + changes sane-desc to create relative hyperlinks * Documentation + adds translations for Catalan, Hebrew and Valencian + updates translations for British English, Dutch, German and + Ukrainian + marks unmaintained backends as such + documents USB workaround in sane-usb manual page * Build + requires a C++11 compatible compiler for the genesys backend + requires a JPEG library when building the pixma backend + fixes unneeded linking when not using preloadable backend support + disables pthread support for systems with non-integral pthread_t type + normalizes trailing whitespace in source code files. If you have local patches that no longer apply, have a look at the whitespace ignoring options of patch and git apply. - Rebased patches: * sane-backends.builttime.patch - Dropped patches: * no-descriptions-external-hpoj.patch OBS-URL: https://build.opensuse.org/request/show/777794 OBS-URL: https://build.opensuse.org/package/show/graphics/sane-backends?expand=0&rev=95
2020-02-23 13:44:14 +01:00
%endif
--disable-locking
# Enable locking for backends where "99" is the group of the lockfile path (LOCKPATH_GROUP)
# because "99" is the group of the user who runs the build when norootforbuild is used
# and set localstatedir to have the lock files in /var/lock/sane (see backend/Makefile.in).
# Disabled because locking requires a world-writable /var/lock/sane/ directory:
# --enable-locking \
# --with-group=99 \
# --localstatedir=/var
Accepting request 777794 from home:StefanBruens:branches:graphics - Move udev rules from /etc/udev/ to /usr/udev. - Package libsane1 library as a separate package. This avoids pulling in the backends just a application links to it. - Hide the backends from automatic Provides generation, as these all have a libsane.so SONAME. - Update to 1.0.29: * Backends + adds an escl backend (theoretically supporting all AirPrint devices with a scan unit) + adds support for 23 new scanner models via existing backends + significantly changes genesys and pixma backends + fixes bugs in canon_dr, fujitsu, hp3900, mustek_usb2, plustek and xerox_mfp backends + fixes all compiler warnings on Debian 10 (#120) + fixes portability issues for uClibc-ng and MacOS builds + adds support to record and replay USB I/O traffic + adds timestamps to debug logs * Frontends + fixes a 32-bit arithmetic overflow issue in scanimage * Documentation + updates translations for British English, Catalan, German, Ukrainian, Valencian + adds scangearmp2 external backend descriptions + updates hpaio and utsushi external backend descriptions + adds the ChangeLogs/ directory to the source tarball (#103) * Build + additionally requires libcurl and libxml2 to build the escl backend + requires libxml2 for USB I/O recording and replay functionality + re-enables pthread support for backends that use its API directly, irrespective of the pthread_t type (#153) + moves genesys and pixma backends to a directory of their own - Update to 1.0.28: * Backends + adds a ricoh2 backend + adds support for 40+ new scanner models + significantly changes canon_dr, fujitsu, genesys, gt68xx, + hp5590 and, pixma backends + fixes bugs in as6e, avision, mustek and plustek backends + fixes scores of compiler warnings * Frontends + adds, changes and removes options for saned (see man 8 saned for details) - adds: -l (listen), -D (daemonize), -o (once), -e (stderr), -u (user) - removes: -s (syslog). Use -a -d level -o -f for the old behavior - changes: -d (debug). Use -a -d level -o -f -e for the old behavior + saned now cancels scans if the data connections appears to have gone away (after 4 seconds by default, configurable in saned.conf) + adds --output-file option to scanimage + adds --help option to scan-find-scanner + changes sane-desc to create relative hyperlinks * Documentation + adds translations for Catalan, Hebrew and Valencian + updates translations for British English, Dutch, German and + Ukrainian + marks unmaintained backends as such + documents USB workaround in sane-usb manual page * Build + requires a C++11 compatible compiler for the genesys backend + requires a JPEG library when building the pixma backend + fixes unneeded linking when not using preloadable backend support + disables pthread support for systems with non-integral pthread_t type + normalizes trailing whitespace in source code files. If you have local patches that no longer apply, have a look at the whitespace ignoring options of patch and git apply. - Rebased patches: * sane-backends.builttime.patch - Dropped patches: * no-descriptions-external-hpoj.patch OBS-URL: https://build.opensuse.org/request/show/777794 OBS-URL: https://build.opensuse.org/package/show/graphics/sane-backends?expand=0&rev=95
2020-02-23 13:44:14 +01:00
%make_build
%install
Accepting request 777794 from home:StefanBruens:branches:graphics - Move udev rules from /etc/udev/ to /usr/udev. - Package libsane1 library as a separate package. This avoids pulling in the backends just a application links to it. - Hide the backends from automatic Provides generation, as these all have a libsane.so SONAME. - Update to 1.0.29: * Backends + adds an escl backend (theoretically supporting all AirPrint devices with a scan unit) + adds support for 23 new scanner models via existing backends + significantly changes genesys and pixma backends + fixes bugs in canon_dr, fujitsu, hp3900, mustek_usb2, plustek and xerox_mfp backends + fixes all compiler warnings on Debian 10 (#120) + fixes portability issues for uClibc-ng and MacOS builds + adds support to record and replay USB I/O traffic + adds timestamps to debug logs * Frontends + fixes a 32-bit arithmetic overflow issue in scanimage * Documentation + updates translations for British English, Catalan, German, Ukrainian, Valencian + adds scangearmp2 external backend descriptions + updates hpaio and utsushi external backend descriptions + adds the ChangeLogs/ directory to the source tarball (#103) * Build + additionally requires libcurl and libxml2 to build the escl backend + requires libxml2 for USB I/O recording and replay functionality + re-enables pthread support for backends that use its API directly, irrespective of the pthread_t type (#153) + moves genesys and pixma backends to a directory of their own - Update to 1.0.28: * Backends + adds a ricoh2 backend + adds support for 40+ new scanner models + significantly changes canon_dr, fujitsu, genesys, gt68xx, + hp5590 and, pixma backends + fixes bugs in as6e, avision, mustek and plustek backends + fixes scores of compiler warnings * Frontends + adds, changes and removes options for saned (see man 8 saned for details) - adds: -l (listen), -D (daemonize), -o (once), -e (stderr), -u (user) - removes: -s (syslog). Use -a -d level -o -f for the old behavior - changes: -d (debug). Use -a -d level -o -f -e for the old behavior + saned now cancels scans if the data connections appears to have gone away (after 4 seconds by default, configurable in saned.conf) + adds --output-file option to scanimage + adds --help option to scan-find-scanner + changes sane-desc to create relative hyperlinks * Documentation + adds translations for Catalan, Hebrew and Valencian + updates translations for British English, Dutch, German and + Ukrainian + marks unmaintained backends as such + documents USB workaround in sane-usb manual page * Build + requires a C++11 compatible compiler for the genesys backend + requires a JPEG library when building the pixma backend + fixes unneeded linking when not using preloadable backend support + disables pthread support for systems with non-integral pthread_t type + normalizes trailing whitespace in source code files. If you have local patches that no longer apply, have a look at the whitespace ignoring options of patch and git apply. - Rebased patches: * sane-backends.builttime.patch - Dropped patches: * no-descriptions-external-hpoj.patch OBS-URL: https://build.opensuse.org/request/show/777794 OBS-URL: https://build.opensuse.org/package/show/graphics/sane-backends?expand=0&rev=95
2020-02-23 13:44:14 +01:00
%makeinstall
# The actual driver modules are installed as libsane-<driver>.so.{version}
# and two libsane-<driver>.so.1 and libsane-<driver>.so links point to them.
# Additionally a libsane-<driver>.la libtool archive file is installed
# which could be used to find the correct module file name to dlopen the module.
# Only the dll meta-backend (/usr/lib/libsane.so.1.0.19) links with driver modules.
# The dll meta-backend looks only for libsane-<driver>.so.1 and uses dlopen(3) directly.
# The dll meta-backend needs neither libsane-<driver>.so nor libsane-<driver>.la.
# RPMLINT complains about libsane-<driver>.so with "devel-file-in-non-devel-package".
# Therefore the libsane-<driver>.so and libsane-<driver>.la files are simply removed.
rm %{buildroot}%{_libdir}/sane/libsane-*.so
rm %{buildroot}%{_libdir}/sane/libsane-*.la
# Because of https://bugzilla.novell.com/show_bug.cgi?id=592143 for openSUSE 11.3
# even the /usr/lib/libsane.la file for the dll meta-backend is removed
# regardless that it is unknown how whatever third-party scanning frontend
# may like to link with SANE (i.e. with the dll meta-backend).
# The frontends which are provided by openSUSE /usr/bin/scanimage,
# /usr/bin/xsane, and /usr/bin/skanlite do not need it.
# The /usr/lib/libsane.so link for the dll meta-backend is kept because it is needed
# during build-time by other packages which need sane-backends to build.
rm %{buildroot}%{_libdir}/libsane.la
# Disable all backends in /etc/sane.d/dll.conf to avoid problems when backends are active by default:
perl -pi -e 's/^([^#].*)$/#$1/' %{buildroot}%{_sysconfdir}/sane.d/dll.conf
# Allow all users to write into /var/lock/sane/ so that the backends work for normal users
# and set the sticky bit (i.e. others are not allowed to remove lock files).
# Disabled because package-specific world-writable directories are not allowed:
#chmod 1777 {buildroot}/var/lock/sane/
# Install the descriptions and descriptions-external files.
# These files are the sources to make {_defaultdocdir}/sane/sane-backends/*.html
# but these source files must also exist in the installed sane package
# because YaST needs them to create its scanner database:
for d in descriptions descriptions-external
do install -d -m755 %{buildroot}%{_datadir}/sane/$d
install -m644 doc/$d/*.desc %{buildroot}%{_datadir}/sane/$d
done
# Add ':firmware "required"' entries for the respective scanners to the descriptions files
# so that YaST can show firmware upload related information to the user of such a scanner.
# This must be done after build because those entries are a SUSE specific extension.
# To determine scanners which require firmware upload, search the man pages
# for backends which provide support for firmware upload.
# Use a command like
# for m in /usr/share/man/man5/sane-*
# do man -E ascii -P cat -l $m 2>/dev/null | grep -q -i firmware && echo $m
# done
# to find backend man pages which mention "firmware".
# In version 1.0.19 the following man pages mention "firmware":
# sane-agfafocus: mentiones only "firmware revision" (no firmware upload)
# sane-apple: mentiones only "firmware revision" (no firmware upload)
# sane-artec: mentiones only "problems with firmware v1.92" (no firmware upload)
# sane-artec_eplus48u: "you need a firmware file for your scanner" (unconditioned firmware upload)
# sane-bh: mentiones only "requires RSC firmware level 1.5" (no firmware upload)
# sane-epjitsu: "these scanners require a firmware file" (unconditioned firmware upload)
# sane-gt68xx: "you need a firmware file for your scanner" (unconditioned firmware upload)
# sane-hp: mentiones only "no firmware support for contrast" (no firmware upload)
# sane-matsushita: mentiones only "scanner with proper firmware" (no firmware upload)
# sane-microtek2: mentiones only "firmware of the scanner provides" (no firmware upload)
# sane-sharp: mentiones only "bug in the firmware" (no firmware upload)
# sane-snapscan: "USB scanners ... scanners that need a firmware upload" (conditioned firmware upload)
# sane-st400: mentiones only "firmware revision" (no firmware upload)
# sane-teco2: mentiones only "firmware 1.09" (no firmware upload)
# As far as we know all scanners which use
# the backend gt68xx and the related backend artec_eplus48u
# or the backend epjitsu require a firmware upload,
# see "man sane-gt68xx" and http://www.meier-geinitz.de/sane/gt68xx-backend/
# and see "man sane-artec_eplus48u" and "man sane-epjitsu":
for b in gt68xx artec_eplus48u epjitsu
do sed -i -e 's/^:model.*$/&\n:firmware "required"/' %{buildroot}%{_datadir}/sane/descriptions/$b.desc
done
# As far as we know (almost) all USB scanners (but not the SCSI scanners)
# which use the backend snapscan require a firmware upload,
# see "man sane-snapscan" and http://snapscan.sourceforge.net/:
sed -i -e 's/^:interface "USB".*$/&\n:firmware "required"/' %{buildroot}%{_datadir}/sane/descriptions/snapscan.desc
# Only the "SnapScan 1236u" needs no firmware upload (see Suse/Novell bug #73960):
sed -i -e '/:model "SnapScan 1236u"/,/:firmware "required"/s/required//' %{buildroot}%{_datadir}/sane/descriptions/snapscan.desc
# Scanner autoconfiguration stuff (packaged in sane-backends-autoconfig):
# It must be done before the udev libsane.rules stuff because the scanner database is needed there.
# This requires the installed descriptions and descriptions-external files
# because create_scanner_database reads the description files to extract the needed info
# to create the scanner database from which create_sane-backends-autoconfig.rules
# extracts the needed info to generate the 56-sane-backends-autoconfig.rules file
# for automated scanner driver activation via udev.
# Note that driver activation alone is not sufficient
# to have a usable "scanner autoconfiguration" for the user.
# What is also needed are appropriate USB device file permissions
# so that the user's scanning software can access the device.
# But this is already in place via the the udev libsane.rules file
# which contains a superset of USB scanner IDs (all known USB scanner IDs)
# compared to the USB scanner IDs in 56-sane-backends-autoconfig.rules,
# see create_sane-backends-autoconfig.rules for which USB scanners
# automated driver activation is done (basically only those scanners
# which are supported by a free driver, which do not require firmware upload,
# and where the support status is "complete" or "good").
# Modify create_scanner_database to find the description files in the BuildRoot directory
# (the usual delimiter '/' cannot be used because buildroot contains it too):
sed -i -e 's|/usr/share/sane/descriptions|%{buildroot}/usr/share/sane/descriptions|' create_scanner_database
# Create the scanner database and store it because it is also needed later
# to disable "unsupported" model entries in the udev libsane.rules file.
# The file name "scanner.database" is used hardcoded in create_sane-backends-autoconfig.rules.
./create_scanner_database >scanner.database
# Run create_sane-backends-autoconfig.rules which reads scanner.database
# (use it as bash input because sources may be installed without execute permissions):
bash %{SOURCE201} >autoconfig.rules
# Install the scanner autoconfiguration udev rules file:
Accepting request 777794 from home:StefanBruens:branches:graphics - Move udev rules from /etc/udev/ to /usr/udev. - Package libsane1 library as a separate package. This avoids pulling in the backends just a application links to it. - Hide the backends from automatic Provides generation, as these all have a libsane.so SONAME. - Update to 1.0.29: * Backends + adds an escl backend (theoretically supporting all AirPrint devices with a scan unit) + adds support for 23 new scanner models via existing backends + significantly changes genesys and pixma backends + fixes bugs in canon_dr, fujitsu, hp3900, mustek_usb2, plustek and xerox_mfp backends + fixes all compiler warnings on Debian 10 (#120) + fixes portability issues for uClibc-ng and MacOS builds + adds support to record and replay USB I/O traffic + adds timestamps to debug logs * Frontends + fixes a 32-bit arithmetic overflow issue in scanimage * Documentation + updates translations for British English, Catalan, German, Ukrainian, Valencian + adds scangearmp2 external backend descriptions + updates hpaio and utsushi external backend descriptions + adds the ChangeLogs/ directory to the source tarball (#103) * Build + additionally requires libcurl and libxml2 to build the escl backend + requires libxml2 for USB I/O recording and replay functionality + re-enables pthread support for backends that use its API directly, irrespective of the pthread_t type (#153) + moves genesys and pixma backends to a directory of their own - Update to 1.0.28: * Backends + adds a ricoh2 backend + adds support for 40+ new scanner models + significantly changes canon_dr, fujitsu, genesys, gt68xx, + hp5590 and, pixma backends + fixes bugs in as6e, avision, mustek and plustek backends + fixes scores of compiler warnings * Frontends + adds, changes and removes options for saned (see man 8 saned for details) - adds: -l (listen), -D (daemonize), -o (once), -e (stderr), -u (user) - removes: -s (syslog). Use -a -d level -o -f for the old behavior - changes: -d (debug). Use -a -d level -o -f -e for the old behavior + saned now cancels scans if the data connections appears to have gone away (after 4 seconds by default, configurable in saned.conf) + adds --output-file option to scanimage + adds --help option to scan-find-scanner + changes sane-desc to create relative hyperlinks * Documentation + adds translations for Catalan, Hebrew and Valencian + updates translations for British English, Dutch, German and + Ukrainian + marks unmaintained backends as such + documents USB workaround in sane-usb manual page * Build + requires a C++11 compatible compiler for the genesys backend + requires a JPEG library when building the pixma backend + fixes unneeded linking when not using preloadable backend support + disables pthread support for systems with non-integral pthread_t type + normalizes trailing whitespace in source code files. If you have local patches that no longer apply, have a look at the whitespace ignoring options of patch and git apply. - Rebased patches: * sane-backends.builttime.patch - Dropped patches: * no-descriptions-external-hpoj.patch OBS-URL: https://build.opensuse.org/request/show/777794 OBS-URL: https://build.opensuse.org/package/show/graphics/sane-backends?expand=0&rev=95
2020-02-23 13:44:14 +01:00
install -d %{buildroot}%{_udevrulesdir}
install -m644 autoconfig.rules %{buildroot}%{_udevrulesdir}/56-sane-backends-autoconfig.rules
# Regarding udev:
# Modify the generated tools/udev/libsane.rules file as follows:
# All GROUP="scanner" are replaced by GROUP="lp".
# There is no group "scanner" in /etc/group for openSUSE.
# For all-in-one devices (i.e. printer + scanner, e.g. "EPSON Stylus" devices)
# the group must be "lp" so that the CUPS usb backend which runs
# as user "lp" (who is member of the group "lp") can send printing data
# to the printer unit (i.e. the printer interface of the USB device).
# It is sufficiently secure and reasonable easy to use by default
# the same group "lp" for printers and scanners because both kind of devices
# usually require physical user access (to get the printed paper or
# to place a paper on the scanner) so that both kind of devices
# should usually require the same kind of security.
sed -i -e 's/GROUP="scanner"/GROUP="lp"/' tools/udev/libsane.rules
# Disable entries for USB scanners which are "unsupported"
# but keep the entries for models for which the support status
# is "complete", "good", "basic", "minimal", "untested"
# because libsane.rules disables USB autosuspend
# which is needed as safe default for any scanner
# (regardless to what extent it is actually supported).
# The only exception are unsupported models
# because it seems to be wrong to have "known but unsupported" devices
# listed in the libsane.rules file because it seems not to make sense
# to set owner, group, and permissions for devices which are not
# supported by SANE which would even cause conflicts if such a
# device is supported by whatever other software,
# see https://bugzilla.novell.com/show_bug.cgi?id=439193
# Extract a list of USB IDs for "unsupported" scanners and store them in unsupportedUSBIDs.
# It can happen that there is a status "unsupported" entry for a backend
# for a model which is actually supported by another backend, for example
# the "Epson Perfection 1670" is "unsupported" by the "epkowa" backend
# but works "good" with the "snapscan" backend
# see https://bugzilla.novell.com/show_bug.cgi?id=439193#c6
Accepting request 949860 from home:StefanBruens:branches:graphics - Upgraded to sane-backends version 1.1.1 * Backends + epson2: Fixed support for many scanners that don't support focus command. + epson2: Improve reliability of long scans. + epsonds: Implemented support for the following Epson scanners: - DS-1610, DS-1630, DS-1660W, DS-310, DS-320, DS-360W, DS-410, DS-530, DS-530II, DS-531, DS-535, DS-535H, DS-535II, DS-570W, DS-570WII, DS-571W, DS-575W, DS-575WII, DS-70, DS-80W - ES-200, ES-300W, ES-300WR, ES-400, ES-400II, ES-50, ES-500W, ES-500WII, ES-500WR, ES-55R, ES-580W, ES-60W, ES-60WB, ES-60WW, ES-65WR, - ET-2700 Series, ET-2710 Series, ET-2810 Series, ET-M2140 Series, ET-M3140 Series, - EW-052A Series, - FF-680W, - L3150 Series, L3200 Series, L3210 Series, L3250 Series, L4150 Series, - M2140 Series, M3140 Series, - RR-60, RR-600W, RR-70W, - XP-2100 Series, XP-2150 Series + epson2: Marked XP-452 455 series as supported in documentation + escl: Fixed scanning problems on certain scanners due to incorrect URL being used (#479) + escl: Fixed support for different resolutions when using JPEG format + escl: Fixed handling of ipp-usb redirects to localhost which previously caused certain scanners to be always reported as busy + escl: Added support for Brother DCP-J772DW and Epson ET-2750 scanners + escl: Marked the following scanners as supported in documentation: - Canon PIXMA G4511 - Canon PIXMA TR4550 Series - Canon PIXMA TR4551 Series - Epson ET-6100 + escl: Implemented support for disabling PDF output on scanners where it's broken (#510) + escl: Implemented support for Canon PIXME TR4520 and TR7500 scanners + genesys: Improved scan quality on Canon LiDE 35/40/50/60 by using brighter LED illumination + genesys: Fixed control of contrast and brigthness on certain scanners (#271) + genesys: Fixed crashes when handling slightly unexpected conditions (#464) + genesys: Fixed support for Plustek Opticfilm 7200 v2 scanner + genesys: Fixed button support on HP ScanJet G4010 + genesys: Fixed compilation on gcc-4.8 + genesys: Fixed incorrect LED exposure calculation leading to wrong color balance on certain resolutions on gl841 scanners + genesys: Improved gray scan quality on Canon LiDE 110, 120, 210, 220 (#106, #52) + genesys: Fixed issue of motor becoming stuck at certain resolutions on Canon LiDE 50 and possibly other gl841 scanners (#357) + genesys: Fixed periodic black lines in gray scans on Canon LiDE 80 + genesys: Removed support for broken 75 and 100 dpi hardware resolutions to fix preview scans (#383). These resolutions did not have any benefit compared to next smallest 150 dpi resolution + genesys: Add support for running in embedded environments that don't support threads + genesys: Fixed gray scans to use white color for illumination instead of red on Canon LiDE 35/40/50/60 and potentially other gl841 scanners. Old behavior can be restored via the color filter setting to select specific color component for the gray scan + genesys: The genesys backend is now distributed under GPL v2 or later license. Previously there existed an exception that allowed additional uses of the backend + gt68xx: Fixed several memory issues that can potentially lead to crashes or increased memory use + hp4200: Fixed crash when using HP ScanJet 4200C (#454) + microtek: Fixed support for embedded platforms using uclibc + pieusb: Implemented support for Reflecta RPS 10M scanner + pieusb: Fixed support for automatically advancing slides on DigitDia 4000 + pixma: Fixed compliation with NDEBUG macro defined + pixma: Marked Canon PIXMA G4511 as supported in documentation + scangearmp2: Mark GX6000, GX7000, TS5400 and MX455 series as supported * Frontends + Improved documentation of scanimage concerning options provided by backends + scanimage: Improved help to specify which options are advanced + scanimage: Implemented support for PDF output format - Cleanup create_hpaio.desc_from_models.dat: * Remove scanners unsupported by hplip (scan-type < 0) * Simplify and significantly speed it up OBS-URL: https://build.opensuse.org/request/show/949860 OBS-URL: https://build.opensuse.org/package/show/graphics/sane-backends?expand=0&rev=106
2022-01-31 14:34:31 +01:00
sed -n -e '\@|0x.*:0x.*|@ { s/.*|\(0x[0-9A-Fa-f:x]*\)|\([a-z]*\)|.*/\1 S:\2/ ; s/S:unsupported/1_uns/ ; s/S:.*/0_sup/ ; p } ; d' < scanner.database \
| sort -u | uniq -w 13 | sed '/0_sup/ d ; s/\(.*\) 1_uns/\1/' > unsupportedUSBIDs
# Ignore case when using sed to avoid possible problems
# with upper case letters in the USB IDs:
for m in $( sed -e 's/0x/./ig' -e 's/:/.,.ATTR.idProduct.==/' unsupportedUSBIDs )
do if grep -q "^ATTR.idVendor.==$m" tools/udev/libsane.rules
then echo "Disabling unsupported model matching ATTR.idVendor.==$m"
sed -i -e "/^ATTR.idVendor.==$m/Is/^ATTR/# ATTR/" tools/udev/libsane.rules
fi
done
# Install the udev rules file:
Accepting request 777794 from home:StefanBruens:branches:graphics - Move udev rules from /etc/udev/ to /usr/udev. - Package libsane1 library as a separate package. This avoids pulling in the backends just a application links to it. - Hide the backends from automatic Provides generation, as these all have a libsane.so SONAME. - Update to 1.0.29: * Backends + adds an escl backend (theoretically supporting all AirPrint devices with a scan unit) + adds support for 23 new scanner models via existing backends + significantly changes genesys and pixma backends + fixes bugs in canon_dr, fujitsu, hp3900, mustek_usb2, plustek and xerox_mfp backends + fixes all compiler warnings on Debian 10 (#120) + fixes portability issues for uClibc-ng and MacOS builds + adds support to record and replay USB I/O traffic + adds timestamps to debug logs * Frontends + fixes a 32-bit arithmetic overflow issue in scanimage * Documentation + updates translations for British English, Catalan, German, Ukrainian, Valencian + adds scangearmp2 external backend descriptions + updates hpaio and utsushi external backend descriptions + adds the ChangeLogs/ directory to the source tarball (#103) * Build + additionally requires libcurl and libxml2 to build the escl backend + requires libxml2 for USB I/O recording and replay functionality + re-enables pthread support for backends that use its API directly, irrespective of the pthread_t type (#153) + moves genesys and pixma backends to a directory of their own - Update to 1.0.28: * Backends + adds a ricoh2 backend + adds support for 40+ new scanner models + significantly changes canon_dr, fujitsu, genesys, gt68xx, + hp5590 and, pixma backends + fixes bugs in as6e, avision, mustek and plustek backends + fixes scores of compiler warnings * Frontends + adds, changes and removes options for saned (see man 8 saned for details) - adds: -l (listen), -D (daemonize), -o (once), -e (stderr), -u (user) - removes: -s (syslog). Use -a -d level -o -f for the old behavior - changes: -d (debug). Use -a -d level -o -f -e for the old behavior + saned now cancels scans if the data connections appears to have gone away (after 4 seconds by default, configurable in saned.conf) + adds --output-file option to scanimage + adds --help option to scan-find-scanner + changes sane-desc to create relative hyperlinks * Documentation + adds translations for Catalan, Hebrew and Valencian + updates translations for British English, Dutch, German and + Ukrainian + marks unmaintained backends as such + documents USB workaround in sane-usb manual page * Build + requires a C++11 compatible compiler for the genesys backend + requires a JPEG library when building the pixma backend + fixes unneeded linking when not using preloadable backend support + disables pthread support for systems with non-integral pthread_t type + normalizes trailing whitespace in source code files. If you have local patches that no longer apply, have a look at the whitespace ignoring options of patch and git apply. - Rebased patches: * sane-backends.builttime.patch - Dropped patches: * no-descriptions-external-hpoj.patch OBS-URL: https://build.opensuse.org/request/show/777794 OBS-URL: https://build.opensuse.org/package/show/graphics/sane-backends?expand=0&rev=95
2020-02-23 13:44:14 +01:00
install -m644 tools/udev/libsane.rules %{buildroot}%{_udevrulesdir}/55-libsane.rules
# Service files:
# Sources 202 and 203 are files to enable socket based service activation which replaced xinetd
# Source202 is saned@.service and Source203 is saned.socket
# see https://bugzilla.opensuse.org/show_bug.cgi?id=1074054#c5
# and https://bugzilla.opensuse.org/attachment.cgi?id=760460
install -d -m755 %{buildroot}%{_unitdir}
install -m644 %{SOURCE202} %{buildroot}%{_unitdir}
install -m644 %{SOURCE203} %{buildroot}%{_unitdir}
# OpenSLP registration stuff:
install -d -m755 %{buildroot}%{_sysconfdir}/slp.reg.d
install -m644 %{SOURCE102} %{buildroot}%{_sysconfdir}/slp.reg.d
# Delete documentation files for non-Linux platforms:
rm %{buildroot}%{_defaultdocdir}/sane-backends/{README.aix,README.beos,README.darwin,README.djpeg,README.freebsd,README.hp-ux,README.netbsd,README.openbsd,README.os2,README.solaris,README.unixware2,README.unixware7,README.windows,README.zeta}
# Mark locale-dependent files with the respective 'lang' tag in the file list, see
# https://en.opensuse.org/openSUSE:Packaging_Conventions_RPM_Macros#.25find_lang
%find_lang sane-backends
%pre -n sane-saned
if [ $1 = 2 ] ; then
# In case of an upgrade the erroneously created as directories saned.socket and saned@.service
# must be removed, otherwise the upgrade will fail,
# see https://bugzilla.opensuse.org/show_bug.cgi?id=1074054#c5
# and https://bugzilla.opensuse.org/attachment.cgi?id=760460
if [ -d /usr/lib/systemd/system/saned.socket ] ; then
/usr/bin/rmdir /usr/lib/systemd/system/saned.socket
fi
if [ -d /usr/lib/systemd/system/saned@.service ] ; then
/usr/bin/rmdir /usr/lib/systemd/system/saned@.service
fi
fi
%service_add_pre saned.socket
%post -n sane-saned
%service_add_post saned.socket
%preun -n sane-saned
%service_del_preun saned.socket
%postun -n sane-saned
%service_del_postun saned.socket
Accepting request 777794 from home:StefanBruens:branches:graphics - Move udev rules from /etc/udev/ to /usr/udev. - Package libsane1 library as a separate package. This avoids pulling in the backends just a application links to it. - Hide the backends from automatic Provides generation, as these all have a libsane.so SONAME. - Update to 1.0.29: * Backends + adds an escl backend (theoretically supporting all AirPrint devices with a scan unit) + adds support for 23 new scanner models via existing backends + significantly changes genesys and pixma backends + fixes bugs in canon_dr, fujitsu, hp3900, mustek_usb2, plustek and xerox_mfp backends + fixes all compiler warnings on Debian 10 (#120) + fixes portability issues for uClibc-ng and MacOS builds + adds support to record and replay USB I/O traffic + adds timestamps to debug logs * Frontends + fixes a 32-bit arithmetic overflow issue in scanimage * Documentation + updates translations for British English, Catalan, German, Ukrainian, Valencian + adds scangearmp2 external backend descriptions + updates hpaio and utsushi external backend descriptions + adds the ChangeLogs/ directory to the source tarball (#103) * Build + additionally requires libcurl and libxml2 to build the escl backend + requires libxml2 for USB I/O recording and replay functionality + re-enables pthread support for backends that use its API directly, irrespective of the pthread_t type (#153) + moves genesys and pixma backends to a directory of their own - Update to 1.0.28: * Backends + adds a ricoh2 backend + adds support for 40+ new scanner models + significantly changes canon_dr, fujitsu, genesys, gt68xx, + hp5590 and, pixma backends + fixes bugs in as6e, avision, mustek and plustek backends + fixes scores of compiler warnings * Frontends + adds, changes and removes options for saned (see man 8 saned for details) - adds: -l (listen), -D (daemonize), -o (once), -e (stderr), -u (user) - removes: -s (syslog). Use -a -d level -o -f for the old behavior - changes: -d (debug). Use -a -d level -o -f -e for the old behavior + saned now cancels scans if the data connections appears to have gone away (after 4 seconds by default, configurable in saned.conf) + adds --output-file option to scanimage + adds --help option to scan-find-scanner + changes sane-desc to create relative hyperlinks * Documentation + adds translations for Catalan, Hebrew and Valencian + updates translations for British English, Dutch, German and + Ukrainian + marks unmaintained backends as such + documents USB workaround in sane-usb manual page * Build + requires a C++11 compatible compiler for the genesys backend + requires a JPEG library when building the pixma backend + fixes unneeded linking when not using preloadable backend support + disables pthread support for systems with non-integral pthread_t type + normalizes trailing whitespace in source code files. If you have local patches that no longer apply, have a look at the whitespace ignoring options of patch and git apply. - Rebased patches: * sane-backends.builttime.patch - Dropped patches: * no-descriptions-external-hpoj.patch OBS-URL: https://build.opensuse.org/request/show/777794 OBS-URL: https://build.opensuse.org/package/show/graphics/sane-backends?expand=0&rev=95
2020-02-23 13:44:14 +01:00
%post -n %{libname} -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig
%files -n sane-saned
%dir %{_sysconfdir}/slp.reg.d
%config(noreplace) %{_sysconfdir}/slp.reg.d/*
%{_sbindir}/saned
%{_unitdir}/saned@.service
%{_unitdir}/saned.socket
%doc %{_mandir}/man8/saned.8.gz
%files -f sane-backends.lang
%dir %{_sysconfdir}/sane.d
%config(noreplace) %{_sysconfdir}/sane.d/*.conf
Accepting request 777794 from home:StefanBruens:branches:graphics - Move udev rules from /etc/udev/ to /usr/udev. - Package libsane1 library as a separate package. This avoids pulling in the backends just a application links to it. - Hide the backends from automatic Provides generation, as these all have a libsane.so SONAME. - Update to 1.0.29: * Backends + adds an escl backend (theoretically supporting all AirPrint devices with a scan unit) + adds support for 23 new scanner models via existing backends + significantly changes genesys and pixma backends + fixes bugs in canon_dr, fujitsu, hp3900, mustek_usb2, plustek and xerox_mfp backends + fixes all compiler warnings on Debian 10 (#120) + fixes portability issues for uClibc-ng and MacOS builds + adds support to record and replay USB I/O traffic + adds timestamps to debug logs * Frontends + fixes a 32-bit arithmetic overflow issue in scanimage * Documentation + updates translations for British English, Catalan, German, Ukrainian, Valencian + adds scangearmp2 external backend descriptions + updates hpaio and utsushi external backend descriptions + adds the ChangeLogs/ directory to the source tarball (#103) * Build + additionally requires libcurl and libxml2 to build the escl backend + requires libxml2 for USB I/O recording and replay functionality + re-enables pthread support for backends that use its API directly, irrespective of the pthread_t type (#153) + moves genesys and pixma backends to a directory of their own - Update to 1.0.28: * Backends + adds a ricoh2 backend + adds support for 40+ new scanner models + significantly changes canon_dr, fujitsu, genesys, gt68xx, + hp5590 and, pixma backends + fixes bugs in as6e, avision, mustek and plustek backends + fixes scores of compiler warnings * Frontends + adds, changes and removes options for saned (see man 8 saned for details) - adds: -l (listen), -D (daemonize), -o (once), -e (stderr), -u (user) - removes: -s (syslog). Use -a -d level -o -f for the old behavior - changes: -d (debug). Use -a -d level -o -f -e for the old behavior + saned now cancels scans if the data connections appears to have gone away (after 4 seconds by default, configurable in saned.conf) + adds --output-file option to scanimage + adds --help option to scan-find-scanner + changes sane-desc to create relative hyperlinks * Documentation + adds translations for Catalan, Hebrew and Valencian + updates translations for British English, Dutch, German and + Ukrainian + marks unmaintained backends as such + documents USB workaround in sane-usb manual page * Build + requires a C++11 compatible compiler for the genesys backend + requires a JPEG library when building the pixma backend + fixes unneeded linking when not using preloadable backend support + disables pthread support for systems with non-integral pthread_t type + normalizes trailing whitespace in source code files. If you have local patches that no longer apply, have a look at the whitespace ignoring options of patch and git apply. - Rebased patches: * sane-backends.builttime.patch - Dropped patches: * no-descriptions-external-hpoj.patch OBS-URL: https://build.opensuse.org/request/show/777794 OBS-URL: https://build.opensuse.org/package/show/graphics/sane-backends?expand=0&rev=95
2020-02-23 13:44:14 +01:00
%{_udevrulesdir}/55-libsane.rules
%{_bindir}/scanimage
%{_bindir}/sane-find-scanner
%{_bindir}/gamma4scanimage
%{_bindir}/umax_pp
%{_datadir}/sane/
%{_libdir}/sane/
Accepting request 777794 from home:StefanBruens:branches:graphics - Move udev rules from /etc/udev/ to /usr/udev. - Package libsane1 library as a separate package. This avoids pulling in the backends just a application links to it. - Hide the backends from automatic Provides generation, as these all have a libsane.so SONAME. - Update to 1.0.29: * Backends + adds an escl backend (theoretically supporting all AirPrint devices with a scan unit) + adds support for 23 new scanner models via existing backends + significantly changes genesys and pixma backends + fixes bugs in canon_dr, fujitsu, hp3900, mustek_usb2, plustek and xerox_mfp backends + fixes all compiler warnings on Debian 10 (#120) + fixes portability issues for uClibc-ng and MacOS builds + adds support to record and replay USB I/O traffic + adds timestamps to debug logs * Frontends + fixes a 32-bit arithmetic overflow issue in scanimage * Documentation + updates translations for British English, Catalan, German, Ukrainian, Valencian + adds scangearmp2 external backend descriptions + updates hpaio and utsushi external backend descriptions + adds the ChangeLogs/ directory to the source tarball (#103) * Build + additionally requires libcurl and libxml2 to build the escl backend + requires libxml2 for USB I/O recording and replay functionality + re-enables pthread support for backends that use its API directly, irrespective of the pthread_t type (#153) + moves genesys and pixma backends to a directory of their own - Update to 1.0.28: * Backends + adds a ricoh2 backend + adds support for 40+ new scanner models + significantly changes canon_dr, fujitsu, genesys, gt68xx, + hp5590 and, pixma backends + fixes bugs in as6e, avision, mustek and plustek backends + fixes scores of compiler warnings * Frontends + adds, changes and removes options for saned (see man 8 saned for details) - adds: -l (listen), -D (daemonize), -o (once), -e (stderr), -u (user) - removes: -s (syslog). Use -a -d level -o -f for the old behavior - changes: -d (debug). Use -a -d level -o -f -e for the old behavior + saned now cancels scans if the data connections appears to have gone away (after 4 seconds by default, configurable in saned.conf) + adds --output-file option to scanimage + adds --help option to scan-find-scanner + changes sane-desc to create relative hyperlinks * Documentation + adds translations for Catalan, Hebrew and Valencian + updates translations for British English, Dutch, German and + Ukrainian + marks unmaintained backends as such + documents USB workaround in sane-usb manual page * Build + requires a C++11 compatible compiler for the genesys backend + requires a JPEG library when building the pixma backend + fixes unneeded linking when not using preloadable backend support + disables pthread support for systems with non-integral pthread_t type + normalizes trailing whitespace in source code files. If you have local patches that no longer apply, have a look at the whitespace ignoring options of patch and git apply. - Rebased patches: * sane-backends.builttime.patch - Dropped patches: * no-descriptions-external-hpoj.patch OBS-URL: https://build.opensuse.org/request/show/777794 OBS-URL: https://build.opensuse.org/package/show/graphics/sane-backends?expand=0&rev=95
2020-02-23 13:44:14 +01:00
%exclude %{_libdir}/sane/libsane-dll.so.*
#dir /var/lock/sane
%doc %{_defaultdocdir}/sane-backends/
%doc %{_mandir}/man1/scanimage.1.gz
%doc %{_mandir}/man1/sane-find-scanner.1.gz
%doc %{_mandir}/man1/gamma4scanimage.1.gz
%doc %{_mandir}/man5/sane-*.5.gz
%doc %{_mandir}/man7/sane.7.gz
Accepting request 777794 from home:StefanBruens:branches:graphics - Move udev rules from /etc/udev/ to /usr/udev. - Package libsane1 library as a separate package. This avoids pulling in the backends just a application links to it. - Hide the backends from automatic Provides generation, as these all have a libsane.so SONAME. - Update to 1.0.29: * Backends + adds an escl backend (theoretically supporting all AirPrint devices with a scan unit) + adds support for 23 new scanner models via existing backends + significantly changes genesys and pixma backends + fixes bugs in canon_dr, fujitsu, hp3900, mustek_usb2, plustek and xerox_mfp backends + fixes all compiler warnings on Debian 10 (#120) + fixes portability issues for uClibc-ng and MacOS builds + adds support to record and replay USB I/O traffic + adds timestamps to debug logs * Frontends + fixes a 32-bit arithmetic overflow issue in scanimage * Documentation + updates translations for British English, Catalan, German, Ukrainian, Valencian + adds scangearmp2 external backend descriptions + updates hpaio and utsushi external backend descriptions + adds the ChangeLogs/ directory to the source tarball (#103) * Build + additionally requires libcurl and libxml2 to build the escl backend + requires libxml2 for USB I/O recording and replay functionality + re-enables pthread support for backends that use its API directly, irrespective of the pthread_t type (#153) + moves genesys and pixma backends to a directory of their own - Update to 1.0.28: * Backends + adds a ricoh2 backend + adds support for 40+ new scanner models + significantly changes canon_dr, fujitsu, genesys, gt68xx, + hp5590 and, pixma backends + fixes bugs in as6e, avision, mustek and plustek backends + fixes scores of compiler warnings * Frontends + adds, changes and removes options for saned (see man 8 saned for details) - adds: -l (listen), -D (daemonize), -o (once), -e (stderr), -u (user) - removes: -s (syslog). Use -a -d level -o -f for the old behavior - changes: -d (debug). Use -a -d level -o -f -e for the old behavior + saned now cancels scans if the data connections appears to have gone away (after 4 seconds by default, configurable in saned.conf) + adds --output-file option to scanimage + adds --help option to scan-find-scanner + changes sane-desc to create relative hyperlinks * Documentation + adds translations for Catalan, Hebrew and Valencian + updates translations for British English, Dutch, German and + Ukrainian + marks unmaintained backends as such + documents USB workaround in sane-usb manual page * Build + requires a C++11 compatible compiler for the genesys backend + requires a JPEG library when building the pixma backend + fixes unneeded linking when not using preloadable backend support + disables pthread support for systems with non-integral pthread_t type + normalizes trailing whitespace in source code files. If you have local patches that no longer apply, have a look at the whitespace ignoring options of patch and git apply. - Rebased patches: * sane-backends.builttime.patch - Dropped patches: * no-descriptions-external-hpoj.patch OBS-URL: https://build.opensuse.org/request/show/777794 OBS-URL: https://build.opensuse.org/package/show/graphics/sane-backends?expand=0&rev=95
2020-02-23 13:44:14 +01:00
%files -n %{libname}
%dir %{_libdir}/sane/
%dir %{_sysconfdir}/sane.d
%dir %{_sysconfdir}/sane.d/dll.d/
%{_libdir}/sane/libsane-dll.so.*
%{_libdir}/libsane.so.*
%files devel
%{_bindir}/sane-config
%{_includedir}/sane/
%{_libdir}/libsane.so
%{_libdir}/pkgconfig/sane-backends.pc
%doc %{_mandir}/man1/sane-config.1.gz
%files autoconfig
Accepting request 777794 from home:StefanBruens:branches:graphics - Move udev rules from /etc/udev/ to /usr/udev. - Package libsane1 library as a separate package. This avoids pulling in the backends just a application links to it. - Hide the backends from automatic Provides generation, as these all have a libsane.so SONAME. - Update to 1.0.29: * Backends + adds an escl backend (theoretically supporting all AirPrint devices with a scan unit) + adds support for 23 new scanner models via existing backends + significantly changes genesys and pixma backends + fixes bugs in canon_dr, fujitsu, hp3900, mustek_usb2, plustek and xerox_mfp backends + fixes all compiler warnings on Debian 10 (#120) + fixes portability issues for uClibc-ng and MacOS builds + adds support to record and replay USB I/O traffic + adds timestamps to debug logs * Frontends + fixes a 32-bit arithmetic overflow issue in scanimage * Documentation + updates translations for British English, Catalan, German, Ukrainian, Valencian + adds scangearmp2 external backend descriptions + updates hpaio and utsushi external backend descriptions + adds the ChangeLogs/ directory to the source tarball (#103) * Build + additionally requires libcurl and libxml2 to build the escl backend + requires libxml2 for USB I/O recording and replay functionality + re-enables pthread support for backends that use its API directly, irrespective of the pthread_t type (#153) + moves genesys and pixma backends to a directory of their own - Update to 1.0.28: * Backends + adds a ricoh2 backend + adds support for 40+ new scanner models + significantly changes canon_dr, fujitsu, genesys, gt68xx, + hp5590 and, pixma backends + fixes bugs in as6e, avision, mustek and plustek backends + fixes scores of compiler warnings * Frontends + adds, changes and removes options for saned (see man 8 saned for details) - adds: -l (listen), -D (daemonize), -o (once), -e (stderr), -u (user) - removes: -s (syslog). Use -a -d level -o -f for the old behavior - changes: -d (debug). Use -a -d level -o -f -e for the old behavior + saned now cancels scans if the data connections appears to have gone away (after 4 seconds by default, configurable in saned.conf) + adds --output-file option to scanimage + adds --help option to scan-find-scanner + changes sane-desc to create relative hyperlinks * Documentation + adds translations for Catalan, Hebrew and Valencian + updates translations for British English, Dutch, German and + Ukrainian + marks unmaintained backends as such + documents USB workaround in sane-usb manual page * Build + requires a C++11 compatible compiler for the genesys backend + requires a JPEG library when building the pixma backend + fixes unneeded linking when not using preloadable backend support + disables pthread support for systems with non-integral pthread_t type + normalizes trailing whitespace in source code files. If you have local patches that no longer apply, have a look at the whitespace ignoring options of patch and git apply. - Rebased patches: * sane-backends.builttime.patch - Dropped patches: * no-descriptions-external-hpoj.patch OBS-URL: https://build.opensuse.org/request/show/777794 OBS-URL: https://build.opensuse.org/package/show/graphics/sane-backends?expand=0&rev=95
2020-02-23 13:44:14 +01:00
%{_udevrulesdir}/56-sane-backends-autoconfig.rules
%changelog