diff options
Diffstat (limited to 'redhat/main/tdesdk/tdesdk-14.0.0.spec')
-rw-r--r-- | redhat/main/tdesdk/tdesdk-14.0.0.spec | 178 |
1 files changed, 18 insertions, 160 deletions
diff --git a/redhat/main/tdesdk/tdesdk-14.0.0.spec b/redhat/main/tdesdk/tdesdk-14.0.0.spec index 341241738..788bd6107 100644 --- a/redhat/main/tdesdk/tdesdk-14.0.0.spec +++ b/redhat/main/tdesdk/tdesdk-14.0.0.spec @@ -1,5 +1,5 @@ # -# spec file for package tdesdk (version R14.0.0) +# spec file for package tdesdk (version R14) # # Copyright (c) 2014 Trinity Desktop Environment # @@ -12,7 +12,7 @@ # 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/ +# Please submit bugfixes or comments via http://www.trinitydesktop.org/ # # BUILD WARNING: @@ -21,7 +21,9 @@ # TDE variables %define tde_epoch 2 +%if "%{?tde_version}" == "" %define tde_version 14.0.0 +%endif %define tde_pkg tdesdk %define tde_prefix /opt/trinity %define tde_bindir %{tde_prefix}/bin @@ -35,17 +37,12 @@ %define tde_tdeincludedir %{tde_includedir}/tde %define tde_tdelibdir %{tde_libdir}/trinity -# 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-%{tde_pkg} Summary: The Trinity Software Development Kit (SDK) Group: Development/Tools/Other Version: %{tde_version} -Release: %{?!preversion:1}%{?preversion:0_%{preversion}}%{?dist}%{?_variant} +Release: %{?!preversion:1}%{?preversion:0_%{preversion}}%{?dist} URL: http://www.trinitydesktop.org/ %if 0%{?suse_version} @@ -61,9 +58,10 @@ Prefix: %{tde_prefix} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source0: %{name}-%{version}%{?preversion:~%{preversion}}.tar.gz +Source1: %{name}-rpmlintrc BuildRequires: trinity-tdelibs-devel >= %{tde_version} -BuildRequires: trinity-perl-dcop >= {tde_version} +BuildRequires: trinity-perl-dcop >= %{tde_version} BuildRequires: trinity-tdepim-devel >= %{tde_version} BuildRequires: cmake >= 2.8 @@ -81,6 +79,9 @@ BuildRequires: update-desktop-files BuildRequires: brp-check-trinity %endif +# ACL support +BuildRequires: libacl-devel + # IDN support BuildRequires: libidn-devel @@ -122,6 +123,9 @@ BuildRequires: perl BuildRequires: perl-podlators %endif +# OPENSSL support +BuildRequires: openssl-devel + %if 0%{?mgaversion} || 0%{?mdkversion} BuildRequires: %{_lib}ltdl-devel BuildRequires: %{_lib}binutils-devel @@ -218,22 +222,6 @@ This package is part of Trinity, and a component of the TDE SDK module. %{tde_mandir}/man1/cervisia.1* %{tde_tdedocdir}/HTML/en/cervisia/ -%post -n trinity-cervisia -/sbin/ldconfig || : -for f in crystalsvg hicolor ; do - touch --no-create %{tde_datadir}/icons/$f 2> /dev/null ||: - gtk-update-icon-cache -q %{tde_datadir}/icons/$f 2> /dev/null ||: -done -update-desktop-database %{tde_datadir}/applications > /dev/null 2>&1 || : - -%postun -n trinity-cervisia -/sbin/ldconfig || : -for f in crystalsvg hicolor ; do - touch --no-create %{tde_datadir}/icons/$f 2> /dev/null ||: - gtk-update-icon-cache -q %{tde_datadir}/icons/$f 2> /dev/null ||: -done -update-desktop-database %{tde_datadir}/applications > /dev/null 2>&1 || : - ########## %package -n trinity-kapptemplate @@ -378,22 +366,6 @@ This package is part of Trinity, and a component of the TDE SDK module. %{tde_datadir}/servicetypes/kbabeldict_module.desktop %{tde_datadir}/servicetypes/kbabelfilter.desktop -%post -n trinity-kbabel -/sbin/ldconfig || : -for f in hicolor locolor ; do - touch --no-create %{tde_datadir}/icons/$f 2> /dev/null ||: - gtk-update-icon-cache -q %{tde_datadir}/icons/$f 2> /dev/null ||: -done -update-desktop-database %{tde_datadir}/applications > /dev/null 2>&1 || : - -%postun -n trinity-kbabel -/sbin/ldconfig || : -for f in hicolor locolor ; do - touch --no-create %{tde_datadir}/icons/$f 2> /dev/null ||: - gtk-update-icon-cache -q %{tde_datadir}/icons/$f 2> /dev/null ||: -done -update-desktop-database %{tde_datadir}/applications > /dev/null 2>&1 || : - ########## %package -n trinity-kbabel-devel @@ -424,12 +396,6 @@ This package is part of Trinity, and a component of the TDE SDK module. %{tde_libdir}/libkbabeldictplugin.la %{tde_libdir}/libkbabeldictplugin.so -%post -n trinity-kbabel-devel -/sbin/ldconfig || : - -%postun -n trinity-kbabel-devel -/sbin/ldconfig || : - ########## %package -n trinity-kbugbuster @@ -456,20 +422,6 @@ This package is part of Trinity, and a component of the TDE SDK module. %{tde_datadir}/services/tderesources/kcal/bugzilla.desktop %{tde_tdedocdir}/HTML/en/kbugbuster/ -%post -n trinity-kbugbuster -for f in hicolor locolor ; do - touch --no-create %{tde_datadir}/icons/$f 2> /dev/null ||: - gtk-update-icon-cache -q %{tde_datadir}/icons/$f 2> /dev/null ||: -done -update-desktop-database %{tde_datadir}/applications > /dev/null 2>&1 || : - -%postun -n trinity-kbugbuster -for f in hicolor locolor ; do - touch --no-create %{tde_datadir}/icons/$f 2> /dev/null ||: - gtk-update-icon-cache -q %{tde_datadir}/icons/$f 2> /dev/null ||: -done -update-desktop-database %{tde_datadir}/applications > /dev/null 2>&1 || : - ########## %package -n trinity-tdecachegrind @@ -497,20 +449,6 @@ This package is part of Trinity, and a component of the TDE SDK module. %{tde_datadir}/mimelnk/application/x-tdecachegrind.desktop %{tde_tdedocdir}/HTML/en/tdecachegrind/ -%post -n trinity-tdecachegrind -for f in hicolor locolor ; do - touch --no-create %{tde_datadir}/icons/$f 2> /dev/null ||: - gtk-update-icon-cache -q %{tde_datadir}/icons/$f 2> /dev/null ||: -done -update-desktop-database %{tde_datadir}/applications > /dev/null 2>&1 || : - -%postun -n trinity-tdecachegrind -for f in hicolor locolor ; do - touch --no-create %{tde_datadir}/icons/$f 2> /dev/null ||: - gtk-update-icon-cache -q %{tde_datadir}/icons/$f 2> /dev/null ||: -done -update-desktop-database %{tde_datadir}/applications > /dev/null 2>&1 || : - ########## %package -n trinity-tdecachegrind-converters @@ -600,12 +538,6 @@ This package is part of Trinity, and a component of the TDE SDK module. %{tde_libdir}/libkstartperf.la %{tde_bindir}/kstartperf -%post misc -/sbin/ldconfig || : - -%postun misc -/sbin/ldconfig || : - ########## %package scripts @@ -761,22 +693,6 @@ This package is part of Trinity, and a component of the TDE SDK module. %{tde_datadir}/icons/hicolor/scalable/apps/kompare.svgz %{tde_tdedocdir}/HTML/en/kompare/ -%post -n trinity-kompare -/sbin/ldconfig || : -for f in hicolor ; do - touch --no-create %{tde_datadir}/icons/$f 2> /dev/null ||: - gtk-update-icon-cache -q %{tde_datadir}/icons/$f 2> /dev/null ||: -done -update-desktop-database %{tde_datadir}/applications > /dev/null 2>&1 || : - -%postun -n trinity-kompare -/sbin/ldconfig || : -for f in hicolor ; do - touch --no-create %{tde_datadir}/icons/$f 2> /dev/null ||: - gtk-update-icon-cache -q %{tde_datadir}/icons/$f 2> /dev/null ||: -done -update-desktop-database %{tde_datadir}/applications > /dev/null 2>&1 || : - ########## %package -n trinity-kspy @@ -801,12 +717,6 @@ This package is part of Trinity, and a component of the TDE SDK module. %{tde_libdir}/libkspy.la %{tde_libdir}/libkspy.so.* -%post -n trinity-kspy -/sbin/ldconfig || : - -%postun -n trinity-kspy -/sbin/ldconfig || : - ########## %package -n trinity-kuiviewer @@ -838,18 +748,6 @@ This package is part of Trinity, and a component of the TDE SDK module. %{tde_datadir}/services/kuiviewer_part.desktop %{tde_tdedocdir}/HTML/en/kuiviewer/ -%post -n trinity-kuiviewer -for f in hicolor locolor ; do - touch --no-create %{tde_datadir}/icons/$f 2> /dev/null ||: - gtk-update-icon-cache -q %{tde_datadir}/icons/$f 2> /dev/null ||: -done - -%postun -n trinity-kuiviewer -for f in hicolor locolor ; do - touch --no-create %{tde_datadir}/icons/$f 2> /dev/null ||: - gtk-update-icon-cache -q %{tde_datadir}/icons/$f 2> /dev/null ||: -done - ########## %package -n trinity-libcvsservice0 @@ -880,12 +778,6 @@ This package is part of Trinity, and a component of the TDE SDK module. %{tde_tdelibdir}/cvsservice.so %{tde_datadir}/services/cvsservice.desktop -%post -n trinity-libcvsservice0 -/sbin/ldconfig || : - -%postun -n trinity-libcvsservice0 -/sbin/ldconfig || : - ########## %package -n trinity-libcvsservice-devel @@ -915,12 +807,6 @@ This package is part of Trinity, and a component of the TDE SDK module. %{tde_libdir}/libtdeinit_cvsservice.la %{tde_datadir}/cmake/cervisia.cmake -%post -n trinity-libcvsservice-devel -/sbin/ldconfig || : - -%postun -n trinity-libcvsservice-devel -/sbin/ldconfig || : - ########## %package -n trinity-poxml @@ -977,20 +863,6 @@ This package is part of Trinity, and a component of the TDE SDK module. %{tde_datadir}/mimelnk/application/x-umbrello.desktop %{tde_tdedocdir}/HTML/en/umbrello/ -%post -n trinity-umbrello -for f in crystalsvg hicolor ; do - touch --no-create %{tde_datadir}/icons/$f 2> /dev/null ||: - gtk-update-icon-cache -q %{tde_datadir}/icons/$f 2> /dev/null ||: -done -update-desktop-database %{tde_datadir}/applications > /dev/null 2>&1 || : - -%postun -n trinity-umbrello -for f in crystalsvg hicolor ; do - touch --no-create %{tde_datadir}/icons/$f 2> /dev/null ||: - gtk-update-icon-cache -q %{tde_datadir}/icons/$f 2> /dev/null ||: -done -update-desktop-database %{tde_datadir}/applications > /dev/null 2>&1 || : - ########## %if 0%{?build_kioslave} @@ -1039,11 +911,6 @@ This package is part of Trinity, and a component of the TDE SDK module. %{tde_datadir}/icons/crystalsvg/scalable/actions/svn_merge.svgz %post tdeio-plugins -for f in crystalsvg ; do - touch --no-create %{tde_datadir}/icons/$f 2> /dev/null ||: - gtk-update-icon-cache -q %{tde_datadir}/icons/$f 2> /dev/null ||: -done - for proto in svn+file svn+http svn+https svn+ssh svn; do update-alternatives --install \ %{tde_datadir}/services/${proto}.protocol \ @@ -1052,12 +919,6 @@ for proto in svn+file svn+http svn+https svn+ssh svn; do 10 done -%postun tdeio-plugins -for f in crystalsvg ; do - touch --no-create %{tde_datadir}/icons/$f 2> /dev/null ||: - gtk-update-icon-cache -q %{tde_datadir}/icons/$f 2> /dev/null ||: -done - %preun tdeio-plugins if [ $1 -eq 0 ]; then for proto in svn+file svn+http svn+https svn+ssh svn; do @@ -1096,12 +957,6 @@ This package is part of Trinity, and a component of the TDE SDK module. %{tde_libdir}/libtdeunittestgui.la %{tde_libdir}/libtdeunittestgui.so.* -%post -n trinity-tdeunittest -/sbin/ldconfig || : - -%postun -n trinity-tdeunittest -/sbin/ldconfig || : - ########## %package devel @@ -1163,6 +1018,11 @@ if ! rpm -E %%cmake|grep -q "cd build"; then cd build fi +# FIXME PCLinuxOS: '/usr/bin/ld: cannot find -ltdeabc' +%if 0%{?pclinuxos} +export RPM_OPT_FLAGS="${RPM_OPT_FLAGS} -L%{tde_libdir}" +%endif + %cmake \ -DCMAKE_BUILD_TYPE="RelWithDebInfo" \ -DCMAKE_C_FLAGS="${RPM_OPT_FLAGS} -DNDEBUG" \ @@ -1246,5 +1106,3 @@ popd %changelog -* Fri Jul 05 2013 Francois Andriot <francois.andriot@free.fr> - 14.0.0-1 -- Initial release for TDE 14.0.0 |