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
%endif
# SQLITE support
%if 0%{?mgaversion} || 0%{?mdkversion}
BuildRequires: sqlite3-devel
%else
BuildRequires: sqlite-devel
%endif
Requires: trinity-libkexiv2
Requires: trinity-libkdcraw
Requires: trinity-libkipi

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

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

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

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

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

@ -95,7 +95,7 @@ BuildRequires: ocaml
# KIG python scripting support
%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
%else
%define with_kig 1

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

@ -203,6 +203,18 @@ BuildRequires: %{_lib}lame-devel
BuildRequires: libmp3lame-devel
%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}
BuildRequires: lame-devel
%endif

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

Loading…
Cancel
Save