sane-clients-vl.spec 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  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: 3%{?_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 = %{sane_ver}
  16. BuildRequires: gtk2-devel
  17. BuildRequires: gimp-devel
  18. Requires: sane = %{sane_ver}
  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. * Fri Jan 11 2013 IWAI, Masaharu <iwai@alib.jp> 1.0.14-3
  53. - build with libgphoto2 2.5.0-1
  54. * Sun Jul 25 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.14-2
  55. - rebuild with sane-1.0.21
  56. - change BuildRequires (from gtk+ to gtk2-devel)
  57. - change BuildRequires (from gimp to gimp-devel)
  58. - add Patch0(sane-frontends-1.0.14-array-out-of-bounds.patch)
  59. - add Patch1(sane-frontends-1.0.14-sane-backends-1.0.20.patch)
  60. * Sat Oct 11 2008 Shu KONNO <owa@bg.wakwak.com> 1.0.14-1vl5
  61. - applied new versioning policy, spec in utf-8
  62. * Mon Dec 24 2007 Shu KONNO <owa@bg.wakwak.com> 1.0.14-0vl1
  63. - updated sane-frontends to 1.0.14
  64. - defined macro 'sane_ver' by sane-config
  65. - s/Copyright/License/
  66. * Fri Oct 25 2002 Tomoya TAKA <taka@vinelinux.org> 1.0.8-0vl1
  67. - new upstream release
  68. * Wed Apr 4 2002 Masaki Shinomiya <shino@pos.to>
  69. - 1.0.7-0vl1 for Vine Linux-2.x
  70. - 1.0.7-0.1
  71. - symlink for gimp listed in %file section
  72. - set %_sysconfdir to /etc for RedHat6.x/Vine2.x
  73. * Wed Mar 6 2002 Masaki SHINOMIYA <shino@pos.to>
  74. - 1.0.7-0
  75. * Sun Dec 23 2001 Masaki SHINOMIYA <shino@pos.to>
  76. - 1.0.6-0.2: %config sane-style.rc
  77. * Fri Dec 21 2001 Masaki SHINOMIYA <shino@pos.to>
  78. - 1.0.6-0.1
  79. - use macros as possible
  80. - %{_datadir}/sane/sane-style.rc
  81. * Wed Jul 4 2001 Masaki SHINOMIYA <shino@pos.to>
  82. - 1.0.5
  83. * Wed May 17 2001 Masaki SHINOMIYA <shino@pos.to>
  84. - 1.0.4
  85. - sane-clients seperated from sane package
  86. * Wed May 17 2001 Masaki SHINOMIYA <shino@pos.to>
  87. - 1.0.4 + epson backend ver.20010331
  88. - 'scanimage' is included in the binary'sane-1.0.4-1.i386.rpm'package.
  89. - refined script for gimp plug-in setup
  90. - html documents shall be installed in the directory '/usr/share/sane'
  91. - automatically make device the file /dev/usb/scanner0
  92. * Wed Nov 15 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
  93. - 1.0.3-0vl8
  94. - included missing "sane-config" script for sane
  95. * Tue Oct 17 2000 Jun Nishii <jun@vinelinux.org>
  96. - 1.0.3-0vl7
  97. - merge xscanimage patch
  98. * Mon Oct 16 2000 Jun Nishii <jun@vinelinux.org>
  99. - 1.0.3-0vl6
  100. - build with gimp-1.1.27
  101. * Sun Oct 1 2000 Jun Nishii <jun@vinelinux.org>
  102. - 1.0.3-0vl5
  103. - fixed group
  104. * Sat Sep 30 2000 Jun Nishii <jun@vinelinux.org>
  105. - 1.0.3-0vl4
  106. - added %defattr in clients
  107. * Tue Sep 26 2000 Jun Nishii <jun@vinelinux.org>
  108. - 1.0.3-0vl3
  109. - build with gimp-1.1.26
  110. * Mon Sep 25 2000 Jun Nishii <jun@vinelinux.org>
  111. - 1.0.3-0vl2
  112. - build with gimp-1.1.25
  113. * Thu Sep 21 2000 Jun Nishii <jun@vinelinux.org>
  114. - 1.0.3-0vl1
  115. * Thu Jun 8 2000 Jun Nishii <jun@vinelinux.org>
  116. - 1.0.2-0vl1
  117. * Mon Jan 17 2000 Jun Nishii <jun@vinelinux.org>
  118. - build for Vine Linux 2.0
  119. - added find-scanner, xerox
  120. * Fri Apr 23 1999 Hugo van der Kooij <hvdkooij@caiw.nl>
  121. - Fixed packaging a bit.
  122. * Wed Apr 21 1999 Hugo van der Kooij <hvdkooij@caiw.nl>
  123. - Updated package to 1.01
  124. * Fri Apr 09 1999 Hugo van der Kooij <hvdkooij@caiw.nl>
  125. - Split off the clients
  126. - Fixed a Alpha system anomaly by removing the specific backend.
  127. * Mon Nov 23 1998 Jonathan Miller <jlm@mvhi.com>
  128. [1.00-1]
  129. - upgraded to 1.00 (and made description less space-consuming)
  130. - included the post 1.00 fixed "configure" script available 22 Nov 1998.
  131. * Sat Aug 08 1998 Arne Coucheron <arneco@online.no>
  132. [0.74-3]
  133. - added /etc/sane.d to %dir in file list
  134. * Sat Aug 01 1998 Arne Coucheron <arneco@online.no>
  135. [0.74-2]
  136. - devel Group: reverted back to Development/Libraries
  137. - some changes to the %defattr and %attr usage in file list
  138. * Tue Jul 28 1998 Binaire <binaire@binaire.ml.org>
  139. [0.74-1]
  140. * Fri May 22 1998 Arne Coucheron <arneco@online.no>
  141. [0.73-3]
  142. - added use of %%{name} and %%{version} macros
  143. - added a %postun for running ldconfig after uninstall
  144. - using BuildRoot properly now
  145. - using %defattr and %attr macros in filelist, allows non-root build
  146. this means that RPM 2.5 is required to build this spec file now!
  147. - devel Group: changed to X11/Libraries
  148. - added using RPM_OPT_FLAGS during make
  149. - added striping of programs and libraries
  150. - added Requires: gtk+ >= 0.99.13 to main package
  151. - added Requires: %%{name} = %%{version} to devel package
  152. - added a %clean section for removing the buildroot dir
  153. - simplified the filelist and added %config for sane-style.rc
  154. - moved lib*.so to %files devel and dropped the *.la files
  155. - added -q parameter to %setup
  156. - removed some older changelog entries
  157. - removed the "fix ldconfig brokenness..." stuff
  158. - removed the Packager: line; use /etc/rpmrc if you want your name in
  159. - if GIMP is installed, make symlink from xscanimage to plug-ins dir
  160. - install the find-scanner program from the tools dir
  161. * Mon May 18 1998 Hugo van der Kooij <hvdkooij@caiw.nl>
  162. - Version 0.73 was created: May 13 1998
  163. - gimp (original was build against 0.99.29)
  164. - gtk+ (original was build against 1.0.1)
  165. - dlh (original was build against 0.7d)
  166. - X11 development tree including xpm libraries.
  167. * Wed Apr 22 1998 Hugo van der Kooij <hvdkooij@caiw.nl>
  168. - Binaries are now BuildRoot proof.
  169. * Wed Apr 22 1998 Hugo van der Kooij <hvdkooij@caiw.nl>
  170. - Binaries are not BuildRoot proof. release 3 is done without BuildRoot!
  171. * Tue Apr 21 1998 Hugo van der Kooij <hvdkooij@caiw.nl>
  172. - Temp. fix for some documentations problems with BuildRoot.
  173. * Sat Apr 11 1998 Hugo van der Kooij <hvdkooij@caiw.nl>
  174. - Formal 0.72 now made as RPM! (Build against GTK+ 0.99.10 and GIMP 0.99.24)
  175. - Original package was released: Tue Apr 7 1998