%{defined rhel} does not work in Fedora

fedpkg defines rhel to %{nil}, so the condition evaluates as true.

Conflicts:
	libreoffice.spec
f41
David Tardon 12 years ago
parent 8c70989548
commit c2ed6a98b8

@ -30,7 +30,7 @@
%bcond_without langpacks %bcond_without langpacks
%if %{with langpacks} %if %{with langpacks}
%if %{defined rhel} && 0%{?rhel} < 7 %if 0%{?rhel} && 0%{?rhel} < 7
%define langpack_langs en-US af ar as bg bn ca cs cy da de dz el es et eu fi fr ga gl gu he hi hr hu it ja ko kn lt mai ml mr ms nb nl nn nr nso or pa-IN pl pt pt-BR ro ru sh sk sl sr ss st sv ta te th tn tr ts uk ur ve xh zh-CN zh-TW zu %define langpack_langs en-US af ar as bg bn ca cs cy da de dz el es et eu fi fr ga gl gu he hi hr hu it ja ko kn lt mai ml mr ms nb nl nn nr nso or pa-IN pl pt pt-BR ro ru sh sk sl sr ss st sv ta te th tn tr ts uk ur ve xh zh-CN zh-TW zu
%else %else
%define langpack_langs en-US af ar as bg bn ca cs cy da de dz el es et eu fa fi fr ga gl gu he hi hr hu it ja ko kn lt lv mai ml mr nb nl nn nr nso or pa-IN pl pt pt-BR ro ru sh si sk sl sr ss st sv ta te th tn tr ts uk ve xh zh-CN zh-TW zu %define langpack_langs en-US af ar as bg bn ca cs cy da de dz el es et eu fa fi fr ga gl gu he hi hr hu it ja ko kn lt lv mai ml mr nb nl nn nr nso or pa-IN pl pt pt-BR ro ru sh si sk sl sr ss st sv ta te th tn tr ts uk ve xh zh-CN zh-TW zu
@ -66,7 +66,7 @@ Source12: http://hg.services.openoffice.org/binaries/18f577b374d60b3c760a3
#Unfortunately later versions of hsqldb changed the file format, so if we use a later version we loose #Unfortunately later versions of hsqldb changed the file format, so if we use a later version we loose
#backwards compatability. #backwards compatability.
Source13: http://hg.services.openoffice.org/binaries/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip Source13: http://hg.services.openoffice.org/binaries/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip
%if %{defined rhel} && 0%{?rhel} < 7 %if 0%{?rhel} && 0%{?rhel} < 7
Source14: http://dev-www.libreoffice.org/src/9f9e15966b5624834157fe3d748312bc-mdds_0.6.1.tar.bz2 Source14: http://dev-www.libreoffice.org/src/9f9e15966b5624834157fe3d748312bc-mdds_0.6.1.tar.bz2
Source15: http://dev-www.libreoffice.org/src/e1e255dc43dbcbb34cb19e8a0eba90ae-mythes-1.2.2.tar.gz Source15: http://dev-www.libreoffice.org/src/e1e255dc43dbcbb34cb19e8a0eba90ae-mythes-1.2.2.tar.gz
Source16: http://dev-www.libreoffice.org/src/ca66e26082cab8bb817185a116db809b-redland-1.0.8.tar.gz Source16: http://dev-www.libreoffice.org/src/ca66e26082cab8bb817185a116db809b-redland-1.0.8.tar.gz
@ -114,7 +114,7 @@ BuildRequires: expat-devel
BuildRequires: fontpackages-devel BuildRequires: fontpackages-devel
BuildRequires: freetype-devel BuildRequires: freetype-devel
BuildRequires: gecko-devel BuildRequires: gecko-devel
%if %{defined rhel} && 0%{?rhel} < 7 %if 0%{?rhel} && 0%{?rhel} < 7
BuildRequires: gstreamer-devel BuildRequires: gstreamer-devel
BuildRequires: gstreamer-plugins-base-devel BuildRequires: gstreamer-plugins-base-devel
%else %else
@ -187,7 +187,7 @@ BuildRequires: zlib-devel
# java stuff # java stuff
BuildRequires: ant BuildRequires: ant
BuildRequires: ant-apache-regexp BuildRequires: ant-apache-regexp
%if %{defined rhel} && 0%{?rhel} < 7 %if 0%{?rhel} && 0%{?rhel} < 7
BuildRequires: jakarta-commons-codec BuildRequires: jakarta-commons-codec
BuildRequires: jakarta-commons-lang BuildRequires: jakarta-commons-lang
%else %else
@ -195,7 +195,7 @@ BuildRequires: apache-commons-codec
BuildRequires: apache-commons-lang BuildRequires: apache-commons-lang
%endif %endif
BuildRequires: bsh BuildRequires: bsh
%if %{defined rhel} && 0%{?rhel} < 7 %if 0%{?rhel} && 0%{?rhel} < 7
BuildRequires: hsqldb BuildRequires: hsqldb
%endif %endif
BuildRequires: jakarta-commons-httpclient BuildRequires: jakarta-commons-httpclient
@ -246,7 +246,7 @@ Patch25: 0001-Resolves-fdo-56198-collect-scrollbar-click-preferenc.patch
Patch26: 0001-disable-failing-check.patch Patch26: 0001-disable-failing-check.patch
Patch27: 0001-fiddle-system-db-test-to-link-on-RHEL-6.patch Patch27: 0001-fiddle-system-db-test-to-link-on-RHEL-6.patch
Patch28: 0001-split-qnametostr-up-to-try-and-make-.o-s-small-enoug.patch Patch28: 0001-split-qnametostr-up-to-try-and-make-.o-s-small-enoug.patch
%if %{defined rhel} && 0%{?rhel} < 7 %if 0%{?rhel} && 0%{?rhel} < 7
Patch29: libreoffice-rhel6gcj.patch Patch29: libreoffice-rhel6gcj.patch
Patch30: libreoffice-rhel6poppler.patch Patch30: libreoffice-rhel6poppler.patch
Patch31: libreoffice-rhel6langs.patch Patch31: libreoffice-rhel6langs.patch
@ -300,7 +300,7 @@ to be written in python.
Summary: Database front-end for LibreOffice Summary: Database front-end for LibreOffice
Group: Applications/Productivity Group: Applications/Productivity
Requires: postgresql-jdbc Requires: postgresql-jdbc
%if %{defined rhel} && 0%{?rhel} < 7 %if 0%{?rhel} && 0%{?rhel} < 7
Requires: hsqldb Requires: hsqldb
%endif %endif
Requires: %{name}-ure = %{epoch}:%{version}-%{release} Requires: %{name}-ure = %{epoch}:%{version}-%{release}
@ -344,7 +344,7 @@ Support JavaScript scripts in LibreOffice.
%package wiki-publisher %package wiki-publisher
Summary: Create Wiki articles on MediaWiki servers with LibreOffice Summary: Create Wiki articles on MediaWiki servers with LibreOffice
Group: Applications/Productivity Group: Applications/Productivity
%if %{defined rhel} && 0%{?rhel} < 7 %if 0%{?rhel} && 0%{?rhel} < 7
Requires: jakarta-commons-codec, jakarta-commons-httpclient Requires: jakarta-commons-codec, jakarta-commons-httpclient
Requires: jakarta-commons-lang, jakarta-commons-logging Requires: jakarta-commons-lang, jakarta-commons-logging
%else %else
@ -742,7 +742,7 @@ Rules for auto-correcting common %{langname} typing errors. \
%if %{undefined rhel} || 0%{?rhel} >= 7 %if %{undefined rhel} || 0%{?rhel} >= 7
%langpack -l fa -n Farsi -A -H -Y -S %langpack -l fa -n Farsi -A -H -Y -S
%endif %endif
%if %{defined rhel} && 0%{?rhel} < 7 %if 0%{?rhel} && 0%{?rhel} < 7
%langpack -l fi -n Finnish -F -A -S %langpack -l fi -n Finnish -F -A -S
%else %else
%langpack -l fi -n Finnish -F -r libreoffice-voikko -A -S %langpack -l fi -n Finnish -F -r libreoffice-voikko -A -S
@ -766,7 +766,7 @@ Rules for auto-correcting common %{langname} typing errors. \
%langpack -l lv -n Latvian -F -H -Y -M -S %langpack -l lv -n Latvian -F -H -Y -M -S
%endif %endif
%langpack -l mai -n Maithili -F -S %langpack -l mai -n Maithili -F -S
%if %{defined rhel} && 0%{?rhel} < 7 %if 0%{?rhel} && 0%{?rhel} < 7
%langpack -l ms -n Malay -F -H -S %langpack -l ms -n Malay -F -H -S
%endif %endif
%langpack -l ml -n Malayalam -F -H -Y -S %langpack -l ml -n Malayalam -F -H -Y -S
@ -805,7 +805,7 @@ Rules for auto-correcting common %{langname} typing errors. \
%langpack -l tr -n Turkish -F -A -S %langpack -l tr -n Turkish -F -A -S
%langpack -l ts -n Tsonga -F -H -S %langpack -l ts -n Tsonga -F -H -S
%langpack -l uk -n Ukrainian -F -H -Y -M -S %langpack -l uk -n Ukrainian -F -H -Y -M -S
%if %{defined rhel} && 0%{?rhel} < 7 %if 0%{?rhel} && 0%{?rhel} < 7
%langpack -l ur -n Urdu -F -H -S %langpack -l ur -n Urdu -F -H -S
%endif %endif
%langpack -l ve -n Venda -F -H -S %langpack -l ve -n Venda -F -H -S
@ -901,7 +901,7 @@ mv -f redhat.soc extras/source/palettes/standard.soc
%patch26 -p1 -b .disable-failing-check.patch %patch26 -p1 -b .disable-failing-check.patch
%patch27 -p1 -b .fiddle-system-db-test-to-link-on-RHEL-6.patch %patch27 -p1 -b .fiddle-system-db-test-to-link-on-RHEL-6.patch
%patch28 -p1 -b .split-qnametostr-up-to-try-and-make-.o-s-small-enoug.patch %patch28 -p1 -b .split-qnametostr-up-to-try-and-make-.o-s-small-enoug.patch
%if %{defined rhel} && 0%{?rhel} < 7 %if 0%{?rhel} && 0%{?rhel} < 7
%patch29 -p1 -b .rhel6gcj.patch %patch29 -p1 -b .rhel6gcj.patch
%patch30 -p1 -b .rhel6poppler.patch %patch30 -p1 -b .rhel6poppler.patch
%patch31 -p1 -b .rhel6langs.patch %patch31 -p1 -b .rhel6langs.patch
@ -941,7 +941,7 @@ export ARCH_FLAGS
export CFLAGS=$ARCH_FLAGS export CFLAGS=$ARCH_FLAGS
export CXXFLAGS=$ARCH_FLAGS export CXXFLAGS=$ARCH_FLAGS
%if %{defined rhel} %if 0%{?rhel}
%if 0%{?rhel} < 7 %if 0%{?rhel} < 7
%define distrooptions --disable-graphite --without-system-mythes --without-system-mdds --without-junit --without-system-redland --disable-ext-mysql-connector --without-system-libexttextcat --without-system-libcdr --without-system-libwps --without-system-libwpd --without-system-libwpg --without-system-libcmis --without-system-clucene --without-system-libvisio --without-system-lcms2 --enable-gstreamer-0-10 --disable-gstreamer --disable-postgresql-sdbc %define distrooptions --disable-graphite --without-system-mythes --without-system-mdds --without-junit --without-system-redland --disable-ext-mysql-connector --without-system-libexttextcat --without-system-libcdr --without-system-libwps --without-system-libwpd --without-system-libwpg --without-system-libcmis --without-system-clucene --without-system-libvisio --without-system-lcms2 --enable-gstreamer-0-10 --disable-gstreamer --disable-postgresql-sdbc
%else %else
@ -985,7 +985,7 @@ cp %{SOURCE10} ext_sources
cp %{SOURCE11} ext_sources cp %{SOURCE11} ext_sources
cp %{SOURCE12} ext_sources cp %{SOURCE12} ext_sources
cp %{SOURCE13} ext_sources cp %{SOURCE13} ext_sources
%if %{defined rhel} && 0%{?rhel} < 7 %if 0%{?rhel} && 0%{?rhel} < 7
cp %{SOURCE14} ext_sources cp %{SOURCE14} ext_sources
cp %{SOURCE15} ext_sources cp %{SOURCE15} ext_sources
cp %{SOURCE16} ext_sources cp %{SOURCE16} ext_sources
@ -1390,7 +1390,7 @@ install-gdb-printers -a %{_datadir}/gdb/auto-load%{baseinstdir} -c -i %{baseinst
#unset WITH_LANG #unset WITH_LANG
## work around flawed accessibility check ## work around flawed accessibility check
#export JFW_PLUGIN_DO_NOT_CHECK_ACCESSIBILITY="1" #export JFW_PLUGIN_DO_NOT_CHECK_ACCESSIBILITY="1"
#%if %{defined rhel} && 0%{?rhel} < 7 #%if 0%{?rhel} && 0%{?rhel} < 7
#timeout 2h make smoketest.subsequentcheck #timeout 2h make smoketest.subsequentcheck
#%else #%else
#timeout -k 2m 2h make smoketest.subsequentcheck #timeout -k 2m 2h make smoketest.subsequentcheck
@ -1787,7 +1787,7 @@ rm -rf $RPM_BUILD_ROOT
%{_bindir}/soffice %{_bindir}/soffice
%{_bindir}/ooffice %{_bindir}/ooffice
%{_bindir}/ooviewdoc %{_bindir}/ooviewdoc
%if %{defined rhel} && 0%{?rhel} < 7 %if 0%{?rhel} && 0%{?rhel} < 7
%{baseinstdir}/program/libraptor-lo.so.1 %{baseinstdir}/program/libraptor-lo.so.1
%{baseinstdir}/program/librasqal-lo.so.1 %{baseinstdir}/program/librasqal-lo.so.1
%{baseinstdir}/program/librdf-lo.so.0 %{baseinstdir}/program/librdf-lo.so.0

Loading…
Cancel
Save