|
@@ -8,13 +8,12 @@
|
|
|
Summary: SANE -- Easy local and networked scanner access
|
|
|
Summary(ja): スキャナ操作ツール
|
|
|
Name: sane
|
|
|
-Version: 1.0.21
|
|
|
-Release: 2%{?_dist_release}
|
|
|
+Version: 1.0.24
|
|
|
+Release: 1%{?_dist_release}
|
|
|
URL: http://www.sane-project.org/
|
|
|
Source: ftp://ftp.sane-project.org/pub/sane/%{name}-backends-%{version}.tar.gz
|
|
|
Source10: sane-hierarchy.png
|
|
|
-Patch0: sane-1.0.21-vine.patch
|
|
|
-Patch1: sane-backends-1.0.21-i18n.patch
|
|
|
+Patch0: sane-1.0.24-vine.patch
|
|
|
%{?nosrc:NoSource: 0}
|
|
|
License: GPL (programs), relaxed LGPL (libraries), and public domain (docs)
|
|
|
Group: Applications/Multimedia
|
|
@@ -72,6 +71,7 @@ Summary: SANE (Scanner Access Now Easy) development toolkit
|
|
|
Summary(ja): SANE (Scanner Access Now Easy) 開発ツールキット
|
|
|
Group: Development/Libraries
|
|
|
Requires: %{name} = %{version}
|
|
|
+Requires: pkgconfig
|
|
|
Requires: libjpeg-devel
|
|
|
Requires: libgphoto2-devel
|
|
|
Requires: libexif-devel
|
|
@@ -87,7 +87,6 @@ SANE のモジュールを書くための、ヘッダファイルと静的ライ
|
|
|
%prep
|
|
|
%setup -q -n %{name}-backends-%{version}
|
|
|
%patch0 -p1 -b .vine
|
|
|
-%patch1 -p1 -b .i18n
|
|
|
|
|
|
%build
|
|
|
%configure --with-gnu-ld --enable-static
|
|
@@ -134,6 +133,12 @@ pushd $RPM_BUILD_ROOT%{_bindir}
|
|
|
%__ln_s sane-find-scanner find-scanner
|
|
|
popd
|
|
|
|
|
|
+# Create ld.so.conf.d entry
|
|
|
+mkdir -p %{buildroot}%{_sysconfdir}/ld.so.conf.d
|
|
|
+cat >> %{buildroot}%{_sysconfdir}/ld.so.conf.d/%{name}-%{_arch}.conf << EOF
|
|
|
+%{_libdir}/%{name}
|
|
|
+EOF
|
|
|
+
|
|
|
# clear uninstall files
|
|
|
%__rm -rf $RPM_BUILD_ROOT%{_prefix}/doc
|
|
|
%__rm -rf $RPM_BUILD_ROOT%{_libdir}/lib*.la
|
|
@@ -141,8 +146,6 @@ popd
|
|
|
|
|
|
|
|
|
%post
|
|
|
-%__grep -q %{_libdir}/sane %{_sysconfdir}/ld.so.conf || \
|
|
|
- echo %{_libdir}/sane >> %{_sysconfdir}/ld.so.conf
|
|
|
/sbin/ldconfig
|
|
|
|
|
|
[ -d /dev/usb ] || %__mkdir /dev/usb
|
|
@@ -161,14 +164,7 @@ echo "#sane stream tcp nowait root %{_sbindir}/in.saned %{_sbindir
|
|
|
fi
|
|
|
#kill -HUP `/sbin/pidof inetd`
|
|
|
|
|
|
-%postun
|
|
|
-# process for uninstallation, not for upgrading.
|
|
|
-if [ $1 = 0 ]; then
|
|
|
- %__mv %{_sysconfdir}/ld.so.conf %{_sysconfdir}/ld.so.conf.orig
|
|
|
- %__grep -v "%{_libdir}/sane" %{_sysconfdir}/ld.so.conf.orig > %{_sysconfdir}/ld.so.conf
|
|
|
- %__rm %{_sysconfdir}/ld.so.conf.orig
|
|
|
-fi
|
|
|
-/sbin/ldconfig
|
|
|
+%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
%clean
|
|
@@ -185,6 +181,7 @@ fi
|
|
|
%doc tools
|
|
|
%dir %{_sysconfdir}/sane.d
|
|
|
%config %{_sysconfdir}/sane.d/*
|
|
|
+%config(noreplace) %{_sysconfdir}/ld.so.conf.d/%{name}-%{_arch}.conf
|
|
|
%{_sbindir}/*
|
|
|
%{_bindir}/find-scanner
|
|
|
%{_bindir}/gamma4scanimage
|
|
@@ -208,12 +205,17 @@ fi
|
|
|
%defattr(-,root,root)
|
|
|
%{_bindir}/sane-config
|
|
|
%{_includedir}/sane
|
|
|
+%{_libdir}/pkgconfig/sane-backends.pc
|
|
|
%{_libdir}/lib*.a
|
|
|
-#{_libdir}/lib*.la
|
|
|
%{_libdir}/sane/lib*.a
|
|
|
-#{_libdir}/sane/lib*.la
|
|
|
|
|
|
%changelog
|
|
|
+* Sun Feb 01 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.24-1
|
|
|
+- update to 1.0.24
|
|
|
+- update Patch0 (sane-1.0.24-vine.patch)
|
|
|
+- remove Patch1 (sane-backends-1.0.21-i18n.patch)
|
|
|
+- fix %%post and %%postun (fix BTS:2514)
|
|
|
+
|
|
|
* Fri Jan 11 2013 IWAI, Masaharu <iwai@alib.jp> 1.0.21-2
|
|
|
- build with libghoto2 2.5.0-1
|
|
|
- stop generating HTML manual: missing man2html(1) in current VineSeed
|
|
@@ -255,7 +257,7 @@ fi
|
|
|
- 1.0.7-0vl2: sparc.patch, ppc.patch both from Mandrake(4mdk)
|
|
|
- informed by Iohara [VinePlus:01130]
|
|
|
|
|
|
-* Wed Apr 4 2002 Masaki Shinomiya <shino@pos.to>
|
|
|
+* Thu Apr 4 2002 Masaki Shinomiya <shino@pos.to>
|
|
|
- 1.0.7-0vl1 for Vine Linux-2.x
|
|
|
- 1.0.7-0.1
|
|
|
- set %_sysconfdir to /etc for RedHat6.x/Vine2.x
|
|
@@ -271,7 +273,7 @@ fi
|
|
|
- allow to build without latex2html
|
|
|
- prereq ldconfig, buildprereq sed, provide sane-backends
|
|
|
|
|
|
-* Tue Dec 23 2001 Masaki SHINOMIYA <shino@pos.to>
|
|
|
+* Sun Dec 23 2001 Masaki SHINOMIYA <shino@pos.to>
|
|
|
- 1.0.6-0.2
|
|
|
- dll.conf, epson.conf, network settings
|
|
|
|
|
@@ -302,7 +304,7 @@ fi
|
|
|
- sane-clients is removed from this package
|
|
|
- scanimage, find-scanner and xerox are left in this package
|
|
|
|
|
|
-* Wed May 17 2001 Masaki SHINOMIYA <shino@pos.to>
|
|
|
+* Thu May 17 2001 Masaki SHINOMIYA <shino@pos.to>
|
|
|
- 1.0.4 + epson backend ver.20010331
|
|
|
- 'scanimage' is included in the binary'sane-1.0.4-1.i386.rpm'package.
|
|
|
- refined script for gimp plug-in setup
|