sane-clients-vl.spec 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  1. %define sane_ver %(/usr/bin/sane-config --version 2> /dev/null)
  2. %define gimpdirs %(/bin/ls -d %{_libdir}/gimp/*/plug-ins 2> /dev/null)
  3. Summary: SANE (Scanner Access Now Easy) clients
  4. Summary(ja):SANE (Scanner Access Now Easy) クライアント
  5. Group: Applications/Multimedia
  6. Name: sane-clients
  7. Version: 1.0.14
  8. Release: 4%{?_dist_release}
  9. URL: http://www.mostang.com/sane/
  10. Source: ftp://ftp.mostang.com/pub/sane/sane-frontends-%{version}.tar.gz
  11. Patch0: sane-frontends-1.0.14-array-out-of-bounds.patch
  12. Patch1: sane-frontends-1.0.14-sane-backends-1.0.20.patch
  13. %{?nosrc:NoSource: 0}
  14. License: GPL (programs), relaxed LGPL (libraries), and public domain (docs)
  15. BuildRequires: sane-devel
  16. BuildRequires: gtk2-devel
  17. BuildRequires: gimp-devel
  18. Requires: sane
  19. Buildroot: %{_tmppath}/%{name}-%{version}-root
  20. Vendor: Project Vine
  21. Distribution: Vine Linux
  22. %description
  23. The clients,'xscanimage' and 'xcam', those use the SANE modules.
  24. %description -l ja
  25. SANE モジュールを使うGUIクライアントxscanimageとxcamを収録しています。
  26. %prep
  27. %setup -q -n sane-frontends-%{version}
  28. %patch0 -p1 -b .array
  29. %patch1 -p1 -b .sane_backends
  30. %build
  31. %configure --datadir=%{_datadir}/sane
  32. make %{?_smp_mflags}
  33. %install
  34. rm -rf $RPM_BUILD_ROOT
  35. %makeinstall datadir=$RPM_BUILD_ROOT%{_datadir}
  36. if (echo "%{gimpdirs}" | grep -q plug-ins) ;then
  37. for D in %{gimpdirs} ; do
  38. mkdir -p $RPM_BUILD_ROOT${D}
  39. %__ln_s -f %{_bindir}/xscanimage $RPM_BUILD_ROOT${D}/xscanimage
  40. done
  41. fi
  42. %clean
  43. rm -rf $RPM_BUILD_ROOT
  44. %files
  45. %defattr(-,root,root)
  46. %{_bindir}/*
  47. %config %{_datadir}/sane/sane-style.rc
  48. %{_mandir}/man1/*
  49. %doc README* AUTHORS COPYING Changelog INSTALL NEWS PROBLEMS
  50. %{_libdir}/gimp/*/plug-ins/*
  51. %changelog
  52. * Mon Feb 09 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.14-4
  53. - rebuild with libgphoto2-2.5.7
  54. * Fri Jan 11 2013 IWAI, Masaharu <iwai@alib.jp> 1.0.14-3
  55. - build with libgphoto2 2.5.0-1
  56. * Sun Jul 25 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.14-2
  57. - rebuild with sane-1.0.21
  58. - change BuildRequires (from gtk+ to gtk2-devel)
  59. - change BuildRequires (from gimp to gimp-devel)
  60. - add Patch0(sane-frontends-1.0.14-array-out-of-bounds.patch)
  61. - add Patch1(sane-frontends-1.0.14-sane-backends-1.0.20.patch)
  62. * Sat Oct 11 2008 Shu KONNO <owa@bg.wakwak.com> 1.0.14-1vl5
  63. - applied new versioning policy, spec in utf-8
  64. * Mon Dec 24 2007 Shu KONNO <owa@bg.wakwak.com> 1.0.14-0vl1
  65. - updated sane-frontends to 1.0.14
  66. - defined macro 'sane_ver' by sane-config
  67. - s/Copyright/License/
  68. * Fri Oct 25 2002 Tomoya TAKA <taka@vinelinux.org> 1.0.8-0vl1
  69. - new upstream release
  70. * Thu Apr 4 2002 Masaki Shinomiya <shino@pos.to>
  71. - 1.0.7-0vl1 for Vine Linux-2.x
  72. - 1.0.7-0.1
  73. - symlink for gimp listed in %file section
  74. - set %_sysconfdir to /etc for RedHat6.x/Vine2.x
  75. * Wed Mar 6 2002 Masaki SHINOMIYA <shino@pos.to>
  76. - 1.0.7-0
  77. * Sun Dec 23 2001 Masaki SHINOMIYA <shino@pos.to>
  78. - 1.0.6-0.2: %config sane-style.rc
  79. * Fri Dec 21 2001 Masaki SHINOMIYA <shino@pos.to>
  80. - 1.0.6-0.1
  81. - use macros as possible
  82. - %{_datadir}/sane/sane-style.rc
  83. * Wed Jul 4 2001 Masaki SHINOMIYA <shino@pos.to>
  84. - 1.0.5
  85. * Thu May 17 2001 Masaki SHINOMIYA <shino@pos.to>
  86. - 1.0.4
  87. - sane-clients seperated from sane package
  88. * Thu May 17 2001 Masaki SHINOMIYA <shino@pos.to>
  89. - 1.0.4 + epson backend ver.20010331
  90. - 'scanimage' is included in the binary'sane-1.0.4-1.i386.rpm'package.
  91. - refined script for gimp plug-in setup
  92. - html documents shall be installed in the directory '/usr/share/sane'
  93. - automatically make device the file /dev/usb/scanner0
  94. * Wed Nov 15 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
  95. - 1.0.3-0vl8
  96. - included missing "sane-config" script for sane
  97. * Tue Oct 17 2000 Jun Nishii <jun@vinelinux.org>
  98. - 1.0.3-0vl7
  99. - merge xscanimage patch
  100. * Mon Oct 16 2000 Jun Nishii <jun@vinelinux.org>
  101. - 1.0.3-0vl6
  102. - build with gimp-1.1.27
  103. * Sun Oct 1 2000 Jun Nishii <jun@vinelinux.org>
  104. - 1.0.3-0vl5
  105. - fixed group
  106. * Sat Sep 30 2000 Jun Nishii <jun@vinelinux.org>
  107. - 1.0.3-0vl4
  108. - added %defattr in clients
  109. * Tue Sep 26 2000 Jun Nishii <jun@vinelinux.org>
  110. - 1.0.3-0vl3
  111. - build with gimp-1.1.26
  112. * Mon Sep 25 2000 Jun Nishii <jun@vinelinux.org>
  113. - 1.0.3-0vl2
  114. - build with gimp-1.1.25
  115. * Thu Sep 21 2000 Jun Nishii <jun@vinelinux.org>
  116. - 1.0.3-0vl1
  117. * Thu Jun 8 2000 Jun Nishii <jun@vinelinux.org>
  118. - 1.0.2-0vl1
  119. * Mon Jan 17 2000 Jun Nishii <jun@vinelinux.org>
  120. - build for Vine Linux 2.0
  121. - added find-scanner, xerox
  122. * Fri Apr 23 1999 Hugo van der Kooij <hvdkooij@caiw.nl>
  123. - Fixed packaging a bit.
  124. * Wed Apr 21 1999 Hugo van der Kooij <hvdkooij@caiw.nl>
  125. - Updated package to 1.01
  126. * Fri Apr 09 1999 Hugo van der Kooij <hvdkooij@caiw.nl>
  127. - Split off the clients
  128. - Fixed a Alpha system anomaly by removing the specific backend.
  129. * Mon Nov 23 1998 Jonathan Miller <jlm@mvhi.com>
  130. [1.00-1]
  131. - upgraded to 1.00 (and made description less space-consuming)
  132. - included the post 1.00 fixed "configure" script available 22 Nov 1998.
  133. * Sat Aug 08 1998 Arne Coucheron <arneco@online.no>
  134. [0.74-3]
  135. - added /etc/sane.d to %dir in file list
  136. * Sat Aug 01 1998 Arne Coucheron <arneco@online.no>
  137. [0.74-2]
  138. - devel Group: reverted back to Development/Libraries
  139. - some changes to the %defattr and %attr usage in file list
  140. * Tue Jul 28 1998 Binaire <binaire@binaire.ml.org>
  141. [0.74-1]
  142. * Fri May 22 1998 Arne Coucheron <arneco@online.no>
  143. [0.73-3]
  144. - added use of %%{name} and %%{version} macros
  145. - added a %postun for running ldconfig after uninstall
  146. - using BuildRoot properly now
  147. - using %defattr and %attr macros in filelist, allows non-root build
  148. this means that RPM 2.5 is required to build this spec file now!
  149. - devel Group: changed to X11/Libraries
  150. - added using RPM_OPT_FLAGS during make
  151. - added striping of programs and libraries
  152. - added Requires: gtk+ >= 0.99.13 to main package
  153. - added Requires: %%{name} = %%{version} to devel package
  154. - added a %clean section for removing the buildroot dir
  155. - simplified the filelist and added %config for sane-style.rc
  156. - moved lib*.so to %files devel and dropped the *.la files
  157. - added -q parameter to %setup
  158. - removed some older changelog entries
  159. - removed the "fix ldconfig brokenness..." stuff
  160. - removed the Packager: line; use /etc/rpmrc if you want your name in
  161. - if GIMP is installed, make symlink from xscanimage to plug-ins dir
  162. - install the find-scanner program from the tools dir
  163. * Mon May 18 1998 Hugo van der Kooij <hvdkooij@caiw.nl>
  164. - Version 0.73 was created: May 13 1998
  165. - gimp (original was build against 0.99.29)
  166. - gtk+ (original was build against 1.0.1)
  167. - dlh (original was build against 0.7d)
  168. - X11 development tree including xpm libraries.
  169. * Wed Apr 22 1998 Hugo van der Kooij <hvdkooij@caiw.nl>
  170. - Binaries are now BuildRoot proof.
  171. * Wed Apr 22 1998 Hugo van der Kooij <hvdkooij@caiw.nl>
  172. - Binaries are not BuildRoot proof. release 3 is done without BuildRoot!
  173. * Tue Apr 21 1998 Hugo van der Kooij <hvdkooij@caiw.nl>
  174. - Temp. fix for some documentations problems with BuildRoot.
  175. * Sat Apr 11 1998 Hugo van der Kooij <hvdkooij@caiw.nl>
  176. - Formal 0.72 now made as RPM! (Build against GTK+ 0.99.10 and GIMP 0.99.24)
  177. - Original package was released: Tue Apr 7 1998