summaryrefslogtreecommitdiffstats
path: root/redhat/kdegraphics/trinity-kdegraphics-3.5.13.spec
diff options
context:
space:
mode:
authorFrancois Andriot <francois.andriot@free.fr>2012-05-07 01:06:08 +0200
committerFrancois Andriot <francois.andriot@free.fr>2012-05-07 01:06:08 +0200
commit9750a057f2f36c5b88a5bc53c0a051b605dac061 (patch)
tree4f205d3ed4ecf8d2df665b566674d12372363c7f /redhat/kdegraphics/trinity-kdegraphics-3.5.13.spec
parent6bb431be79e8f75c26bbf0f81749fa7738965f65 (diff)
downloadtde-packaging-9750a057f2f36c5b88a5bc53c0a051b605dac061.tar.gz
tde-packaging-9750a057f2f36c5b88a5bc53c0a051b605dac061.zip
RHEL/Fedora: massive updates for Fedora 17 (TDE 3.5.13 entire build)
Diffstat (limited to 'redhat/kdegraphics/trinity-kdegraphics-3.5.13.spec')
-rw-r--r--redhat/kdegraphics/trinity-kdegraphics-3.5.13.spec42
1 files changed, 20 insertions, 22 deletions
diff --git a/redhat/kdegraphics/trinity-kdegraphics-3.5.13.spec b/redhat/kdegraphics/trinity-kdegraphics-3.5.13.spec
index 067de78ea..8e06d25fc 100644
--- a/redhat/kdegraphics/trinity-kdegraphics-3.5.13.spec
+++ b/redhat/kdegraphics/trinity-kdegraphics-3.5.13.spec
@@ -1,32 +1,20 @@
-# Default version for this component
-%if "%{?version}" == ""
-%define version 3.5.13
-%endif
-%define release 4
-
# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
%if "%{?_prefix}" != "/usr"
%define _variant .opt
-%define _docdir %{_prefix}/share/doc
+%define _docdir %{_datadir}/doc
%endif
# TDE 3.5.13 specific building variables
-BuildRequires: cmake >= 2.8
%define tde_docdir %{_docdir}/kde
%define tde_includedir %{_includedir}/kde
%define tde_libdir %{_libdir}/trinity
-# KDEGRAPHICS components
-%if 0%{?fedora}
-%define with_ksvg 1
-%endif
-
Name: trinity-kdegraphics
-Version: %{?version}
-Release: %{?release}%{?dist}%{_variant}
+Version: 3.5.13
+Release: 4%{?dist}%{_variant}
License: GPL
-Summary: K Desktop Environment - Graphics Applications
+Summary: Trinity Desktop Environment - Graphics Applications
Group: Applications/Multimedia
Prefix: %{_prefix}
@@ -53,7 +41,10 @@ Patch3: kdegraphics-3.5.13-xpdf_disable_mkstemps.patch
Patch4: kdegraphics-3.5.13-kpovmodeler_missing_gl_ldflags.patch
# [kdegraphics] Fix compilation with GCC 4.7
Patch5: kdegraphics-3.5.13-fix_gcc47_compilation.patch
+# [kdegraphics] Fix FTBFS due to poppler-tqt
+Patch6: kdegraphics-3.5.13-fix_poppler_support.patch
+BuildRequires: cmake >= 2.8
BuildRequires: tqtinterface-devel
BuildRequires: trinity-kdelibs-devel
BuildRequires: trinity-kdebase-devel
@@ -75,16 +66,20 @@ BuildRequires: libXxf86vm-devel
BuildRequires: OpenEXR-devel
# kpdf
BuildRequires: freetype-devel
-BuildRequires: poppler-devel
-BuildRequires: poppler-qt3-devel >= 0.12
+%if 0%{?rhel} >=6 || 0%{?fedora} >= 15
+BuildRequires: poppler-devel >= 0.12
+BuildRequires: poppler-qt-devel >= 0.12
+%else
+BuildRequires: trinity-poppler-devel
+BuildRequires: trinity-poppler-qt3-devel >= 0.12
+%endif
+
BuildRequires: libpaper-devel
# ksvg
-%if 0%{?with_ksvg}
BuildRequires: fontconfig-devel
BuildRequires: lcms-devel
BuildRequires: libart_lgpl-devel
BuildRequires: libXmu-devel
-%endif
# kpovmodeler
BuildRequires: libGL-devel libGLU-devel libXi-devel
@@ -106,7 +101,7 @@ Conflicts: kdegraphics
%endif
%description
-Graphics applications for the K Desktop Environment, including
+Graphics applications for the Trinity Desktop Environment, including
* kamera (digital camera support)
* kcoloredit (palette editor and color chooser)
* kdvi (displays TeX .dvi files)
@@ -157,10 +152,13 @@ Requires: %{name} = %{version}-%{release}
%patch1 -p1
%patch2 -p1
%if 0%{?rhel} && 0%{?rhel} <= 5
-%patch3 -p1
+%patch3 -p1 -b .mkstemps
%endif
%patch4 -p1
%patch5 -p1 -b .gcc47
+%patch6 -p1 -b .poppler
+
+# Hardcoded path
%build
unset QTDIR || : ; . /etc/profile.d/qt.sh