You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
684 lines
18 KiB
684 lines
18 KiB
10 years ago
|
#
|
||
10 years ago
|
# spec file for package tdelibs (version R14.0.0)
|
||
10 years ago
|
#
|
||
10 years ago
|
# Copyright (c) 2014 Trinity Desktop Environment
|
||
10 years ago
|
#
|
||
|
# 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/
|
||
|
#
|
||
|
|
||
|
# BUILD WARNING:
|
||
|
# Remove qt-devel and qt3-devel and any kde*-devel on your system !
|
||
|
# Having KDE libraries may cause FTBFS here !
|
||
12 years ago
|
|
||
10 years ago
|
# TDE variables
|
||
10 years ago
|
%define tde_epoch 2
|
||
12 years ago
|
%define tde_version 14.0.0
|
||
10 years ago
|
%define tde_pkg tdelibs
|
||
10 years ago
|
%define tde_prefix /opt/trinity
|
||
12 years ago
|
%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}
|
||
10 years ago
|
%define tde_tdeappdir %{tde_datadir}/applications/tde
|
||
12 years ago
|
%define tde_tdedocdir %{tde_docdir}/tde
|
||
|
%define tde_tdeincludedir %{tde_includedir}/tde
|
||
|
%define tde_tdelibdir %{tde_libdir}/trinity
|
||
|
|
||
10 years ago
|
# 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
|
||
|
|
||
|
|
||
10 years ago
|
Name: trinity-%{tde_pkg}
|
||
11 years ago
|
Version: %{tde_version}
|
||
|
Release: %{?!preversion:1}%{?preversion:0_%{preversion}}%{?dist}%{?_variant}
|
||
|
Summary: TDE Libraries
|
||
10 years ago
|
Group: System/GUI/Other
|
||
11 years ago
|
URL: http://www.trinitydesktop.org/
|
||
12 years ago
|
|
||
10 years ago
|
%if 0%{?suse_version}
|
||
10 years ago
|
License: GPL-2.0+
|
||
10 years ago
|
%else
|
||
10 years ago
|
License: GPLv2+
|
||
10 years ago
|
%endif
|
||
|
|
||
10 years ago
|
#Vendor: Trinity Desktop
|
||
10 years ago
|
#Packager: Francois Andriot <francois.andriot@free.fr>
|
||
|
|
||
11 years ago
|
Prefix: %{tde_prefix}
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||
12 years ago
|
|
||
11 years ago
|
Source0: %{name}-%{version}%{?preversion:~%{preversion}}.tar.gz
|
||
10 years ago
|
Source1: trinity-tdelibs-rpmlintrc
|
||
12 years ago
|
|
||
11 years ago
|
Obsoletes: tdelibs < %{version}-%{release}
|
||
|
Provides: tdelibs = %{version}-%{release}
|
||
|
Obsoletes: trinity-kdelibs < %{version}-%{release}
|
||
|
Provides: trinity-kdelibs = %{version}-%{release}
|
||
|
Obsoletes: trinity-kdelibs-apidocs < %{version}-%{release}
|
||
|
Provides: trinity-kdelibs-apidocs = %{version}-%{release}
|
||
12 years ago
|
|
||
10 years ago
|
# for set_permissions macro
|
||
|
%if 0%{?suse_version}
|
||
|
PreReq: permissions
|
||
|
%endif
|
||
|
|
||
|
# Trinity dependencies
|
||
10 years ago
|
BuildRequires: libtqt4-devel = %{tde_epoch}:4.2.0
|
||
|
BuildRequires: trinity-arts-devel >= %{tde_epoch}:1.5.10
|
||
|
BuildRequires: libdbus-tqt-1-devel >= %{tde_epoch}:0.63
|
||
|
BuildRequires: libdbus-1-tqt-devel >= %{tde_epoch}:0.9
|
||
10 years ago
|
BuildRequires: trinity-filesystem >= %{tde_version}
|
||
10 years ago
|
|
||
10 years ago
|
Requires: trinity-arts >= %{tde_epoch}:1.5.10
|
||
10 years ago
|
Requires: trinity-filesystem >= %{tde_version}
|
||
10 years ago
|
Requires: fileshareset >= 2.0
|
||
10 years ago
|
|
||
12 years ago
|
BuildRequires: cmake >= 2.8
|
||
10 years ago
|
BuildRequires: gcc-c++
|
||
|
BuildRequires: pkgconfig
|
||
10 years ago
|
BuildRequires: fdupes
|
||
10 years ago
|
|
||
10 years ago
|
# SUSE desktop files utility
|
||
|
%if 0%{?suse_version}
|
||
|
BuildRequires: update-desktop-files
|
||
10 years ago
|
%endif
|
||
|
|
||
10 years ago
|
%if 0%{?opensuse_bs} && 0%{?suse_version}
|
||
10 years ago
|
# for xdg-menu script
|
||
|
BuildRequires: brp-check-trinity
|
||
10 years ago
|
%endif
|
||
|
|
||
|
# KRB5 support
|
||
12 years ago
|
BuildRequires: krb5-devel
|
||
10 years ago
|
|
||
|
# XSLT support
|
||
12 years ago
|
BuildRequires: libxslt-devel
|
||
10 years ago
|
|
||
|
# ALSA support
|
||
12 years ago
|
BuildRequires: alsa-lib-devel
|
||
10 years ago
|
|
||
|
# IDN support
|
||
12 years ago
|
BuildRequires: libidn-devel
|
||
10 years ago
|
|
||
|
# CUPS support
|
||
|
BuildRequires: cups-devel
|
||
|
|
||
|
# TIFF support
|
||
12 years ago
|
BuildRequires: libtiff-devel
|
||
10 years ago
|
|
||
10 years ago
|
# OPENSSL support
|
||
|
BuildRequires: openssl-devel
|
||
|
|
||
10 years ago
|
# GLIB2 support
|
||
12 years ago
|
BuildRequires: glib2-devel
|
||
10 years ago
|
|
||
12 years ago
|
# LUA support are not ready yet
|
||
|
#BuildRequires: lua-devel
|
||
|
|
||
12 years ago
|
# LIBART_LGPL support
|
||
10 years ago
|
BuildRequires: libart_lgpl-devel
|
||
12 years ago
|
|
||
12 years ago
|
# ASPELL support
|
||
|
BuildRequires: aspell
|
||
|
BuildRequires: aspell-devel
|
||
|
|
||
|
# GAMIN support
|
||
|
# Not on openSUSE.
|
||
|
%if 0%{?rhel} || 0%{?fedora} || 0%{?mgaversion} || 0%{?mdkversion}
|
||
|
%define with_gamin 1
|
||
|
BuildRequires: gamin-devel
|
||
|
%endif
|
||
|
|
||
|
# PCRE support
|
||
|
%if 0%{?rhel} >=5 || 0%{?fedora} || 0%{?mgaversion} || 0%{?mdkversion} || 0%{?suse_version}
|
||
|
%define with_pcre 1
|
||
|
BuildRequires: pcre-devel
|
||
|
%endif
|
||
|
|
||
|
# INOTIFY support
|
||
|
%if 0%{?rhel} >=5 || 0%{?fedora} || 0%{?mgaversion} || 0%{?mdkversion} || 0%{?suse_version}
|
||
|
%define with_inotify 1
|
||
|
%endif
|
||
|
|
||
|
# BZIP2 support
|
||
|
%if 0%{?suse_version}
|
||
|
BuildRequires: libbz2-devel
|
||
|
%else
|
||
|
BuildRequires: bzip2-devel
|
||
|
%endif
|
||
|
|
||
|
# UTEMPTER support
|
||
|
%if 0%{?rhel} >=5 || 0%{?fedora} || 0%{?mgaversion} || 0%{?mdkversion}
|
||
|
BuildRequires: libutempter-devel
|
||
|
%endif
|
||
|
%if 0%{?rhel} == 4
|
||
|
BuildRequires: utempter
|
||
|
%endif
|
||
|
%if 0%{?suse_version}
|
||
|
BuildRequires: utempter-devel
|
||
|
%endif
|
||
|
|
||
|
# HSPELL support
|
||
|
%if 0%{?rhel} >=5 || 0%{?fedora} || 0%{?mgaversion} || 0%{?mdkversion}
|
||
|
%define with_hspell 1
|
||
|
BuildRequires: hspell-devel
|
||
|
%endif
|
||
|
|
||
|
# JASPER support
|
||
|
%if 0%{?rhel} >=5 || 0%{?fedora} || 0%{?mgaversion} || 0%{?mdkversion} || 0%{?suse_version}
|
||
|
%define with_jasper 1
|
||
|
%if 0%{?suse_version}
|
||
|
BuildRequires: libjasper-devel
|
||
|
%endif
|
||
|
%if 0%{?mgaversion} || 0%{?mdkversion}
|
||
|
BuildRequires: %{_lib}jasper-devel
|
||
|
%endif
|
||
|
%if 0%{?rhel} || 0%{?fedora}
|
||
|
BuildRequires: jasper-devel
|
||
|
%endif
|
||
|
%endif
|
||
|
|
||
|
# AVAHI support
|
||
|
%if 0%{?rhel} >=5 || 0%{?fedora} || 0%{?mgaversion} || 0%{?mdkversion} || 0%{?suse_version}
|
||
|
%define with_avahi 1
|
||
10 years ago
|
BuildRequires: libavahi-tqt-devel >= 1:0.6.30
|
||
12 years ago
|
%if 0%{?mgaversion} || 0%{?mdkversion}
|
||
|
BuildRequires: %{_lib}avahi-client-devel
|
||
|
Requires: %{_lib}avahi-client3
|
||
|
%endif
|
||
|
%if 0%{?rhel} >= 5 || 0%{?fedora} || 0%{?suse_version}
|
||
|
BuildRequires: avahi-devel
|
||
|
Requires: avahi
|
||
|
%endif
|
||
|
%endif
|
||
|
|
||
|
# OPENEXR support
|
||
|
%if 0%{?rhel} >=5 || 0%{?fedora} || 0%{?mgaversion} || 0%{?mdkversion} || 0%{?suse_version}
|
||
|
%define with_openexr 1
|
||
|
BuildRequires: OpenEXR-devel
|
||
|
%endif
|
||
|
|
||
|
# LIBTOOL
|
||
10 years ago
|
BuildRequires: libtool
|
||
12 years ago
|
%if 0%{?mgaversion} || 0%{?mdkversion}
|
||
|
BuildRequires: %{_lib}ltdl-devel
|
||
|
%endif
|
||
|
%if 0%{?rhel} >= 5 || 0%{?fedora} || 0%{?suse_version} >= 1220
|
||
|
BuildRequires: libtool-ltdl-devel
|
||
|
%endif
|
||
|
|
||
10 years ago
|
# X11 support
|
||
|
%if 0%{?mgaversion} || 0%{?mdkversion}
|
||
|
BuildRequires: x11-proto-devel
|
||
|
%endif
|
||
|
%if 0%{?rhel} >= 5 || 0%{?fedora} || 0%{?suse_version}
|
||
|
BuildRequires: xorg-x11-proto-devel
|
||
|
%endif
|
||
12 years ago
|
%if 0%{?rhel} == 4
|
||
|
BuildRequires: xorg-x11-devel
|
||
|
%endif
|
||
|
|
||
|
# ICEAUTH
|
||
|
%if 0%{?mgaversion} || 0%{?mdkversion} || 0%{?suse_version} >= 1220
|
||
|
Requires: iceauth
|
||
|
%endif
|
||
|
%if 0%{?rhel} >= 5 || 0%{?fedora}
|
||
|
Requires: xorg-x11-server-utils
|
||
|
%endif
|
||
|
%if 0%{?rhel} == 4 || 0%{?suse_version}
|
||
|
Requires: xorg-x11
|
||
|
%endif
|
||
|
|
||
|
# XZ support
|
||
|
%if 0%{?mgaversion} || 0%{?mdkversion} || 0%{?rhel} >= 5 || 0%{?fedora} || 0%{?suse_version}
|
||
|
%define with_lzma 1
|
||
|
%if 0%{?mgaversion} || 0%{?mdkversion}
|
||
|
BuildRequires: %{_lib}lzma-devel
|
||
|
%endif
|
||
|
%if 0%{?rhel} >= 5 || 0%{?fedora} || 0%{?suse_version}
|
||
|
BuildRequires: xz-devel
|
||
|
%endif
|
||
|
%endif
|
||
|
|
||
10 years ago
|
# Certificates support
|
||
10 years ago
|
%if 0%{?fedora} == 18 || 0%{?fedora} == 19
|
||
11 years ago
|
%define cacert %{_sysconfdir}/ssl/certs/ca-certificates.crt
|
||
10 years ago
|
BuildRequires: ca-certificates
|
||
12 years ago
|
Requires: ca-certificates
|
||
12 years ago
|
%endif
|
||
10 years ago
|
%if 0%{?mgaversion} || 0%{?mdkversion} || 0%{?rhel} >= 6 || 0%{?fedora} >= 20
|
||
11 years ago
|
%define cacert %{_sysconfdir}/ssl/certs/ca-bundle.crt
|
||
|
Requires: openssl
|
||
|
%endif
|
||
|
%if 0%{?rhel} == 5
|
||
|
%define cacert %{_sysconfdir}/pki/tls/certs/ca-bundle.crt
|
||
12 years ago
|
Requires: openssl
|
||
|
%endif
|
||
10 years ago
|
%if 0%{?suse_version}
|
||
|
%define cacert %{_sysconfdir}/ssl/ca-bundle.pem
|
||
|
BuildRequires: ca-certificates
|
||
|
Requires: ca-certificates
|
||
|
%endif
|
||
10 years ago
|
%if "%{cacert}" != ""
|
||
|
Requires: %{cacert}
|
||
|
%endif
|
||
12 years ago
|
|
||
11 years ago
|
# XRANDR support
|
||
|
# On RHEL5, xrandr library is too old.
|
||
|
%if 0%{?fedora} >= 15 || 0%{?mgaversion} || 0%{?mdkversion} || 0%{?rhel} >= 6 || 0%{?suse_version}
|
||
|
%define with_xrandr 1
|
||
|
%endif
|
||
|
|
||
10 years ago
|
# XCOMPOSITE support
|
||
|
%if 0%{?mgaversion} || 0%{?mdkversion}
|
||
|
%if 0%{?mgaversion} >= 4
|
||
|
%define xcomposite_devel %{_lib}xcomposite-devel
|
||
|
%else
|
||
|
%define xcomposite_devel %{_lib}xcomposite%{?mgaversion:1}-devel
|
||
|
%endif
|
||
|
%endif
|
||
|
%if 0%{?rhel} >= 5 || 0%{?fedora} || 0%{?suse_version} >= 1220
|
||
|
%define xcomposite_devel libXcomposite-devel
|
||
|
%endif
|
||
|
%{?xcomposite_devel:BuildRequires: %{xcomposite_devel}}
|
||
|
|
||
10 years ago
|
# XT support
|
||
|
%if 0%{?rhel} || 0%{?fedora} || 0%{?suse_version}
|
||
10 years ago
|
%define xt_devel libXt-devel
|
||
10 years ago
|
%endif
|
||
10 years ago
|
%{?xt_devel:BuildRequires: %{xt_devel}}
|
||
10 years ago
|
|
||
10 years ago
|
### New features in TDE R14
|
||
|
|
||
10 years ago
|
# LIBMAGIC support
|
||
10 years ago
|
%if 0%{?rhel} == 5
|
||
|
BuildRequires: file
|
||
|
%else
|
||
10 years ago
|
BuildRequires: file-devel
|
||
10 years ago
|
%endif
|
||
12 years ago
|
|
||
10 years ago
|
# NETWORKMANAGER support
|
||
|
%if 0%{?mgaversion} || 0%{?mdkversion} || 0%{?rhel} >= 6 || 0%{?fedora} || 0%{?suse_version}
|
||
|
%define with_nm 1
|
||
|
%if 0%{?mgaversion} || 0%{?mdkversion}
|
||
|
BuildRequires: %{_lib}nm-util-devel
|
||
|
%endif
|
||
|
%if 0%{?rhel} >= 6 || 0%{?fedora}
|
||
|
BuildRequires: NetworkManager-glib-devel
|
||
|
%endif
|
||
|
%if 0%{?suse_version}
|
||
|
BuildRequires: NetworkManager-devel
|
||
|
%endif
|
||
|
%endif
|
||
|
|
||
|
# UDEV support
|
||
|
%if 0%{?fedora} || 0%{?mdkversion} || 0%{?mgaversion} || 0%{?suse_version} || 0%{?rhel} >= 6
|
||
|
%define with_tdehwlib 1
|
||
|
BuildRequires: libudev-devel
|
||
|
%endif
|
||
|
|
||
|
# HAL support
|
||
|
%if 0%{?rhel} == 5
|
||
|
%define with_hal 1
|
||
|
%endif
|
||
|
|
||
|
# UDISKS support
|
||
|
%if 0%{?fedora} || 0%{?mdkversion} || 0%{?mgaversion} || 0%{?suse_version} || 0%{?rhel} == 6
|
||
|
%define with_udisks 1
|
||
|
BuildRequires: udisks-devel
|
||
|
Requires: udisks
|
||
|
%endif
|
||
|
|
||
|
# PMOUNT support
|
||
|
#Requires: pmount
|
||
|
|
||
|
# 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
|
||
|
BuildRequires: libudisks2-devel
|
||
|
%else
|
||
|
BuildRequires: udisks2-devel
|
||
|
%endif
|
||
|
Requires: udisks2
|
||
|
%endif
|
||
|
|
||
|
# DEVICEKIT POWER support
|
||
|
%if 0%{?rhel} == 6
|
||
|
%define with_devkitpower 1
|
||
|
Requires: DeviceKit-power
|
||
|
%endif
|
||
|
|
||
|
# UPOWER support
|
||
|
%if 0%{?fedora} || 0%{?suse_version} || 0%{?mdkversion} || 0%{?mgaversion} || 0%{?rhel} >= 7
|
||
|
%define with_upower 1
|
||
|
Requires: upower
|
||
|
%endif
|
||
|
|
||
|
# SYSTEMD support
|
||
|
%if 0%{?fedora} || 0%{?suse_version} || 0%{?mdkversion} || 0%{?mgaversion} || 0%{?rhel} >= 7
|
||
|
%define with_systemd 1
|
||
|
%endif
|
||
|
|
||
12 years ago
|
|
||
12 years ago
|
%description
|
||
|
Libraries for the Trinity Desktop Environment:
|
||
11 years ago
|
TDE Libraries included: tdecore (TDE core library), tdeui (user interface),
|
||
|
kfm (file manager), tdehtmlw (HTML widget), tdeio (Input/Output, networking),
|
||
12 years ago
|
kspell (spelling checker), jscript (javascript), kab (addressbook),
|
||
|
kimgio (image manipulation).
|
||
|
|
||
|
%files
|
||
|
%defattr(-,root,root,-)
|
||
|
%doc AUTHORS COPYING COPYING-DOCS COPYING.LIB README TODO
|
||
|
%{tde_bindir}/artsmessage
|
||
|
%{tde_bindir}/cupsdconf
|
||
|
%{tde_bindir}/cupsdoprint
|
||
|
%{tde_bindir}/dcop
|
||
|
%{tde_bindir}/dcopclient
|
||
|
%{tde_bindir}/dcopfind
|
||
|
%{tde_bindir}/dcopobject
|
||
|
%{tde_bindir}/dcopquit
|
||
|
%{tde_bindir}/dcopref
|
||
|
%{tde_bindir}/dcopserver
|
||
|
%{tde_bindir}/dcopserver_shutdown
|
||
|
%{tde_bindir}/dcopstart
|
||
|
%{tde_bindir}/imagetops
|
||
|
%{tde_bindir}/tdeab2tdeabc
|
||
|
%{tde_bindir}/kaddprinterwizard
|
||
|
%{tde_bindir}/tdebuildsycoca
|
||
|
%{tde_bindir}/tdecmshell
|
||
|
%{tde_bindir}/tdeconf_update
|
||
|
%{tde_bindir}/kcookiejar
|
||
12 years ago
|
%{tde_bindir}/tde-config
|
||
|
%{tde_bindir}/tde-menu
|
||
12 years ago
|
%{tde_bindir}/kded
|
||
12 years ago
|
%{tde_bindir}/tdeinit
|
||
|
%{tde_bindir}/tdeinit_shutdown
|
||
|
%{tde_bindir}/tdeinit_wrapper
|
||
|
%{tde_bindir}/tdesu_stub
|
||
12 years ago
|
%{tde_bindir}/kdetcompmgr
|
||
|
%{tde_bindir}/kdontchangethehostname
|
||
|
%{tde_bindir}/tdedostartupconfig
|
||
|
%{tde_bindir}/tdefile
|
||
|
%{tde_bindir}/kfmexec
|
||
|
%{tde_bindir}/tdehotnewstuff
|
||
|
%{tde_bindir}/kinstalltheme
|
||
|
%{tde_bindir}/tdeio_http_cache_cleaner
|
||
|
%{tde_bindir}/tdeio_uiserver
|
||
|
%{tde_bindir}/tdeioexec
|
||
|
%{tde_bindir}/tdeioslave
|
||
11 years ago
|
%{tde_bindir}/tdeiso_info
|
||
12 years ago
|
%{tde_bindir}/tdelauncher
|
||
12 years ago
|
%if 0%{?with_elficon}
|
||
|
%{tde_bindir}/tdelfeditor
|
||
|
%endif
|
||
12 years ago
|
%{tde_bindir}/tdemailservice
|
||
|
%{tde_bindir}/tdemimelist
|
||
|
%{tde_bindir}/tdesendbugmail
|
||
|
%{tde_bindir}/kshell
|
||
|
%{tde_bindir}/tdestartupconfig
|
||
|
%{tde_bindir}/tdetelnetservice
|
||
|
%{tde_bindir}/tdetradertest
|
||
|
%{tde_bindir}/kwrapper
|
||
|
%{tde_bindir}/lnusertemp
|
||
|
%{tde_bindir}/make_driver_db_cups
|
||
|
%{tde_bindir}/make_driver_db_lpr
|
||
|
%{tde_bindir}/meinproc
|
||
|
%{tde_bindir}/networkstatustestservice
|
||
12 years ago
|
%{tde_bindir}/start_tdeinit_wrapper
|
||
12 years ago
|
%{tde_bindir}/checkXML
|
||
|
%{tde_bindir}/ksvgtopng
|
||
|
%{tde_bindir}/tdeunittestmodrunner
|
||
|
%{tde_bindir}/preparetips
|
||
|
%{tde_tdelibdir}/*
|
||
|
%{tde_libdir}/lib*.so.*
|
||
12 years ago
|
%{tde_libdir}/libtdeinit_*.la
|
||
|
%{tde_libdir}/libtdeinit_*.so
|
||
|
%{tde_datadir}/applications/tde/*.desktop
|
||
12 years ago
|
%{tde_datadir}/autostart/tdeab2tdeabc.desktop
|
||
|
%{tde_datadir}/applnk/tdeio_iso.desktop
|
||
|
%{tde_datadir}/apps/*
|
||
|
%exclude %{tde_datadir}/apps/ksgmltools2/
|
||
10 years ago
|
%{tde_datadir}/config/*
|
||
12 years ago
|
%{tde_datadir}/emoticons/*
|
||
|
%{tde_datadir}/icons/crystalsvg/
|
||
|
%{tde_datadir}/icons/default.tde
|
||
|
%{tde_datadir}/icons/hicolor/index.theme
|
||
|
%{tde_datadir}/locale/all_languages
|
||
|
%{tde_datadir}/mimelnk/*/*.desktop
|
||
|
%{tde_datadir}/services/*
|
||
|
%{tde_datadir}/servicetypes/*
|
||
|
%{tde_tdedocdir}/HTML/en/common/*
|
||
|
%{tde_tdedocdir}/HTML/en/tdespell/
|
||
|
|
||
10 years ago
|
# Some setuid binaries need special care
|
||
|
%if 0%{?suse_version}
|
||
|
%verify(not mode) %{tde_bindir}/kgrantpty
|
||
|
%verify(not mode) %{tde_bindir}/kpac_dhcp_helper
|
||
|
%verify(not mode) %{tde_bindir}/start_tdeinit
|
||
|
%else
|
||
|
%attr(4755,root,root) %{tde_bindir}/kgrantpty
|
||
|
%attr(4755,root,root) %{tde_bindir}/kpac_dhcp_helper
|
||
|
%attr(4711,root,root) %{tde_bindir}/start_tdeinit
|
||
|
%endif
|
||
|
|
||
|
%config %{_sysconfdir}/xdg/menus/tde-applications.menu
|
||
|
%config %{_sysconfdir}/xdg/menus/tde-applications.menu-no-kde
|
||
10 years ago
|
|
||
|
# DBUS stuff, related to TDE hwlib
|
||
|
%if 0%{?with_tdehwlib}
|
||
|
%{tde_bindir}/tde_dbus_hardwarecontrol
|
||
10 years ago
|
%config %{_sysconfdir}/dbus-1/system.d/org.trinitydesktop.hardwarecontrol.conf
|
||
12 years ago
|
%{_datadir}/dbus-1/system-services/org.trinitydesktop.hardwarecontrol.service
|
||
10 years ago
|
%endif
|
||
12 years ago
|
|
||
|
%pre
|
||
|
# TDE Bug #1074
|
||
|
if [ -d "%{tde_datadir}/locale/all_languages" ]; then
|
||
|
rm -rf "%{tde_datadir}/locale/all_languages"
|
||
|
fi
|
||
|
|
||
|
%post
|
||
|
/sbin/ldconfig || :
|
||
|
|
||
10 years ago
|
%if 0%{?suse_version}
|
||
|
# Sets permissions on setuid files (openSUSE specific)
|
||
|
%set_permissions %{tde_bindir}/kgrantpty
|
||
|
%set_permissions %{tde_bindir}/kpac_dhcp_helper
|
||
|
%set_permissions %{tde_bindir}/start_tdeinit
|
||
|
%endif
|
||
|
|
||
12 years ago
|
%postun
|
||
|
/sbin/ldconfig || :
|
||
|
|
||
|
##########
|
||
|
|
||
|
%package devel
|
||
10 years ago
|
Summary: TDE Libraries (Development files)
|
||
|
Group: Development/Libraries/X11
|
||
12 years ago
|
Requires: %{name} = %{version}-%{release}
|
||
|
|
||
|
Obsoletes: tdelibs-devel < %{version}-%{release}
|
||
|
Provides: tdelibs-devel = %{version}-%{release}
|
||
|
Obsoletes: trinity-kdelibs-devel < %{version}-%{release}
|
||
|
Provides: trinity-kdelibs-devel = %{version}-%{release}
|
||
|
|
||
10 years ago
|
Requires: libtqt3-mt-devel >= 3.5.0
|
||
10 years ago
|
Requires: libtqt4-devel = %{tde_epoch}:4.2.0
|
||
|
Requires: trinity-arts-devel >= %{tde_epoch}:1.5.10
|
||
10 years ago
|
Requires: libart_lgpl-devel
|
||
10 years ago
|
%{?xcomposite_devel:Requires: %{xcomposite_devel}}
|
||
|
%{?xt_devel:Requires: %{xt_devel}}
|
||
10 years ago
|
|
||
12 years ago
|
%description devel
|
||
|
This package includes the header files you will need to compile
|
||
|
applications for TDE.
|
||
|
|
||
|
%files devel
|
||
|
%defattr(-,root,root,-)
|
||
|
%{tde_bindir}/dcopidl*
|
||
|
%{tde_bindir}/*config_compiler
|
||
12 years ago
|
%{tde_bindir}/maketdewidgets
|
||
12 years ago
|
%{tde_datadir}/apps/ksgmltools2/
|
||
|
%{tde_tdeincludedir}/*
|
||
|
%{tde_libdir}/*.la
|
||
|
%{tde_libdir}/*.so
|
||
|
%{tde_libdir}/*.a
|
||
12 years ago
|
%exclude %{tde_libdir}/libtdeinit_*.la
|
||
|
%exclude %{tde_libdir}/libtdeinit_*.so
|
||
|
%{tde_datadir}/cmake/tdelibs.cmake
|
||
12 years ago
|
%{tde_libdir}/pkgconfig/tdelibs.pc
|
||
12 years ago
|
|
||
|
%post devel
|
||
|
/sbin/ldconfig || :
|
||
|
|
||
|
%postun devel
|
||
|
/sbin/ldconfig || :
|
||
|
|
||
|
##########
|
||
|
|
||
10 years ago
|
%if 0%{?pclinuxos} || 0%{?suse_version} && 0%{?opensuse_bs} == 0
|
||
12 years ago
|
%debug_package
|
||
|
%endif
|
||
|
|
||
|
##########
|
||
|
|
||
|
%prep
|
||
|
%setup -q -n %{name}-%{version}%{?preversion:~%{preversion}}
|
||
12 years ago
|
|
||
12 years ago
|
|
||
|
%build
|
||
12 years ago
|
unset QTDIR QTINC QTLIB
|
||
12 years ago
|
export PATH="%{tde_bindir}:${PATH}"
|
||
|
export PKG_CONFIG_PATH="%{tde_libdir}/pkgconfig"
|
||
10 years ago
|
|
||
|
if [ -d "/usr/X11R6" ]; then
|
||
|
export RPM_OPT_FLAGS="${RPM_OPT_FLAGS} -L/usr/X11R6/%{_lib} -I/usr/X11R6/include"
|
||
|
fi
|
||
|
|
||
10 years ago
|
export TDEDIR="%{tde_prefix}"
|
||
12 years ago
|
|
||
11 years ago
|
if ! rpm -E %%cmake|grep -q "cd build"; then
|
||
|
%__mkdir_p build
|
||
|
cd build
|
||
|
fi
|
||
12 years ago
|
|
||
|
%cmake \
|
||
12 years ago
|
-DCMAKE_BUILD_TYPE="RelWithDebInfo" \
|
||
|
-DCMAKE_C_FLAGS="${RPM_OPT_FLAGS} -DNDEBUG" \
|
||
|
-DCMAKE_CXX_FLAGS="${RPM_OPT_FLAGS} -DNDEBUG" \
|
||
12 years ago
|
-DCMAKE_SKIP_RPATH=OFF \
|
||
12 years ago
|
-DCMAKE_INSTALL_RPATH="%{tde_libdir}" \
|
||
10 years ago
|
-DCMAKE_NO_BUILTIN_CHRPATH=ON \
|
||
12 years ago
|
-DCMAKE_VERBOSE_MAKEFILE=ON \
|
||
12 years ago
|
-DWITH_GCC_VISIBILITY=ON \
|
||
12 years ago
|
\
|
||
12 years ago
|
-DCMAKE_INSTALL_PREFIX="%{tde_prefix}" \
|
||
|
-DBIN_INSTALL_DIR="%{tde_bindir}" \
|
||
|
-DDOC_INSTALL_DIR="%{tde_docdir}" \
|
||
|
-DINCLUDE_INSTALL_DIR="%{tde_tdeincludedir}" \
|
||
|
-DLIB_INSTALL_DIR="%{tde_libdir}" \
|
||
|
-DPKGCONFIG_INSTALL_DIR="%{tde_libdir}/pkgconfig" \
|
||
|
-DSHARE_INSTALL_PREFIX="%{tde_datadir}" \
|
||
12 years ago
|
\
|
||
12 years ago
|
-DWITH_ALL_OPTIONS=ON \
|
||
12 years ago
|
-DWITH_ARTS=ON \
|
||
|
-DWITH_ALSA=ON \
|
||
|
-DWITH_LIBART=ON \
|
||
|
-DWITH_LIBIDN=ON \
|
||
|
-DWITH_SSL=ON \
|
||
|
-DWITH_CUPS=ON \
|
||
|
-DWITH_LUA=OFF \
|
||
|
-DWITH_TIFF=ON \
|
||
11 years ago
|
%{?!with_jasper:-DWITH_JASPER=OFF} \
|
||
|
%{?!with_openexr:-DWITH_OPENEXR=OFF} \
|
||
12 years ago
|
-DWITH_UTEMPTER=ON \
|
||
12 years ago
|
%{?!with_elficon:-DWITH_ELFICON=OFF} \
|
||
11 years ago
|
%{?!with_avahi:-DWITH_AVAHI=OFF} \
|
||
12 years ago
|
%{?!with_pcre:-DWITH_PCRE=OFF} \
|
||
|
%{?!with_inotify:-DWITH_INOTIFY=OFF} \
|
||
12 years ago
|
%{?!with_gamin:-DWITH_GAMIN=OFF} \
|
||
10 years ago
|
%{?!with_tdehwlib:-DWITH_TDEHWLIB=OFF} \
|
||
11 years ago
|
%{?!with_tdehwlib:-DWITH_TDEHWLIB_DAEMONS=OFF} \
|
||
11 years ago
|
%{?with_hal:-DWITH_HAL=ON} \
|
||
12 years ago
|
%{?with_devkitpower:-DWITH_DEVKITPOWER=ON} \
|
||
11 years ago
|
%{?with_systemd:-DWITH_LOGINDPOWER=ON} \
|
||
12 years ago
|
%{?!with_upower:-DWITH_UPOWER=OFF} \
|
||
|
%{?!with_udisks:-DWITH_UDISKS=OFF} \
|
||
12 years ago
|
%{?!with_udisks2:-DWITH_UDISKS2=OFF} \
|
||
12 years ago
|
-DWITH_CONSOLEKIT=ON \
|
||
|
%{?with_nm:-DWITH_NETWORK_MANAGER_BACKEND=ON} \
|
||
|
-DWITH_SUDO_TDESU_BACKEND=OFF \
|
||
|
-DWITH_OLD_XDG_STD=OFF \
|
||
12 years ago
|
%{?!with_lzma:-DWITH_LZMA=OFF} \
|
||
11 years ago
|
-DWITH_LIBBFD=OFF \
|
||
11 years ago
|
%{?!with_xrandr:-DWITH_XRANDR=OFF} \
|
||
10 years ago
|
-DWITH_XCOMPOSITE=ON \
|
||
11 years ago
|
-DWITH_KDE4_MENU_SUFFIX=OFF \
|
||
11 years ago
|
\
|
||
12 years ago
|
-DWITH_ASPELL=ON \
|
||
11 years ago
|
%{?!with_hspell:-DWITH_HSPELL=OFF} \
|
||
11 years ago
|
-DWITH_TDEICONLOADER_DEBUG=OFF \
|
||
10 years ago
|
..
|
||
12 years ago
|
|
||
|
%__make %{?_smp_mflags} || %__make
|
||
|
|
||
|
|
||
|
%install
|
||
|
%__rm -rf "%{?buildroot}"
|
||
|
%__make install DESTDIR="%{?buildroot}" -C build
|
||
|
|
||
10 years ago
|
# Use system-wide CA certificates
|
||
12 years ago
|
%if "%{?cacert}" != ""
|
||
12 years ago
|
%__rm -f "%{?buildroot}%{tde_datadir}/apps/kssl/ca-bundle.crt"
|
||
12 years ago
|
%__ln_s "%{cacert}" "%{?buildroot}%{tde_datadir}/apps/kssl/ca-bundle.crt"
|
||
12 years ago
|
%endif
|
||
|
|
||
10 years ago
|
# Symlinks duplicate files (mostly under 'ksgmltools2')
|
||
|
%fdupes -s "%{?buildroot}"
|
||
|
|
||
|
# Fix 'tderesources.desktop' (openSUSE only)
|
||
|
%if 0%{?suse_version}
|
||
|
%suse_update_desktop_file -r tderesources Qt X-TDE-settings-desktop
|
||
|
%endif
|
||
|
|
||
10 years ago
|
# Remove setuid bit on some binaries.
|
||
10 years ago
|
chmod 0755 "%{?buildroot}%{tde_bindir}/kgrantpty"
|
||
|
chmod 0755 "%{?buildroot}%{tde_bindir}/kpac_dhcp_helper"
|
||
|
chmod 0755 "%{?buildroot}%{tde_bindir}/start_tdeinit"
|
||
10 years ago
|
|
||
10 years ago
|
# fileshareset 2.0 is provided separately.
|
||
|
# Remove integrated fileshareset 1.0 .
|
||
10 years ago
|
%__rm -f "%{?buildroot}%{tde_bindir}/filesharelist"
|
||
|
%__rm -f "%{?buildroot}%{tde_bindir}/fileshareset"
|
||
|
|
||
12 years ago
|
|
||
|
%clean
|
||
|
%__rm -rf "%{?buildroot}"
|
||
|
|
||
10 years ago
|
%if 0%{?suse_version}
|
||
|
# Check permissions on setuid files (openSUSE specific)
|
||
|
%verifyscript
|
||
|
%verify_permissions -e %{tde_bindir}/kgrantpty
|
||
|
%verify_permissions -e %{tde_bindir}/kpac_dhcp_helper
|
||
|
%verify_permissions -e %{tde_bindir}/start_tdeinit
|
||
|
%endif
|
||
|
|
||
|
|
||
12 years ago
|
%changelog
|
||
12 years ago
|
* Fri Jul 05 2013 Francois Andriot <francois.andriot@free.fr> - 14.0.0-1
|
||
12 years ago
|
- Initial release for TDE 14.0.0
|