sane-clients-vl.spec 6.3 KB

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