RPM: fix many build dependencies in spec files

pull/3/head
François Andriot 7 years ago committed by François Andriot
parent 0495750052
commit 15e02021e2

@ -115,6 +115,13 @@ BuildRequires: libexiv2-devel
BuildRequires: exiv2-devel BuildRequires: exiv2-devel
%endif %endif
# SQLITE support
%if 0%{?mgaversion} || 0%{?mdkversion}
BuildRequires: sqlite3-devel
%else
BuildRequires: sqlite-devel
%endif
Requires: trinity-libkexiv2 Requires: trinity-libkexiv2
Requires: trinity-libkdcraw Requires: trinity-libkdcraw
Requires: trinity-libkipi Requires: trinity-libkipi

@ -115,7 +115,7 @@ BuildRequires: readline-devel
%if 0%{?suse_version} %if 0%{?suse_version}
BuildRequires: libbz2-devel BuildRequires: libbz2-devel
BuildRequires: liblcms-devel BuildRequires: liblcms2-devel
%else %else
BuildRequires: bzip2-devel BuildRequires: bzip2-devel
BuildRequires: lcms-devel BuildRequires: lcms-devel
@ -247,6 +247,13 @@ BuildRequires: libXi6-devel
BuildRequires: libXi-devel BuildRequires: libXi-devel
%endif %endif
# SQLITE support
%if 0%{?mgaversion} || 0%{?mdkversion}
BuildRequires: sqlite3-devel
%else
BuildRequires: sqlite-devel
%endif
%description %description
KOffice is an integrated office suite. KOffice is an integrated office suite.

@ -288,12 +288,10 @@ BuildRequires: %{_lib}fbclient-devel
%endif %endif
# NIS support # NIS support
%if 0%{?suse_version} != 1330
%define with_nis 1 %define with_nis 1
%endif
# RPC support # RPC support
%if 0%{?fedora} >= 28 || 0%{?suse_version} == 1500 %if 0%{?fedora} >= 28 || 0%{?suse_version} >= 1500
%if 0%{?fedora} %if 0%{?fedora}
BuildRequires: libnsl2-devel BuildRequires: libnsl2-devel
%else %else

@ -83,7 +83,7 @@ BuildRequires: pth-devel
%if 0%{?fedora} && 0%{?fedora} <= 26 %if 0%{?fedora} && 0%{?fedora} <= 26
BuildRequires: pth-devel BuildRequires: pth-devel
%endif %endif
%if 0%{?suse_version} && 0%{?suse_version} != 1330 && 0%{?suse_version} != 1500 %if 0%{?suse_version} && 0%{?suse_version} < 1500
BuildRequires: libpth-devel BuildRequires: libpth-devel
%endif %endif

@ -52,8 +52,7 @@ PreReq: permissions
BuildRequires: autoconf BuildRequires: autoconf
BuildRequires: automake BuildRequires: automake
BuildRequires: gcc-c++ BuildRequires: gcc-c++
BuildRequires: libtool
#Requires:
%if 0%{?pclinuxos} || 0%{?suse_version} && 0%{?opensuse_bs} == 0 %if 0%{?pclinuxos} || 0%{?suse_version} && 0%{?opensuse_bs} == 0
%debug_package %debug_package

