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