diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2014-10-19 10:10:04 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2014-10-19 10:10:04 +0900 |
commit | ff3b9cbad7182856bb6fe35e950b40d2848e49e3 (patch) | |
tree | 2627a6db19152c8d87beed8ceb5887a1bf9b73e0 /redhat/tdegraphics | |
parent | bb1e02c097fa27c54e1723cf1640fd9abf8c2e80 (diff) | |
parent | b044078982873fc5e30a2bb79b4bcd65e5ae806a (diff) | |
download | tde-packaging-ff3b9cbad7182856bb6fe35e950b40d2848e49e3.tar.gz tde-packaging-ff3b9cbad7182856bb6fe35e950b40d2848e49e3.zip |
Merge branch 'master' of http://scm.trinitydesktop.org/scm/git/tde-packaging
Diffstat (limited to 'redhat/tdegraphics')
-rw-r--r-- | redhat/tdegraphics/tdegraphics-14.0.0.spec | 196 |
1 files changed, 94 insertions, 102 deletions
diff --git a/redhat/tdegraphics/tdegraphics-14.0.0.spec b/redhat/tdegraphics/tdegraphics-14.0.0.spec index 15eac88dd..221ccc61d 100644 --- a/redhat/tdegraphics/tdegraphics-14.0.0.spec +++ b/redhat/tdegraphics/tdegraphics-14.0.0.spec @@ -1,65 +1,79 @@ -# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". -%if "%{?tde_prefix}" != "/usr" -%define _variant .opt -%endif - +# +# spec file for package tdegraphics (version R14.0.0) +# +# Copyright (c) 2014 Trinity Desktop Environment +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. +# +# Please submit bugfixes or comments via http:/www.trinitydesktop.org/ +# + +# TDE variables +%define tde_epoch 2 %define tde_version 14.0.0 - -# TDE specific building variables +%define tde_pkg tdegraphics +%define tde_prefix /opt/trinity %define tde_bindir %{tde_prefix}/bin %define tde_datadir %{tde_prefix}/share %define tde_docdir %{tde_datadir}/doc %define tde_includedir %{tde_prefix}/include %define tde_libdir %{tde_prefix}/%{_lib} - %define tde_tdeappdir %{tde_datadir}/applications/tde %define tde_tdedocdir %{tde_docdir}/tde %define tde_tdeincludedir %{tde_includedir}/tde %define tde_tdelibdir %{tde_libdir}/trinity -%define _docdir %{tde_docdir} +# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". +%if "%{?tde_prefix}" != "/usr" +%define _variant .opt +%endif -Name: trinity-tdegraphics +Name: trinity-%{tde_pkg} Version: %{tde_version} Release: %{?!preversion:1}%{?preversion:0_%{preversion}}%{?dist}%{?_variant} - -License: GPL Summary: Trinity Desktop Environment - Graphics Applications - Group: Applications/Multimedia -Prefix: %{tde_prefix} - -Vendor: Trinity Project -Packager: Francois Andriot <francois.andriot@free.fr> URL: http://www.trinitydesktop.org/ +%if 0%{?suse_version} +License: GPL-2.0+ +%else +License: GPLv2+ +%endif + +#Vendor: Trinity Desktop +#Packager: Francois Andriot <francois.andriot@free.fr> + +Prefix: %{tde_prefix} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source0: %{name}-%{version}%{?preversion:~%{preversion}}.tar.gz -# TDE -## RHEL / Fedora specific patches -# [kdegraphics/kpdf/xpdf] Disable 'mkstemps' support for RHEL5 -Patch3: kdegraphics-3.5.13-xpdf_disable_mkstemps.patch - -# [tdegraphics] Fix build on RHEL4 -Patch201: kdegraphics-3.5.13.1-fix_rhel4_libraries.patch +BuildRequires: trinity-tdelibs-devel >= %{tde_version} +BuildRequires: trinity-tdebase-devel >= %{tde_version} BuildRequires: cmake >= 2.8 -BuildRequires: trinity-tqtinterface-devel >= %{version} -BuildRequires: trinity-tdelibs-devel >= %{version} -BuildRequires: trinity-tdebase-devel >= %{version} BuildRequires: gettext +BuildRequires: libtool + +# LIBUSB support +BuildRequires: libusb-devel + +# MNG support BuildRequires: libmng-devel -%if 0%{?mdkversion} && 0%{?pclinuxos} == 0 -BuildRequires: %{_lib}png15-devel -%else -BuildRequires: libpng-devel -%endif + +# TIFF support BuildRequires: libtiff-devel -BuildRequires: automake libtool -BuildRequires: libusb-devel + +# PCRE support BuildRequires: pcre-devel # GIF support @@ -102,76 +116,62 @@ BuildRequires: t1lib-devel %endif %endif -%if 0%{?mgaversion} || 0%{?mdkversion} -BuildRequires: %{_lib}sane1-devel -# kuickshow +# IMLIB1 support (kuickshow) #BuildRequires: %{_lib}imlib-devel -# kpovmodeler -BuildRequires: %{_lib}xi-devel -# kgamma -BuildRequires: %{_lib}xxf86vm-devel -# ksvg -%if 0%{?mgaversion} >= 4 -BuildRequires: %{_lib}xmu-devel -%else -BuildRequires: %{_lib}xmu%{?mgaversion:6}-devel -%endif -# kpovmodeler -BuildRequires: %{_lib}mesagl1-devel -BuildRequires: %{_lib}mesaglu1-devel -%else -BuildRequires: sane-backends-devel - -# kuickshow #BuildRequires: imlib-devel -%if 0%{?rhel} == 4 -BuildRequires: xorg-x11-devel -%else -BuildRequires: libdrm-devel - -# kpovmodeler -%if 0%{?suse_version} == 1140 -BuildRequires: libXi6-devel +# SANE support +%if 0%{?mgaversion} || 0%{?mdkversion} +BuildRequires: %{_lib}sane1-devel %else -BuildRequires: libXi-devel +BuildRequires: sane-backends-devel +%endif -# kgamma +# LIBXXF86VM support +%if 0%{?mgaversion} || 0%{?mdkversion} +BuildRequires: %{_lib}xxf86vm-devel +%endif +%if 0%{?rhel} || 0%{?fedora} || 0%{?suse_version} >= 1210 BuildRequires: libXxf86vm-devel %endif -# ksvg +# XMU support %if 0%{?suse_version} == 1140 BuildRequires: xorg-x11-libXmu-devel -%else -BuildRequires: libXmu-devel %endif +%if 0%{?rhel} || 0%{?fedora} || 0%{?suse_version} >= 1210 +BuildRequires: libXmu-devel +%endif +%if 0%{?mdkversion} || 0%{?mgaversion} >= 4 +BuildRequires: libxmu-devel +%endif +%if 0%{?mgaversion} == 2 || 0%{?mgaversion} == 3 +BuildRequires: %{_lib}xmu%{?mgaversion:6}-devel %endif -# kpovmodeler -%if 0%{?suse_version} -%if 0%{?suse_version} >= 1220 -BuildRequires: Mesa-libGL-devel -BuildRequires: Mesa-libGLU-devel -%else -BuildRequires: Mesa-devel +# MESA support +%if 0%{?rhel} || 0%{?fedora} +BuildRequires: mesa-libGL-devel +BuildRequires: mesa-libGLU-devel %endif -%else -BuildRequires: libGL-devel -BuildRequires: libGLU-devel +%if 0%{?mdkversion} || 0%{?mgaversion} +BuildRequires: mesaglu-devel %endif +%if 0%{?suse_version} +BuildRequires: Mesa-libGL-devel +BuildRequires: Mesa-libGLU-devel %endif -#kfile-plugin -BuildRequires: OpenEXR-devel - -# kpdf -%if 0%{?suse_version} == 1140 -BuildRequires: freetype2-devel +# DRM support +%if 0%{?rhel} == 4 +BuildRequires: xorg-x11-devel %else -BuildRequires: freetype-devel +BuildRequires: libdrm-devel %endif +# OPENEXR support +BuildRequires: OpenEXR-devel + # poppler %if 0%{?rhel} >=6 || 0%{?fedora} >= 15 || 0%{?suse_version} BuildRequires: poppler-devel >= 0.12 @@ -186,17 +186,14 @@ BuildRequires: trinity-poppler-devel >= 0.12 BuildRequires: trinity-poppler-qt3-devel >= 0.12 %endif -# ksvg -BuildRequires: fontconfig-devel +# LCMS support %if 0%{?suse_version} BuildRequires: liblcms-devel %else BuildRequires: lcms-devel %endif -BuildRequires: libart_lgpl-devel -# kuickshow -#define build_kuickshow 1 +# FRIBIDI support BuildRequires: fribidi-devel # kamera @@ -205,9 +202,12 @@ BuildRequires: fribidi-devel %endif # kmrml -#define build_kmrml 1 +%define build_kmrml 1 +%if 0%{?build_kmrml} #Requires: gift +%else Obsoletes: trinity-kmrml +%endif Obsoletes: trinity-kdegraphics < %{version}-%{release} Provides: trinity-kdegraphics = %{version}-%{release} @@ -295,9 +295,9 @@ update-desktop-database %{tde_datadir}/applications > /dev/null 2>&1 || : %{tde_tdelibdir}/tdeio_kamera.so %{tde_tdeappdir}/kamera.desktop %{tde_datadir}/icons/crystalsvg/*/actions/camera_test.png -%{tde_datadir}/icons/crystalsvg/*/apps/camera.png -%{tde_datadir}/icons/crystalsvg/*/devices/camera.png -%{tde_datadir}/icons/crystalsvg/*/places/camera.png +%{tde_datadir}/icons/crystalsvg/*/apps/camera-photo.png +%{tde_datadir}/icons/crystalsvg/*/devices/camera-photo.png +%{tde_datadir}/icons/crystalsvg/*/places/camera-photo.png %{tde_datadir}/services/camera.protocol %{tde_tdedocdir}/HTML/en/kamera/ %{tde_tdedocdir}/HTML/en/tdeioslave/camera/ @@ -767,7 +767,6 @@ update-desktop-database %{tde_datadir}/applications > /dev/null 2>&1 || : %package -n trinity-kpdf Summary: PDF viewer for Trinity Group: Applications/Graphics -#Recommends: kghostview-trinity (= ${binary:Version}) %description -n trinity-kpdf KPDF allows you to view PDF (Portable Document Format) files. This package @@ -1265,18 +1264,11 @@ Requires: trinity-libpoppler-tqt-devel = %{version}-%{release} %prep %setup -q -n %{name}-%{version}%{?preversion:~%{preversion}} -%if 0%{?rhel} && 0%{?rhel} <= 5 -%patch3 -p1 -b .mkstemps -%endif - -%if 0%{?rhel} == 4 -%patch201 -p1 -b .rhel4 -%endif - %if 0%{?build_kamera} == 0 %__rm -rf doc/kamera/ %endif + %build unset QTDIR QTINC QTLIB export PATH="%{tde_bindir}:${PATH}" |