SHA256
1
0
forked from pool/libreoffice

- Add conditional for noarch subpackages

- Add switch in configure to detect more of internal/external stuff

OBS-URL: https://build.opensuse.org/package/show/LibreOffice:Factory/libreoffice?expand=0&rev=247
This commit is contained in:
Tomáš Chvátal 2015-04-15 11:56:56 +00:00 committed by Git OBS Bridge
parent e51b0488b3
commit 6e9b3978a8
2 changed files with 53 additions and 7 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Apr 15 11:56:26 UTC 2015 - tchvatal@suse.com
- Add conditional for noarch subpackages
- Add switch in configure to detect more of internal/external stuff
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Apr 15 11:42:37 UTC 2015 - tchvatal@suse.com Wed Apr 15 11:42:37 UTC 2015 - tchvatal@suse.com

View File

@ -16,17 +16,30 @@
# #
# Applications datastore
%if 0%{?suse_version} > 1315 %if 0%{?suse_version} > 1315
%bcond_without appdatastore %bcond_without appdatastore
%else %else
%bcond_with appdatastore %bcond_with appdatastore
%endif %endif
# GTK3 and gstreamer switch
%if 0%{?suse_version} > 1230
%bcond_without newmedia
%else
%bcond_with newmedia
%endif
# Wether to use internal libs or rely on system ones
%if 0%{?suse_version} > 1230 %if 0%{?suse_version} > 1230
%bcond_without systemlibs %bcond_without systemlibs
%else %else
%bcond_with systemlibs %bcond_with systemlibs
%endif %endif
# Wether to provide noarch subpackages
%if 0%{?suse_version} > 1130
%bcond_without noarch_subpkgs
%else
%bcond_with noarch_subpkgs
%endif
# List of supported langs, populated bellow in the lang macros # List of supported langs, populated bellow in the lang macros
%global langpack_langs %{nil} %global langpack_langs %{nil}
# extensions # extensions
@ -274,8 +287,10 @@ License: Apache-2.0 and Artistic-1.0 and BSD-3-Clause and BSD-4-Clause an
Group: Productivity/Office/Suite Group: Productivity/Office/Suite
Supplements: packageand(libreoffice:branding-upstream) Supplements: packageand(libreoffice:branding-upstream)
Provides: libreoffice-branding = %{version} Provides: libreoffice-branding = %{version}
BuildArch: noarch
Conflicts: otherproviders(libreoffice-branding) Conflicts: otherproviders(libreoffice-branding)
%if %{with noarch_subpkgs}
BuildArch: noarch
%endif
%description branding-upstream %description branding-upstream
This package includes the original branding for the LibreOffice office suite. This package includes the original branding for the LibreOffice office suite.
@ -288,7 +303,9 @@ Requires(post): %{name} = %{version}
Requires(postun): %{name} = %{version} Requires(postun): %{name} = %{version}
Provides: libreoffice-icon-themes = %{version} Provides: libreoffice-icon-themes = %{version}
Obsoletes: libreoffice-icon-themes < %{version} Obsoletes: libreoffice-icon-themes < %{version}
%if %{with noarch_subpkgs}
BuildArch: noarch BuildArch: noarch
%endif
%description icon-theme-crystal %description icon-theme-crystal
This package provides Crystal LibreOffice icon theme. It is used in KDE3 by default. This package provides Crystal LibreOffice icon theme. It is used in KDE3 by default.
@ -302,7 +319,9 @@ Requires(post): %{name} = %{version}
Requires(postun): %{name} = %{version} Requires(postun): %{name} = %{version}
Provides: libreoffice-icon-themes = %{version} Provides: libreoffice-icon-themes = %{version}
Obsoletes: libreoffice-icon-themes < %{version} Obsoletes: libreoffice-icon-themes < %{version}
%if %{with noarch_subpkgs}
BuildArch: noarch BuildArch: noarch
%endif
%description icon-theme-galaxy %description icon-theme-galaxy
This package provides Galaxy LibreOffice icon theme. It is used in the original OOo-3.x by default. This package provides Galaxy LibreOffice icon theme. It is used in the original OOo-3.x by default.
@ -316,7 +335,9 @@ Requires(post): %{name} = %{version}
Requires(postun): %{name} = %{version} Requires(postun): %{name} = %{version}
Provides: libreoffice-icon-themes = %{version} Provides: libreoffice-icon-themes = %{version}
Obsoletes: libreoffice-icon-themes < %{version} Obsoletes: libreoffice-icon-themes < %{version}
%if %{with noarch_subpkgs}
BuildArch: noarch BuildArch: noarch
%endif
%description icon-theme-hicontrast %description icon-theme-hicontrast
This package provides Hicontrast LibreOffice icon theme. This package provides Hicontrast LibreOffice icon theme.
@ -330,7 +351,9 @@ Requires(post): %{name} = %{version}
Requires(postun): %{name} = %{version} Requires(postun): %{name} = %{version}
Provides: libreoffice-icon-themes = %{version} Provides: libreoffice-icon-themes = %{version}
Obsoletes: libreoffice-icon-themes < %{version} Obsoletes: libreoffice-icon-themes < %{version}
%if %{with noarch_subpkgs}
BuildArch: noarch BuildArch: noarch
%endif
%description icon-theme-oxygen %description icon-theme-oxygen
This package provides Oxygen LibreOffice icon theme. It is used in KDE4 by default. This package provides Oxygen LibreOffice icon theme. It is used in KDE4 by default.
@ -344,7 +367,9 @@ Requires(post): %{name} = %{version}
Requires(postun): %{name} = %{version} Requires(postun): %{name} = %{version}
Provides: libreoffice-icon-themes = %{version} Provides: libreoffice-icon-themes = %{version}
Obsoletes: libreoffice-icon-themes < %{version} Obsoletes: libreoffice-icon-themes < %{version}
%if %{with noarch_subpkgs}
BuildArch: noarch BuildArch: noarch
%endif
%description icon-theme-sifr %description icon-theme-sifr
This package provides Sifr LibreOffice icon theme. This package provides Sifr LibreOffice icon theme.
@ -358,7 +383,9 @@ Requires(post): %{name} = %{version}
Requires(postun): %{name} = %{version} Requires(postun): %{name} = %{version}
Provides: libreoffice-icon-themes = %{version} Provides: libreoffice-icon-themes = %{version}
Obsoletes: libreoffice-icon-themes < %{version} Obsoletes: libreoffice-icon-themes < %{version}
%if %{with noarch_subpkgs}
BuildArch: noarch BuildArch: noarch
%endif
%description icon-theme-tango %description icon-theme-tango
This package provides Tango LibreOffice icon theme. It is used in GNOME by default This package provides Tango LibreOffice icon theme. It is used in GNOME by default
@ -729,7 +756,9 @@ Requires: %{name} = %{version} \
Requires(post,): %{name} = %{version} \ Requires(post,): %{name} = %{version} \
Requires(postun,): %{name} = %{version} \ Requires(postun,): %{name} = %{version} \
Provides: locale(libreoffice:%{lang}) \ Provides: locale(libreoffice:%{lang}) \
%if %{with noarch_subpkgs} \
BuildArch: noarch \ BuildArch: noarch \
%endif \
%{-m:Requires: myspell-%{-m*}}%{!-m:%{-M:Requires: myspell-%{lang}}} \ %{-m:Requires: myspell-%{-m*}}%{!-m:%{-M:Requires: myspell-%{lang}}} \
%{-r:Requires: %{-r*}} \ %{-r:Requires: %{-r*}} \
%{-p:Provides: %{name}-l10n-%{-p*}} \ %{-p:Provides: %{name}-l10n-%{-p*}} \
@ -913,8 +942,14 @@ export NOCONFIGURE=yes
--docdir=%{_docdir}/%{name} \ --docdir=%{_docdir}/%{name} \
--with-compat-oowrappers \ --with-compat-oowrappers \
--with-system-headers \ --with-system-headers \
%if %{with systemlibs}
--with-system-libs \ --with-system-libs \
--with-system-jars \ --with-system-jars \
--with-system-ucpp \
%else
--without-system-libs \
--without-system-jars \
%endif
--with-system-dicts \ --with-system-dicts \
--with-vendor=SUSE \ --with-vendor=SUSE \
--with-alloc=system \ --with-alloc=system \
@ -923,11 +958,19 @@ export NOCONFIGURE=yes
--with-external-tar="$RPM_SOURCE_DIR" \ --with-external-tar="$RPM_SOURCE_DIR" \
--disable-epm \ --disable-epm \
--disable-gnome-vfs \ --disable-gnome-vfs \
--disable-gstreamer-0-10 \
--disable-kdeab \ --disable-kdeab \
--disable-kde \ --disable-kde \
--disable-online-update \ --disable-online-update \
--disable-systray \ --disable-systray \
%if %{with newmedia}
--disable-gstreamer-0-10 \
--enable-gstreamer-1-0 \
--disable-gtk3 \
%else
--enable-gstreamer-0-10 \
--disable-gstreamer-1-0 \
--enable-gtk3 \
%endif
--enable-release-build \ --enable-release-build \
--enable-split-app-modules \ --enable-split-app-modules \
--enable-split-opt-features \ --enable-split-opt-features \
@ -948,9 +991,7 @@ export NOCONFIGURE=yes
--with-help \ --with-help \
--enable-odk \ --enable-odk \
--with-doxygen \ --with-doxygen \
--enable-gtk3 \
--enable-kde4 \ --enable-kde4 \
--enable-gstreamer-1-0 \
--enable-evolution2 \ --enable-evolution2 \
--enable-lockdown \ --enable-lockdown \
--enable-dbus \ --enable-dbus \
@ -964,9 +1005,8 @@ export NOCONFIGURE=yes
--enable-scripting-javascript \ --enable-scripting-javascript \
--disable-vlc \ --disable-vlc \
--enable-neon \ --enable-neon \
--with-system-ucpp \
--disable-ccache \ --disable-ccache \
--enable-gltf --with-system-libgltf \ --enable-gltf \
--disable-coinmp \ --disable-coinmp \
--disable-collada \ --disable-collada \
--enable-symbols --enable-symbols