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.
331 lines
8.8 KiB
331 lines
8.8 KiB
# 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
|
|
|
|
# TDE 3.5.13 specific variables
|
|
%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_tdedocdir %{tde_docdir}/kde
|
|
%define tde_tdeincludedir %{tde_includedir}/kde
|
|
%define tde_tdelibdir %{tde_libdir}/trinity
|
|
|
|
%define _docdir %{tde_docdir}
|
|
|
|
Name: trinity-tdelibs
|
|
Version: 3.5.13.1
|
|
Release: 0%{?dist}%{?_variant}
|
|
License: GPL
|
|
Summary: TDE Libraries
|
|
Group: Environment/Libraries
|
|
|
|
Vendor: Trinity Project
|
|
Packager: Francois Andriot <francois.andriot@free.fr>
|
|
URL: http://www.trinitydesktop.org/
|
|
|
|
Prefix: %{tde_prefix}
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
Source0: kdelibs-3.5.13.tar.gz
|
|
# [tdelibs] Diff between 3.5.13-stable and 3.5.13-sru
|
|
Patch0: tdelibs-3.5.13-sru-20120805.patch
|
|
|
|
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}
|
|
|
|
|
|
BuildRequires: cmake >= 2.8
|
|
BuildRequires: libtool
|
|
BuildRequires: tqtinterface-devel
|
|
BuildRequires: trinity-arts-devel
|
|
BuildRequires: krb5-devel libxslt-devel cups-devel libart_lgpl-devel pcre-devel
|
|
BuildRequires: libutempter-devel
|
|
BuildRequires: bzip2-devel
|
|
BuildRequires: openssl-devel
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: alsa-lib-devel
|
|
BuildRequires: libidn-devel
|
|
BuildRequires: qt3-devel
|
|
BuildRequires: jasper-devel
|
|
BuildRequires: libtiff-devel
|
|
BuildRequires: OpenEXR-devel
|
|
BuildRequires: glib2-devel
|
|
BuildRequires: gamin-devel
|
|
BuildRequires: aspell-devel
|
|
BuildRequires: hspell-devel
|
|
BuildRequires: avahi-tqt-devel >= 3.5.13
|
|
# LUA support are not ready yet
|
|
#BuildRequires: lua-devel
|
|
|
|
%if 0%{?mgaversion} || 0%{?mdkversion}
|
|
BuildRequires: %{_lib}avahi-client-devel
|
|
BuildRequires: %{_lib}ltdl-devel
|
|
BuildRequires: x11-proto-devel
|
|
BuildRequires: %{_lib}xcomposite%{?mgaversion:1}-devel
|
|
Requires: %{_lib}avahi-client3
|
|
%else
|
|
BuildRequires: avahi-devel
|
|
BuildRequires: libtool-ltdl-devel
|
|
BuildRequires: xorg-x11-proto-devel
|
|
BuildRequires: libXcomposite-devel
|
|
%endif
|
|
|
|
Requires: tqtinterface >= 3.5.13
|
|
Requires: trinity-arts >= 3.5.13
|
|
Requires: avahi
|
|
Requires: qt3 >= 3.3.8.d
|
|
|
|
%description
|
|
Libraries for the Trinity Desktop Environment:
|
|
TDE Libraries included: tdecore (TDE core library), kdeui (user interface),
|
|
kfm (file manager), khtmlw (HTML widget), kio (Input/Output, networking),
|
|
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}/filesharelist
|
|
%{tde_bindir}/fileshareset
|
|
%{tde_bindir}/imagetops
|
|
%{tde_bindir}/kab2kabc
|
|
%{tde_bindir}/kaddprinterwizard
|
|
%{tde_bindir}/kbuildsycoca
|
|
%{tde_bindir}/kcmshell
|
|
%{tde_bindir}/kconf_update
|
|
%{tde_bindir}/kcookiejar
|
|
%{tde_bindir}/kde-config
|
|
%{tde_bindir}/kde-menu
|
|
%{tde_bindir}/kded
|
|
%{tde_bindir}/kdeinit
|
|
%{tde_bindir}/kdeinit_shutdown
|
|
%{tde_bindir}/kdeinit_wrapper
|
|
%{tde_bindir}/kdesu_stub
|
|
%{tde_bindir}/kdontchangethehostname
|
|
%{tde_bindir}/kdostartupconfig
|
|
%{tde_bindir}/kfile
|
|
%{tde_bindir}/kfmexec
|
|
%{tde_bindir}/khotnewstuff
|
|
%{tde_bindir}/kinstalltheme
|
|
%{tde_bindir}/kio_http_cache_cleaner
|
|
%{tde_bindir}/kio_uiserver
|
|
%{tde_bindir}/kioexec
|
|
%{tde_bindir}/kioslave
|
|
%{tde_bindir}/klauncher
|
|
%{tde_bindir}/kmailservice
|
|
%{tde_bindir}/kmimelist
|
|
%attr(4755,root,root) %{tde_bindir}/kpac_dhcp_helper
|
|
%{tde_bindir}/ksendbugmail
|
|
%{tde_bindir}/kshell
|
|
%{tde_bindir}/kstartupconfig
|
|
%{tde_bindir}/ktelnetservice
|
|
%{tde_bindir}/ktradertest
|
|
%{tde_bindir}/kwrapper
|
|
%{tde_bindir}/lnusertemp
|
|
%{tde_bindir}/make_driver_db_cups
|
|
%{tde_bindir}/make_driver_db_lpr
|
|
%{tde_bindir}/meinproc
|
|
%{tde_bindir}/networkstatustestservice
|
|
%{tde_bindir}/start_kdeinit
|
|
%{tde_bindir}/start_kdeinit_wrapper
|
|
%attr(4755,root,root) %{tde_bindir}/kgrantpty
|
|
%{tde_tdelibdir}/*
|
|
%{tde_libdir}/lib*.so.*
|
|
%{tde_libdir}/lib[kt]deinit_*.la
|
|
%{tde_libdir}/lib[kt]deinit_*.so
|
|
%{tde_datadir}/applications/kde/*.desktop
|
|
%{tde_datadir}/autostart/kab2kabc.desktop
|
|
%{tde_datadir}/applnk/kio_iso.desktop
|
|
%{tde_datadir}/apps/*
|
|
%exclude %{tde_datadir}/apps/ksgmltools2/
|
|
%config(noreplace) %{tde_datadir}/config/*
|
|
%{tde_datadir}/emoticons/*
|
|
%{tde_datadir}/icons/default.kde
|
|
%{tde_datadir}/mimelnk/magic
|
|
%{tde_datadir}/mimelnk/*/*.desktop
|
|
%{tde_datadir}/services/*
|
|
%{tde_datadir}/servicetypes/*
|
|
%{tde_datadir}/icons/crystalsvg/
|
|
%{tde_tdedocdir}/HTML/en/kspell/
|
|
# remove conflicts with kdelibs-4
|
|
%if "%{?tde_prefix}" != "/usr"
|
|
%{tde_bindir}/checkXML
|
|
%{tde_bindir}/ksvgtopng
|
|
%{tde_bindir}/kunittestmodrunner
|
|
%{tde_bindir}/preparetips
|
|
%{tde_datadir}/icons/hicolor/index.theme
|
|
%{tde_datadir}/locale/all_languages
|
|
%{tde_tdedocdir}/HTML/en/common/*
|
|
%{_sysconfdir}/ld.so.conf.d/trinity.conf
|
|
%else
|
|
%exclude %{tde_bindir}/checkXML
|
|
%exclude %{tde_bindir}/ksvgtopng
|
|
%exclude %{tde_bindir}/kunittestmodrunner
|
|
%exclude %{tde_bindir}/preparetips
|
|
%exclude %{tde_datadir}/config/colors
|
|
%exclude %{tde_datadir}/config/kdebug.areas
|
|
%exclude %{tde_datadir}/config/kdebugrc
|
|
%exclude %{tde_datadir}/config/ksslcalist
|
|
%exclude %{tde_datadir}/config/ui/ui_standards.rc
|
|
%exclude %{tde_datadir}/icons/hicolor/index.theme
|
|
%exclude %{tde_datadir}/locale/all_languages
|
|
%exclude %{tde_tdedocdir}/HTML/en/common/*
|
|
%endif
|
|
|
|
# Avoid conflict with 'redhat-menus' package
|
|
%if "%{tde_prefix}" == "/usr"
|
|
%{_sysconfdir}/xdg/menus/kde-applications.menu
|
|
%else
|
|
%{tde_prefix}/etc/xdg/menus/kde-applications.menu
|
|
%endif
|
|
|
|
# New in TDE 3.5.13
|
|
%{tde_bindir}/kdetcompmgr
|
|
|
|
%post
|
|
/sbin/ldconfig || :
|
|
|
|
%postun
|
|
/sbin/ldconfig || :
|
|
|
|
##########
|
|
|
|
%package devel
|
|
Summary: %{name} - Development files
|
|
Group: Development/Libraries
|
|
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}
|
|
|
|
%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}/kconfig_compiler
|
|
%{tde_bindir}/makekdewidgets
|
|
%{tde_datadir}/apps/ksgmltools2/
|
|
%{tde_tdeincludedir}/*
|
|
%{tde_libdir}/*.la
|
|
%{tde_libdir}/*.so
|
|
%{tde_libdir}/*.a
|
|
%exclude %{tde_libdir}/libkdeinit_*.la
|
|
%exclude %{tde_libdir}/libkdeinit_*.so
|
|
|
|
# New in TDE 3.5.13
|
|
%{tde_datadir}/cmake/kdelibs.cmake
|
|
|
|
%post devel
|
|
/sbin/ldconfig || :
|
|
|
|
%postun devel
|
|
/sbin/ldconfig || :
|
|
|
|
##########
|
|
|
|
%prep
|
|
%setup -q -n kdelibs
|
|
%patch0 -p1
|
|
|
|
|
|
%build
|
|
unset QTDIR || : ; . /etc/profile.d/qt.sh
|
|
export PATH="%{tde_bindir}:${QTDIR}/bin:${PATH}"
|
|
export PKG_CONFIG_PATH="%{tde_libdir}/pkgconfig"
|
|
export CMAKE_INCLUDE_PATH="%{tde_includedir}:%{tde_includedir}/tqt"
|
|
|
|
# We need LD_LIBRARY_PATH here because ld.so.conf file has not been written yet
|
|
export LD_LIBRARY_PATH="%{tde_libdir}"
|
|
|
|
|
|
%if 0%{?rhel} || 0%{?fedora}
|
|
%__mkdir_p build
|
|
cd build
|
|
%endif
|
|
|
|
%cmake \
|
|
-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} \
|
|
-DCMAKE_SKIP_RPATH="OFF" \
|
|
-DWITH_ARTS=ON \
|
|
-DWITH_ALSA=ON \
|
|
-DWITH_LIBART=ON \
|
|
-DWITH_LIBIDN=ON \
|
|
-DWITH_SSL=ON \
|
|
-DWITH_CUPS=ON \
|
|
-DWITH_LUA=OFF \
|
|
-DWITH_TIFF=ON \
|
|
-DWITH_JASPER=ON \
|
|
-DWITH_OPENEXR=ON \
|
|
-DWITH_UTEMPTER=ON \
|
|
-DWITH_AVAHI=ON \
|
|
-DWITH_ASPELL=ON \
|
|
-DWITH_HSPELL=ON \
|
|
-DWITH_PCRE=ON \
|
|
-DWITH_INOTIFY=ON \
|
|
-DWITH_GAMIN=ON \
|
|
..
|
|
|
|
%__make %{?_smp_mflags}
|
|
|
|
|
|
%install
|
|
%__rm -rf %{?buildroot}
|
|
%__make install DESTDIR=%{?buildroot} -C build
|
|
|
|
%if "%{?tde_prefix}" != "/usr"
|
|
%__mkdir_p %{?buildroot}%{_sysconfdir}/ld.so.conf.d
|
|
cat <<EOF >%{?buildroot}%{_sysconfdir}/ld.so.conf.d/trinity.conf
|
|
%{tde_libdir}
|
|
EOF
|
|
%endif
|
|
|
|
# Moves the XDG configuration files to TDE directory
|
|
%if "%{tde_prefix}" != "/usr"
|
|
%__install -p -D -m644 \
|
|
"%{?buildroot}%{_sysconfdir}/xdg/menus/applications.menu" \
|
|
"%{?buildroot}%{tde_prefix}/etc/xdg/menus/kde-applications.menu"
|
|
%__rm -rf "%{?buildroot}%{_sysconfdir}/xdg"
|
|
%else
|
|
%__mv -f "%{?buildroot}%{_sysconfdir}/xdg/menus/applications.menu" "%{?buildroot}%{_sysconfdir}/xdg/menus/kde-applications.menu"
|
|
%endif
|
|
|
|
|
|
%clean
|
|
%__rm -rf %{?buildroot}
|
|
|
|
|
|
%changelog
|
|
* Sun Aug 05 2012 Francois Andriot <francois.andriot@free.fr> - 3.5.13.1-0
|
|
- Initial SRU build
|