2011-09-07 17:41:42 +02:00
|
|
|
#
|
2011-09-19 17:50:45 +02:00
|
|
|
# spec file for package libreoffice-help-en-US
|
2011-09-07 17:41:42 +02:00
|
|
|
#
|
2012-01-20 20:24:03 +01:00
|
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2011-09-07 17:41:42 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2012-01-20 20:24:03 +01:00
|
|
|
|
2011-09-07 17:41:42 +02:00
|
|
|
Name: libreoffice-help-en-US
|
|
|
|
@DO_NOT_EDIT_COMMENT@
|
2012-04-04 19:20:25 +02:00
|
|
|
Version: 3.5.2.2
|
|
|
|
Release: 0
|
|
|
|
%define gnu_make_version 3.82
|
|
|
|
%define gnu_make_snapshot 20120301
|
|
|
|
%define zip_version 3.0
|
2011-09-07 17:41:42 +02:00
|
|
|
%define lo_langs ""
|
2012-04-04 19:20:25 +02:00
|
|
|
%define lo_home libreoffice
|
2011-09-07 17:41:42 +02:00
|
|
|
# prepare_build: 0 = no
|
|
|
|
# 1 = yes (just build, install and create packages; without %%prep section and configure)
|
|
|
|
%define prepare_build 1
|
|
|
|
#!BuildIgnore: libreoffice
|
|
|
|
# both zip and perl-Archive-Zip are needed; tested with ooo320-m3, 2009-10-22
|
2012-04-04 19:20:25 +02:00
|
|
|
BuildRequires: ant
|
|
|
|
BuildRequires: ant-apache-regexp
|
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: bison
|
|
|
|
BuildRequires: boost-devel
|
|
|
|
BuildRequires: db-devel
|
|
|
|
BuildRequires: flac-devel
|
|
|
|
BuildRequires: flex
|
|
|
|
BuildRequires: freetype2-devel
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: gperf
|
|
|
|
BuildRequires: icu
|
|
|
|
BuildRequires: java-devel
|
|
|
|
BuildRequires: libcppunit-devel
|
|
|
|
BuildRequires: libexpat-devel
|
|
|
|
BuildRequires: libicu-devel
|
|
|
|
BuildRequires: libxml2-devel
|
|
|
|
BuildRequires: libxslt-devel
|
|
|
|
BuildRequires: openssl-devel
|
|
|
|
BuildRequires: perl-Archive-Zip
|
|
|
|
BuildRequires: perl-Compress-Zlib
|
|
|
|
BuildRequires: pkg-config
|
|
|
|
BuildRequires: python-devel
|
|
|
|
BuildRequires: unzip
|
|
|
|
BuildRequires: xorg-x11-devel
|
|
|
|
BuildRequires: zip
|
2011-09-07 17:41:42 +02:00
|
|
|
%if 0%{?suse_version} == 01010
|
|
|
|
# is not required by Java SDKs by mistake on SLED10
|
|
|
|
BuildRequires: update-alternatives
|
|
|
|
# needed by perl-Archive-Zip; is included in main perl package on newer distros
|
|
|
|
BuildRequires: perl-Compress-Zlib
|
|
|
|
%endif
|
|
|
|
Provides: locale(libreoffice:en_US)
|
2012-04-04 19:20:25 +02:00
|
|
|
%if 0%{?suse_version} > 01120
|
|
|
|
Requires(post): coreutils
|
|
|
|
Requires(post): grep
|
|
|
|
Requires(post): libreoffice >= 3.5
|
|
|
|
Requires(postun): coreutils
|
|
|
|
Requires(postun): grep
|
|
|
|
Requires(postun): libreoffice >= 3.5
|
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version} && 0%{?suse_version} <= 01120
|
|
|
|
PreReq: coreutils
|
|
|
|
PreReq: grep
|
|
|
|
PreReq: libreoffice >= 3.5
|
2011-09-07 17:41:42 +02:00
|
|
|
%endif
|
2012-04-04 19:20:25 +02:00
|
|
|
Requires: libreoffice = %{version}
|
2011-09-07 17:41:42 +02:00
|
|
|
# compat stuff
|
|
|
|
Provides: OpenOffice_org-help-en-US = %version
|
|
|
|
Obsoletes: OpenOffice_org-help-en-US < %version
|
2012-01-20 20:24:03 +01:00
|
|
|
Provides: OpenOffice_org-help-en-US-devel = %version
|
|
|
|
Obsoletes: OpenOffice_org-help-en-US-devel < %version
|
2011-09-07 17:41:42 +02:00
|
|
|
Provides: libreoffice:%_prefix/ooo-2.0/help/en/default.css
|
|
|
|
# Arabic help was not realy localized
|
|
|
|
Provides: OpenOffice_org-help-ar = %version
|
|
|
|
Obsoletes: OpenOffice_org-help-ar < %version
|
|
|
|
Provides: libreoffice-help-ar = %version
|
|
|
|
Obsoletes: libreoffice-help-ar < %version
|
|
|
|
# Punjabi help is not really localized
|
|
|
|
Provides: OpenOffice_org-help-pa-IN = %version
|
|
|
|
Obsoletes: OpenOffice_org-help-pa-IN < %version
|
|
|
|
Provides: libreoffice-help-pa-IN = %version
|
|
|
|
Obsoletes: libreoffice-help-pa-IN < %version
|
|
|
|
#
|
|
|
|
Summary: American Help Localization for LibreOffice
|
2012-04-04 19:20:25 +02:00
|
|
|
License: LGPL-3.0
|
|
|
|
Group: Productivity/Office/Suite
|
2011-09-07 17:41:42 +02:00
|
|
|
Url: http://www.documentfoundation.org/
|
2012-04-04 19:20:25 +02:00
|
|
|
Source0: libreoffice-core-%version.tar.bz2
|
|
|
|
Source1: libreoffice-help-%version.tar.bz2
|
|
|
|
Source2: libreoffice-translations-%version.tar.bz2
|
|
|
|
# make-3.82 is needed for parallel build
|
|
|
|
# this version extends plain make-3.82 with --warn-undefined-functions option
|
|
|
|
# URL: http://cgit.freedesktop.org/libreoffice/contrib/dev-tools/tree/make-3.82-gbuild, snapshot 2011-08-17
|
|
|
|
Source30: make-%gnu_make_version-gbuild-%gnu_make_snapshot.tar.bz2
|
|
|
|
# zip-3.0 or newer is required because of the --filesync feature
|
|
|
|
Source31: zip-%zip_version.tar.bz2
|
2011-09-07 17:41:42 +02:00
|
|
|
# SUSE config files
|
|
|
|
Source100: SUSE.conf
|
|
|
|
Source101: SUSE-10.1.conf
|
|
|
|
Source102: SUSE-11.1.conf
|
|
|
|
Source103: SUSE-11.2.conf
|
|
|
|
Source104: SUSE-11.3.conf
|
|
|
|
Source105: SUSE-11.4.conf
|
|
|
|
# helper stuff to produce pieces of the spec file
|
|
|
|
Source200: libreoffice-help-en-US.spec.in
|
|
|
|
Source201: lo-help-gen-spec
|
|
|
|
Source202: lo-help-en-US
|
2012-04-04 19:20:25 +02:00
|
|
|
# allow to unpack source tarballs
|
|
|
|
Patch0: libreoffice-3.5-unpack-sources.diff
|
|
|
|
# cups is not needed for helpcontent build
|
|
|
|
Patch1: build-helpcontent-do-not-check-cups.diff
|
2011-09-07 17:41:42 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
#!ExclusiveArch: %ix86 x86_64 ppc
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description
|
|
|
|
American help localization for LibreOffice. The other localized
|
|
|
|
stuff is in LibreOffice-l10n-en-US.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%if %prepare_build == 0
|
2012-04-04 19:20:25 +02:00
|
|
|
%setup -D -T -q -n libreoffice-core-%version
|
2011-09-07 17:41:42 +02:00
|
|
|
%else
|
2012-04-04 19:20:25 +02:00
|
|
|
%setup -q -a30 -a31 -n libreoffice-core-%version
|
|
|
|
%patch0
|
|
|
|
bin/unpack-sources `pwd` %{S:1} %{S:2}
|
2011-09-07 17:41:42 +02:00
|
|
|
# SUSE config files
|
|
|
|
cp %{S:100} %{S:101} %{S:102} %{S:103} %{S:104} %{S:105} distro-configs
|
|
|
|
# extra fixes
|
|
|
|
%patch1
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%build
|
|
|
|
%if %prepare_build != 0
|
2012-04-04 19:20:25 +02:00
|
|
|
# first build make-3.82
|
|
|
|
cd make-*
|
|
|
|
CFLAGS=$RPM_OPT_FLAGS ./configure
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
cd -
|
|
|
|
#
|
|
|
|
# second build zip-3.0
|
|
|
|
cd zip30
|
|
|
|
make %{?jobs:-j%jobs} -f unix/Makefile prefix=/usr CC="gcc $RPM_OPT_FLAGS -DLARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" generic_gcc
|
|
|
|
cd -
|
2011-09-07 17:41:42 +02:00
|
|
|
#
|
|
|
|
# Parallel build settings ...
|
|
|
|
# parallel build of modules; it makes sense on machines with more CPUs
|
|
|
|
PARALLEL_BUILD="-P`grep ^processor /proc/cpuinfo | wc -l`"
|
|
|
|
# parallel build for files per module
|
|
|
|
if test -n "%{?jobs:%jobs}" -a -e "/opt/icecream/bin/gcc" -a -e "/opt/icecream/bin/g++" ; then
|
|
|
|
PARALLEL_BUILD="$PARALLEL_BUILD -- -P%jobs"
|
|
|
|
fi
|
|
|
|
#
|
|
|
|
# Distro settings ...
|
|
|
|
%if 0%{?meego_version}
|
|
|
|
with_distro="SUSE-11.1"
|
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version} && 0%{?suse_version} <= 01110
|
|
|
|
suse_major_ver=$((%{?suse_version} / 100))
|
|
|
|
suse_minor_ver=$((%{?suse_version} / 10 - $suse_major_ver * 10))
|
|
|
|
with_distro="SUSE-$suse_major_ver.$suse_minor_ver"
|
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version} > 01110 && 0%{?suse_version} <= 01120
|
|
|
|
with_distro="SUSE-11.2"
|
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version} > 01120
|
|
|
|
with_distro="SUSE"
|
|
|
|
%endif
|
|
|
|
#
|
|
|
|
# disable KDE4 on openSUSE-11.1-Evergreen but not on SLED11
|
|
|
|
%define libkde4_devel_ver %(rpm -q --queryformat '%{VERSION}' libkde4-devel)
|
|
|
|
DISABLE_KDE4=
|
|
|
|
test "%{libkde4_devel_ver}" = "4.1.3" && DISABLE_KDE4="--disable-kde4"
|
|
|
|
%endif
|
|
|
|
# make sure that JAVA_HOME is set correctly
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
source /etc/profile.d/alljava.sh
|
|
|
|
%endif
|
|
|
|
%if 0%{?meego_version}
|
|
|
|
export JAVA_HOME=%{java_home}
|
|
|
|
%endif
|
|
|
|
# use RPM_OPT_FLAGS, ...
|
|
|
|
export ARCH_FLAGS="`echo $RPM_OPT_FLAGS | sed -e 's/\-O[0-9s]//g' -e 's/\-fexceptions//g'` -fno-strict-aliasing"
|
|
|
|
# FIXME: genccode from the system icu is in /usr/sbin
|
2012-04-04 19:20:25 +02:00
|
|
|
# FIXME: we need make-3.82 for parallel build
|
|
|
|
export PATH="$RPM_BUILD_DIR/libreoffice-core-%version/make-%gnu_make_version-gbuild:$RPM_BUILD_DIR/libreoffice-core-%version/zip30:$PATH:/usr/sbin"
|
2011-09-07 17:41:42 +02:00
|
|
|
%if %prepare_build != 0
|
|
|
|
./autogen.sh \
|
|
|
|
--with-external-tar="$RPM_SOURCE_DIR" \
|
|
|
|
--with-arch-flags="$ARCH_FLAGS" \
|
|
|
|
--libdir=%{_libdir} \
|
|
|
|
--prefix=%{_prefix} \
|
|
|
|
--mandir=%{_mandir} \
|
|
|
|
--sysconfdir=/etc \
|
2011-09-19 17:50:45 +02:00
|
|
|
--docdir=%{_docdir}/%{name} \
|
2011-09-07 17:41:42 +02:00
|
|
|
--with-distro="$with_distro" \
|
|
|
|
--without-git \
|
|
|
|
--without-download \
|
|
|
|
--with-lang=%lo_langs \
|
|
|
|
--with-poor-help-localizations=%lo_poor_help_localizations \
|
|
|
|
--with-jdk-home=$JAVA_HOME \
|
|
|
|
--disable-cups \
|
|
|
|
--disable-fontconfig \
|
|
|
|
--without-junit \
|
|
|
|
--without-system-jpeg \
|
|
|
|
--disable-python \
|
|
|
|
--disable-mozilla \
|
|
|
|
--disable-mono \
|
|
|
|
--without-system-curl \
|
|
|
|
--disable-ldap \
|
2011-09-19 17:50:45 +02:00
|
|
|
--without-system-odbc \
|
2011-09-07 17:41:42 +02:00
|
|
|
--without-system-mozilla \
|
|
|
|
--without-system-neon \
|
|
|
|
--without-system-hunspell \
|
|
|
|
--without-system-lpsolve \
|
|
|
|
--disable-gtk \
|
|
|
|
--disable-kde \
|
|
|
|
--disable-kde4 \
|
|
|
|
--disable-gconf \
|
|
|
|
--disable-gnome-vfs \
|
|
|
|
--without-system-cairo \
|
|
|
|
--disable-gstreamer \
|
|
|
|
--disable-opengl \
|
|
|
|
--without-system-poppler \
|
|
|
|
--disable-evolution2
|
|
|
|
%endif
|
|
|
|
./bootstrap
|
2012-04-04 19:20:25 +02:00
|
|
|
. ./Env.Host.sh
|
2011-09-07 17:41:42 +02:00
|
|
|
cd helpcontent2
|
|
|
|
build --all $PARALLEL_BUILD
|
|
|
|
|
|
|
|
%install
|
2012-04-04 19:20:25 +02:00
|
|
|
. ./Env.Host.sh
|
|
|
|
test -z %lo_langs && langs="en-US" || langs=%lo_langs
|
2011-09-07 17:41:42 +02:00
|
|
|
mkdir -p file-lists
|
|
|
|
for lang in $langs ; do
|
|
|
|
test "$lang" = "en-US" && langdir="en" || langdir="$lang"
|
2012-04-04 19:20:25 +02:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/%_datadir/%lo_home/help/$langdir
|
2011-09-07 17:41:42 +02:00
|
|
|
for pack in helpcontent2/$INPATH/bin/s*$lang.zip ; do
|
2012-04-04 19:20:25 +02:00
|
|
|
unzip $pack -d $RPM_BUILD_ROOT/%_datadir/%lo_home/help/$langdir
|
2011-09-07 17:41:42 +02:00
|
|
|
done
|
|
|
|
lang_underscore=`echo $lang | sed "s/-/_/g"`
|
|
|
|
filelist=help_${lang_underscore}_list.txt
|
|
|
|
echo "%dir %_datadir/%lo_home" >file-lists/$filelist
|
2012-04-04 19:20:25 +02:00
|
|
|
echo "%dir %_datadir/%lo_home/help" >>file-lists/$filelist
|
|
|
|
find $RPM_BUILD_ROOT/%_datadir/%lo_home/help/$langdir -type d -printf "%%%%dir %_datadir/%lo_home/help/$langdir/%%P\n" >>file-lists/$filelist
|
|
|
|
find $RPM_BUILD_ROOT/%_datadir/%lo_home/help/$langdir -type f -printf "%_datadir/%lo_home/help/$langdir/%%P\n" >>file-lists/$filelist
|
2011-09-07 17:41:42 +02:00
|
|
|
# the file list is needed to create compat symlinks
|
|
|
|
cp file-lists/$filelist $RPM_BUILD_ROOT/%_datadir/%lo_home
|
|
|
|
echo "%_datadir/%lo_home/$filelist" >>file-lists/$filelist
|
|
|
|
done
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
@SUBPACKAGES_SCRIPTS@
|
|
|
|
@SUBPACKAGES_FILELIST@
|
|
|
|
%changelog
|