@ -69,7 +69,9 @@ Source5: pamd.kscreensaver-trinity%{?dist}
%endif %endif
# openSUSE: configuration file for TDM # openSUSE: configuration file for TDM
%if 0%{?suse_version} >= 1210
Source6: suse-displaymanagers-tdm Source6: suse-displaymanagers-tdm
%endif
# Fedora 18: use SYSTEMD for TDM startup # Fedora 18: use SYSTEMD for TDM startup
%if 0%{?fedora} >= 18 || 0%{?rhel} >= 7 %if 0%{?fedora} >= 18 || 0%{?rhel} >= 7
@ -78,7 +80,7 @@ Source7: tdm.service%{?dist}
# openSUSE 11.4: overwrite distribution-provided '/etc/init.d/xdm' !!! # openSUSE 11.4: overwrite distribution-provided '/etc/init.d/xdm' !!!
%if 0%{?suse_version} == 1140 %if 0%{?suse_version} == 1140
Source7: xdm.oss114 Source7: xdm%{?dist}
%endif %endif
# Fedora >= 17: special selinux policy required for TDM # Fedora >= 17: special selinux policy required for TDM
@ -700,9 +702,14 @@ BuildRequires: libr-devel >= 0.6.0
%endif %endif
# RPC support # RPC support
%if 0%{?fedora} >= 28 %if 0%{?fedora} >= 28 || 0%{?suse_version} >= 1550
BuildRequires: libtirpc-devel BuildRequires: libtirpc-devel
BuildRequires: rpcgen BuildRequires: rpcgen
%if 0%{?fedora}
BuildRequires: libnsl2-devel
%else
BuildRequires: libnsl-devel
%endif
%endif %endif
# tdebase is a metapackage that installs all sub-packages # tdebase is a metapackage that installs all sub-packages

@ -95,7 +95,7 @@ BuildRequires: ocaml
# KIG python scripting support # KIG python scripting support
%if 0%{?rhel} >= 6 || 0%{?fedora} || 0%{?mgaversion} || 0%{?mdkversion} || 0%{?suse_version} %if 0%{?rhel} >= 6 || 0%{?fedora} || 0%{?mgaversion} || 0%{?mdkversion} || 0%{?suse_version}
%if 0%{?suse_version} == 1330 || 0%{?suse_version} == 1500 %if 0%{?suse_version} == 1330 || 0%{?suse_version} >= 1500
%define with_kig 0 %define with_kig 0
%else %else
%define with_kig 1 %define with_kig 1

@ -371,11 +371,15 @@ Requires: udisks
# UDISKS2 support # UDISKS2 support
%if 0%{?fedora} || 0%{?mdkversion} || 0%{?mgaversion} || 0%{?suse_version} || 0%{?rhel} >= 7 %if 0%{?fedora} || 0%{?mdkversion} || 0%{?mgaversion} || 0%{?suse_version} || 0%{?rhel} >= 7
%define with_udisks2 1 %define with_udisks2 1
%if 0%{?fedora} >= 18 || 0%{?rhel} >= 7 || 0%{?suse_version} >= 1550 %if 0%{?fedora} >= 18 || 0%{?rhel} >= 7
BuildRequires: libudisks2-devel BuildRequires: libudisks2-devel
%else %else
%if 0%{?suse_version} >= 1550
BuildRequires: libudisks2-0-devel
%else
BuildRequires: udisks2-devel BuildRequires: udisks2-devel
%endif %endif
%endif
Requires: udisks2 Requires: udisks2
%endif %endif

@ -203,6 +203,18 @@ BuildRequires: %{_lib}lame-devel
BuildRequires: libmp3lame-devel BuildRequires: libmp3lame-devel
%endif %endif
# IDN support
BuildRequires: libidn-devel
# OPENSSL support
BuildRequires: openssl-devel
# ACL support
BuildRequires: libacl-devel
# ATTR support
BuildRequires: libattr-devel
%if 0%{?fedora} || 0%{?rhel} %if 0%{?fedora} || 0%{?rhel}
BuildRequires: lame-devel BuildRequires: lame-devel
%endif %endif

@ -229,11 +229,6 @@ BuildRequires: libacl-devel
BuildRequires: meanwhile-devel BuildRequires: meanwhile-devel
%endif %endif
# ORTP support
#if 0%{?rhel} >= 6 || 0#{?fedora} >= 15
#BuildRequires: ortp-devel
#endif
# SPEEX support # SPEEX support
%if 0%{?rhel} >= 5 || 0%{?fedora} >= 15 || 0%{?suse_version} || 0%{?mdkversion} || 0%{?mgaversion} %if 0%{?rhel} >= 5 || 0%{?fedora} >= 15 || 0%{?suse_version} || 0%{?mdkversion} || 0%{?mgaversion}
%define with_speex 1 %define with_speex 1

Loading…
Cancel
Save