source: projects/specs/trunk/c/calligra-l10n/calligra-l10n-vl.spec @ 9265

Revision 9265, 13.9 KB checked in by inagaki, 9 years ago (diff)

2015-01-16 Ryoichi INAGAKI <ryo1@…>

  • calligra, calligra-l10n: NEW


Line 
1%define calligra_core_version %{version}
2%define koffice_obsoletes 1:2.3.4
3
4Name:    calligra-l10n
5Summary: Language files for calligra
6Summary(ja): Calligra 用の言語ファイル
7Version: 2.8.7
8Release: 1%{?_dist_release}
9
10License: GPLv2+
11Group:   Applications/Productivity
12URL:     http://www.calligra-suite.org/
13
14#Source1: http://download.kde.org/%{stable}/calligra-%{version}/calligra-l10n/calligra-l10n-ar-%{version}.tar.xz
15#Source2: http://download.kde.org/%{stable}/calligra-%{version}/calligra-l10n/calligra-l10n-bg-%{version}.tar.xz
16Source3: http://download.kde.org/%{stable}/calligra-%{version}/calligra-l10n/calligra-l10n-bs-%{version}.tar.xz
17Source4: http://download.kde.org/%{stable}/calligra-%{version}/calligra-l10n/calligra-l10n-ca-%{version}.tar.xz
18Source5: http://download.kde.org/%{stable}/calligra-%{version}/calligra-l10n/calligra-l10n-ca@valencia-%{version}.tar.xz
19Source6: http://download.kde.org/%{stable}/calligra-%{version}/calligra-l10n/calligra-l10n-cs-%{version}.tar.xz
20Source7: http://download.kde.org/%{stable}/calligra-%{version}/calligra-l10n/calligra-l10n-da-%{version}.tar.xz
21Source8: http://download.kde.org/%{stable}/calligra-%{version}/calligra-l10n/calligra-l10n-de-%{version}.tar.xz
22Source9: http://download.kde.org/%{stable}/calligra-%{version}/calligra-l10n/calligra-l10n-el-%{version}.tar.xz
23Source10:http://download.kde.org/%{stable}/calligra-%{version}/calligra-l10n/calligra-l10n-en_GB-%{version}.tar.xz
24#Source11:http://download.kde.org/%{stable}/calligra-%{version}/calligra-l10n/calligra-l10n-eo-%{version}.tar.xz
25Source12:http://download.kde.org/%{stable}/calligra-%{version}/calligra-l10n/calligra-l10n-es-%{version}.tar.xz
26Source13:http://download.kde.org/%{stable}/calligra-%{version}/calligra-l10n/calligra-l10n-et-%{version}.tar.xz
27Source14:http://download.kde.org/%{stable}/calligra-%{version}/calligra-l10n/calligra-l10n-eu-%{version}.tar.xz
28#Source15:http://download.kde.org/%{stable}/calligra-%{version}/calligra-l10n/calligra-l10n-fa-%{version}.tar.xz
29Source16:http://download.kde.org/%{stable}/calligra-%{version}/calligra-l10n/calligra-l10n-fi-%{version}.tar.xz
30Source17:http://download.kde.org/%{stable}/calligra-%{version}/calligra-l10n/calligra-l10n-fr-%{version}.tar.xz
31#Source18:http://download.kde.org/%{stable}/calligra-%{version}/calligra-l10n/calligra-l10n-fy-%{version}.tar.xz
32#Source19:http://download.kde.org/%{stable}/calligra-%{version}/calligra-l10n/calligra-l10n-ga-%{version}.tar.xz
33Source20:http://download.kde.org/%{stable}/calligra-%{version}/calligra-l10n/calligra-l10n-gl-%{version}.tar.xz
34#Source21:http://download.kde.org/%{stable}/calligra-%{version}/calligra-l10n/calligra-l10n-he-%{version}.tar.xz
35Source22:http://download.kde.org/%{stable}/calligra-%{version}/calligra-l10n/calligra-l10n-hu-%{version}.tar.xz
36#Source23:http://download.kde.org/%{stable}/calligra-%{version}/calligra-l10n/calligra-l10n-ia-%{version}.tar.xz
37Source24:http://download.kde.org/%{stable}/calligra-%{version}/calligra-l10n/calligra-l10n-it-%{version}.tar.xz
38Source25:http://download.kde.org/%{stable}/calligra-%{version}/calligra-l10n/calligra-l10n-ja-%{version}.tar.xz
39Source26:http://download.kde.org/%{stable}/calligra-%{version}/calligra-l10n/calligra-l10n-kk-%{version}.tar.xz
40#Source27:http://download.kde.org/%{stable}/calligra-%{version}/calligra-l10n/calligra-l10n-km-%{version}.tar.xz
41#Source27:http://download.kde.org/%{stable}/calligra-%{version}/calligra-l10n/calligra-l10n-lv-%{version}.tar.xz
42#Source28:http://download.kde.org/%{stable}/calligra-%{version}/calligra-l10n/calligra-l10n-ms-%{version}.tar.xz
43Source29:http://download.kde.org/%{stable}/calligra-%{version}/calligra-l10n/calligra-l10n-nb-%{version}.tar.xz
44Source30:http://download.kde.org/%{stable}/calligra-%{version}/calligra-l10n/calligra-l10n-nds-%{version}.tar.xz
45#Source31:http://download.kde.org/%{stable}/calligra-%{version}/calligra-l10n/calligra-l10n-ne-%{version}.tar.xz
46Source32:http://download.kde.org/%{stable}/calligra-%{version}/calligra-l10n/calligra-l10n-nl-%{version}.tar.xz
47Source33:http://download.kde.org/%{stable}/calligra-%{version}/calligra-l10n/calligra-l10n-pl-%{version}.tar.xz
48Source34:http://download.kde.org/%{stable}/calligra-%{version}/calligra-l10n/calligra-l10n-pt-%{version}.tar.xz
49Source35:http://download.kde.org/%{stable}/calligra-%{version}/calligra-l10n/calligra-l10n-pt_BR-%{version}.tar.xz
50Source36:http://download.kde.org/%{stable}/calligra-%{version}/calligra-l10n/calligra-l10n-ru-%{version}.tar.xz
51#Source37:http://download.kde.org/%{stable}/calligra-%{version}/calligra-l10n/calligra-l10n-se-%{version}.tar.xz
52Source38:http://download.kde.org/%{stable}/calligra-%{version}/calligra-l10n/calligra-l10n-sk-%{version}.tar.xz
53#Source39:http://download.kde.org/%{stable}/calligra-%{version}/calligra-l10n/calligra-l10n-sl-%{version}.tar.xz
54#Source39:http://download.kde.org/%{stable}/calligra-%{version}/calligra-l10n/calligra-l10n-sr-%{version}.tar.xz
55#Source40:http://download.kde.org/%{stable}/calligra-%{version}/calligra-l10n/calligra-l10n-sr@Latn-%{version}.tar.xz
56Source40:http://download.kde.org/%{stable}/calligra-%{version}/calligra-l10n/calligra-l10n-sv-%{version}.tar.xz
57#Source41:http://download.kde.org/%{stable}/calligra-%{version}/calligra-l10n/calligra-l10n-ta-%{version}.tar.xz
58Source42:http://download.kde.org/%{stable}/calligra-%{version}/calligra-l10n/calligra-l10n-tr-%{version}.tar.xz
59Source43:http://download.kde.org/%{stable}/calligra-%{version}/calligra-l10n/calligra-l10n-uk-%{version}.tar.xz
60#Source44:http://download.kde.org/%{stable}/calligra-%{version}/calligra-l10n/calligra-l10n-wa-%{version}.tar.xz
61Source45:http://download.kde.org/%{stable}/calligra-%{version}/calligra-l10n/calligra-l10n-zh_CN-%{version}.tar.xz
62Source46:http://download.kde.org/%{stable}/calligra-%{version}/calligra-l10n/calligra-l10n-zh_TW-%{version}.tar.xz
63Source1000: subdirs-calligra-l10n
64
65## upstreamable patches
66
67## upstream patches
68
69BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
70BuildArch: noarch
71BuildRequires: gettext
72BuildRequires: kdelibs4-devel
73BuildRequires: libxml2
74
75%description
76%{summary}.
77
78
79%package ja
80Summary: Japanese language pack for calligra
81Summary(ja): Calligra の日本語サポートパッケージ
82Obsoletes: koffice-langpack-ja < %{koffice_obsoletes}
83Requires: calligra-core >= %{calligra_core_version}
84%description ja
85%{summary}.
86
87%package extra
88Summary: Language pack for calligra
89Summary(ja): Calligra の国際化サポートパッケージ(日本語以外)
90Group: Applications/Productivity
91Obsoletes: koffice-langpack       < %{koffice_obsoletes}
92Obsoletes: koffice-langpack-extra < %{koffice_obsoletes}
93Requires: calligra-core >= %{calligra_core_version}
94
95%description extra
96Provides additional translations for calligra
97
98
99%prep
100%setup -T -c -q -n %{name}-%{version}
101
102for i in $(cat %{SOURCE1000}) ; do
103  echo $i | grep -v '^#' && \
104  %{__xz} -dc %{_sourcedir}/calligra-l10n-$i-%{version}.tar.xz | tar -xf -
105done
106
107
108%build
109for calligra_lang in * ; do
110  if [ -f $calligra_lang/CMakeLists.txt ]; then
111    pushd $calligra_lang
112     mkdir -p %{_target_platform}
113     pushd %{_target_platform}
114     %cmake \
115         -DCMAKE_BUILD_TYPE=release \
116         -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
117         -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
118         -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
119         ..
120     make %{?_smp_mflags}
121     popd
122    popd
123  fi
124done
125
126
127%install
128for calligra_lang in * ; do
129  if [ -f $calligra_lang/CMakeLists.txt ]; then
130    make install/fast DESTDIR=%{buildroot} -C $calligra_lang/%{_target_platform}
131  fi
132done
133
134## unpackaged files
135rm -rfv %{buildroot}%{_datadir}/kde4/apps/koffice/autocorrect
136
137
138%files ja
139%defattr(-,root,root,-)
140%lang(ja) %{_datadir}/locale/ja/LC_MESSAGES/*
141
142%files extra
143#files bs
144%lang(bs) %{_datadir}/locale/bs/LC_MESSAGES/*
145#files ca
146%lang(ca) %{_datadir}/locale/ca/LC_MESSAGES/*
147%lang(ca) %{_docdir}/HTML/ca/*
148#files ca-valencia
149%lang(ca@valencia) %{_datadir}/locale/ca@valencia/LC_MESSAGES/*
150#files cs
151%lang(cs) %{_datadir}/locale/cs/LC_MESSAGES/*
152#files da
153%lang(da) %{_datadir}/locale/da/LC_MESSAGES/*
154#files de
155%lang(de) %{_datadir}/locale/de/LC_MESSAGES/*
156%lang(de) %{_datadir}/kde4/apps/calligra/autocorrect/de.xml
157%lang(de) %{_docdir}/HTML/de/*
158#files el
159%lang(el) %{_datadir}/locale/el/LC_MESSAGES/*
160#files en_GB
161%lang(en_GB) %{_datadir}/locale/en_GB/LC_MESSAGES/*
162#files es
163%lang(es) %{_datadir}/locale/es/LC_MESSAGES/*
164%lang(es) %{_docdir}/HTML/es/*
165#files et
166%lang(et) %{_datadir}/locale/et/LC_MESSAGES/*
167%lang(et) %{_docdir}/HTML/et/
168#files eu
169%lang(eu) %{_datadir}/locale/eu/LC_MESSAGES/*
170#files fi
171%lang(fi) %{_datadir}/locale/fi/LC_MESSAGES/*
172#files fr
173%lang(fr) %{_datadir}/locale/fr/LC_MESSAGES/*
174%lang(fr) %{_docdir}/HTML/fr/*
175#files gl
176%lang(gl) %{_datadir}/locale/gl/LC_MESSAGES/*
177#files hu
178%lang(hu) %{_datadir}/locale/hu/LC_MESSAGES/*
179#files it
180%lang(it) %{_datadir}/locale/it/LC_MESSAGES/*
181%lang(it) %{_docdir}/HTML/it/*
182#files kk
183%lang(kk) %{_datadir}/locale/kk/LC_MESSAGES/*
184#files nb
185%lang(nb) %{_datadir}/kde4/apps/calligra/autocorrect/nb.xml
186%lang(nb) %{_datadir}/locale/nb/LC_MESSAGES/*
187#files nds
188%lang(nds) %{_datadir}/locale/nds/LC_MESSAGES/*
189#files nl
190%lang(nl) %{_datadir}/locale/nl/LC_MESSAGES/*
191%lang(nl) %{_docdir}/HTML/nl/*
192#files pl
193%lang(pl) %{_datadir}/locale/pl/LC_MESSAGES/*
194#files pt
195%lang(pt) %{_datadir}/locale/pt/LC_MESSAGES/*
196%lang(pt) %{_docdir}/HTML/pt/*
197#files pt_BR
198%lang(pt_BR) %{_datadir}/locale/pt_BR/LC_MESSAGES/*
199%lang(pt_BR) %{_docdir}/HTML/pt_BR/*
200#files ru
201%lang(ru) %{_datadir}/locale/ru/LC_MESSAGES/*
202%lang(ru) %{_docdir}/HTML/ru/*
203#files sk
204%lang(sk) %{_datadir}/locale/sk/LC_MESSAGES/*
205#files sv
206%lang(sv) %{_datadir}/locale/sv/LC_MESSAGES/*
207%lang(sv) %{_docdir}/HTML/sv/*
208#files tr
209%lang(tr) %{_datadir}/locale/tr/LC_MESSAGES/*
210#files uk
211%lang(uk) %{_datadir}/locale/uk/LC_MESSAGES/*
212%lang(uk) %{_docdir}/HTML/uk/*
213#files zh_CN
214%lang(zh_CN) %{_datadir}/locale/zh_CN/LC_MESSAGES/*
215#files zh_TW
216%lang(zh_TW) %{_datadir}/locale/zh_TW/LC_MESSAGES/*
217
218
219%changelog
220* Wed Jan 14 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 2.8.7-1
221- based on koffice-langpack package
222
223* Sun Mar 27 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 2.3.2-2
224- Initial build for Vine Linux
225
226* Mon Feb 21 2011 Rex Dieter <rdieter@fedoraproject.org> - 2:2.3.2-1
227- 2.3.2
228
229* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2:2.3.1-2
230- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
231
232* Wed Jan 26 2011 Rex Dieter <rdieter@fedoraproject.org> - 2:2.3.1-1
233- koffice-l10n-2.3.1
234
235* Sat Nov 13 2010 Rex Dieter <rdieter@fedoraproject.org> - 2:2.2.84-1
236- koffice-l10n-2.2.84 (2.3beta4)
237
238* Sat Aug 21 2010 Rex Dieter <rdieter@fedoraproject.org> - 2:2.2.2-1
239- koffice-l10n-2.2.2
240
241* Wed Jul 14 2010 Rex Dieter <rdieter@fedoraproject.org> - 2:2.2.1-1
242- koffice-l10n-2.2.1
243
244* Mon May 24 2010 Rex Dieter <rdieter@fedoraproject.org> - 2:2.2.0-1
245- koffice-l10n-2.2.0
246
247* Sat May 15 2010 Kevin Kofler <Kevin@tigcc.ticalc.org> - 2:2.1.91-2
248- don't ship translations of the kivio documentation
249
250* Mon Apr 26 2010 Rex Dieter <rdieter@fedoraproject.org> - 2:2.1.91-1
251- koffice-l10n-2.1.91
252
253* Tue Apr 06 2010 Rex Dieter <rdieter@fedoraproject.org> - 2:2.1.82-1
254- koffice-l10n-2.1.82
255
256* Thu Mar 18 2010 Rex Dieter <rdieter@fedoraproject.org> - 2:2.1.81-1
257- koffice-l10n-2.1.81
258
259* Thu Nov 26 2009 Kevin Kofler <Kevin@tigcc.ticalc.org> - 2:2.1.0-3
260- fix Requires for -wa to include Epoch
261
262* Wed Nov 25 2009 Rex Dieter <rdieter@fedoraproject.org> - 2:2.1.0-2
263- Epoch++ (to trump F-12 branch)
264
265* Sat Nov 21 2009 Rex Dieter <rdieter@fedoraproject.org> - 1:2.1.0-1
266- koffice-l10n-2.1.0
267
268* Fri Oct 23 2009 Rex Dieter <rdieter@fedoraproject.org> - 1:2.0.91-2
269- koffice-l10n-2.0.91
270
271* Sat Oct 03 2009 Rex Dieter <rdieter@fedoraproject.org> - 1:2.0.83-2
272- main virtual subpkg
273- fix a fix missing %%defattr's
274
275* Sat Oct 03 2009 Rex Dieter <rdieter@fedoraproject.org> - 1:2.0.83-1
276- koffice-l10n-2.0.83
277
278* Fri Sep 11 2009 Rex Dieter <rdieter@fedoraproject.org> - 1:2.0.82-1
279- koffice-l10n-2.0.82
280
281* Wed Aug 26 2009 Rex Dieter <rdieter@fedoraproject.org> - 1:2.0.81-1
282- koffice-l10n-2.0.81
283
284* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:2.0.0-2
285- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
286
287* Sun May 24 2009 Rex Dieter <rdieter@fedoraproject.org> 1:2.0.0-1
288- koffice-l10n-2.0.0
289
290* Wed Apr 08 2009 Rex Dieter <rdieter@fedoraproject.org> 1:1.9.99.0-1
291- koffice-l10n-1.9.99.0
292
293* Wed Feb 18 2009 Rex Dieter <rdieter@fedoraproject.org> 1.9.98.6-1
294- koffice-l10n-1.9.98.6
295
296* Fri Jan 09 2009 Rex Dieter <rdieter@fedoraproject.org> 1.9.98.5-1
297- koffice-l10n-1.9.98.5
298
299* Sun Dec 09 2007 Rex Dieter <rdieter[AT]fedoraproject.org>
3001.6.3-2
301- BR: kdelibs3-devel
302- License: GPLv2+
303
304* Fri Jun 01 2007 Rex Dieter <rdieter[AT]fedoraproject.org>
3051.6.3-1
306- koffice-l10n-1.6.3
307
308* Wed Feb 28 2007 Rex Dieter <rdieter[AT]fedoraproject.org>
3091.6.2-1
310- koffice-l10n-1.6.2
311- drop %%dist
312
313* Fri Dec 01 2006 Rex Dieter <rexdieter[AT]users.sf.net>
3141.6.1-1
315- koffice-l10n-1.6.1
316- avoid file conflict (LC_MESSAGES/kdgantt.mo) with kde-i18n (kde bug #75096)
317
318* Sat Oct 21 2006 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
3191.6.0-1
320- version upgrade
321
322* Thu Aug 03 2006 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
3231.5.2-1
324- version upgrade
325- add zh_TW
326
327* Tue May 30 2006 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
3281.5.1-1
329- version upgrade
330
331* Sat Apr 22 2006 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
3321.5.0-1
333- version upgrade
334
335* Wed Feb 15 2006 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
3361.4.2-2
337- Rebuild for Fedora Extras 5
338
339* Sat Oct 15 2005 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
3401.4.2-1
341- version upgrade
342- add eu
343
344* Sun Aug 14 2005 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
3451.4.1-3
346- add dist tag
347
348* Mon Aug 01 2005 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
3491.4.1-2
350- change Requires koffice-core from v-r to v only
351
352* Sun Jul 31 2005 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
3531.4.1-1
354- upgrade
355
356* Sun Jul 31 2005 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
3571.4.0-2
358- move all languages to one langpack srpm
359
360* Mon Jul 04 2005 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
3611.4.0-1
362- Split languages from koffice spec
Note: See TracBrowser for help on using the repository browser.