install-assist-LibreOffice-vl.spec 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. %define pkgname LibreOffice
  2. %define version 3.3.2
  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/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: 1%{?_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. # We have to specify previous version with "Conflicts:"
  34. # to make smart upgrading. See [VineSeed:20565].
  35. # Conflicts: openoffice.org-core <= 2.4.1-5vl5
  36. Obsoletes: openoffice.org < 3.0
  37. Obsoletes: openoffice.org-base < 3.0
  38. Obsoletes: openoffice.org-calc < 3.0
  39. Obsoletes: openoffice.org-core < 3.0
  40. Obsoletes: openoffice.org-devel < 3.0
  41. Obsoletes: openoffice.org-draw < 3.0
  42. Obsoletes: openoffice.org-emailmerge < 3.0
  43. Obsoletes: openoffice.org-graphicfilter < 3.0
  44. Obsoletes: openoffice.org-headless < 3.0
  45. Obsoletes: openoffice.org-i18n < 3.0
  46. Obsoletes: openoffice.org-impress < 3.0
  47. Obsoletes: openoffice.org-libs < 3.0
  48. Obsoletes: openoffice.org-math < 3.0
  49. Obsoletes: openoffice.org-pyuno < 3.0
  50. Obsoletes: openoffice.org-sdk < 3.0
  51. Obsoletes: openoffice.org-sdk-doc < 3.0
  52. Obsoletes: openoffice.org-testtools < 3.0
  53. Obsoletes: openoffice.org-writer < 3.0
  54. Obsoletes: openoffice.org-xsltfilter < 3.0
  55. # Conflicts: ooobasis3.1-core01 openoffice.org3.1-freedesktop-menus
  56. # Conflicts: ooobasis3.2-core01 openoffice.org3.2-freedesktop-menus
  57. # Conflicts: openoffice.org-ure
  58. Obsoletes: openoffice.org3 < 3.3
  59. Obsoletes: openoffice.org3-ja < 3.3
  60. Obsoletes: ooobasis3.1-ja < 3.3, ooobasis3.2-ja < 3.3
  61. Obsoletes: ooobasis3.1-ja-base < 3.3, ooobasis3.2-ja-base < 3.3
  62. Obsoletes: ooobasis3.1-ja-calc < 3.3, ooobasis3.2-ja-calc < 3.3
  63. Obsoletes: ooobasis3.1-ja-draw < 3.3, ooobasis3.2-ja-draw < 3.3
  64. Obsoletes: ooobasis3.1-ja-help < 3.3, ooobasis3.2-ja-help < 3.3
  65. Obsoletes: ooobasis3.1-ja-impress < 3.3, ooobasis3.2-ja-impress < 3.3
  66. Obsoletes: ooobasis3.1-ja-math < 3.3, ooobasis3.2-ja-math < 3.3
  67. Obsoletes: ooobasis3.1-ja-res < 3.3, ooobasis3.2-ja-res < 3.3
  68. Obsoletes: ooobasis3.1-ja-writer < 3.3, ooobasis3.2-ja-writer < 3.3
  69. Obsoletes: ooobasis3.1-images < 3.3, ooobasis3.2-images < 3.3
  70. Obsoletes: ooobasis3.1-core01 < 3.3, ooobasis3.2-core01 < 3.3
  71. Obsoletes: ooobasis3.1-core02 < 3.3, ooobasis3.2-core02 < 3.3
  72. Obsoletes: ooobasis3.1-core03 < 3.3, ooobasis3.2-core03 < 3.3
  73. Obsoletes: ooobasis3.1-core04 < 3.3, ooobasis3.2-core04 < 3.3
  74. Obsoletes: ooobasis3.1-core05 < 3.3, ooobasis3.2-core05 < 3.3
  75. Obsoletes: ooobasis3.1-core06 < 3.3, ooobasis3.2-core06 < 3.3
  76. Obsoletes: ooobasis3.1-core07 < 3.3, ooobasis3.2-core07 < 3.3
  77. Obsoletes: ooobasis3.1-base < 3.3, ooobasis3.2-base < 3.3
  78. Obsoletes: ooobasis3.1-calc < 3.3, ooobasis3.2-calc < 3.3
  79. Obsoletes: ooobasis3.1-draw < 3.3, ooobasis3.2-draw < 3.3
  80. Obsoletes: ooobasis3.1-impress < 3.3, ooobasis3.2-impress < 3.3
  81. Obsoletes: ooobasis3.1-math < 3.3, ooobasis3.2-math < 3.3
  82. Obsoletes: ooobasis3.1-writer < 3.3, ooobasis3.2-writer < 3.3
  83. Obsoletes: openoffice.org3-base < 3.3
  84. Obsoletes: openoffice.org3-calc < 3.3
  85. Obsoletes: openoffice.org3-draw < 3.3
  86. Obsoletes: openoffice.org3-impress < 3.3
  87. Obsoletes: openoffice.org3-writer < 3.3
  88. Obsoletes: openoffice.org3-math < 3.3
  89. Obsoletes: ooobasis3.1-gnome-integration < 3.3, ooobasis3.2-gnome-integration < 3.3
  90. Obsoletes: ooobasis3.1-ja-binfilter < 3.3, ooobasis3.2-ja-binfilter < 3.3
  91. Obsoletes: ooobasis3.1-binfilter < 3.3, ooobasis3.2-binfilter < 3.3
  92. Obsoletes: ooobasis3.1-graphicfilter < 3.3, ooobasis3.2-graphicfilter < 3.3
  93. Obsoletes: ooobasis3.1-javafilter < 3.3, ooobasis3.2-javafilter < 3.3
  94. Obsoletes: ooobasis3.1-ooofonts < 3.3, ooobasis3.2-ooofonts < 3.3
  95. Obsoletes: ooobasis3.1-pyuno < 3.3, ooobasis3.2-pyuno < 3.3
  96. Obsoletes: ooobasis3.1-ooolinguistic < 3.3, ooobasis3.2-ooolinguistic < 3.3
  97. Obsoletes: openoffice.org-ure <= 1.6.1
  98. Obsoletes: openoffice.org3.1-freedesktop-menus < 3.3, openoffice.org3.2-freedesktop-menus < 3.3
  99. Obsoletes: install-assist-Go-oo < 3.3
  100. Packager: kazutaka, munepi
  101. %description
  102. LibreOffice is the free power-packed Open Source personal productivity
  103. suite for Windows, Macintosh and Linux, that gives you six feature-rich
  104. applications for all your document production and data processing needs:
  105. Writer, Calc, Impress, Draw, Math and Base.
  106. If you install this package, it automaticaly downloads
  107. required files to install %{pkgname}.
  108. And the downloaded files are automatically installed if
  109. installation is executed by apt-get command or synaptic
  110. package manager.
  111. %description -l ja
  112. LibreOffice は自由でかつオープンソースのオフィススイートです。
  113. Windows、Macintosh、Linux を始めとする多くのプラットフォームで動作します。
  114. 文書の作成やデータの処理のお役に立ちます豊富な機能を備えた6つの
  115. アプリケーションを提供します:
  116. Writer、Calc、Impress、Draw、Math、Base です。
  117. このパッケージをインストールすると、自動的に %{pkgname}
  118. のインストールに必要な rpm ファイルをダウンロードします。
  119. また apt-get コマンドや synapticパッケージマネージャから実行
  120. した場合は、ダウンロードした rpm ファイルのインストールも自
  121. 動的に行います。
  122. %posttrans
  123. #set -x
  124. ## setup
  125. . /etc/self-build.conf
  126. tmp=$(mktemp -d ${TEMP_DIR}/%{name}.XXXXXX)
  127. QUEDIR=/var/cache/self-build
  128. [ ! -d ${QUEDIR} ] && %__mkdir_p ${QUEDIR}
  129. (cd ${tmp}
  130. ## If exists cached tarballs, copy them into ${tmp}
  131. if [ "${CACHE_DOWNLOADED_FILES}" = "yes" ]; then
  132. for i in %{dlurl}; do
  133. [ -f ${QUEDIR}/$(basename $i) ] && %__cp -af ${QUEDIR}/$(basename $i) ${tmp}; done
  134. fi
  135. ## download the official built tarballs
  136. wget -N %{dlurl}
  137. ## extract them
  138. for i in %{dlurl}; do %__tar xf $(basename $i); done
  139. ## copy including rpms
  140. %__cp -af $(find -name "*.%{rpmarch}.rpm") ${QUEDIR}
  141. %__cp -af $(find -name "*freedesktop-menus*.rpm") ${QUEDIR}
  142. if [ "${CACHE_DOWNLOADED_FILES}" = "yes" ]; then
  143. for i in %{dlurl}; do
  144. [ -f ${QUEDIR}/$(basename $i) ] || %__cp -af $(basename $i) ${QUEDIR};
  145. done
  146. fi
  147. )
  148. %__rm -rf ${tmp}
  149. %files
  150. %changelog
  151. * Sun Apr 03 2011 Munehiro Yamamoto <munepi@vinelinux.org> 3.3.2-1
  152. - initial build