koffice-langpack-vl.spec 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371
  1. %define koffice_core_version 1:2.3.3
  2. Name: koffice-langpack
  3. Summary: Language files for koffice
  4. Version: 2.3.2
  5. Release: 2%{?_dist_release}
  6. Group: Applications/Productivity
  7. License: GPLv2+
  8. URL: http://www.koffice.org
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  10. BuildArch: noarch
  11. # borrowed from kdelibs' tarball, help with locale=Full Name mappings
  12. Source0: teamnames
  13. #Source1: ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-ar-%{version}.tar.bz2
  14. #Source2: ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-bg-%{version}.tar.bz2
  15. #Source3: ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-br-%{version}.tar.bz2
  16. Source4: ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-ca-%{version}.tar.bz2
  17. Source5: ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-ca@valencia-%{version}.tar.bz2
  18. #Source6: ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-cy-%{version}.tar.bz2
  19. Source7: ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-da-%{version}.tar.bz2
  20. Source8: ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-de-%{version}.tar.bz2
  21. Source9: ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-el-%{version}.tar.bz2
  22. Source10:ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-en_GB-%{version}.tar.bz2
  23. #Source11:ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-eo-%{version}.tar.bz2
  24. Source12:ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-es-%{version}.tar.bz2
  25. Source13:ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-et-%{version}.tar.bz2
  26. #Source14:ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-eu-%{version}.tar.bz2
  27. #Source15:ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-fa-%{version}.tar.bz2
  28. #Source16:ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-fi-%{version}.tar.bz2
  29. Source17:ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-fr-%{version}.tar.bz2
  30. #Source18:ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-fy-%{version}.tar.bz2
  31. #Source19:ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-ga-%{version}.tar.bz2
  32. Source20:ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-gl-%{version}.tar.bz2
  33. #Source21:ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-he-%{version}.tar.bz2
  34. #Source22:ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-hi-%{version}.tar.bz2
  35. Source23:ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-hu-%{version}.tar.bz2
  36. Source24:ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-it-%{version}.tar.bz2
  37. Source25:ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-ja-%{version}.tar.bz2
  38. Source26:ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-kk-%{version}.tar.bz2
  39. #Source27:ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-km-%{version}.tar.bz2
  40. #Source27:ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-lv-%{version}.tar.bz2
  41. #Source28:ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-ms-%{version}.tar.bz2
  42. Source29:ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-nb-%{version}.tar.bz2
  43. Source30:ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-nds-%{version}.tar.bz2
  44. #Source31:ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-ne-%{version}.tar.bz2
  45. Source32:ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-nl-%{version}.tar.bz2
  46. Source33:ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-pl-%{version}.tar.bz2
  47. Source34:ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-pt-%{version}.tar.bz2
  48. Source35:ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-pt_BR-%{version}.tar.bz2
  49. Source36:ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-ru-%{version}.tar.bz2
  50. #Source37:ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-se-%{version}.tar.bz2
  51. #Source38:ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-sk-%{version}.tar.bz2
  52. #Source39:ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-sl-%{version}.tar.bz2
  53. #Source39:ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-sr-%{version}.tar.bz2
  54. #Source40:ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-sr@Latn-%{version}.tar.bz2
  55. Source40:ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-sv-%{version}.tar.bz2
  56. #Source41:ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-ta-%{version}.tar.bz2
  57. Source42:ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-tr-%{version}.tar.bz2
  58. Source43:ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-uk-%{version}.tar.bz2
  59. Source44:ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-wa-%{version}.tar.bz2
  60. Source45:ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-zh_CN-%{version}.tar.bz2
  61. Source46:ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-zh_TW-%{version}.tar.bz2
  62. Source1000: subdirs-koffice-l10n
  63. ## upstreamable patches
  64. ## upstream patches
  65. BuildRequires: gettext
  66. BuildRequires: kdelibs4-devel
  67. BuildRequires: libxml2
  68. Obsoletes: koffice-langpack-fy < 2:2.1.81-1
  69. Obsoletes: koffice-langpack-hne < 2:2.1.91-1
  70. %description
  71. Language files for koffice
  72. %package ja
  73. Summary: Japanese language pack for koffice
  74. Summary(ja): KOffice の日本語サポートパッケージ
  75. Group: Applications/Productivity
  76. Requires: koffice-core >= %{koffice_core_version}
  77. %description ja
  78. Provides additional Japanese translations for koffice.
  79. %package extra
  80. Summary: Language pack for koffice
  81. Summary(ja): KOffice の国際化サポートパッケージ(日本語以外)
  82. Group: Applications/Productivity
  83. Requires: koffice-core >= %{koffice_core_version}
  84. %description extra
  85. Provides additional translations for koffice.
  86. %prep
  87. %setup -T -c -q -n %{name}-%{version}
  88. for i in $(cat %{SOURCE1000}) ; do
  89. echo $i | grep -v '^#' && \
  90. bzip2 -dc %{_sourcedir}/koffice-l10n-$i-%{version}.tar.bz2 | tar -xf -
  91. done
  92. # blacklist kivio docs, let koffice-kivio ship a matching version of them
  93. for koffice_lang in * ; do
  94. if [ -f $koffice_lang/docs/koffice/CMakeLists.txt ]; then
  95. sed -i -e 's/add_subdirectory( *kivio *)/#add_subdirectory(kivio)/g' $koffice_lang/docs/koffice/CMakeLists.txt
  96. fi
  97. done
  98. ## omit busted stuff
  99. %build
  100. for koffice_lang in * ; do
  101. if [ -f $koffice_lang/CMakeLists.txt ]; then
  102. pushd $koffice_lang
  103. mkdir -p %{_target_platform}
  104. pushd %{_target_platform}
  105. %cmake \
  106. -DCMAKE_BUILD_TYPE=release \
  107. -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
  108. -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
  109. -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
  110. -DLIB_INSTALL_DIR:PATH=%{_libdir} \
  111. -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
  112. -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \
  113. ..
  114. make %{?_smp_mflags}
  115. popd
  116. popd
  117. fi
  118. done
  119. %install
  120. rm -rf %{buildroot}
  121. for koffice_lang in * ; do
  122. if [ -f $koffice_lang/CMakeLists.txt ]; then
  123. make install/fast DESTDIR=%{buildroot} -C $koffice_lang/%{_target_platform}
  124. fi
  125. done
  126. %clean
  127. rm -rf %{buildroot}
  128. %files ja
  129. %defattr(-,root,root,-)
  130. %lang(ja) %{_datadir}/locale/ja/LC_MESSAGES/*
  131. %files extra
  132. %defattr(-,root,root,-)
  133. # Catalan
  134. %lang(ca) %{_datadir}/locale/ca/LC_MESSAGES/*
  135. %lang(ca) %{_docdir}/HTML/ca/*
  136. # Catalan (Valencian)
  137. %lang(ca@valencia) %{_datadir}/locale/ca@valencia/LC_MESSAGES/*
  138. # Danish
  139. %lang(da) %{_datadir}/locale/da/LC_MESSAGES/*
  140. %lang(da) %{_docdir}/HTML/da/*
  141. # German
  142. %lang(de) %{_datadir}/locale/de/LC_MESSAGES/*
  143. %lang(de) %{_docdir}/HTML/de/*
  144. # Greek
  145. %lang(el) %{_datadir}/locale/el/LC_MESSAGES/*
  146. # British English
  147. %lang(en_GB) %{_datadir}/locale/en_GB/LC_MESSAGES/*
  148. # Spanish
  149. %lang(es) %{_datadir}/locale/es/LC_MESSAGES/*
  150. %lang(es) %{_docdir}/HTML/es/*
  151. # Estonian
  152. %lang(et) %{_datadir}/locale/et/LC_MESSAGES/*
  153. %lang(et) %{_docdir}/HTML/et/
  154. # French
  155. %lang(fr) %{_datadir}/locale/fr/LC_MESSAGES/*
  156. %lang(fr) %{_docdir}/HTML/fr/*
  157. # Galician
  158. %lang(gl) %{_datadir}/locale/gl/LC_MESSAGES/*
  159. %lang(gl) %{_docdir}/HTML/gl/*
  160. # Hungarian
  161. %lang(hu) %{_datadir}/locale/hu/LC_MESSAGES/*
  162. # Italian
  163. %lang(it) %{_datadir}/locale/it/LC_MESSAGES/*
  164. %lang(it) %{_docdir}/HTML/it/*
  165. # Kazakh
  166. %lang(kk) %{_datadir}/locale/kk/LC_MESSAGES/*
  167. # Bokmal
  168. %lang(nb) %{_datadir}/kde4/apps/koffice/autocorrect/nb.xml
  169. %lang(nb) %{_datadir}/locale/nb/LC_MESSAGES/*
  170. # Low Saxon
  171. %lang(nds) %{_datadir}/locale/nds/LC_MESSAGES/*
  172. # Dutch
  173. %lang(nl) %{_datadir}/locale/nl/LC_MESSAGES/*
  174. %lang(nl) %{_docdir}/HTML/nl/*
  175. # Polish
  176. %lang(pl) %{_datadir}/locale/pl/LC_MESSAGES/*
  177. # Portuguese
  178. %lang(pt) %{_datadir}/locale/pt/LC_MESSAGES/*
  179. %lang(pt) %{_docdir}/HTML/pt/*
  180. # Brazilian Portuguese
  181. %lang(pt_BR) %{_datadir}/locale/pt_BR/LC_MESSAGES/*
  182. %lang(pt_BR) %{_docdir}/HTML/pt_BR/*
  183. # Russian
  184. %lang(ru) %{_datadir}/locale/ru/LC_MESSAGES/*
  185. %lang(ru) %{_docdir}/HTML/ru/*
  186. # Swedish
  187. %lang(sv) %{_datadir}/locale/sv/LC_MESSAGES/*
  188. %lang(sv) %{_docdir}/HTML/sv/*
  189. # Turkish
  190. %lang(tr) %{_datadir}/locale/tr/LC_MESSAGES/*
  191. # Ukrainian
  192. %lang(uk) %{_datadir}/locale/uk/LC_MESSAGES/*
  193. %lang(uk) %{_docdir}/HTML/uk/*
  194. # Walloon
  195. %lang(wa) %{_datadir}/locale/wa/LC_MESSAGES/*
  196. # Simplified Chinese
  197. %lang(zh_CN) %{_datadir}/locale/zh_CN/LC_MESSAGES/*
  198. # Traditional Chinese
  199. %lang(zh_TW) %{_datadir}/locale/zh_TW/LC_MESSAGES/*
  200. %changelog
  201. * Sun Mar 27 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 2.3.2-2
  202. - Initial build for Vine Linux
  203. * Mon Feb 21 2011 Rex Dieter <rdieter@fedoraproject.org> - 2:2.3.2-1
  204. - 2.3.2
  205. * Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2:2.3.1-2
  206. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  207. * Wed Jan 26 2011 Rex Dieter <rdieter@fedoraproject.org> - 2:2.3.1-1
  208. - koffice-l10n-2.3.1
  209. * Sat Nov 13 2010 Rex Dieter <rdieter@fedoraproject.org> - 2:2.2.84-1
  210. - koffice-l10n-2.2.84 (2.3beta4)
  211. * Sat Aug 21 2010 Rex Dieter <rdieter@fedoraproject.org> - 2:2.2.2-1
  212. - koffice-l10n-2.2.2
  213. * Wed Jul 14 2010 Rex Dieter <rdieter@fedoraproject.org> - 2:2.2.1-1
  214. - koffice-l10n-2.2.1
  215. * Mon May 24 2010 Rex Dieter <rdieter@fedoraproject.org> - 2:2.2.0-1
  216. - koffice-l10n-2.2.0
  217. * Sat May 15 2010 Kevin Kofler <Kevin@tigcc.ticalc.org> - 2:2.1.91-2
  218. - don't ship translations of the kivio documentation
  219. * Mon Apr 26 2010 Rex Dieter <rdieter@fedoraproject.org> - 2:2.1.91-1
  220. - koffice-l10n-2.1.91
  221. * Tue Apr 06 2010 Rex Dieter <rdieter@fedoraproject.org> - 2:2.1.82-1
  222. - koffice-l10n-2.1.82
  223. * Thu Mar 18 2010 Rex Dieter <rdieter@fedoraproject.org> - 2:2.1.81-1
  224. - koffice-l10n-2.1.81
  225. * Thu Nov 26 2009 Kevin Kofler <Kevin@tigcc.ticalc.org> - 2:2.1.0-3
  226. - fix Requires for -wa to include Epoch
  227. * Wed Nov 25 2009 Rex Dieter <rdieter@fedoraproject.org> - 2:2.1.0-2
  228. - Epoch++ (to trump F-12 branch)
  229. * Sat Nov 21 2009 Rex Dieter <rdieter@fedoraproject.org> - 1:2.1.0-1
  230. - koffice-l10n-2.1.0
  231. * Fri Oct 23 2009 Rex Dieter <rdieter@fedoraproject.org> - 1:2.0.91-2
  232. - koffice-l10n-2.0.91
  233. * Sat Oct 03 2009 Rex Dieter <rdieter@fedoraproject.org> - 1:2.0.83-2
  234. - main virtual subpkg
  235. - fix a fix missing %%defattr's
  236. * Sat Oct 03 2009 Rex Dieter <rdieter@fedoraproject.org> - 1:2.0.83-1
  237. - koffice-l10n-2.0.83
  238. * Fri Sep 11 2009 Rex Dieter <rdieter@fedoraproject.org> - 1:2.0.82-1
  239. - koffice-l10n-2.0.82
  240. * Wed Aug 26 2009 Rex Dieter <rdieter@fedoraproject.org> - 1:2.0.81-1
  241. - koffice-l10n-2.0.81
  242. * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:2.0.0-2
  243. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  244. * Sun May 24 2009 Rex Dieter <rdieter@fedoraproject.org> 1:2.0.0-1
  245. - koffice-l10n-2.0.0
  246. * Wed Apr 08 2009 Rex Dieter <rdieter@fedoraproject.org> 1:1.9.99.0-1
  247. - koffice-l10n-1.9.99.0
  248. * Wed Feb 18 2009 Rex Dieter <rdieter@fedoraproject.org> 1.9.98.6-1
  249. - koffice-l10n-1.9.98.6
  250. * Fri Jan 09 2009 Rex Dieter <rdieter@fedoraproject.org> 1.9.98.5-1
  251. - koffice-l10n-1.9.98.5
  252. * Sun Dec 09 2007 Rex Dieter <rdieter[AT]fedoraproject.org>
  253. 1.6.3-2
  254. - BR: kdelibs3-devel
  255. - License: GPLv2+
  256. * Fri Jun 01 2007 Rex Dieter <rdieter[AT]fedoraproject.org>
  257. 1.6.3-1
  258. - koffice-l10n-1.6.3
  259. * Wed Feb 28 2007 Rex Dieter <rdieter[AT]fedoraproject.org>
  260. 1.6.2-1
  261. - koffice-l10n-1.6.2
  262. - drop %%dist
  263. * Fri Dec 01 2006 Rex Dieter <rexdieter[AT]users.sf.net>
  264. 1.6.1-1
  265. - koffice-l10n-1.6.1
  266. - avoid file conflict (LC_MESSAGES/kdgantt.mo) with kde-i18n (kde bug #75096)
  267. * Sat Oct 21 2006 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
  268. 1.6.0-1
  269. - version upgrade
  270. * Thu Aug 03 2006 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
  271. 1.5.2-1
  272. - version upgrade
  273. - add zh_TW
  274. * Tue May 30 2006 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
  275. 1.5.1-1
  276. - version upgrade
  277. * Sat Apr 22 2006 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
  278. 1.5.0-1
  279. - version upgrade
  280. * Wed Feb 15 2006 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
  281. 1.4.2-2
  282. - Rebuild for Fedora Extras 5
  283. * Sat Oct 15 2005 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
  284. 1.4.2-1
  285. - version upgrade
  286. - add eu
  287. * Sun Aug 14 2005 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
  288. 1.4.1-3
  289. - add dist tag
  290. * Mon Aug 01 2005 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
  291. 1.4.1-2
  292. - change Requires koffice-core from v-r to v only
  293. * Sun Jul 31 2005 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
  294. 1.4.1-1
  295. - upgrade
  296. * Sun Jul 31 2005 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
  297. 1.4.0-2
  298. - move all languages to one langpack srpm
  299. * Mon Jul 04 2005 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
  300. 1.4.0-1
  301. - Split languages from koffice spec