Overview
iscan.changes
Added
x
1
2
+-------------------------------------------------------------------
3
+Thu Oct 31 23:12:01 UTC 2019 - Alexei Podvalsky <avvissu@yandex.by>
4
+
5
+- Update to 2.30.4:
6
+ * update license file
7
+- Add iscan-2.30.4.2-sscanf.patch
8
+
9
+-------------------------------------------------------------------
10
+Fri Apr 13 18:26:34 UTC 2018 - avvissu@yandex.by
11
+
12
+- Fix build with gcc >= 5 (add jpegstream.patch)
13
+
14
+-------------------------------------------------------------------
15
+Thu Nov 2 20:00:25 UTC 2017 - avvissu@yandex.by
16
+
17
+- Build with gcc4 on Factory
18
+
19
+-------------------------------------------------------------------
20
+Thu Jun 25 19:53:06 UTC 2015 - avvissu@yandex.ru
21
+
22
+- Fix build on openSUSE > 13.2:
23
+ * create symbolic links on libesmod*.c2
24
+
25
+-------------------------------------------------------------------
26
+Wed Apr 8 20:27:58 UTC 2015 - avvissu@yandex.ru
27
+
28
+- Initial release
29
+
30
iscan.spec
Added
175
1
2
+#
3
+# spec file for package iscan
4
+#
5
+# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
6
+#
7
+# All modifications and additions to the file contributed by third parties
8
+# remain the property of their copyright owners, unless otherwise agreed
9
+# upon. The license for this file, and modifications and additions to the
10
+# file, is the same license as for the pristine package itself (unless the
11
+# license for the pristine package is not an Open Source License, in which
12
+# case the license is the MIT License). An "Open Source License" is a
13
+# license that conforms to the Open Source Definition (Version 1.9)
14
+# published by the Open Source Initiative.
15
+
16
+# Please submit bugfixes or comments via http://bugs.opensuse.org/
17
+#
18
+
19
+
20
+%define version_iscan_data 1.39.1
21
+%define plugindir %(gimptool-2.0 --gimpplugindir 2> /dev/null)
22
+Name: iscan
23
+Version: 2.30.4
24
+Release: 1
25
+Summary: EPSON Image Scan! front-end for scanners and all-in-ones
26
+License: GPL-2.0 and AVASYSPL
27
+Group: Hardware/Scanner
28
+Url: http://download.ebz.epson.net/dsc/search/01/search/?OSC=LX
29
+Source0: http://support.epson.net/linux/src/scanner/iscan/%{name}_%{version}-2.tar.gz
30
+Source1: http://support.epson.net/linux/src/scanner/iscan/iscan-data_%{version_iscan_data}-2.tar.gz
31
+Source2: epkowa.conf
32
+# PATCH-FIX-UPSTREAM libpng15.patch (export from arch) -- Build iscan against libpng15 by giovanni
33
+Patch0: libpng15.patch
34
+Patch1: jpegstream.patch
35
+# PATCH-FIX-UPSTREAM -- https://bugs.gentoo.org/692708
36
+Patch2: iscan-2.30.4.2-sscanf.patch
37
+BuildRequires: gcc-c++
38
+BuildRequires: gettext-tools
39
+BuildRequires: libjpeg-devel
40
+BuildRequires: libtool
41
+BuildRequires: systemd
42
+BuildRequires: update-desktop-files
43
+BuildRequires: pkgconfig(gimp-2.0)
44
+BuildRequires: pkgconfig(gtk+-2.0)
45
+BuildRequires: pkgconfig(libpng16)
46
+BuildRequires: pkgconfig(libtiff-4)
47
+BuildRequires: pkgconfig(libusb-1.0)
48
+BuildRequires: pkgconfig(libxml-2.0)
49
+BuildRequires: pkgconfig(sane-backends)
50
+BuildRequires: pkgconfig(udev)
51
+Requires: %{name}-data
52
+Requires(post): systemd
53
+BuildRoot: %{_tmppath}/%{name}-%{version}-build
54
+ExclusiveArch: x86_64
55
+
56
+%description
57
+Image Scan! is a graphical scanner utility for people that do not need all
58
+the bells and whistles provided by several of the other utilities out there
59
+(xsane, QuiteInsane, Kooka).
60
+
61
+At the moment it only supports SEIKO EPSON scanners and all-in-ones.
62
+However, the scanner driver it provides can be used by any other SANE
63
+standard compliant scanner utility.
64
+
65
+Note that several scanners require a non-free plugin before they can be
66
+used with this software
67
+
68
+%package data
69
+Version: %{version_iscan_data}
70
+Summary: Image Scan! for Linux data files
71
+Group: Hardware/Scanner
72
+Requires: libxslt
73
+BuildArch: noarch
74
+
75
+%description data
76
+Provides the necessary support files for Image Scan! for Linux, including
77
+device information and policy file generation logic.
78
+
79
+Image Scan! for Linux will not function without this package.
80
+
81
+%prep
82
+%setup -q
83
+%setup -q -D -T -a 1
84
+
85
+%patch0
86
+%patch1 -p2
87
+%patch2 -p1
88
+
89
+# Fix for CXX ABI different than 1002 (export from arch)
90
+ln -s libesmod-x86_64.c2.so non-free/libesmod-x86_64.so
91
+
92
+%build
93
+# Build iscan
94
+export CFLAGS="$(echo %optflags | sed 's/\-fstack-clash-protection//')"
95
+export CXXFLAGS="${CFLAGS}"
96
+export LDFLAGS="${LDFLAGS} -ldl -lpng16"
97
+%configure \
98
+ --sbindir=%{_bindir} \
99
+ --enable-dependency-reduction \
100
+ --enable-frontend \
101
+ --enable-jpeg \
102
+ --enable-tiff \
103
+ --enable-png \
104
+ --enable-gimp \
105
+ --enable-static=no
106
+
107
+make %{?_smp_mflags}
108
+
109
+# Build data
110
+cd %{name}-data-%{version_iscan_data}
111
+%configure --libdir="%{_prefix}/lib"
112
+make %{?_smp_mflags}
113
+make %{?_smp_mflags} %{name}-data.hwdb
114
+
115
+%install
116
+# iscan: install files
117
+make DESTDIR=%{buildroot} install %{?_smp_mflags}
118
+install -d %{buildroot}%{plugindir}/plug-ins
119
+ln -s %{_bindir}/iscan %{buildroot}%{_libdir}/gimp/2.0/plug-ins/iscan
120
+install -D -m 0644 backend/epkowa.conf %{buildroot}%{_sysconfdir}/sane.d/epkowa.conf
121
+install -D -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/sane.d/dll.d/epkowa.conf
122
+
123
+find %{buildroot} \( -name \*.la -o -name \*.so \) -exec rm {} \;
124
+
125
+%suse_update_desktop_file -i %{name} Graphics Scanning
126
+
127
+%find_lang %{name}
128
+
129
+# data: install files
130
+cd %{name}-data-%{version_iscan_data}
131
+make DESTDIR=%{buildroot} install %{?_smp_mflags}
132
+
133
+install -D -m 0644 %{name}-data.hwdb %{buildroot}/%{_udevhwdbdir}/%{name}-data.hwdb
134
+
135
+%post
136
+/sbin/ldconfig
137
+%udev_hwdb_update
138
+
139
+%postun
140
+/sbin/ldconfig
141
+if [ $1 -eq 0 ]; then
142
+ %udev_hwdb_update
143
+fi
144
+
145
+%files -f %{name}.lang
146
+%defattr(-,root,root,-)
147
+%doc NEWS README AUTHORS COPYING
148
+%doc non-free/COPYING.EPSON.en.txt
149
+%doc doc/xinetd.sane
150
+%dir %{_sysconfdir}/sane.d
151
+%dir %{_sysconfdir}/sane.d/dll.d
152
+%config %{_sysconfdir}/sane.d/epkowa.conf
153
+%config %{_sysconfdir}/sane.d/dll.d/epkowa.conf
154
+%{_bindir}/%{name}
155
+%{_bindir}/%{name}-registry
156
+%{_libdir}/libesmod.so*
157
+%{_libdir}/sane/libsane-epkowa.so*
158
+%{_libdir}/gimp/2.0/plug-ins/iscan
159
+%{_datadir}/applications/%{name}.desktop
160
+%{_mandir}/man?/iscan.?.gz
161
+%{_mandir}/man?/sane-epkowa.?.gz
162
+%{_mandir}/man?/iscan-registry.?.gz
163
+
164
+%files data
165
+%defattr(-, root, root)
166
+%doc %{name}-data-%{version_iscan_data}/COPYING
167
+%doc %{name}-data-%{version_iscan_data}/NEWS
168
+%doc %{name}-data-%{version_iscan_data}/KNOWN-PROBLEMS
169
+%doc %{name}-data-%{version_iscan_data}/SUPPORTED-DEVICES
170
+%{_libexecdir}/iscan-data
171
+%{_datadir}/iscan-data
172
+%{_udevhwdbdir}/%{name}-data.hwdb
173
+
174
+%changelog
175
iscan-2.30.4.2-sscanf.patch
Added
23
1
2
+diff -ur iscan-2.30.3/backend/cfg-obj.c b/iscan-2.30.3/backend/cfg-obj.c
3
+--- iscan-2.30.3/backend/cfg-obj.c 2019-05-31 13:26:41.530042108 +0200
4
++++ iscan-2.30.3/backend/cfg-obj.c 2019-05-31 14:05:13.040056748 +0200
5
+@@ -1026,7 +1026,7 @@
6
+ char *vendor = NULL;
7
+ char *model = NULL;
8
+
9
+- sscanf (string, "%*s %as %as", &vendor, &model);
10
++ sscanf (string, "%*s %ms %ms", &vendor, &model);
11
+
12
+ if (list_append (_cfg->seen[CFG_KEY_SCSI], info))
13
+ {
14
+@@ -1108,7 +1108,7 @@
15
+ char *library = NULL;
16
+ char *firmware = NULL;
17
+
18
+- sscanf (string, "%*s %*s %x %x %as %as",
19
++ sscanf (string, "%*s %*s %x %x %ms %ms",
20
+ &vendor, &product, &library, &firmware);
21
+
22
+ if (library && _cfg_have_interpreter (library, firmware)
23
jpegstream.patch
Added
24
1
2
+diff -ruN iscan_2.30.3-1.orig/iscan-2.30.3/lib/jpegstream.cc iscan_2.30.3-1/iscan-2.30.3/lib/jpegstream.cc
3
+--- iscan_2.30.3-1.orig/iscan-2.30.3/lib/jpegstream.cc 2016-08-19 12:14:06.000000000 +0300
4
++++ iscan_2.30.3-1/iscan-2.30.3/lib/jpegstream.cc 2018-04-13 21:23:10.433761773 +0300
5
+@@ -33,7 +33,7 @@
6
+
7
+ #include "jpegstream.hh"
8
+
9
+-#include <cstdlib>
10
++//#include <cstdlib>
11
+ #include <ios>
12
+
13
+ namespace iscan
14
+@@ -82,7 +82,8 @@
15
+ // only that _bits != 8.
16
+ for (unsigned int i = 0; i < _h_sz; ++i)
17
+ {
18
+- div_t index = div (i, 8 * sizeof (JSAMPLE));
19
++ div_t index = div (static_cast<int>(i),
20
++ static_cast<int>(8 * sizeof (JSAMPLE)));
21
+ int offset = 8 * sizeof (JSAMPLE) - 1 - index.rem;
22
+ _scanline[i] = ((line[index.quot] & (1 << offset))
23
+ ? 0 : ~0);
24
libpng15.patch
Added
50
1
2
+--- lib/pngstream.cc 2011-12-01 02:30:53.000000000 +0100
3
++++ lib/pngstream.cc 2012-02-06 03:06:22.000000000 +0100
4
+@@ -83,7 +83,12 @@
5
+ #if HAVE_PNG_H
6
+ set_error_handler (_png, _info);
7
+
8
++/* when not interlacing (ie, only one pass), number of rows is image height: _v_sz */
9
++#if PNG_LIBPNG_VER > 10499
10
++ if (!_footer && _v_sz == lib->get_current_row_number(_png))
11
++#else
12
+ if (_header && !_footer && _png->num_rows == _png->flush_rows)
13
++#endif
14
+ {
15
+ lib->write_end (_png, _info);
16
+ _footer = true;
17
+@@ -167,6 +172,9 @@
18
+ funcsym (write_row);
19
+ funcsym (write_flush);
20
+ funcsym (write_end);
21
++#if PNG_LIBPNG_VER > 10499
22
++ funcsym (get_current_row_number);
23
++#endif
24
+
25
+ if (lib->access_version_number
26
+ && lib->create_write_struct
27
+@@ -176,6 +184,9 @@
28
+ && lib->set_IHDR
29
+ && lib->set_pHYs
30
+ && lib->set_invert_mono
31
++#if PNG_LIBPNG_VER > 10499
32
++ && lib->get_current_row_number
33
++#endif
34
+ && lib->write_info
35
+ && lib->write_row
36
+ && lib->write_flush
37
+--- lib/pngstream.hh 2011-12-01 02:30:53.000000000 +0100
38
++++ lib/pngstream.hh 2012-02-06 03:09:09.000000000 +0100
39
+@@ -108,6 +108,10 @@
40
+ png_structp);
41
+ fundecl (void, write_end,
42
+ png_structp, png_infop);
43
++#if PNG_LIBPNG_VER > 10499
44
++ fundecl (png_uint_32, get_current_row_number,
45
++ png_structp);
46
++#endif
47
+ #endif /* HAVE_PNG_H */
48
+ };
49
+ static png_lib_handle *lib;
50
epkowa.conf
Added
4
1
2
+epkowa
3
\ No newline at end of file
4
iscan-data_1.39.1-2.tar.gz
Added
iscan_2.30.4-2.tar.gz
Added
Refresh
Refresh
Login required, please
login
or
signup
in order to comment
Request History
awissu created request over 5 years ago
- Initial package
jsjhb accepted request over 5 years ago
OK