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