gimp-help-vl.spec 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. %define gimphelpver 2-6.0
  2. %define gimpsubver 2.0
  3. Summary: Help files for the GIMP.
  4. Name: gimp-help
  5. #Version: %(echo %gimphelpver|sed 's/-/.0./')
  6. Version: 2.6.0
  7. Release: 1%{?_dist_release}
  8. License: GNU FDL
  9. Group: Applications/Documentation
  10. URL: http://wiki.gimp.org/gimp/GimpDocs
  11. Source0: ftp://ftp.gimp.org/pub/gimp/help/gimp-help-%{version}-html-en.tar.bz2
  12. Source1: ftp://ftp.gimp.org/pub/gimp/help/gimp-help-%{version}-html-ja.tar.bz2
  13. Source2: ftp://ftp.gimp.org/pub/gimp/help/gimp-help-%{version}-html-de.tar.bz2
  14. Source3: ftp://ftp.gimp.org/pub/gimp/help/gimp-help-%{version}-html-es.tar.bz2
  15. Source4: ftp://ftp.gimp.org/pub/gimp/help/gimp-help-%{version}-html-fr.tar.bz2
  16. Source5: ftp://ftp.gimp.org/pub/gimp/help/gimp-help-%{version}-html-it.tar.bz2
  17. Source6: ftp://ftp.gimp.org/pub/gimp/help/gimp-help-%{version}-html-ko.tar.bz2
  18. Source7: ftp://ftp.gimp.org/pub/gimp/help/gimp-help-%{version}-html-nl.tar.bz2
  19. Source8: ftp://ftp.gimp.org/pub/gimp/help/gimp-help-%{version}-html-nn.tar.bz2
  20. Source9: ftp://ftp.gimp.org/pub/gimp/help/gimp-help-%{version}-html-pl.tar.bz2
  21. Source10: ftp://ftp.gimp.org/pub/gimp/help/gimp-help-%{version}-html-ru.tar.bz2
  22. Source11: ftp://ftp.gimp.org/pub/gimp/help/gimp-help-%{version}-html-sv.tar.bz2
  23. Source12: ftp://ftp.gimp.org/pub/gimp/help/gimp-help-%{version}-html-zh_CN.tar.bz2
  24. BuildArch: noarch
  25. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  26. BuildRequires: libxslt
  27. BuildRequires: docbook-style-xsl
  28. BuildRequires: gimp-devel >= 2.6
  29. Requires: gimp >= 2.6
  30. %description
  31. The GIMP User Manual is a newly written User Manual for the GIMP.
  32. %package l10n
  33. Summary: Localized documentation for gimp
  34. Group: Applications/Documentation
  35. Requires: %{name} = %{version}-%{release}
  36. %description l10n
  37. This package contains localized documentation for gimp.
  38. (except for English and Japanese)
  39. %prep
  40. %setup -q -n gimp-help-2
  41. for i in ja de es fr it ko nl nn pl ru sv zh_CN
  42. do
  43. mkdir $i
  44. done
  45. pushd ja
  46. tar xjf %{SOURCE1}
  47. popd
  48. pushd de
  49. tar xjf %{SOURCE2}
  50. popd
  51. pushd es
  52. tar xjf %{SOURCE3}
  53. popd
  54. pushd fr
  55. tar xjf %{SOURCE4}
  56. popd
  57. pushd it
  58. tar xjf %{SOURCE5}
  59. popd
  60. pushd ko
  61. tar xjf %{SOURCE6}
  62. popd
  63. pushd nl
  64. tar xjf %{SOURCE7}
  65. popd
  66. pushd nn
  67. tar xjf %{SOURCE8}
  68. popd
  69. pushd pl
  70. tar xjf %{SOURCE9}
  71. popd
  72. pushd ru
  73. tar xjf %{SOURCE10}
  74. popd
  75. pushd sv
  76. tar xjf %{SOURCE11}
  77. popd
  78. pushd zh_CN
  79. tar xjf %{SOURCE12}
  80. popd
  81. %install
  82. rm -rf %buildroot
  83. make install DESTDIR=$RPM_BUILD_ROOT
  84. #makeinstall GIMP_DATADIR=%{buildroot}%{_datadir}/gimp/%{gimpsubver}
  85. for i in ja de es fr it ko nl nn pl ru sv zh_CN
  86. do
  87. pushd $i/gimp-help-2
  88. make install DESTDIR=$RPM_BUILD_ROOT
  89. popd
  90. done
  91. %clean
  92. rm -rf %buildroot
  93. %files
  94. %defattr (-, root, root)
  95. %dir %{_datadir}/gimp
  96. %dir %{_datadir}/gimp/%{gimpsubver}
  97. %{_datadir}/gimp/%{gimpsubver}/help/en
  98. %{_datadir}/gimp/%{gimpsubver}/help/ja
  99. %files l10n
  100. %defattr (-, root, root)
  101. %{_datadir}/gimp/%{gimpsubver}/help
  102. %exclude %{_datadir}/gimp/%{gimpsubver}/help/en
  103. %exclude %{_datadir}/gimp/%{gimpsubver}/help/ja
  104. %changelog
  105. * Mon Feb 13 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.6.0-1
  106. - update to 2.6.0
  107. - create l10n sub package
  108. * Tue Apr 14 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.4.2-1
  109. - new upstream release
  110. - applied new versioning policy
  111. - changed Group to Applications/Documentation
  112. * Wed Apr 11 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0.0.12-0vl1
  113. - initial build for Vine Linux
  114. * Thu Jan 04 2007 Nils Philippsen <nphilipp@redhat.com> - 2-0.1.0.11
  115. - version 2-0.11
  116. - add disttag
  117. * Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 2-0.1.0.10.1.1
  118. - rebuild
  119. * Mon Apr 24 2006 Nils Philippsen <nphilipp@redhat.com>
  120. - version 2-0.10
  121. * Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
  122. - rebuilt
  123. * Fri Oct 21 2005 Nils Philippsen <nphilipp@redhat.com>
  124. - version 2-0.9
  125. * Wed Feb 23 2005 Nils Philippsen <nphilipp@redhat.com>
  126. - version 2-0.7
  127. * Sat Jan 15 2005 Nils Philippsen <nphilipp@redhat.com>
  128. - version 2-0.6
  129. * Fri Jul 02 2004 Nils Philippsen <nphilipp@redhat.com>
  130. - version 2-0.3
  131. * Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
  132. - rebuilt
  133. * Fri Apr 02 2004 Nils Philippsen <nphilipp@redhat.com>
  134. - version 2-0.2
  135. * Wed Mar 17 2004 Nils Philippsen <nphilipp@redhat.com>
  136. - version 2-0.1
  137. - initial build