change %{undefined rhel} too

f41
David Tardon 12 years ago
parent c3957e37ac
commit 0f491a9ce9

@ -99,7 +99,7 @@ BuildRequires: zip
# libs / headers # libs / headers
BuildRequires: GConf2-devel BuildRequires: GConf2-devel
BuildRequires: boost-devel BuildRequires: boost-devel
%if %{undefined rhel} || 0%{?rhel} >= 7 %if 0%{?!rhel} || 0%{?rhel} >= 7
BuildRequires: clucene-core-devel BuildRequires: clucene-core-devel
%endif %endif
BuildRequires: cppunit-devel BuildRequires: cppunit-devel
@ -120,19 +120,19 @@ BuildRequires: gstreamer1-plugins-base-devel
BuildRequires: gtk2-devel BuildRequires: gtk2-devel
BuildRequires: hunspell-devel BuildRequires: hunspell-devel
BuildRequires: hyphen-devel BuildRequires: hyphen-devel
%if %{undefined rhel} %if 0%{?!rhel}
BuildRequires: kdelibs4-devel BuildRequires: kdelibs4-devel
%endif %endif
BuildRequires: libICE-devel BuildRequires: libICE-devel
BuildRequires: libXext-devel BuildRequires: libXext-devel
BuildRequires: libXinerama-devel BuildRequires: libXinerama-devel
BuildRequires: libXt-devel BuildRequires: libXt-devel
%if %{undefined rhel} || 0%{?rhel} >= 7 %if 0%{?!rhel} || 0%{?rhel} >= 7
BuildRequires: libcdr-devel BuildRequires: libcdr-devel
BuildRequires: libcmis-devel BuildRequires: libcmis-devel
%endif %endif
BuildRequires: libcurl-devel BuildRequires: libcurl-devel
%if %{undefined rhel} || 0%{?rhel} >= 7 %if 0%{?!rhel} || 0%{?rhel} >= 7
BuildRequires: libexttextcat-devel BuildRequires: libexttextcat-devel
%endif %endif
BuildRequires: libicu-devel BuildRequires: libicu-devel
@ -140,7 +140,7 @@ BuildRequires: libidn-devel
BuildRequires: libjpeg-devel BuildRequires: libjpeg-devel
BuildRequires: liblangtag-devel BuildRequires: liblangtag-devel
BuildRequires: liborcus-devel BuildRequires: liborcus-devel
%if %{undefined rhel} || 0%{?rhel} >= 7 %if 0%{?!rhel} || 0%{?rhel} >= 7
BuildRequires: libvisio-devel BuildRequires: libvisio-devel
BuildRequires: libwpd-devel BuildRequires: libwpd-devel
BuildRequires: libwpg-devel BuildRequires: libwpg-devel
@ -149,11 +149,11 @@ BuildRequires: libwps-devel
BuildRequires: libxml2-devel BuildRequires: libxml2-devel
BuildRequires: libxslt-devel BuildRequires: libxslt-devel
BuildRequires: lpsolve-devel BuildRequires: lpsolve-devel
%if %{undefined rhel} || 0%{?rhel} >= 7 %if 0%{?!rhel} || 0%{?rhel} >= 7
BuildRequires: mdds-devel BuildRequires: mdds-devel
%endif %endif
BuildRequires: mesa-libGLU-devel BuildRequires: mesa-libGLU-devel
%if %{undefined rhel} || 0%{?rhel} >= 7 %if 0%{?!rhel} || 0%{?rhel} >= 7
BuildRequires: mysql-connector-c++-devel BuildRequires: mysql-connector-c++-devel
BuildRequires: mythes-devel BuildRequires: mythes-devel
%endif %endif
@ -161,11 +161,11 @@ BuildRequires: neon-devel
BuildRequires: nss-devel BuildRequires: nss-devel
BuildRequires: openssl-devel BuildRequires: openssl-devel
BuildRequires: pam-devel BuildRequires: pam-devel
%if %{undefined rhel} || 0%{?rhel} >= 7 %if 0%{?!rhel} || 0%{?rhel} >= 7
BuildRequires: poppler-cpp-devel BuildRequires: poppler-cpp-devel
%endif %endif
BuildRequires: poppler-devel BuildRequires: poppler-devel
%if %{undefined rhel} || 0%{?rhel} >= 7 %if 0%{?!rhel} || 0%{?rhel} >= 7
BuildRequires: postgresql-devel BuildRequires: postgresql-devel
%endif %endif
BuildRequires: python-devel BuildRequires: python-devel
@ -191,7 +191,7 @@ BuildRequires: hsqldb
%endif %endif
BuildRequires: jakarta-commons-httpclient BuildRequires: jakarta-commons-httpclient
BuildRequires: java-devel BuildRequires: java-devel
%if %{undefined rhel} || 0%{?rhel} >= 7 %if 0%{?!rhel} || 0%{?rhel} >= 7
BuildRequires: junit BuildRequires: junit
%endif %endif
BuildRequires: pentaho-reporting-flow-engine BuildRequires: pentaho-reporting-flow-engine
@ -490,7 +490,7 @@ update-desktop-database %{_datadir}/applications &> /dev/null || :
%postun javafilter %postun javafilter
update-desktop-database %{_datadir}/applications &> /dev/null || : update-desktop-database %{_datadir}/applications &> /dev/null || :
%if %{undefined rhel} || 0%{?rhel} >= 7 %if 0%{?!rhel} || 0%{?rhel} >= 7
%package postgresql %package postgresql
Summary: PostgreSQL connector for LibreOffice Summary: PostgreSQL connector for LibreOffice
Group: Applications/Productivity Group: Applications/Productivity
@ -548,7 +548,7 @@ A plug-in for LibreOffice that enables it to function without an X server.
It implements the -headless command line option and allows LibreOffice to be It implements the -headless command line option and allows LibreOffice to be
used as a backend server for e.g. document conversion. used as a backend server for e.g. document conversion.
%if %{undefined rhel} %if 0%{?!rhel}
%package kde %package kde
Summary: LibreOffice KDE integration plug-in Summary: LibreOffice KDE integration plug-in
Group: Applications/Productivity Group: Applications/Productivity
@ -701,7 +701,7 @@ Rules for auto-correcting common %{langname} typing errors. \
%langpack -l es -n Spanish -F -H -Y -M -A -S %langpack -l es -n Spanish -F -H -Y -M -A -S
%langpack -l et -n Estonian -F -H -Y -S %langpack -l et -n Estonian -F -H -Y -S
%langpack -l eu -n Basque -F -H -Y -A -S %langpack -l eu -n Basque -F -H -Y -A -S
%if %{undefined rhel} || 0%{?rhel} >= 7 %if 0%{?!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 0%{?rhel} && 0%{?rhel} < 7 %if 0%{?rhel} && 0%{?rhel} < 7
@ -724,7 +724,7 @@ Rules for auto-correcting common %{langname} typing errors. \
%{baseinstdir}/share/registry/korea.xcd %{baseinstdir}/share/registry/korea.xcd
%langpack -l lt -n Lithuanian -F -H -Y -A -S %langpack -l lt -n Lithuanian -F -H -Y -A -S
%if %{undefined rhel} || 0%{?rhel} >= 7 %if 0%{?!rhel} || 0%{?rhel} >= 7
%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
@ -748,7 +748,7 @@ Rules for auto-correcting common %{langname} typing errors. \
%langpack -l pt-PT -n Portuguese -f pt -h pt -y pt -m pt -a pt -p pt_PT -s pt %langpack -l pt-PT -n Portuguese -f pt -h pt -y pt -m pt -a pt -p pt_PT -s pt
%langpack -l ro -n Romanian -F -H -Y -M -S %langpack -l ro -n Romanian -F -H -Y -M -S
%langpack -l ru -n Russian -F -H -Y -M -A -S %langpack -l ru -n Russian -F -H -Y -M -A -S
%if %{undefined rhel} || 0%{?rhel} >= 7 %if 0%{?!rhel} || 0%{?rhel} >= 7
%langpack -l si -n Sinhalese -F -H -S %langpack -l si -n Sinhalese -F -H -S
%endif %endif
%langpack -l sk -n Slovak -F -H -Y -M -A -S %langpack -l sk -n Slovak -F -H -Y -M -A -S
@ -869,7 +869,7 @@ if [ $SMP_MFLAGS -lt 2 ]; then SMP_MFLAGS=2; fi
NDMAKES=$SMP_MFLAGS NDMAKES=$SMP_MFLAGS
NBUILDS=`dc -e "$SMP_MFLAGS v p"` NBUILDS=`dc -e "$SMP_MFLAGS v p"`
%if %{undefined rhel} %if 0%{?!rhel}
# KDE bits # KDE bits
export QT4DIR=%{_qt4_prefix} export QT4DIR=%{_qt4_prefix}
export KDE4DIR=%{_kde4_prefix} export KDE4DIR=%{_kde4_prefix}
@ -1769,7 +1769,7 @@ done
%{baseinstdir}/help/en/sdatabase.* %{baseinstdir}/help/en/sdatabase.*
%dir %{baseinstdir}/program %dir %{baseinstdir}/program
%dir %{baseinstdir}/program/classes %dir %{baseinstdir}/program/classes
%if %{undefined rhel} || 0%{?rhel} >= 7 %if 0%{?!rhel} || 0%{?rhel} >= 7
%{baseinstdir}/program/classes/hsqldb.jar %{baseinstdir}/program/classes/hsqldb.jar
%endif %endif
%{baseinstdir}/program/classes/sdbc_hsqldb.jar %{baseinstdir}/program/classes/sdbc_hsqldb.jar
@ -1923,7 +1923,7 @@ update-desktop-database %{_datadir}/applications &> /dev/null || :
%{baseinstdir}/program/libhwplo.so %{baseinstdir}/program/libhwplo.so
%{baseinstdir}/program/liblwpftlo.so %{baseinstdir}/program/liblwpftlo.so
%{baseinstdir}/program/libmswordlo.so %{baseinstdir}/program/libmswordlo.so
%if %{undefined rhel} || 0%{?rhel} >= 7 %if 0%{?!rhel} || 0%{?rhel} >= 7
%{baseinstdir}/program/libmsworks%{SOPOST}.so %{baseinstdir}/program/libmsworks%{SOPOST}.so
%endif %endif
%{baseinstdir}/program/libswdlo.so %{baseinstdir}/program/libswdlo.so
@ -2024,7 +2024,7 @@ update-desktop-database %{_datadir}/applications &> /dev/null || :
%{baseinstdir}/share/registry/pocketexcel.xcd %{baseinstdir}/share/registry/pocketexcel.xcd
%{baseinstdir}/share/registry/pocketword.xcd %{baseinstdir}/share/registry/pocketword.xcd
%if %{undefined rhel} || 0%{?rhel} >= 7 %if 0%{?!rhel} || 0%{?rhel} >= 7
%files postgresql %files postgresql
%defattr(-,root,root,-) %defattr(-,root,root,-)
%{baseinstdir}/program/postgresql-sdbc.uno.so %{baseinstdir}/program/postgresql-sdbc.uno.so
@ -2076,7 +2076,7 @@ update-desktop-database %{_datadir}/applications &> /dev/null || :
%{baseinstdir}/share/extensions/script-provider-for-python %{baseinstdir}/share/extensions/script-provider-for-python
%{baseinstdir}/share/registry/pyuno.xcd %{baseinstdir}/share/registry/pyuno.xcd
%if %{undefined rhel} %if 0%{?!rhel}
%files kde %files kde
%defattr(-,root,root,-) %defattr(-,root,root,-)
%dir %{baseinstdir} %dir %{baseinstdir}

Loading…
Cancel
Save