install-assist-LibreOffice-vl.spec 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360
  1. %define pkgname LibreOffice
  2. %define version 3.6.0
  3. %ifarch %{ix86}
  4. %define uarch x86
  5. %define pkgarch x86
  6. %define rpmarch i586
  7. %endif
  8. %ifarch x86_64
  9. %define uarch x86_64
  10. %define pkgarch x86-64
  11. %define rpmarch x86_64
  12. %endif
  13. %define baseurl \{http://download.documentfoundation.org,http://mirrors.vinelinux.org\}/libreoffice/stable/%{version}/rpm/%{uarch}
  14. %define dlurl \\\
  15. %{baseurl}/LibO_%{version}_Linux_%{pkgarch}_install-rpm_en-US.tar.gz \\\
  16. %{baseurl}/LibO_%{version}_Linux_%{pkgarch}_langpack-rpm_ja.tar.gz \\\
  17. %{baseurl}/LibO_%{version}_Linux_%{pkgarch}_helppack-rpm_ja.tar.gz
  18. Summary: Package to assist installation of %{pkgname}
  19. Summary(ja): %{pkgname} のインストールを補助するパッケージ
  20. Name: install-assist-%{pkgname}
  21. Version: %{version}
  22. Release: 2%{?_dist_release}
  23. License: LGPLv3
  24. Group: Applications/Productivity
  25. ExclusiveArch: %{ix86} x86_64
  26. # Requires(posttrans) not yet implemented. So we use (post) instead.
  27. Requires(post): self-build-setup >= 0.9.0
  28. Requires: glibc >= 2.5
  29. Requires: gtk2 >= 2.10.4
  30. Requires: libgnome >= 2.16
  31. #Requires: libgail-gnome >= 1.8.6
  32. Requires: at-spi >= 1.7
  33. # Needs JAVA VM <BTS:1168>
  34. Requires: java >= 1.6.0
  35. # We have to specify previous version with "Conflicts:"
  36. # to make smart upgrading. See [VineSeed:20565].
  37. # Conflicts: openoffice.org-core <= 2.4.1-5vl5
  38. Obsoletes: openoffice.org < 3.0
  39. Obsoletes: openoffice.org-base < 3.0
  40. Obsoletes: openoffice.org-calc < 3.0
  41. Obsoletes: openoffice.org-core < 3.0
  42. Obsoletes: openoffice.org-devel < 3.0
  43. Obsoletes: openoffice.org-draw < 3.0
  44. Obsoletes: openoffice.org-emailmerge < 3.0
  45. Obsoletes: openoffice.org-graphicfilter < 3.0
  46. Obsoletes: openoffice.org-headless < 3.0
  47. Obsoletes: openoffice.org-i18n < 3.0
  48. Obsoletes: openoffice.org-impress < 3.0
  49. Obsoletes: openoffice.org-libs < 3.0
  50. Obsoletes: openoffice.org-math < 3.0
  51. Obsoletes: openoffice.org-pyuno < 3.0
  52. Obsoletes: openoffice.org-sdk < 3.0
  53. Obsoletes: openoffice.org-sdk-doc < 3.0
  54. Obsoletes: openoffice.org-testtools < 3.0
  55. Obsoletes: openoffice.org-writer < 3.0
  56. Obsoletes: openoffice.org-xsltfilter < 3.0
  57. # Conflicts: ooobasis3.1-core01 openoffice.org3.1-freedesktop-menus
  58. # Conflicts: ooobasis3.2-core01 openoffice.org3.2-freedesktop-menus
  59. # Conflicts: openoffice.org-ure
  60. Obsoletes: openoffice.org3 < 3.3
  61. Obsoletes: openoffice.org3-ja < 3.3
  62. Obsoletes: ooobasis3.1-ja < 3.3, ooobasis3.2-ja < 3.3
  63. Obsoletes: ooobasis3.1-ja-base < 3.3, ooobasis3.2-ja-base < 3.3
  64. Obsoletes: ooobasis3.1-ja-calc < 3.3, ooobasis3.2-ja-calc < 3.3
  65. Obsoletes: ooobasis3.1-ja-draw < 3.3, ooobasis3.2-ja-draw < 3.3
  66. Obsoletes: ooobasis3.1-ja-help < 3.3, ooobasis3.2-ja-help < 3.3
  67. Obsoletes: ooobasis3.1-ja-impress < 3.3, ooobasis3.2-ja-impress < 3.3
  68. Obsoletes: ooobasis3.1-ja-math < 3.3, ooobasis3.2-ja-math < 3.3
  69. Obsoletes: ooobasis3.1-ja-res < 3.3, ooobasis3.2-ja-res < 3.3
  70. Obsoletes: ooobasis3.1-ja-writer < 3.3, ooobasis3.2-ja-writer < 3.3
  71. Obsoletes: ooobasis3.1-images < 3.3, ooobasis3.2-images < 3.3
  72. Obsoletes: ooobasis3.1-core01 < 3.3, ooobasis3.2-core01 < 3.3
  73. Obsoletes: ooobasis3.1-core02 < 3.3, ooobasis3.2-core02 < 3.3
  74. Obsoletes: ooobasis3.1-core03 < 3.3, ooobasis3.2-core03 < 3.3
  75. Obsoletes: ooobasis3.1-core04 < 3.3, ooobasis3.2-core04 < 3.3
  76. Obsoletes: ooobasis3.1-core05 < 3.3, ooobasis3.2-core05 < 3.3
  77. Obsoletes: ooobasis3.1-core06 < 3.3, ooobasis3.2-core06 < 3.3
  78. Obsoletes: ooobasis3.1-core07 < 3.3, ooobasis3.2-core07 < 3.3
  79. Obsoletes: ooobasis3.1-base < 3.3, ooobasis3.2-base < 3.3
  80. Obsoletes: ooobasis3.1-calc < 3.3, ooobasis3.2-calc < 3.3
  81. Obsoletes: ooobasis3.1-draw < 3.3, ooobasis3.2-draw < 3.3
  82. Obsoletes: ooobasis3.1-impress < 3.3, ooobasis3.2-impress < 3.3
  83. Obsoletes: ooobasis3.1-math < 3.3, ooobasis3.2-math < 3.3
  84. Obsoletes: ooobasis3.1-writer < 3.3, ooobasis3.2-writer < 3.3
  85. Obsoletes: openoffice.org3-base < 3.3
  86. Obsoletes: openoffice.org3-calc < 3.3
  87. Obsoletes: openoffice.org3-draw < 3.3
  88. Obsoletes: openoffice.org3-impress < 3.3
  89. Obsoletes: openoffice.org3-writer < 3.3
  90. Obsoletes: openoffice.org3-math < 3.3
  91. Obsoletes: ooobasis3.1-gnome-integration < 3.3, ooobasis3.2-gnome-integration < 3.3
  92. Obsoletes: ooobasis3.1-ja-binfilter < 3.3, ooobasis3.2-ja-binfilter < 3.3
  93. Obsoletes: ooobasis3.1-binfilter < 3.3, ooobasis3.2-binfilter < 3.3
  94. Obsoletes: ooobasis3.1-graphicfilter < 3.3, ooobasis3.2-graphicfilter < 3.3
  95. Obsoletes: ooobasis3.1-javafilter < 3.3, ooobasis3.2-javafilter < 3.3
  96. Obsoletes: ooobasis3.1-ooofonts < 3.3, ooobasis3.2-ooofonts < 3.3
  97. Obsoletes: ooobasis3.1-pyuno < 3.3, ooobasis3.2-pyuno < 3.3
  98. Obsoletes: ooobasis3.1-ooolinguistic < 3.3, ooobasis3.2-ooolinguistic < 3.3
  99. Obsoletes: openoffice.org-ure <= 1.6.1
  100. Obsoletes: openoffice.org3.1-freedesktop-menus < 3.3, openoffice.org3.2-freedesktop-menus < 3.3
  101. Obsoletes: install-assist-Go-oo < 3.3
  102. Obsoletes: libobasis3.3-core01 < 3.4
  103. Obsoletes: libreoffice3-ure <= 1.7.0
  104. Obsoletes: libreoffice3.3-freedesktop-menus < 3.4
  105. # Obsoletes: libobasis3.4-core01 < 3.5
  106. # Obsoletes: libreoffice3.4-ure < 3.5
  107. # Obsoletes: libreoffice3.4-freedesktop-menus < 3.5
  108. Obsoletes: libobasis3.4-base
  109. Obsoletes: libobasis3.4-binfilter
  110. Obsoletes: libobasis3.4-calc
  111. Obsoletes: libobasis3.4-core01
  112. Obsoletes: libobasis3.4-core02
  113. Obsoletes: libobasis3.4-core03
  114. Obsoletes: libobasis3.4-core04
  115. Obsoletes: libobasis3.4-core05
  116. Obsoletes: libobasis3.4-core06
  117. Obsoletes: libobasis3.4-core07
  118. Obsoletes: libobasis3.4-draw
  119. Obsoletes: libobasis3.4-en-US
  120. Obsoletes: libobasis3.4-en-US-base
  121. Obsoletes: libobasis3.4-en-US-binfilter
  122. Obsoletes: libobasis3.4-en-US-calc
  123. Obsoletes: libobasis3.4-en-US-math
  124. Obsoletes: libobasis3.4-en-US-res
  125. Obsoletes: libobasis3.4-en-US-writer
  126. Obsoletes: libobasis3.4-extension-beanshell-script-provider
  127. Obsoletes: libobasis3.4-extension-javascript-script-provider
  128. Obsoletes: libobasis3.4-extension-mediawiki-publisher
  129. Obsoletes: libobasis3.4-extension-nlpsolver
  130. Obsoletes: libobasis3.4-extension-pdf-import
  131. Obsoletes: libobasis3.4-extension-presentation-minimizer
  132. Obsoletes: libobasis3.4-extension-presenter-screen
  133. Obsoletes: libobasis3.4-extension-python-script-provider
  134. Obsoletes: libobasis3.4-extension-report-builder
  135. Obsoletes: libobasis3.4-gnome-integration
  136. Obsoletes: libobasis3.4-graphicfilter
  137. Obsoletes: libobasis3.4-images
  138. Obsoletes: libobasis3.4-impress
  139. Obsoletes: libobasis3.4-ja
  140. Obsoletes: libobasis3.4-ja-base
  141. Obsoletes: libobasis3.4-ja-binfilter
  142. Obsoletes: libobasis3.4-ja-calc
  143. Obsoletes: libobasis3.4-ja-help
  144. Obsoletes: libobasis3.4-ja-math
  145. Obsoletes: libobasis3.4-ja-res
  146. Obsoletes: libobasis3.4-ja-writer
  147. Obsoletes: libobasis3.4-javafilter
  148. Obsoletes: libobasis3.4-kde-integration
  149. Obsoletes: libobasis3.4-math
  150. Obsoletes: libobasis3.4-ogltrans
  151. Obsoletes: libobasis3.4-ooofonts
  152. Obsoletes: libobasis3.4-ooolinguistic
  153. Obsoletes: libobasis3.4-pyuno
  154. Obsoletes: libobasis3.4-testtool
  155. Obsoletes: libobasis3.4-writer
  156. Obsoletes: libobasis3.4-xsltfilter
  157. Obsoletes: libreoffice3.4
  158. Obsoletes: libreoffice3.4-base
  159. Obsoletes: libreoffice3.4-calc
  160. Obsoletes: libreoffice3.4-dict-en
  161. Obsoletes: libreoffice3.4-dict-es
  162. Obsoletes: libreoffice3.4-dict-fr
  163. Obsoletes: libreoffice3.4-draw
  164. Obsoletes: libreoffice3.4-en-US
  165. Obsoletes: libreoffice3.4-freedesktop-menus
  166. Obsoletes: libreoffice3.4-impress
  167. Obsoletes: libreoffice3.4-ja
  168. Obsoletes: libreoffice3.4-math
  169. Obsoletes: libreoffice3.4-ure
  170. Obsoletes: libreoffice3.4-writer
  171. # Obsoletes: libobasis3.5-core01
  172. # Obsoletes: libreoffice3.5-ure libreoffice3.5-stdlibs
  173. # Obsoletes: libreoffice3.5-freedesktop-menus
  174. Obsoletes: libobasis3.5-base
  175. Obsoletes: libobasis3.5-binfilter
  176. Obsoletes: libobasis3.5-calc
  177. Obsoletes: libobasis3.5-core01
  178. Obsoletes: libobasis3.5-core02
  179. Obsoletes: libobasis3.5-core03
  180. Obsoletes: libobasis3.5-core04
  181. Obsoletes: libobasis3.5-core05
  182. Obsoletes: libobasis3.5-core06
  183. Obsoletes: libobasis3.5-core07
  184. Obsoletes: libobasis3.5-draw
  185. Obsoletes: libobasis3.5-en-US
  186. Obsoletes: libobasis3.5-en-US-base
  187. Obsoletes: libobasis3.5-en-US-calc
  188. Obsoletes: libobasis3.5-en-US-math
  189. Obsoletes: libobasis3.5-en-US-res
  190. Obsoletes: libobasis3.5-en-US-writer
  191. Obsoletes: libobasis3.5-extension-beanshell-script-provider
  192. Obsoletes: libobasis3.5-extension-javascript-script-provider
  193. Obsoletes: libobasis3.5-extension-mediawiki-publisher
  194. Obsoletes: libobasis3.5-extension-nlpsolver
  195. Obsoletes: libobasis3.5-extension-pdf-import
  196. Obsoletes: libobasis3.5-extension-presentation-minimizer
  197. Obsoletes: libobasis3.5-extension-presenter-screen
  198. Obsoletes: libobasis3.5-extension-python-script-provider
  199. Obsoletes: libobasis3.5-extension-report-builder
  200. Obsoletes: libobasis3.5-gnome-integration
  201. Obsoletes: libobasis3.5-graphicfilter
  202. Obsoletes: libobasis3.5-images
  203. Obsoletes: libobasis3.5-impress
  204. Obsoletes: libobasis3.5-ja
  205. Obsoletes: libobasis3.5-ja-base
  206. Obsoletes: libobasis3.5-ja-calc
  207. Obsoletes: libobasis3.5-ja-help
  208. Obsoletes: libobasis3.5-ja-math
  209. Obsoletes: libobasis3.5-ja-res
  210. Obsoletes: libobasis3.5-ja-writer
  211. Obsoletes: libobasis3.5-javafilter
  212. Obsoletes: libobasis3.5-kde-integration
  213. Obsoletes: libobasis3.5-math
  214. Obsoletes: libobasis3.5-ogltrans
  215. Obsoletes: libobasis3.5-onlineupdate
  216. Obsoletes: libobasis3.5-ooofonts
  217. Obsoletes: libobasis3.5-ooolinguistic
  218. Obsoletes: libobasis3.5-postgresql-sdbc
  219. Obsoletes: libobasis3.5-pyuno
  220. Obsoletes: libobasis3.5-writer
  221. Obsoletes: libobasis3.5-xsltfilter
  222. Obsoletes: libreoffice3.5
  223. Obsoletes: libreoffice3.5-base
  224. Obsoletes: libreoffice3.5-calc
  225. Obsoletes: libreoffice3.5-dict-en
  226. Obsoletes: libreoffice3.5-dict-es
  227. Obsoletes: libreoffice3.5-dict-fr
  228. Obsoletes: libreoffice3.5-draw
  229. Obsoletes: libreoffice3.5-en-US
  230. Obsoletes: libreoffice3.5-freedesktop-menus
  231. Obsoletes: libreoffice3.5-impress
  232. Obsoletes: libreoffice3.5-ja
  233. Obsoletes: libreoffice3.5-math
  234. Obsoletes: libreoffice3.5-stdlibs
  235. Obsoletes: libreoffice3.5-ure
  236. Obsoletes: libreoffice3.5-writer
  237. Packager: kazutaka, munepi
  238. %description
  239. LibreOffice is the free power-packed Open Source personal productivity
  240. suite for Windows, Macintosh and Linux, that gives you six feature-rich
  241. applications for all your document production and data processing needs:
  242. Writer, Calc, Impress, Draw, Math and Base.
  243. If you install this package, it automaticaly downloads
  244. required files to install %{pkgname}.
  245. And the downloaded files are automatically installed if
  246. installation is executed by apt-get command or synaptic
  247. package manager.
  248. %description -l ja
  249. LibreOffice は自由でかつオープンソースのオフィススイートです。
  250. Windows、Macintosh、Linux を始めとする多くのプラットフォームで動作します。
  251. 文書の作成やデータの処理のお役に立ちます豊富な機能を備えた6つの
  252. アプリケーションを提供します:
  253. Writer、Calc、Impress、Draw、Math、Base です。
  254. このパッケージをインストールすると、自動的に %{pkgname}
  255. のインストールに必要な rpm ファイルをダウンロードします。
  256. また apt-get コマンドや synapticパッケージマネージャから実行
  257. した場合は、ダウンロードした rpm ファイルのインストールも自
  258. 動的に行います。
  259. %posttrans
  260. #set -x
  261. ## setup
  262. . /etc/self-build.conf
  263. tmp=$(mktemp -d ${TEMP_DIR}/%{name}.XXXXXX)
  264. QUEDIR=/var/cache/self-build
  265. [ ! -d ${QUEDIR} ] && %__mkdir_p ${QUEDIR}
  266. (cd ${tmp}
  267. ## If exists cached tarballs, copy them into ${tmp}
  268. if [ "${CACHE_DOWNLOADED_FILES}" = "yes" ]; then
  269. for i in %{dlurl}; do
  270. [ -f ${QUEDIR}/$(basename $i) ] && %__cp -af ${QUEDIR}/$(basename $i) ${tmp}; done
  271. fi
  272. ## download the official built tarballs
  273. wget -N %{dlurl}
  274. ## extract them
  275. for i in %{dlurl}; do %__tar xf $(basename $i); done
  276. ## copy including rpms
  277. %__cp -af $(find -name "*.%{rpmarch}.rpm") ${QUEDIR}
  278. %__cp -af $(find -name "*freedesktop-menus*.rpm") ${QUEDIR}
  279. if [ "${CACHE_DOWNLOADED_FILES}" = "yes" ]; then
  280. for i in %{dlurl}; do
  281. [ -f ${QUEDIR}/$(basename $i) ] || %__cp -af $(basename $i) ${QUEDIR};
  282. done
  283. fi
  284. )
  285. %__rm -rf ${tmp}
  286. %files
  287. %changelog
  288. * Sat Aug 11 2012 Munehiro Yamamoto <munepi@vinelinux.org> 3.6.0-2
  289. - Requires: java >= 1.6.0
  290. - set LibreOffice 3.5 packages as Obsoletes
  291. * Fri Aug 10 2012 Munehiro Yamamoto <munepi@vinelinux.org> 3.6.0-1
  292. - new upstream release
  293. * Wed Jul 25 2012 Munehiro Yamamoto <munepi@vinelinux.org> 3.5.5-1
  294. - new upstream release
  295. * Fri Jun 1 2012 Munehiro Yamamoto <munepi@vinelinux.org> 3.5.4-1
  296. - new upstream release
  297. * Sat May 12 2012 Munehiro Yamamoto <munepi@vinelinux.org> 3.5.3-1
  298. - new upstream release
  299. * Mon Apr 30 2012 Munehiro Yamamoto <munepi@vinelinux.org> 3.5.2-2
  300. - set LibreOffice 3.4 packages as Obsoletes
  301. * Wed Apr 11 2012 Munehiro Yamamoto <munepi@vinelinux.org> 3.5.2-1
  302. - new upstream release
  303. * Thu Mar 22 2012 Munehiro Yamamoto <munepi@vinelinux.org> 3.5.1-1
  304. - new upstream release
  305. * Thu Feb 16 2012 Munehiro Yamamoto <munepi@vinelinux.org> 3.5.0-1
  306. - new upstream release
  307. * Tue Jan 17 2012 Munehiro Yamamoto <munepi@vinelinux.org> 3.4.5-1
  308. - new upstream release
  309. * Wed Nov 9 2011 Munehiro Yamamoto <munepi@vinelinux.org> 3.4.4-1
  310. - new upstream release
  311. * Sun Oct 16 2011 Munehiro Yamamoto <munepi@vinelinux.org> 3.4.3-2
  312. - dropped Requires: libgail-gnome >= 1.8.6
  313. * Sat Sep 03 2011 Munehiro Yamamoto <munepi@vinelinux.org> 3.4.3-1
  314. - new upstream release
  315. * Tue Aug 02 2011 Munehiro Yamamoto <munepi@vinelinux.org> 3.4.2-1
  316. - new upstream release
  317. * Fri Jul 22 2011 Munehiro Yamamoto <munepi@vinelinux.org> 3.4.1-2
  318. - added Requires: java-1.6.0 <BTS:1168>
  319. * Wed Jul 06 2011 Munehiro Yamamoto <munepi@vinelinux.org> 3.4.1-1
  320. - new upstream release
  321. * Sat Jun 11 2011 Munehiro Yamamoto <munepi@vinelinux.org> 3.4.0-1
  322. - new upstream release
  323. * Sun Apr 03 2011 Munehiro Yamamoto <munepi@vinelinux.org> 3.3.2-1
  324. - initial build