diff options
151 files changed, 11375 insertions, 4721 deletions
diff --git a/redhat/applications/digikam/trinity-digikam-3.5.13-sru.spec b/redhat/applications/digikam/trinity-digikam-3.5.13-sru.spec new file mode 100644 index 000000000..b9ac5ae96 --- /dev/null +++ b/redhat/applications/digikam/trinity-digikam-3.5.13-sru.spec @@ -0,0 +1,305 @@ +# Default version for this component +%define kdecomp digikam + +# 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 building 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_mandir %{tde_datadir}/man + +%define tde_tdeappdir %{tde_datadir}/applications/kde +%define tde_tdedocdir %{tde_docdir}/kde +%define tde_tdeincludedir %{tde_includedir}/kde +%define tde_tdelibdir %{tde_libdir}/trinity + +%define _docdir %{tde_docdir} + + +Name: trinity-%{kdecomp} +Summary: digital photo management application for KDE [Trinity] +Version: 0.9.6 +Release: 3%{?dist}%{?_variant} + +License: GPLv2+ +Group: Applications/Utilities + +Vendor: Trinity Project +Packager: Francois Andriot <francois.andriot@free.fr> +URL: http://www.trinitydesktop.org/ + +Prefix: %{_prefix} +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +Source0: %{kdecomp}-3.5.13.tar.gz + +# [digikam] Version 3.5.13-sru +Patch0: digikam-3.5.13-sru-20120808.patch +# [digikam] Fix FTBFS on png >= 0.15 [Commit #18ecd512] +Patch9: digikam-3.5.13-fix_ftbfs_png_015.patch + + +BuildRequires: tqtinterface-devel +BuildRequires: trinity-arts-devel +BuildRequires: trinity-tdelibs-devel +BuildRequires: trinity-tdebase-devel +BuildRequires: desktop-file-utils +BuildRequires: gettext +BuildRequires: trinity-libkexiv2-devel +BuildRequires: trinity-libkdcraw-devel +BuildRequires: trinity-libkipi-devel +%if 0%{?rhel} == 5 || 0%{?mgaversion} || 0%{?mdkversion} +BuildRequires: gphoto2-devel +%else +BuildRequires: libgphoto2-devel +%endif +BuildRequires: libtiff-devel +BuildRequires: jasper-devel + +%if 0%{?mgaversion} || 0%{?mdkversion} +BuildRequires: %{_lib}exiv2-devel +%else +BuildRequires: exiv2-devel +%endif + +Requires: trinity-libkexiv2 +Requires: trinity-libkdcraw +Requires: trinity-libkipi + +%description +An easy to use and powerful digital photo management +application, which makes importing, organizing and manipulating +digital photos a "snap". An interface is provided to connect to +your digital camera, preview the images and download and/or +delete them. + +The digiKam built-in image editor makes the common photo correction +a simple task. The image editor is extensible via plugins and, +the digikamimageplugins project has been merged to digiKam core +since release 0.9.2, all useful image editor plugins are available +in the base installation. + +digiKam can also make use of the KIPI image handling plugins to +extend its capabilities even further for photo manipulations, +import and export, etc. The kipi-plugins package contains many +very useful extentions. + +digiKam is based in part on the work of the Independent JPEG Group. + + +%package devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: %{name} = %{version} + +%description devel +%{summary} + + +%prep +%setup -q -n applications/%{kdecomp} + +%patch0 -p1 + +%patch9 -p1 -b .png015 + + +# Ugly hack to modify TQT include directory inside autoconf files. +# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 ! +%__sed -i admin/acinclude.m4.in \ + -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \ + -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g" + +%__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in" +%__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh" +%__make -f "admin/Makefile.common" + + +%build +unset QTDIR || : ; source /etc/profile.d/qt.sh +export PATH="%{tde_bindir}:${PATH}" +export LDFLAGS="-L%{tde_libdir} -I%{tde_tdeincludedir}" + +%configure \ + --prefix=%{tde_prefix} \ + --exec-prefix=%{tde_prefix} \ + --bindir=%{tde_bindir} \ + --libdir=%{tde_libdir} \ + --datadir=%{tde_datadir} \ + --mandir=%{tde_mandir} \ + --includedir=%{tde_tdeincludedir} \ + --disable-rpath \ + --with-extra-includes=%{tde_tdeincludedir}/tqt \ + --enable-closure + +%__make %{?_smp_mflags} + + +%install +export PATH="%{tde_bindir}:${PATH}" +%__rm -rf %{buildroot} +%__make install DESTDIR=%{buildroot} + + +%find_lang %{kdecomp} + + +%clean +%__rm -rf %{buildroot} + + +%post +touch --no-create %{tde_datadir}/icons/hicolor || : +gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || : +/sbin/ldconfig +update-desktop-database %{tde_appdir} 2> /dev/null || : + +%postun +touch --no-create %{tde_datadir}/icons/hicolor || : +gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || : +/sbin/ldconfig +update-desktop-database %{tde_appdir} 2> /dev/null || : + +%post devel +/sbin/ldconfig || : + +%postun devel +/sbin/ldconfig || : + + +%files -f %{kdecomp}.lang +%defattr(-,root,root,-) +%doc AUTHORS COPYING +%{tde_bindir}/digikam +%{tde_bindir}/digikamthemedesigner +%{tde_bindir}/digitaglinktree +%{tde_bindir}/showfoto +%{tde_libdir}/libdigikam.so.0 +%{tde_libdir}/libdigikam.so.0.0.0 +%{tde_tdelibdir}/kio_digikamalbums.la +%{tde_tdelibdir}/kio_digikamalbums.so +%{tde_tdelibdir}/kio_digikamdates.la +%{tde_tdelibdir}/kio_digikamdates.so +%{tde_tdelibdir}/kio_digikamsearch.la +%{tde_tdelibdir}/kio_digikamsearch.so +%{tde_tdelibdir}/kio_digikamtags.la +%{tde_tdelibdir}/kio_digikamtags.so +%{tde_tdelibdir}/kio_digikamthumbnail.la +%{tde_tdelibdir}/kio_digikamthumbnail.so +%{tde_tdelibdir}/digikamimageplugin_adjustcurves.la +%{tde_tdelibdir}/digikamimageplugin_adjustcurves.so +%{tde_tdelibdir}/digikamimageplugin_adjustlevels.la +%{tde_tdelibdir}/digikamimageplugin_adjustlevels.so +%{tde_tdelibdir}/digikamimageplugin_antivignetting.la +%{tde_tdelibdir}/digikamimageplugin_antivignetting.so +%{tde_tdelibdir}/digikamimageplugin_blurfx.la +%{tde_tdelibdir}/digikamimageplugin_blurfx.so +%{tde_tdelibdir}/digikamimageplugin_border.la +%{tde_tdelibdir}/digikamimageplugin_border.so +%{tde_tdelibdir}/digikamimageplugin_channelmixer.la +%{tde_tdelibdir}/digikamimageplugin_channelmixer.so +%{tde_tdelibdir}/digikamimageplugin_charcoal.la +%{tde_tdelibdir}/digikamimageplugin_charcoal.so +%{tde_tdelibdir}/digikamimageplugin_colorfx.la +%{tde_tdelibdir}/digikamimageplugin_colorfx.so +%{tde_tdelibdir}/digikamimageplugin_core.la +%{tde_tdelibdir}/digikamimageplugin_core.so +%{tde_tdelibdir}/digikamimageplugin_distortionfx.la +%{tde_tdelibdir}/digikamimageplugin_distortionfx.so +%{tde_tdelibdir}/digikamimageplugin_emboss.la +%{tde_tdelibdir}/digikamimageplugin_emboss.so +%{tde_tdelibdir}/digikamimageplugin_filmgrain.la +%{tde_tdelibdir}/digikamimageplugin_filmgrain.so +%{tde_tdelibdir}/digikamimageplugin_freerotation.la +%{tde_tdelibdir}/digikamimageplugin_freerotation.so +%{tde_tdelibdir}/digikamimageplugin_hotpixels.la +%{tde_tdelibdir}/digikamimageplugin_hotpixels.so +%{tde_tdelibdir}/digikamimageplugin_infrared.la +%{tde_tdelibdir}/digikamimageplugin_infrared.so +%{tde_tdelibdir}/digikamimageplugin_inpainting.la +%{tde_tdelibdir}/digikamimageplugin_inpainting.so +%{tde_tdelibdir}/digikamimageplugin_inserttext.la +%{tde_tdelibdir}/digikamimageplugin_inserttext.so +%{tde_tdelibdir}/digikamimageplugin_lensdistortion.la +%{tde_tdelibdir}/digikamimageplugin_lensdistortion.so +%{tde_tdelibdir}/digikamimageplugin_noisereduction.la +%{tde_tdelibdir}/digikamimageplugin_noisereduction.so +%{tde_tdelibdir}/digikamimageplugin_oilpaint.la +%{tde_tdelibdir}/digikamimageplugin_oilpaint.so +%{tde_tdelibdir}/digikamimageplugin_perspective.la +%{tde_tdelibdir}/digikamimageplugin_perspective.so +%{tde_tdelibdir}/digikamimageplugin_raindrop.la +%{tde_tdelibdir}/digikamimageplugin_raindrop.so +%{tde_tdelibdir}/digikamimageplugin_restoration.la +%{tde_tdelibdir}/digikamimageplugin_restoration.so +%{tde_tdelibdir}/digikamimageplugin_sheartool.la +%{tde_tdelibdir}/digikamimageplugin_sheartool.so +%{tde_tdelibdir}/digikamimageplugin_superimpose.la +%{tde_tdelibdir}/digikamimageplugin_superimpose.so +%{tde_tdelibdir}/digikamimageplugin_texture.la +%{tde_tdelibdir}/digikamimageplugin_texture.so +%{tde_tdelibdir}/digikamimageplugin_whitebalance.la +%{tde_tdelibdir}/digikamimageplugin_whitebalance.so +%{tde_tdeappdir}/digikam.desktop +%{tde_tdeappdir}/showfoto.desktop +%{tde_datadir}/apps/digikam/ +%{tde_datadir}/apps/konqueror/servicemenus/digikam-download.desktop +%{tde_datadir}/apps/konqueror/servicemenus/digikam-gphoto2-camera.desktop +%{tde_datadir}/apps/konqueror/servicemenus/digikam-mount-and-download.desktop +%{tde_datadir}/apps/showfoto/ +%{tde_datadir}/icons/hicolor/*/apps/digikam.png +%{tde_datadir}/icons/hicolor/*/apps/showfoto.png +%{tde_datadir}/services/digikamalbums.protocol +%{tde_datadir}/services/digikamdates.protocol +%{tde_datadir}/services/digikamimageplugin_adjustcurves.desktop +%{tde_datadir}/services/digikamimageplugin_adjustlevels.desktop +%{tde_datadir}/services/digikamimageplugin_antivignetting.desktop +%{tde_datadir}/services/digikamimageplugin_blurfx.desktop +%{tde_datadir}/services/digikamimageplugin_border.desktop +%{tde_datadir}/services/digikamimageplugin_channelmixer.desktop +%{tde_datadir}/services/digikamimageplugin_charcoal.desktop +%{tde_datadir}/services/digikamimageplugin_colorfx.desktop +%{tde_datadir}/services/digikamimageplugin_core.desktop +%{tde_datadir}/services/digikamimageplugin_distortionfx.desktop +%{tde_datadir}/services/digikamimageplugin_emboss.desktop +%{tde_datadir}/services/digikamimageplugin_filmgrain.desktop +%{tde_datadir}/services/digikamimageplugin_freerotation.desktop +%{tde_datadir}/services/digikamimageplugin_hotpixels.desktop +%{tde_datadir}/services/digikamimageplugin_infrared.desktop +%{tde_datadir}/services/digikamimageplugin_inpainting.desktop +%{tde_datadir}/services/digikamimageplugin_inserttext.desktop +%{tde_datadir}/services/digikamimageplugin_lensdistortion.desktop +%{tde_datadir}/services/digikamimageplugin_noisereduction.desktop +%{tde_datadir}/services/digikamimageplugin_oilpaint.desktop +%{tde_datadir}/services/digikamimageplugin_perspective.desktop +%{tde_datadir}/services/digikamimageplugin_raindrop.desktop +%{tde_datadir}/services/digikamimageplugin_restoration.desktop +%{tde_datadir}/services/digikamimageplugin_sheartool.desktop +%{tde_datadir}/services/digikamimageplugin_superimpose.desktop +%{tde_datadir}/services/digikamimageplugin_texture.desktop +%{tde_datadir}/services/digikamimageplugin_whitebalance.desktop +%{tde_datadir}/services/digikamsearch.protocol +%{tde_datadir}/services/digikamtags.protocol +%{tde_datadir}/services/digikamthumbnail.protocol +%{tde_datadir}/servicetypes/digikamimageplugin.desktop +%{tde_mandir}/man*/* +%{tde_tdedocdir}/HTML/en/digikam-apidocs/ + + +%files devel +%{tde_tdeincludedir}/digikam_export.h +%{tde_tdeincludedir}/digikam/ +%{tde_libdir}/libdigikam.so +%{tde_libdir}/libdigikam.la + + +%Changelog +* Wed Aug 08 2012 Francois Andriot <francois.andriot@free.fr> - 0.9.6-3 +- Switch to v3.5.13-sru branch. + diff --git a/redhat/applications/digikam/trinity-digikam-3.5.13.spec b/redhat/applications/digikam/trinity-digikam-3.5.13.spec index 6af36fa79..f1ff6d1ab 100644 --- a/redhat/applications/digikam/trinity-digikam-3.5.13.spec +++ b/redhat/applications/digikam/trinity-digikam-3.5.13.spec @@ -86,6 +86,10 @@ BuildRequires: %{_lib}exiv2-devel BuildRequires: exiv2-devel %endif +Requires: trinity-libkexiv2 +Requires: trinity-libkdcraw +Requires: trinity-libkipi + %description An easy to use and powerful digital photo management application, which makes importing, organizing and manipulating @@ -147,16 +151,16 @@ export PATH="%{tde_bindir}:${PATH}" export LDFLAGS="-L%{tde_libdir} -I%{tde_tdeincludedir}" %configure \ - --prefix=%{tde_prefix} \ - --exec-prefix=%{tde_prefix} \ - --bindir=%{tde_bindir} \ - --libdir=%{tde_libdir} \ - --datadir=%{tde_datadir} \ - --mandir=%{tde_mandir} \ - --includedir=%{tde_tdeincludedir} \ - --disable-rpath \ - --with-extra-includes=%{tde_tdeincludedir}/tqt \ - --enable-closure + --prefix=%{tde_prefix} \ + --exec-prefix=%{tde_prefix} \ + --bindir=%{tde_bindir} \ + --libdir=%{tde_libdir} \ + --datadir=%{tde_datadir} \ + --mandir=%{tde_mandir} \ + --includedir=%{tde_tdeincludedir} \ + --disable-rpath \ + --with-extra-includes=%{tde_tdeincludedir}/tqt \ + --enable-closure %__make %{?_smp_mflags} @@ -187,10 +191,10 @@ gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || : update-desktop-database %{tde_appdir} 2> /dev/null || : %post devel -/sbin/ldconfig +/sbin/ldconfig || : %postun devel -/sbin/ldconfig +/sbin/ldconfig || : %files -f %{kdecomp}.lang diff --git a/redhat/applications/fusion-icon/trinity-fusion-icon.spec b/redhat/applications/fusion-icon/trinity-fusion-icon.spec index 3b430508a..276c357c5 100644 --- a/redhat/applications/fusion-icon/trinity-fusion-icon.spec +++ b/redhat/applications/fusion-icon/trinity-fusion-icon.spec @@ -53,6 +53,7 @@ BuildRequires: trinity-tdebase-devel BuildRequires: desktop-file-utils BuildRequires: python Requires: python +Requires: trinity-compizconfig-backend-kconfig %description The OpenCompositing Project brings 3D desktop visual effects that diff --git a/redhat/applications/k3b/trinity-k3b-3.5.12.spec b/redhat/applications/k3b/trinity-k3b-3.5.12.spec index a1b9f0d60..0d17f7958 100644 --- a/redhat/applications/k3b/trinity-k3b-3.5.12.spec +++ b/redhat/applications/k3b/trinity-k3b-3.5.12.spec @@ -197,9 +197,11 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/kde/k3b.desktop %__rm -rf %{buildroot} -%post libs -p /sbin/ldconfig +%post libs +/sbin/ldconfig -%postun libs -p /sbin/ldconfig +%postun libs +/sbin/ldconfig %post common touch --no-create %{_datadir}/icons/hicolor ||: diff --git a/redhat/applications/k3b/trinity-k3b-3.5.13.spec b/redhat/applications/k3b/trinity-k3b-3.5.13.spec index d33cfb2fe..aca04f95e 100644 --- a/redhat/applications/k3b/trinity-k3b-3.5.13.spec +++ b/redhat/applications/k3b/trinity-k3b-3.5.13.spec @@ -32,10 +32,6 @@ URL: http://www.trinitydesktop.org/ Prefix: %{tde_prefix} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -%if "%{?_prefix}" == "/usr" -Obsoletes: k3b -%endif - Group: Applications/Archiving License: GPLv2+ diff --git a/redhat/applications/k9copy/trinity-k9copy.spec b/redhat/applications/k9copy/trinity-k9copy.spec index ad0f6f317..cf6993ed6 100644 --- a/redhat/applications/k9copy/trinity-k9copy.spec +++ b/redhat/applications/k9copy/trinity-k9copy.spec @@ -60,11 +60,12 @@ Patch7: k9copy-3.5.13-fix_format_string_error.patch BuildRequires: tqtinterface-devel BuildRequires: trinity-tdelibs-devel BuildRequires: trinity-tdebase-devel +BuildRequires: trinity-arts-devel BuildRequires: desktop-file-utils # Warning: the target distribution must have ffmpeg ! BuildRequires: ffmpeg-devel -Requires: ffmpeg +#Requires: ffmpeg %description k9copy is a tabbed tool that allows to copy of one or more titles from a DVD9 diff --git a/redhat/applications/katapult/trinity-katapult-3.5.13.spec b/redhat/applications/katapult/trinity-katapult-3.5.13.spec index 28cc907bd..8f31e7360 100644 --- a/redhat/applications/katapult/trinity-katapult-3.5.13.spec +++ b/redhat/applications/katapult/trinity-katapult-3.5.13.spec @@ -151,7 +151,6 @@ update-desktop-database %{tde_appdir} &> /dev/null %{tde_datadir}/icons/crystalsvg/scalable/actions/katapultspellcheck.svgz %{tde_datadir}/icons/hicolor/128x128/actions/checkmark.png %{tde_datadir}/icons/hicolor/128x128/actions/no.png -%{tde_datadir}/icons/hicolor/128x128/apps/katapult.png %{tde_datadir}/icons/hicolor/128x128/apps/xcalc.png %{tde_datadir}/icons/hicolor/*/apps/katapult.png %{tde_datadir}/icons/hicolor/scalable/apps/katapult.svgz diff --git a/redhat/applications/kdbusnotification/kdbusnotification-3.5.13-ftbfs_qt_ldlflags.patch b/redhat/applications/kdbusnotification/kdbusnotification-3.5.13-missing_ldlflags.patch index 06e1d455e..06e1d455e 100644 --- a/redhat/applications/kdbusnotification/kdbusnotification-3.5.13-ftbfs_qt_ldlflags.patch +++ b/redhat/applications/kdbusnotification/kdbusnotification-3.5.13-missing_ldlflags.patch diff --git a/redhat/applications/kdbusnotification/trinity-kdbusnotification-3.5.13.spec b/redhat/applications/kdbusnotification/trinity-kdbusnotification-3.5.13.spec index 83aa3617a..597505ee4 100644 --- a/redhat/applications/kdbusnotification/trinity-kdbusnotification-3.5.13.spec +++ b/redhat/applications/kdbusnotification/trinity-kdbusnotification-3.5.13.spec @@ -1,26 +1,33 @@ # Default version for this component %define kdecomp kdbusnotification -%define version 0.1 -%define release 2 # If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". -%if "%{?_prefix}" != "/usr" +%if "%{?tde_prefix}" != "/usr" %define _variant .opt -%define _docdir %{_prefix}/share/doc %endif # TDE 3.5.13 specific building variables -BuildRequires: autoconf automake libtool m4 -%define tde_docdir %{_docdir}/kde -%define tde_includedir %{_includedir}/kde -%define tde_libdir %{_libdir}/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_mandir %{tde_datadir}/man +%define tde_appdir %{tde_datadir}/applications + +%define tde_tdeappdir %{tde_appdir}/kde +%define tde_tdedocdir %{tde_docdir}/kde +%define tde_tdeincludedir %{tde_includedir}/kde +%define tde_tdelibdir %{tde_libdir}/trinity + +%define _docdir %{tde_docdir} Name: trinity-%{kdecomp} Summary: a DBUS notification service [Trinity] -Version: %{?version} -Release: %{?release}%{?dist}%{?_variant} +Version: 0.1 +Release: 2%{?dist}%{?_variant} License: GPLv2+ Group: Applications/Utilities @@ -29,18 +36,18 @@ Vendor: Trinity Project Packager: Francois Andriot <francois.andriot@free.fr> URL: http://www.trinitydesktop.org/ -Prefix: %{_prefix} +Prefix: %{tde_prefix} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source0: %{kdecomp}-3.5.13.tar.gz # [kdbusnotification/src/daemon] Missing QT LDFLAGS -Patch0: kdbusnotification-3.5.13-ftbfs_qt_ldlflags.patch +Patch1: kdbusnotification-3.5.13-missing_ldlflags.patch BuildRequires: tqtinterface-devel BuildRequires: trinity-arts-devel -BuildRequires: trinity-kdelibs-devel -BuildRequires: trinity-kdebase-devel +BuildRequires: trinity-tdelibs-devel +BuildRequires: trinity-tdebase-devel BuildRequires: desktop-file-utils BuildRequires: dbus-glib-devel BuildRequires: gtk2-devel @@ -52,13 +59,13 @@ DBUS notifications via unobtrusive, easily dismissed passive popups. %prep %setup -q -n applications/%{kdecomp} -%patch0 -p1 +%patch1 -p1 -b .ldflags # Ugly hack to modify TQT include directory inside autoconf files. # If TQT detection fails, it fallbacks to TQT4 instead of TQT3 ! %__sed -i admin/acinclude.m4.in \ - -e "s|/usr/include/tqt|%{_includedir}/tqt|g" \ - -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_docdir}/HTML'|g" + -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \ + -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g" %__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in" %__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh" @@ -66,19 +73,25 @@ DBUS notifications via unobtrusive, easily dismissed passive popups. %build -export PATH="%{_bindir}:${PATH}" -export LDFLAGS="-L%{_libdir} -I%{_includedir}" +unset QTDIR || : ; . /etc/profile.d/qt.sh +export PATH="%{tde_bindir}:${PATH}" +export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}" %configure \ - --disable-rpath \ - --with-extra-includes=%{_includedir}/tqt \ - --enable-closure + --prefix=%{tde_prefix} \ + --exec-prefix=%{tde_prefix} \ + --bindir=%{tde_bindir} \ + --libdir=%{tde_libdir} \ + --datadir=%{tde_datadir} \ + --disable-rpath \ + --with-extra-includes=%{tde_includedir}/tqt \ + --enable-closure %__make %{?_smp_mflags} %install -export PATH="%{_bindir}:${PATH}" +export PATH="%{tde_bindir}:${PATH}" %__rm -rf %{buildroot} %__make install DESTDIR=%{buildroot} @@ -91,8 +104,8 @@ export PATH="%{_bindir}:${PATH}" %files %defattr(-,root,root,-) -%{_bindir}/notification-daemon-tde -%{_datadir}/autostart/kdbusnotification-autostart.desktop +%{tde_bindir}/notification-daemon-tde +%{tde_datadir}/autostart/kdbusnotification-autostart.desktop diff --git a/redhat/applications/kde-guidance/trinity-guidance-3.5.13.spec b/redhat/applications/kde-guidance/trinity-guidance-3.5.13.spec index 4f5062344..d592fda62 100644 --- a/redhat/applications/kde-guidance/trinity-guidance-3.5.13.spec +++ b/redhat/applications/kde-guidance/trinity-guidance-3.5.13.spec @@ -1,16 +1,25 @@ %{!?python_sitearch:%global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} # If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". -%if "%{?_prefix}" != "/usr" +%if "%{?tde_prefix}" != "/usr" %define _variant .opt -%define _docdir %{_datadir}/doc %endif # TDE 3.5.13 specific building variables -BuildRequires: autoconf automake libtool m4 -%define tde_docdir %{_docdir}/kde -%define tde_includedir %{_includedir}/kde -%define tde_libdir %{_libdir}/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_mandir %{tde_datadir}/man +%define tde_appdir %{tde_datadir}/applications + +%define tde_tdeappdir %{tde_appdir}/kde +%define tde_tdedocdir %{tde_docdir}/kde +%define tde_tdeincludedir %{tde_includedir}/kde +%define tde_tdelibdir %{tde_libdir}/trinity + +%define _docdir %{tde_docdir} %define __arch_install_post %{nil} @@ -26,14 +35,14 @@ Vendor: Trinity Project Packager: Francois Andriot <francois.andriot@free.fr> URL: http://www.simonzone.com/software/guidance -Prefix: %{_prefix} +Prefix: %{tde_prefix} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source0: kde-guidance-3.5.13.tar.gz BuildRequires: tqtinterface-devel -BuildRequires: trinity-kdelibs-devel -BuildRequires: trinity-kdebase-devel +BuildRequires: trinity-tdelibs-devel +BuildRequires: trinity-tdebase-devel BuildRequires: desktop-file-utils BuildRequires: gettext @@ -43,6 +52,11 @@ BuildRequires: python-trinity BuildRequires: chrpath BuildRequires: gcc-c++ +%if 0%{?mgaversion} || 0%{?mdkversion} +BuildRequires: python-sip +BuildRequires: python-qt +Requires: python-qt +%else %if 0%{?rhel} == 5 BuildRequires: trinity-PyQt-devel BuildRequires: trinity-sip-devel @@ -52,13 +66,15 @@ BuildRequires: PyQt-devel BuildRequires: sip-devel Requires: PyQt %endif +%endif + Requires: python-trinity Requires: %{name}-backends Requires: hwdata Requires: python -%if "%{_prefix}" == "/usr" +%if "%{tde_prefix}" == "/usr" Conflicts: guidance-power-manager Conflicts: kde-guidance-powermanager %endif @@ -103,97 +119,105 @@ suspend using HAL. %build unset QTDIR; . /etc/profile.d/qt.sh -export PATH="%{_bindir}:${PATH}" +export PATH="%{tde_bindir}:${PATH}" export PYTHONPATH=%{python_sitearch}/trinity-sip:%{python_sitearch}/trinity-PyQt - -export LDFLAGS="-L%{_libdir} -I%{_includedir}" +export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}" export EXTRA_MODULE_DIR="%{python_sitearch}/%{name}" +# Avoids 'error: byte-compiling is disabled.' on Mandriva/Mageia +export PYTHONDONTWRITEBYTECODE= + ./setup.py build %install -export PATH="%{_bindir}:${PATH}" +unset QTDIR; . /etc/profile.d/qt.sh +export PATH="%{tde_bindir}:${PATH}" export PYTHONPATH=%{python_sitearch}/trinity-sip:%{python_sitearch}/trinity-PyQt - +export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}" export EXTRA_MODULE_DIR="%{python_sitearch}/%{name}" + +# Avoids 'error: byte-compiling is disabled.' on Mandriva/Mageia +export PYTHONDONTWRITEBYTECODE= + %__rm -rf %{buildroot} ./setup.py install \ - --prefix=%{_prefix} \ + --prefix=%{tde_prefix} \ --root=%{buildroot} # Fix building directories stored inside .py files -for f in %{buildroot}%{_datadir}/apps/guidance/*.py; do +for f in %{buildroot}%{tde_datadir}/apps/guidance/*.py; do %__sed -i "${f}" -e "s|%{buildroot}||g" done ##### MAIN PACKAGE INSTALLATION # install icons to right place -%__mkdir_p %{buildroot}%{_datadir}/icons/crystalsvg/32x32/apps -%__mv -f %{buildroot}%{_datadir}/apps/guidance/pics/hi32-app-daemons.png \ - %{buildroot}%{_datadir}/icons/crystalsvg/32x32/apps/daemons.png -%__mv -f %{buildroot}%{_datadir}/apps/guidance/pics/kcmpartitions.png \ - %{buildroot}%{_datadir}/icons/crystalsvg/32x32/apps/disksfilesystems.png -%__mv -f %{buildroot}%{_datadir}/apps/guidance/pics/hi32-user.png \ - %{buildroot}%{_datadir}/icons/crystalsvg/32x32/apps/userconfig.png -%__mv -f %{buildroot}%{_datadir}/apps/guidance/pics/hi32-display.png \ - %{buildroot}%{_datadir}/icons/crystalsvg/32x32/apps/displayconfig.png -%__mv -f %{buildroot}%{_datadir}/apps/guidance/pics/32-wine.png \ - %{buildroot}%{_datadir}/icons/crystalsvg/32x32/apps/wineconfig.png +%__mkdir_p %{buildroot}%{tde_datadir}/icons/crystalsvg/32x32/apps +%__mv -f %{buildroot}%{tde_datadir}/apps/guidance/pics/hi32-app-daemons.png \ + %{buildroot}%{tde_datadir}/icons/crystalsvg/32x32/apps/daemons.png +%__mv -f %{buildroot}%{tde_datadir}/apps/guidance/pics/kcmpartitions.png \ + %{buildroot}%{tde_datadir}/icons/crystalsvg/32x32/apps/disksfilesystems.png +%__mv -f %{buildroot}%{tde_datadir}/apps/guidance/pics/hi32-user.png \ + %{buildroot}%{tde_datadir}/icons/crystalsvg/32x32/apps/userconfig.png +%__mv -f %{buildroot}%{tde_datadir}/apps/guidance/pics/hi32-display.png \ + %{buildroot}%{tde_datadir}/icons/crystalsvg/32x32/apps/displayconfig.png +%__mv -f %{buildroot}%{tde_datadir}/apps/guidance/pics/32-wine.png \ + %{buildroot}%{tde_datadir}/icons/crystalsvg/32x32/apps/wineconfig.png %__install -D -p -m0644 kde/wineconfig/pics/16x16/wineconfig.png \ - %{buildroot}%{_datadir}/icons/crystalsvg/16x16/apps/wineconfig.png + %{buildroot}%{tde_datadir}/icons/crystalsvg/16x16/apps/wineconfig.png # fix binary-or-shlib-defines-rpath -chrpath -d %{buildroot}%{tde_libdir}/kcm_*.so +chrpath -d %{buildroot}%{tde_tdelibdir}/kcm_*.so # fix executable-not-elf-or-script -%__chmod 0644 %{buildroot}%{_datadir}/apps/guidance/pics/kdewinewizard.png +%__chmod 0644 %{buildroot}%{tde_datadir}/apps/guidance/pics/kdewinewizard.png # move python modules in %{python_sitearch} %__mkdir_p %{buildroot}%{python_sitearch}/%{name} -%__mv -f %{buildroot}%{_datadir}/apps/guidance/*.py %{buildroot}%{python_sitearch}/%{name} +%__mv -f %{buildroot}%{tde_datadir}/apps/guidance/*.py %{buildroot}%{python_sitearch}/%{name} # fix the link properly -%__rm -f %{buildroot}%{_bindir}/* -%__ln_s -f %{python_sitearch}/%{name}/displayconfig.py %{buildroot}%{_bindir}/displayconfig -%__ln_s -f %{python_sitearch}/%{name}/mountconfig.py %{buildroot}%{_bindir}/mountconfig -%__ln_s -f %{python_sitearch}/%{name}/serviceconfig.py %{buildroot}%{_bindir}/serviceconfig -%__ln_s -f %{python_sitearch}/%{name}/userconfig.py %{buildroot}%{_bindir}/userconfig -%__ln_s -f %{python_sitearch}/%{name}/wineconfig.py %{buildroot}%{_bindir}/wineconfig -%__ln_s -f %{python_sitearch}/%{name}/grubconfig.py %{buildroot}%{_bindir}/grubconfig +%__rm -f %{buildroot}%{tde_bindir}/* +#%__ln_s -f %{python_sitearch}/%{name}/displayconfig.py %{buildroot}%{tde_bindir}/displayconfig +%__ln_s -f %{python_sitearch}/%{name}/mountconfig.py %{buildroot}%{tde_bindir}/mountconfig +%__ln_s -f %{python_sitearch}/%{name}/serviceconfig.py %{buildroot}%{tde_bindir}/serviceconfig +%__ln_s -f %{python_sitearch}/%{name}/userconfig.py %{buildroot}%{tde_bindir}/userconfig +%__ln_s -f %{python_sitearch}/%{name}/wineconfig.py %{buildroot}%{tde_bindir}/wineconfig +%__ln_s -f %{python_sitearch}/%{name}/grubconfig.py %{buildroot}%{tde_bindir}/grubconfig -# put this here since gnome people probably don't want it by default -%__ln_s -f %{_python_sitearch}/%{name}/displayconfig-restore.py %{buildroot}%{_bindir}/displayconfig-restore +# (obsolete) put this here since gnome people probably don't want it by default +#%__ln_s -f %{_python_sitearch}/%{name}/displayconfig-restore.py %{buildroot}%{tde_bindir}/displayconfig-restore # fix script-not-executable %__chmod 0755 %{buildroot}%{python_sitearch}/%{name}/fuser.py %__chmod 0755 %{buildroot}%{python_sitearch}/%{name}/grubconfig.py -%__mv -f %{buildroot}%{_datadir}/applications/kde/displayconfig.desktop %{buildroot}%{_datadir}/applications/kde/guidance-displayconfig.desktop +%__mv -f %{buildroot}%{tde_datadir}/applications/kde/displayconfig.desktop %{buildroot}%{tde_datadir}/applications/kde/guidance-displayconfig.desktop ##### BACKENDS INSTALLATION # install displayconfig-hwprobe.py script %__install -D -p -m0755 displayconfig/displayconfig-hwprobe.py \ %{buildroot}%{python_sitearch}/%{name}/displayconfig-hwprobe.py -%__mv -f %{buildroot}%{_libdir}/python*/site-packages/ixf86misc.so %{buildroot}%{python_sitearch} -%__mv -f %{buildroot}%{_libdir}/python*/site-packages/xf86misc.py* %{buildroot}%{python_sitearch}/%{name} +# The xf86misc stuff should not go under /opt/trinity bur under /usr !!! +%__mv -f %{buildroot}%{tde_libdir}/python*/site-packages/ixf86misc.so %{buildroot}%{python_sitearch} +%__mv -f %{buildroot}%{tde_libdir}/python*/site-packages/xf86misc.py* %{buildroot}%{python_sitearch}/%{name} -%__rm -f %{buildroot}%{_datadir}/apps/guidance/MonitorsDB -%__ln_s -f /usr/share/hwdata/MonitorsDB %{buildroot}%{_datadir}/apps/guidance/MonitorsDB +%__rm -f %{buildroot}%{tde_datadir}/apps/guidance/MonitorsDB +%__ln_s -f /usr/share/hwdata/MonitorsDB %{buildroot}%{tde_datadir}/apps/guidance/MonitorsDB ##### POWERMANAGER INSTALLATION # install icon to right place %__install -D -p -m0644 kde/powermanager/pics/battery-charging-100.png \ - %{buildroot}%{_datadir}/icons/hicolor/22x22/apps/power-manager.png + %{buildroot}%{tde_datadir}/icons/hicolor/22x22/apps/power-manager.png %__install -D -p -m0644 kde/powermanager/pics/*.png \ - %{buildroot}%{_datadir}/apps/guidance/pics/ + %{buildroot}%{tde_datadir}/apps/guidance/pics/ # install desktop file %__install -D -p -m0644 powermanager/guidance-power-manager.desktop \ - %{buildroot}%{_datadir}/autostart/guidance-power-manager.desktop + %{buildroot}%{tde_datadir}/autostart/guidance-power-manager.desktop # copy python modules in PYSUPPORT_PATH %__cp powermanager/guidance_power_manager_ui.py %{buildroot}%{python_sitearch}/%{name} @@ -201,12 +225,12 @@ chrpath -d %{buildroot}%{tde_libdir}/kcm_*.so %__cp powermanager/tooltip.py %{buildroot}%{python_sitearch}/%{name} # generate guidance-power-manager script -cat <<EOF >%{buildroot}%{_bindir}/guidance-power-manager +cat <<EOF >%{buildroot}%{tde_bindir}/guidance-power-manager #!/bin/sh export PYTHONPATH=%{python_sitearch}/%{name} %{python_sitearch}/%{name}/guidance-power-manager.py & EOF -chmod +x %{buildroot}%{_bindir}/guidance-power-manager +chmod +x %{buildroot}%{tde_bindir}/guidance-power-manager # fix script-not-executable chmod 0755 %{buildroot}%{python_sitearch}/%{name}/powermanage.py @@ -227,51 +251,59 @@ for i in `find %{buildroot} -type f`; do fi; done +# Removes useless files find %{buildroot} -name "*.egg-info" -exec rm -f {} \; #find %{buildroot}%{_libdir} -name "*.a" -exec rm -f {} \; +%__rm -f %{?buildroot}%{python_sitearch}/%{name}/*.pyc +%__rm -f %{?buildroot}%{python_sitearch}/%{name}/*.pyo + +# Removes obsolete display config manager +%__rm -f %{?buildroot}/etc/X11/Xsession.d/40guidance-displayconfig_restore +%__rm -f %{?buildroot}%{tde_tdelibdir}/kcm_displayconfig.* +%__rm -f %{?buildroot}%{python_sitearch}/%{name}/displayconfig.py +%__rm -f %{?buildroot}%{python_sitearch}/%{name}/displayconfigwidgets.py + %clean %__rm -rf %{buildroot} %post -touch --no-create %{_datadir}/icons/crystalsvg || : -gtk-update-icon-cache --quiet %{_datadir}/icons/crystalsvg || : +touch --no-create %{tde_datadir}/icons/crystalsvg || : +gtk-update-icon-cache --quiet %{tde_datadir}/icons/crystalsvg || : /sbin/ldconfig || : %postun -touch --no-create %{_datadir}/icons/crystalsvg || : -gtk-update-icon-cache --quiet %{_datadir}/icons/crystalsvg || : +touch --no-create %{tde_datadir}/icons/crystalsvg || : +gtk-update-icon-cache --quiet %{tde_datadir}/icons/crystalsvg || : /sbin/ldconfig || : %post powermanager -touch --no-create %{_datadir}/icons/hicolor || : -gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +touch --no-create %{tde_datadir}/icons/hicolor || : +gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || : %postun powermanager -touch --no-create %{_datadir}/icons/hicolor || : -gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +touch --no-create %{tde_datadir}/icons/hicolor || : +gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || : %files %defattr(-,root,root,-) %doc ChangeLog COPYING README TODO -%{_bindir}/displayconfig -%{_bindir}/displayconfig-restore -%{_bindir}/grubconfig -%{_bindir}/mountconfig -%{_bindir}/serviceconfig -%{_bindir}/userconfig -%{_bindir}/wineconfig -%attr(0644,root,root) %{tde_libdir}/*.so -%attr(0644,root,root) %{tde_libdir}/*.la -%{_datadir}/apps/guidance -%{_datadir}/applications/kde/*.desktop -%{_datadir}/icons/crystalsvg/*/*/*.png -%{_datadir}/icons/crystalsvg/*/*/*.svg -%{tde_docdir}/HTML/en/guidance -%exclude /etc/X11/Xsession.d/40guidance-displayconfig_restore +#%{tde_bindir}/displayconfig +#%{tde_bindir}/displayconfig-restore +%{tde_bindir}/grubconfig +%{tde_bindir}/mountconfig +%{tde_bindir}/serviceconfig +%{tde_bindir}/userconfig +%{tde_bindir}/wineconfig +%attr(0644,root,root) %{tde_tdelibdir}/*.so +%attr(0644,root,root) %{tde_tdelibdir}/*.la +%{tde_datadir}/apps/guidance/ +%{tde_datadir}/applications/kde/*.desktop +%{tde_datadir}/icons/crystalsvg/*/*/*.png +%{tde_datadir}/icons/crystalsvg/*/*/*.svg %{python_sitearch}/%{name}/SMBShareSelectDialog.py %{python_sitearch}/%{name}/SimpleCommandRunner.py %{python_sitearch}/%{name}/fuser.py @@ -285,11 +317,21 @@ gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : %{python_sitearch}/%{name}/unixauthdb.py %{python_sitearch}/%{name}/userconfig.py %{python_sitearch}/%{name}/wineconfig.py - -# Removes obsolete display config manager -%exclude %{tde_libdir}/kcm_displayconfig.* -%exclude %{python_sitearch}/%{name}/displayconfig.py -%exclude %{python_sitearch}/%{name}/displayconfigwidgets.py +%{tde_tdedocdir}/HTML/en/guidance/ + +# Files from backends +%exclude %{tde_datadir}/apps/guidance/vesamodes +%exclude %{tde_datadir}/apps/guidance/extramodes +%exclude %{tde_datadir}/apps/guidance/widescreenmodes +%exclude %{tde_datadir}/apps/guidance/Cards+ +%exclude %{tde_datadir}/apps/guidance/pcitable +%exclude %{tde_datadir}/apps/guidance/MonitorsDB + +# Files from powermanager +%exclude %{tde_datadir}/icons/hicolor/22x22/apps/power-manager.png +%exclude %{tde_datadir}/apps/guidance/pics/ac-adapter.png +%exclude %{tde_datadir}/apps/guidance/pics/battery*.png +%exclude %{tde_datadir}/apps/guidance/pics/processor.png %files -n trinity-guidance-backends %defattr(-,root,root,-) @@ -306,18 +348,18 @@ gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : %{python_sitearch}/%{name}/xf86misc.py %{python_sitearch}/%{name}/xorgconfig.py %{python_sitearch}/ixf86misc.so -%{_datadir}/apps/guidance/vesamodes -%{_datadir}/apps/guidance/extramodes -%{_datadir}/apps/guidance/widescreenmodes -%{_datadir}/apps/guidance/Cards+ -%{_datadir}/apps/guidance/pcitable -%{_datadir}/apps/guidance/MonitorsDB +%{tde_datadir}/apps/guidance/vesamodes +%{tde_datadir}/apps/guidance/extramodes +%{tde_datadir}/apps/guidance/widescreenmodes +%{tde_datadir}/apps/guidance/Cards+ +%{tde_datadir}/apps/guidance/pcitable +%{tde_datadir}/apps/guidance/MonitorsDB %files powermanager %defattr(-,root,root,-) -%{_bindir}/guidance-power-manager +%{tde_bindir}/guidance-power-manager %{python_sitearch}/%{name}/MicroHAL.py %{python_sitearch}/%{name}/guidance-power-manager.py %{python_sitearch}/%{name}/powermanage.py @@ -326,14 +368,11 @@ gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : %{python_sitearch}/%{name}/guidance_power_manager_ui.py %{python_sitearch}/%{name}/notify.py %{python_sitearch}/%{name}/tooltip.py -%{_datadir}/icons/hicolor/22x22/apps/power-manager.png -%{_datadir}/apps/guidance/pics/ac-adapter.png -%{_datadir}/apps/guidance/pics/battery*.png -%{_datadir}/apps/guidance/pics/processor.png -%{_datadir}/autostart/guidance-power-manager.desktop - -%exclude %{python_sitearch}/%{name}/*.pyc -%exclude %{python_sitearch}/%{name}/*.pyo +%{tde_datadir}/icons/hicolor/22x22/apps/power-manager.png +%{tde_datadir}/apps/guidance/pics/ac-adapter.png +%{tde_datadir}/apps/guidance/pics/battery*.png +%{tde_datadir}/apps/guidance/pics/processor.png +%{tde_datadir}/autostart/guidance-power-manager.desktop diff --git a/redhat/applications/kde-style-lipstik/trinity-kde-style-lipstik-3.5.13.spec b/redhat/applications/kde-style-lipstik/trinity-kde-style-lipstik-3.5.13.spec index 5883a3d92..8834e935a 100644 --- a/redhat/applications/kde-style-lipstik/trinity-kde-style-lipstik-3.5.13.spec +++ b/redhat/applications/kde-style-lipstik/trinity-kde-style-lipstik-3.5.13.spec @@ -1,25 +1,32 @@ # Default version for this component %define kdecomp kde-style-lipstik -%define version 2.2.3 -%define release 2 # If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". -%if "%{?_prefix}" != "/usr" +%if "%{?tde_prefix}" != "/usr" %define _variant .opt -%define _docdir %{_prefix}/share/doc %endif # TDE 3.5.13 specific building variables -BuildRequires: autoconf automake libtool m4 -%define tde_docdir %{_docdir}/kde -%define tde_includedir %{_includedir}/kde -%define tde_libdir %{_libdir}/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_mandir %{tde_datadir}/man +%define tde_appdir %{tde_datadir}/applications + +%define tde_tdeappdir %{tde_appdir}/kde +%define tde_tdedocdir %{tde_docdir}/kde +%define tde_tdeincludedir %{tde_includedir}/kde +%define tde_tdelibdir %{tde_libdir}/trinity + +%define _docdir %{tde_docdir} Name: trinity-style-lipstik Summary: Lipstik style for TDE -Version: %{?version} -Release: %{?release}%{?dist}%{?_variant} +Version: 2.2.3 +Release: 2%{?dist}%{?_variant} License: GPLv2+ Group: Applications/Utilities @@ -28,16 +35,16 @@ Vendor: Trinity Project Packager: Francois Andriot <francois.andriot@free.fr> URL: http://www.trinitydesktop.org/ -Prefix: %{_prefix} +Prefix: %{tde_prefix} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source0: %{kdecomp}-3.5.13.tar.gz -Obsoletes: trinity-kde-style-lipstik +Obsoletes: trinity-kde-style-lipstik BuildRequires: tqtinterface-devel -BuildRequires: trinity-kdelibs-devel -BuildRequires: trinity-kdebase-devel +BuildRequires: trinity-tdelibs-devel +BuildRequires: trinity-tdebase-devel BuildRequires: desktop-file-utils BuildRequires: gettext @@ -55,8 +62,8 @@ Lipstik also provides Lipstik-color-schemes # Ugly hack to modify TQT include directory inside autoconf files. # If TQT detection fails, it fallbacks to TQT4 instead of TQT3 ! %__sed -i admin/acinclude.m4.in \ - -e "s|/usr/include/tqt|%{_includedir}/tqt|g" \ - -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_docdir}/HTML'|g" + -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \ + -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g" %__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in" %__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh" @@ -64,18 +71,23 @@ Lipstik also provides Lipstik-color-schemes %build -export PATH="%{_bindir}:${PATH}" -export LDFLAGS="-L%{_libdir} -I%{_includedir}" +unset QTDIR; . /etc/profile.d/qt.sh +export PATH="%{tde_bindir}:${PATH}" +export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}" %configure \ - --disable-rpath \ - --with-extra-includes=%{_includedir}/tqt + --prefix=%{tde_prefix} \ + --exec-prefix=%{tde_prefix} \ + --datadir=%{tde_datadir} \ + --libdir=%{tde_libdir} \ + --disable-rpath \ + --with-extra-includes=%{tde_includedir}/tqt %__make %{?_smp_mflags} %install -export PATH="%{_bindir}:${PATH}" +export PATH="%{tde_bindir}:${PATH}" %__rm -rf %{buildroot} %__make install DESTDIR=%{buildroot} @@ -88,14 +100,14 @@ export PATH="%{_bindir}:${PATH}" %files %defattr(-,root,root,-) %doc AUTHORS COPYING -%{tde_libdir}/kstyle_lipstik_config.la -%{tde_libdir}/kstyle_lipstik_config.so -%{tde_libdir}/plugins/styles/lipstik.la -%{tde_libdir}/plugins/styles/lipstik.so -%{_datadir}/apps/kdisplay/color-schemes/lipstiknoble.kcsrc -%{_datadir}/apps/kdisplay/color-schemes/lipstikstandard.kcsrc -%{_datadir}/apps/kdisplay/color-schemes/lipstikwhite.kcsrc -%{_datadir}/apps/kstyle/themes/lipstik.themerc +%{tde_tdelibdir}/kstyle_lipstik_config.la +%{tde_tdelibdir}/kstyle_lipstik_config.so +%{tde_tdelibdir}/plugins/styles/lipstik.la +%{tde_tdelibdir}/plugins/styles/lipstik.so +%{tde_datadir}/apps/kdisplay/color-schemes/lipstiknoble.kcsrc +%{tde_datadir}/apps/kdisplay/color-schemes/lipstikstandard.kcsrc +%{tde_datadir}/apps/kdisplay/color-schemes/lipstikwhite.kcsrc +%{tde_datadir}/apps/kstyle/themes/lipstik.themerc %Changelog diff --git a/redhat/applications/kde-style-qtcurve/trinity-kde-style-qtcurve.spec b/redhat/applications/kde-style-qtcurve/trinity-kde-style-qtcurve.spec index b52e16305..b859075ba 100644 --- a/redhat/applications/kde-style-qtcurve/trinity-kde-style-qtcurve.spec +++ b/redhat/applications/kde-style-qtcurve/trinity-kde-style-qtcurve.spec @@ -1,25 +1,32 @@ # Default version for this component %define kdecomp kde-style-qtcurve -%define version 0.55.2 -%define release 2 # If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". -%if "%{?_prefix}" != "/usr" +%if "%{?tde_prefix}" != "/usr" %define _variant .opt -%define _docdir %{_prefix}/share/doc %endif # TDE 3.5.13 specific building variables -BuildRequires: autoconf automake libtool m4 -%define tde_docdir %{_docdir}/kde -%define tde_includedir %{_includedir}/kde -%define tde_libdir %{_libdir}/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_mandir %{tde_datadir}/man +%define tde_appdir %{tde_datadir}/applications + +%define tde_tdeappdir %{tde_appdir}/kde +%define tde_tdedocdir %{tde_docdir}/kde +%define tde_tdeincludedir %{tde_includedir}/kde +%define tde_tdelibdir %{tde_libdir}/trinity + +%define _docdir %{tde_docdir} Name: trinity-style-qtcurve Summary: This is a set of widget styles for Trinity based apps -Version: %{?version} -Release: %{?release}%{?dist}%{?_variant} +Version: 0.55.2 +Release: 2%{?dist}%{?_variant} License: GPLv2+ Group: Applications/Utilities @@ -28,7 +35,7 @@ Vendor: Trinity Project Packager: Francois Andriot <francois.andriot@free.fr> URL: http://www.trinitydesktop.org/ -Prefix: %{_prefix} +Prefix: %{tde_prefix} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source0: %{kdecomp}-3.5.13.tar.gz @@ -36,8 +43,8 @@ Source0: %{kdecomp}-3.5.13.tar.gz Patch0: kde-style-qtcurve-1.6.2-libsuffix.patch BuildRequires: tqtinterface-devel -BuildRequires: trinity-kdelibs-devel -BuildRequires: trinity-kdebase-devel +BuildRequires: trinity-tdelibs-devel +BuildRequires: trinity-tdebase-devel BuildRequires: desktop-file-utils BuildRequires: gettext @@ -58,26 +65,29 @@ gtk2-engines-qtcurve. # Ugly hack to modify TQT include directory inside autoconf files. # If TQT detection fails, it fallbacks to TQT4 instead of TQT3 ! %__sed -i CMakeLists.txt \ - -e "s|/usr/include/tqt|%{_includedir}/tqt|g" + -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" %build unset QTDIR || : ; . /etc/profile.d/qt.sh -export PATH="%{_bindir}:${PATH}" +export PATH="%{tde_bindir}:${PATH}" + +export CXXFLAGS="-I${QTINC} -I%{tde_tdeincludedir} ${CXXFLAGS}" -export CXXFLAGS="-I${QTINC} ${CXXFLAGS}" - -%__mkdir build +%if 0%{?rhel} || 0%{?fedora} +%__mkdir_p build cd build +%endif + %cmake \ - -DKDE3PREFIX=%{_prefix} \ + -DKDE3PREFIX=%{tde_prefix} \ .. %__make %{?_smp_mflags} %install -export PATH="%{_bindir}:${PATH}" +export PATH="%{tde_bindir}:${PATH}" %__rm -rf %{buildroot} %__make install DESTDIR=%{buildroot} -C build @@ -90,20 +100,20 @@ export PATH="%{_bindir}:${PATH}" %files %defattr(-,root,root,-) %doc AUTHORS COPYING -%{tde_libdir}/plugins/styles/qtcurve.so -%{_datadir}/apps/QtCurve/Agua.qtcurve -%{_datadir}/apps/QtCurve/Agua_II.qtcurve -%{_datadir}/apps/QtCurve/Curve.qtcurve -%{_datadir}/apps/QtCurve/Flat.qtcurve -%{_datadir}/apps/QtCurve/Human.qtcurve -%{_datadir}/apps/QtCurve/Inverted.qtcurve -%{_datadir}/apps/QtCurve/Klearlooks.qtcurve -%{_datadir}/apps/QtCurve/Milk.qtcurve -%{_datadir}/apps/QtCurve/Murrine.qtcurve -%{_datadir}/apps/QtCurve/Ozone.qtcurve -%{_datadir}/apps/QtCurve/Plastic.qtcurve -%{_datadir}/apps/QtCurve/Silk.qtcurve -%{_datadir}/apps/kdisplay/color-schemes/QtCurve.kcsrc +%{tde_tdelibdir}/plugins/styles/qtcurve.so +%{tde_datadir}/apps/QtCurve/Agua.qtcurve +%{tde_datadir}/apps/QtCurve/Agua_II.qtcurve +%{tde_datadir}/apps/QtCurve/Curve.qtcurve +%{tde_datadir}/apps/QtCurve/Flat.qtcurve +%{tde_datadir}/apps/QtCurve/Human.qtcurve +%{tde_datadir}/apps/QtCurve/Inverted.qtcurve +%{tde_datadir}/apps/QtCurve/Klearlooks.qtcurve +%{tde_datadir}/apps/QtCurve/Milk.qtcurve +%{tde_datadir}/apps/QtCurve/Murrine.qtcurve +%{tde_datadir}/apps/QtCurve/Ozone.qtcurve +%{tde_datadir}/apps/QtCurve/Plastic.qtcurve +%{tde_datadir}/apps/QtCurve/Silk.qtcurve +%{tde_datadir}/apps/kdisplay/color-schemes/QtCurve.kcsrc %Changelog diff --git a/redhat/applications/kde-systemsettings/trinity-kde-systemsettings.spec b/redhat/applications/kde-systemsettings/trinity-kde-systemsettings.spec index 17fd66486..ed156aba8 100644 --- a/redhat/applications/kde-systemsettings/trinity-kde-systemsettings.spec +++ b/redhat/applications/kde-systemsettings/trinity-kde-systemsettings.spec @@ -2,19 +2,27 @@ %define kdecomp kde-systemsettings # If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". -%if "%{?_prefix}" != "/usr" +%if "%{?tde_prefix}" != "/usr" %define _variant .opt -%define _docdir %{_datadir}/doc - # Currently, menu files under /etc/xdg conflict with KDE4 -%define _sysconfdir %{_prefix}/etc +%define tde_sysconfdir %{tde_prefix}/etc %endif # TDE 3.5.13 specific building variables -BuildRequires: autoconf automake libtool m4 -%define tde_docdir %{_docdir}/kde -%define tde_includedir %{_includedir}/kde -%define tde_libdir %{_libdir}/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_mandir %{tde_datadir}/man +%define tde_appdir %{tde_datadir}/applications + +%define tde_tdeappdir %{tde_appdir}/kde +%define tde_tdedocdir %{tde_docdir}/kde +%define tde_tdeincludedir %{tde_includedir}/kde +%define tde_tdelibdir %{tde_libdir}/trinity + +%define _docdir %{tde_docdir} Name: trinity-systemsettings @@ -29,7 +37,7 @@ Vendor: Trinity Project Packager: Francois Andriot <francois.andriot@free.fr> URL: http://www.trinitydesktop.org -Prefix: %{_prefix} +Prefix: %{tde_prefix} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source0: %{kdecomp}-3.5.13.tar.gz @@ -56,8 +64,8 @@ Control Centre with an improved user interface. # Ugly hack to modify TQT include directory inside autoconf files. # If TQT detection fails, it fallbacks to TQT4 instead of TQT3 ! %__sed -i admin/acinclude.m4.in \ - -e "s|/usr/include/tqt|%{_includedir}/tqt|g" \ - -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_docdir}/HTML'|g" + -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \ + -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g" %__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in" %__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh" @@ -66,57 +74,65 @@ Control Centre with an improved user interface. %build unset QTDIR; . /etc/profile.d/qt.sh -export PATH="%{_bindir}:${PATH}" -export LDFLAGS="-L%{_libdir} -I%{_includedir}" +export PATH="%{tde_bindir}:${PATH}" +export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}" %configure \ - --disable-rpath \ - --with-extra-includes=%{_includedir}/tqt \ - --enable-closure + --prefix=%{tde_prefix} \ + --exec-prefix=%{tde_prefix} \ + --bindir=%{tde_bindir} \ + --datadir=%{tde_datadir} \ + --sysconfdir=%{tde_sysconfdir} \ + --disable-rpath \ + --with-extra-includes=%{tde_includedir}/tqt \ + --enable-closure %__make %{?_smp_mflags} %install -export PATH="%{_bindir}:${PATH}" +export PATH="%{tde_bindir}:${PATH}" %__rm -rf %{buildroot} %__make install DESTDIR=%{buildroot} -%__install -D -m 644 %{SOURCE1} %{buildroot}%{_datadir}/desktop-directories/ +%__install -D -m 644 %{SOURCE1} %{buildroot}%{tde_datadir}/desktop-directories/ + +# Unwanted files +%__rm -f %{buildroot}%{tde_datadir}/applications/kde/kcmfontinst.desktop +%__rm -f %{buildroot}%{tde_datadir}/desktop-directories/kde-settings-power.directory +%__rm -f %{buildroot}%{tde_datadir}/desktop-directories/kde-settings-system.directory %clean %__rm -rf %{buildroot} %post -touch --no-create %{_datadir}/icons/crystalsvg || : -gtk-update-icon-cache --quiet %{_datadir}/icons/crystalsvg || : +touch --no-create %{tde_datadir}/icons/crystalsvg || : +gtk-update-icon-cache --quiet %{tde_datadir}/icons/crystalsvg || : +xdg-user-dirs-update %postun -touch --no-create %{_datadir}/icons/crystalsvg || : -gtk-update-icon-cache --quiet %{_datadir}/icons/crystalsvg || : - +touch --no-create %{tde_datadir}/icons/crystalsvg || : +gtk-update-icon-cache --quiet %{tde_datadir}/icons/crystalsvg || : +xdg-user-dirs-update %files %defattr(-,root,root,-) %doc README TODO -%{_sysconfdir}/xdg/menus/applications-merged/system-settings-merge.menu -%{_sysconfdir}/xdg/menus/system-settings.menu -%{_bindir}/systemsettings -%{_datadir}/applications/kde/audioencoding.desktop -%{_datadir}/applications/kde/defaultapplication.desktop -%{_datadir}/applications/kde/kcm_knetworkconfmodule_ss.desktop -%{_datadir}/applications/kde/laptoppowermanagement.desktop -%{_datadir}/applications/kde/medianotifications.desktop -%{_datadir}/applications/kde/systemsettings.desktop -%{_datadir}/apps/systemsettings/systemsettingsui.rc -%{_datadir}/config/systemsettingsrc -%{_datadir}/desktop-directories/*.directory -%{_datadir}/icons/crystalsvg/*/apps/systemsettings.png - -%exclude %{_datadir}/applications/kde/kcmfontinst.desktop -%exclude %{_datadir}/desktop-directories/kde-settings-power.directory -%exclude %{_datadir}/desktop-directories/kde-settings-system.directory +%{tde_sysconfdir}/xdg/menus/applications-merged/system-settings-merge.menu +%{tde_sysconfdir}/xdg/menus/system-settings.menu +%{tde_bindir}/systemsettings +%{tde_datadir}/applications/kde/audioencoding.desktop +%{tde_datadir}/applications/kde/defaultapplication.desktop +%{tde_datadir}/applications/kde/kcm_knetworkconfmodule_ss.desktop +%{tde_datadir}/applications/kde/laptoppowermanagement.desktop +%{tde_datadir}/applications/kde/medianotifications.desktop +%{tde_datadir}/applications/kde/systemsettings.desktop +%{tde_datadir}/apps/systemsettings/systemsettingsui.rc +%{tde_datadir}/config/systemsettingsrc +%{tde_datadir}/desktop-directories/*.directory +%{tde_datadir}/icons/crystalsvg/*/apps/systemsettings.png + %Changelog diff --git a/redhat/applications/kdesudo/trinity-kdesudo-3.5.13.spec b/redhat/applications/kdesudo/trinity-kdesudo-3.5.13.spec index 2817ed3db..da04bb7ef 100644 --- a/redhat/applications/kdesudo/trinity-kdesudo-3.5.13.spec +++ b/redhat/applications/kdesudo/trinity-kdesudo-3.5.13.spec @@ -1,26 +1,33 @@ # Default version for this component %define kdecomp kdesudo -%define version 2.5.1 -%define release 2 # If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". -%if "%{?_prefix}" != "/usr" +%if "%{?tde_prefix}" != "/usr" %define _variant .opt -%define _docdir %{_prefix}/share/doc %endif # TDE 3.5.13 specific building variables -BuildRequires: autoconf automake libtool m4 -%define tde_docdir %{_docdir}/kde -%define tde_includedir %{_includedir}/kde -%define tde_libdir %{_libdir}/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_mandir %{tde_datadir}/man +%define tde_appdir %{tde_datadir}/applications + +%define tde_tdeappdir %{tde_appdir}/kde +%define tde_tdedocdir %{tde_docdir}/kde +%define tde_tdeincludedir %{tde_includedir}/kde +%define tde_tdelibdir %{tde_libdir}/trinity + +%define _docdir %{tde_docdir} Name: trinity-%{kdecomp} Summary: sudo frontend for Trinity -Version: %{?version} -Release: %{?release}%{?dist}%{?_variant} +Version: 2.5.1 +Release: 2%{?dist}%{?_variant} License: GPLv2+ Group: Applications/Utilities @@ -36,8 +43,8 @@ Source0: %{kdecomp}-3.5.13.tar.gz BuildRequires: tqtinterface-devel BuildRequires: trinity-arts-devel -BuildRequires: trinity-kdelibs-devel -BuildRequires: trinity-kdebase-devel +BuildRequires: trinity-tdelibs-devel +BuildRequires: trinity-tdebase-devel BuildRequires: desktop-file-utils @@ -52,8 +59,8 @@ It allows you to run programs as another user by entering your password. # Ugly hack to modify TQT include directory inside autoconf files. # If TQT detection fails, it fallbacks to TQT4 instead of TQT3 ! %__sed -i admin/acinclude.m4.in \ - -e "s|/usr/include/tqt|%{_includedir}/tqt|g" \ - -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_docdir}/HTML'|g" + -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \ + -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g" %__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in" %__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh" @@ -62,18 +69,21 @@ It allows you to run programs as another user by entering your password. %build unset QTDIR || : ; source /etc/profile.d/qt.sh -export PATH="%{_bindir}:${PATH}" -export LDFLAGS="-L%{_libdir} -I%{_includedir}" +export PATH="%{tde_bindir}:${PATH}" +export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}" %configure \ - --disable-rpath \ - --with-extra-includes=%{_includedir}/tqt + --prefix=%{tde_prefix} \ + --exec-prefix=%{tde_prefix} \ + --bindir=%{tde_bindir} \ + --disable-rpath \ + --with-extra-includes=%{tde_includedir}/tqt %__make %{?_smp_mflags} %install -export PATH="%{_bindir}:${PATH}" +export PATH="%{tde_bindir}:${PATH}" %__rm -rf %{buildroot} %__make install DESTDIR=%{buildroot} @@ -97,19 +107,17 @@ for lang_dir in %{buildroot}$HTML_DIR/* ; do done fi +%find_lang %{kdecomp} %clean %__rm -rf %{buildroot} -%files +%files -f %{kdecomp}.lang %defattr(-,root,root,-) -%{_bindir}/kdesudo -%{tde_docdir}/HTML/en/kdesudo/common -%{tde_docdir}/HTML/en/kdesudo/index.cache.bz2 -%{tde_docdir}/HTML/en/kdesudo/index.docbook -%{_datadir}/locale/fr/LC_MESSAGES/kdesudo.mo +%{tde_bindir}/kdesudo +%{tde_tdedocdir}/HTML/en/kdesudo/ %Changelog diff --git a/redhat/applications/kdesvn/kdesvn-3.5.13-fix_not_a_string_literal_error.patch b/redhat/applications/kdesvn/kdesvn-3.5.13-fix_not_a_string_literal_error.patch new file mode 100644 index 000000000..c912db32b --- /dev/null +++ b/redhat/applications/kdesvn/kdesvn-3.5.13-fix_not_a_string_literal_error.patch @@ -0,0 +1,127 @@ +--- kdesvn/src/svnqt/cache/LogCache.cpp.stringliteral 2011-08-17 23:41:23.000000000 +0200 ++++ kdesvn/src/svnqt/cache/LogCache.cpp 2012-08-05 12:44:59.038119225 +0200 +@@ -187,7 +187,7 @@ + TQDataBase db = TQSqlDatabase::addDatabase(SQLTYPE,_key); + db->setDatabaseName(m_BasePath+"/maindb.db"); + if (!db->open()) { +- qWarning("Failed to open main database: " + db->lastError().text()); ++ qWarning("%s", (TQString("Failed to open main database: " + db->lastError().text())).ascii()); + } else { + m_mainDB.setLocalData(new ThreadDBStore); + m_mainDB.localData()->key = _key; +@@ -269,12 +269,12 @@ + #endif + TQDataBase mainDB = m_CacheData->getMainDB(); + if (!mainDB || !mainDB->open()) { +- qWarning("Failed to open main database: " + (mainDB?mainDB->lastError().text():"No database object.")); ++ qWarning("%s", ("Failed to open main database: " + (mainDB?mainDB->lastError().text():"No database object.")).ascii()); + } else { + TQSqlQuery q(TQString(), mainDB); + mainDB->transaction(); + if (!q.exec("CREATE TABLE IF NOT EXISTS \""+TQString(SQLMAINTABLE)+"\" (\"reposroot\" TEXT,\"id\" INTEGER PRIMARY KEY NOT NULL);")) { +- qWarning("Failed create main database: " + mainDB->lastError().text()); ++ qWarning("%s", ("Failed create main database: " + mainDB->lastError().text()).ascii()); + } + mainDB->commit(); + } +@@ -321,7 +321,7 @@ + TQSqlQuery cur(TQString(),mainDB); + cur.prepare(s_q); + if (!cur.exec()) { +- qDebug(cur.lastError().text().TOUTF8().data()); ++ qDebug("%s", (TQString(cur.lastError().text().TOUTF8().data())).ascii()); + throw svn::cache::DatabaseException(TQString("Could not retrieve values: ")+cur.lastError().text()); + return _res; + } +--- kdesvn/src/svnqt/cache/ReposLog.cpp.ORI 2012-08-05 12:50:50.352685697 +0200 ++++ kdesvn/src/svnqt/cache/ReposLog.cpp 2012-08-05 12:55:39.515888432 +0200 +@@ -68,7 +68,7 @@ + TQString q("select revision from 'logentries' order by revision DESC limit 1"); + TQSqlQuery _q(TQString(), m_Database); + if (!_q.exec(q)) { +- qDebug(_q.lastError().text().TOUTF8().data()); ++ qDebug("%s", (TQString(_q.lastError().text().TOUTF8().data())).ascii()); + return svn::Revision::UNDEFINED; + } + int _r; +@@ -76,7 +76,7 @@ + //qDebug("Sel result: %s",_q.value(0).toString().TOUTF8().data()); + _r = _q.value(0).toInt(); + } else { +- qDebug(_q.lastError().text().TOUTF8().data()); ++ qDebug("%s", (TQString(_q.lastError().text().TOUTF8().data())).ascii()); + return svn::Revision::UNDEFINED; + } + return _r; +@@ -197,7 +197,7 @@ + bcount.bindValue(0,TQ_LLONG(end.revnum())); + bcount.bindValue(1,TQ_LLONG(start.revnum())); + if (!bcount.exec()) { +- qDebug(bcount.lastError().text().TOUTF8().data()); ++ qDebug("%s", (TQString(bcount.lastError().text().TOUTF8().data())).ascii()); + throw svn::cache::DatabaseException(TQString("Could not retrieve count: ")+bcount.lastError().text()); + return false; + } +@@ -211,7 +211,7 @@ + bcur.bindValue(1,TQ_LLONG(start.revnum())); + + if (!bcur.exec()) { +- qDebug(bcur.lastError().text().TOUTF8().data()); ++ qDebug("%s", (TQString(bcur.lastError().text().TOUTF8().data())).ascii()); + throw svn::cache::DatabaseException(TQString("Could not retrieve values: ")+bcur.lastError().text()); + return false; + } +@@ -220,7 +220,7 @@ + revision = bcur.value(0).toLongLong(); + cur.bindValue(0,revision); + if (!cur.exec()) { +- qDebug(cur.lastError().text().TOUTF8().data()); ++ qDebug("%s", (TQString(cur.lastError().text().TOUTF8().data())).ascii()); + throw svn::cache::DatabaseException(TQString("Could not retrieve values: ")+cur.lastError().text() + ,cur.lastError().number()); + return false; +@@ -264,7 +264,7 @@ + TQSqlQuery query("select revision,date from logentries order by revision desc limit 1",m_Database); + + if (query.lastError().type()!=TQSqlError::None) { +- qDebug(query.lastError().text().TOUTF8().data()); ++ qDebug("%s", (TQString(query.lastError().text().TOUTF8().data())).ascii()); + } + bool must_remote=!noNetwork; + if (query.next()) { +@@ -283,7 +283,7 @@ + query.bindValue(0,TQ_LLONG(aRev.date())); + query.exec(); + if (query.lastError().type()!=TQSqlError::None) { +- qDebug(query.lastError().text().TOUTF8().data()); ++ qDebug("%s", (TQString(query.lastError().text().TOUTF8().data())).ascii()); + } + if (query.next()) { + return query.value(0).toInt(); +@@ -320,7 +320,7 @@ + if (!_q.exec()) { + m_Database->rollback(); + qDebug("Could not insert values: %s",_q.lastError().text().TOUTF8().data()); +- qDebug(_q.lastQuery().TOUTF8().data()); ++ qDebug("%s", (TQString(_q.lastQuery().TOUTF8().data())).ascii()); + throw svn::cache::DatabaseException(TQString("Could not insert values: ")+_q.lastError().text(),_q.lastError().number()); + } + _q.prepare(qPathes); +@@ -334,7 +334,7 @@ + if (!_q.exec()) { + m_Database->rollback(); + qDebug("Could not insert values: %s",_q.lastError().text().TOUTF8().data()); +- qDebug(_q.lastQuery().TOUTF8().data()); ++ qDebug("%s", (TQString(_q.lastQuery().TOUTF8().data())).ascii()); + throw svn::cache::DatabaseException(TQString("Could not insert values: ")+_q.lastError().text(),_q.lastError().number()); + } + } +@@ -375,7 +375,7 @@ + _q.prepare(query_string); + if (!_q.exec()) { + qDebug("Could not select values: %s",_q.lastError().text().TOUTF8().data()); +- qDebug(_q.lastQuery().TOUTF8().data()); ++ qDebug("%s", (TQString(_q.lastQuery().TOUTF8().data())).ascii()); + throw svn::cache::DatabaseException(TQString("Could not select values: ")+_q.lastError().text(),_q.lastError().number()); + } + while(_q.next()) { diff --git a/redhat/applications/kdesvn/trinity-kdesvn.spec b/redhat/applications/kdesvn/trinity-kdesvn.spec index 8e7f0c065..ce67e8923 100644 --- a/redhat/applications/kdesvn/trinity-kdesvn.spec +++ b/redhat/applications/kdesvn/trinity-kdesvn.spec @@ -2,24 +2,27 @@ %define kdecomp kdesvn # If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". -%if "%{?_prefix}" != "/usr" +%if "%{?tde_prefix}" != "/usr" %define _variant .opt %endif # TDE 3.5.13 specific building variables -BuildRequires: autoconf automake libtool m4 -%define tde_bindir %{_prefix}/bin -%define tde_datadir %{_prefix}/share +%define tde_bindir %{tde_prefix}/bin +%define tde_datadir %{tde_prefix}/share %define tde_docdir %{tde_datadir}/doc -%define tde_includedir %{_prefix}/include -%define tde_libdir %{_prefix}/%{_lib} +%define tde_includedir %{tde_prefix}/include +%define tde_libdir %{tde_prefix}/%{_lib} %define tde_mandir %{tde_datadir}/man +%define tde_appdir %{tde_datadir}/applications -%define tde_tdeappdir %{tde_datadir}/applications/kde +%define tde_tdeappdir %{tde_appdir}/kde %define tde_tdedocdir %{tde_docdir}/kde %define tde_tdeincludedir %{tde_includedir}/kde %define tde_tdelibdir %{tde_libdir}/trinity +%define _docdir %{tde_docdir} + + Name: trinity-%{kdecomp} Summary: subversion client with tight KDE integration [Trinity] Version: 1.0.4 @@ -39,6 +42,8 @@ Source0: %{kdecomp}-3.5.13.tar.gz # [kdesvn] Fix compilation with GCC 4.7 Patch1: kdesvn-3.5.13-fix_gcc47_compilation.patch +# [kdesvn] Fix "not a string literal" error +Patch2: kdesvn-3.5.13-fix_not_a_string_literal_error.patch BuildRequires: tqtinterface-devel BuildRequires: trinity-tdelibs-devel @@ -98,18 +103,19 @@ This package is part of tdesvn-trinity. %prep %setup -q -n applications/%{kdecomp} %patch1 -p1 +%patch2 -p1 -b .stringliteral # Ugly hack to modify TQT include directory inside autoconf files. # If TQT detection fails, it fallbacks to TQT4 instead of TQT3 ! find . -name CMakeLists.txt -exec %__sed -i {} \ - -e "s,/usr/include/tqt,%{_includedir}/tqt,g" \ - -e "s,/usr/bin/tmoc,%{_bindir}/tmoc,g" \ - -e "s,/usr/bin/uic-tqt,%{_bindir}/uic-tqt,g" \ + -e "s,/usr/include/tqt,%{tde_includedir}/tqt,g" \ + -e "s,/usr/bin/tmoc,%{tde_bindir}/tmoc,g" \ + -e "s,/usr/bin/uic-tqt,%{tde_bindir}/uic-tqt,g" \ \; # More ugly hack to add TQT include directory in CMakeLists.txt %__sed -i CMakeLists.txt \ - -e "s,^\(INCLUDE_DIRECTORIES (\)$,\1\n%{_includedir}/tqt," + -e "s,^\(INCLUDE_DIRECTORIES (\)$,\1\n%{tde_includedir}/tqt," # Moves HTML files to the correect location find . -name "*.cmake" -exec %__sed -i {} \ @@ -118,15 +124,23 @@ find . -name "*.cmake" -exec %__sed -i {} \ %build unset QTDIR; . /etc/profile.d/qt.sh -export PATH="%{_bindir}:${QTDIR}/bin:${PATH}" -export LDFLAGS="-L%{_libdir} -I%{_includedir}" +export PATH="%{tde_bindir}:${QTDIR}/bin:${PATH}" +export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}" + +export CMAKE_INCLUDE_PATH="%{tde_tdeincludedir}" + +%if 0%{?rhel} || 0%{?fedora} +%__mkdir_p build +cd build +%endif -%{?!mgaversion:%__mkdir build; cd build} %cmake \ + -DCMAKE_INSTALL_PREFIX=%{tde_prefix} \ -DBIN_INSTALL_DIR=%{tde_bindir} \ -DINCLUDE_INSTALL_DIR=%{tde_includedir} \ -DLIB_INSTALL_DIR=%{tde_libdir} \ -DMAN_INSTALL_DIR=%{tde_mandir}/man1 \ + -DDATA_INSTALL_DIR=%{tde_datadir} \ -DPKGCONFIG_INSTALL_DIR=%{tde_tdelibdir}/pkgconfig \ -DSHARE_INSTALL_PREFIX=%{tde_datadir} \ -DCMAKE_SKIP_RPATH="OFF" \ diff --git a/redhat/applications/kdiff3/trinity-kdiff3-3.5.13.spec b/redhat/applications/kdiff3/trinity-kdiff3-3.5.13.spec index 8e12a9298..df4218b5d 100644 --- a/redhat/applications/kdiff3/trinity-kdiff3-3.5.13.spec +++ b/redhat/applications/kdiff3/trinity-kdiff3-3.5.13.spec @@ -1,26 +1,32 @@ # Default version for this component %define kdecomp kdiff3 -%define version 0.9.91 -%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" +%if "%{?tde_prefix}" != "/usr" %define _variant .opt -%define _docdir %{_datadir}/doc -%define _mandir %{_datadir}/man %endif # TDE 3.5.13 specific building variables -BuildRequires: autoconf automake libtool m4 -%define tde_docdir %{_docdir}/kde -%define tde_includedir %{_includedir}/kde -%define tde_libdir %{_libdir}/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_mandir %{tde_datadir}/man +%define tde_appdir %{tde_datadir}/applications + +%define tde_tdeappdir %{tde_appdir}/kde +%define tde_tdedocdir %{tde_docdir}/kde +%define tde_tdeincludedir %{tde_includedir}/kde +%define tde_tdelibdir %{tde_libdir}/trinity + +%define _docdir %{tde_docdir} Name: trinity-%{kdecomp} Summary: KDiff3 is a utility for comparing and/or merging two or three text files or directories. -Version: %{?version} -Release: %{?release}%{?dist}%{?_variant} +Version: 0.9.91 +Release: 4%{?dist}%{?_variant} License: GPLv2+ Group: Applications/Utilities @@ -29,7 +35,7 @@ Vendor: Trinity Project Packager: Francois Andriot <francois.andriot@free.fr> URL: http://www.trinitydesktop.org/ -Prefix: %{_prefix} +Prefix: %{tde_prefix} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source0: %{kdecomp}-3.5.13.tar.gz @@ -63,8 +69,8 @@ Unicode & UTF-8 support # Ugly hack to modify TQT include directory inside autoconf files. # If TQT detection fails, it fallbacks to TQT4 instead of TQT3 ! %__sed -i admin/acinclude.m4.in \ - -e "s|/usr/include/tqt|%{_includedir}/tqt|g" \ - -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_docdir}/HTML'|g" + -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \ + -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g" %__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in" %__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh" @@ -72,22 +78,30 @@ Unicode & UTF-8 support %build -export PATH="%{_bindir}:${PATH}" -export LDFLAGS="-L%{_libdir} -I%{_includedir}" +unset QTDIR; . /etc/profile.d/qt.sh +export PATH="%{tde_bindir}:${PATH}" +export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}" %configure \ - --disable-rpath \ - --with-extra-includes=%{_includedir}/tqt \ - --enable-closure + --prefix=%{tde_prefix} \ + --exec-prefix=%{tde_prefix} \ + --bindir=%{tde_bindir} \ + --datadir=%{tde_datadir} \ + --libdir=%{tde_libdir} \ + --mandir=%{tde_mandir} \ + --disable-rpath \ + --with-extra-includes=%{tde_includedir}/tqt \ + --enable-closure %__make %{?_smp_mflags} %install -export PATH="%{_bindir}:${PATH}" +export PATH="%{tde_bindir}:${PATH}" %__rm -rf %{buildroot} %__make install DESTDIR=%{buildroot} +%find_lang %{kdecomp} %clean %__rm -rf %{buildroot} @@ -95,33 +109,32 @@ export PATH="%{_bindir}:${PATH}" %post for f in hicolor locolor; do - touch --no-create %{_datadir}/icons/${f} || : - gtk-update-icon-cache --quiet %{_datadir}/icons/${f} || : + touch --no-create %{tde_datadir}/icons/${f} || : + gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} || : done %postun for f in hicolor locolor; do - touch --no-create %{_datadir}/icons/${f} || : - gtk-update-icon-cache --quiet %{_datadir}/icons/${f} || : + touch --no-create %{tde_datadir}/icons/${f} || : + gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} || : done -%files +%files -f %{kdecomp}.lang %defattr(-,root,root,-) %doc AUTHORS COPYING -%{_bindir}/* -%{_datadir}/apps/*/ -%{_datadir}/icons/hicolor/*/*/* -%{_datadir}/icons/locolor/*/*/* -%{_datadir}/locale/*/*/*.mo -%{tde_docdir}/HTML/*/* -%{_datadir}/services/*.desktop -%{tde_libdir}/*.so -%{_datadir}/applnk/Development/*.desktop -%{_datadir}/applnk/.hidden/*.desktop -%{_mandir}/man*/* - -%{tde_libdir}/*.la +%{tde_bindir}/* +%{tde_datadir}/apps/*/ +%{tde_datadir}/icons/hicolor/*/*/* +%{tde_datadir}/icons/locolor/*/*/* +%{tde_tdedocdir}/HTML/*/* +%{tde_datadir}/services/*.desktop +%{tde_datadir}/applnk/Development/*.desktop +%{tde_datadir}/applnk/.hidden/*.desktop +%{tde_mandir}/man*/* + +%{tde_tdelibdir}/*.so +%{tde_tdelibdir}/*.la %Changelog * Tue May 01 2012 Francois Andriot <francois.andriot@free.fr> - 0.9.91-4 diff --git a/redhat/applications/kdirstat/trinity-kdirstat.spec b/redhat/applications/kdirstat/trinity-kdirstat.spec index 153c4b1a6..90691838f 100644 --- a/redhat/applications/kdirstat/trinity-kdirstat.spec +++ b/redhat/applications/kdirstat/trinity-kdirstat.spec @@ -1,25 +1,32 @@ # Default version for this component %define kdecomp kdirstat -%define version 2.4.4 -%define release 2 # If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". -%if "%{?_prefix}" != "/usr" +%if "%{?tde_prefix}" != "/usr" %define _variant .opt -%define _docdir %{_prefix}/share/doc %endif # TDE 3.5.13 specific building variables -BuildRequires: autoconf automake libtool m4 -%define tde_docdir %{_docdir}/kde -%define tde_includedir %{_includedir}/kde -%define tde_libdir %{_libdir}/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_mandir %{tde_datadir}/man +%define tde_appdir %{tde_datadir}/applications + +%define tde_tdeappdir %{tde_appdir}/kde +%define tde_tdedocdir %{tde_docdir}/kde +%define tde_tdeincludedir %{tde_includedir}/kde +%define tde_tdelibdir %{tde_libdir}/trinity + +%define _docdir %{tde_docdir} Name: trinity-%{kdecomp} Summary: graphical disk usage display with cleanup facilities [Trinity] -Version: %{?version} -Release: %{?release}%{?dist}%{?_variant} +Version: 2.4.4 +Release: 2%{?dist}%{?_variant} License: GPLv2+ Group: Applications/Utilities @@ -28,7 +35,7 @@ Vendor: Trinity Project Packager: Francois Andriot <francois.andriot@free.fr> URL: http://www.trinitydesktop.org -Prefix: %{_prefix} +Prefix: %{tde_prefix} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source0: %{kdecomp}-3.5.13.tar.gz @@ -57,8 +64,8 @@ own cleanup actions. # Ugly hack to modify TQT include directory inside autoconf files. # If TQT detection fails, it fallbacks to TQT4 instead of TQT3 ! %__sed -i admin/acinclude.m4.in \ - -e "s|/usr/include/tqt|%{_includedir}/tqt|g" \ - -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_docdir}/HTML'|g" + -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \ + -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g" %__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in" %__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh" @@ -66,24 +73,31 @@ own cleanup actions. %build -export PATH="%{_bindir}:${PATH}" -export LDFLAGS="-L%{_libdir} -I%{_includedir}" +unset QTDIR; . /etc/profile.d/qt.sh +export PATH="%{tde_bindir}:${PATH}" +export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}" %configure \ - --disable-rpath \ - --with-extra-includes=%{_includedir}/tqt:%{tde_includedir} + --prefix=%{tde_prefix} \ + --exec-prefix=%{tde_prefix} \ + --bindir=%{tde_bindir} \ + --datadir=%{tde_datadir} \ + --libdir=%{tde_libdir} \ + --mandir=%{tde_mandir} \ + --disable-rpath \ + --with-extra-includes=%{tde_includedir}/tqt:%{tde_includedir} # SMP safe ! %__make %{?_smp_mflags} %install -export PATH="%{_bindir}:${PATH}" +export PATH="%{tde_bindir}:${PATH}" %__rm -rf %{buildroot} %__make install DESTDIR=%{buildroot} -%find_lang %{kdecomp} || touch %{kdecomp}.lang +%find_lang %{kdecomp} @@ -93,27 +107,27 @@ export PATH="%{_bindir}:${PATH}" %post for f in hicolor locolor; do - touch --no-create %{_datadir}/icons/${f} || : - gtk-update-icon-cache --quiet %{_datadir}/icons/${f} || : + touch --no-create %{tde_datadir}/icons/${f} || : + gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} || : done %postun for f in hicolor locolor; do - touch --no-create %{_datadir}/icons/${f} || : - gtk-update-icon-cache --quiet %{_datadir}/icons/${f} || : + touch --no-create %{tde_datadir}/icons/${f} || : + gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} || : done %files -f %{kdecomp}.lang %defattr(-,root,root,-) -%{_bindir}/kdirstat -%{_datadir}/applnk/Utilities/kdirstat.desktop -%{_datadir}/apps/kconf_update/fix_move_to_trash_bin.pl -%{_datadir}/apps/kconf_update/kdirstat.upd -%{_datadir}/apps/kdirstat -%{tde_docdir}/HTML/en/kdirstat -%{_datadir}/icons/hicolor/*/apps/kdirstat.png -%{_datadir}/icons/locolor/*/apps/kdirstat.png +%{tde_bindir}/kdirstat +%{tde_datadir}/applnk/Utilities/kdirstat.desktop +%{tde_datadir}/apps/kconf_update/fix_move_to_trash_bin.pl +%{tde_datadir}/apps/kconf_update/kdirstat.upd +%{tde_datadir}/apps/kdirstat/ +%{tde_tdedocdir}/HTML/en/kdirstat/ +%{tde_datadir}/icons/hicolor/*/apps/kdirstat.png +%{tde_datadir}/icons/locolor/*/apps/kdirstat.png %Changelog diff --git a/redhat/applications/kdmtheme/kdmtheme.lintian-overrides b/redhat/applications/kdmtheme/kdmtheme.lintian-overrides deleted file mode 100644 index 4932c5f8a..000000000 --- a/redhat/applications/kdmtheme/kdmtheme.lintian-overrides +++ /dev/null @@ -1,6 +0,0 @@ -# provided by tdelibs -kdmtheme: desktop-command-not-in-package ./usr/share/applications/kde/kdmtheme.desktop kcmshell -# kcontrol module -kdmtheme: desktop-entry-invalid-category X-KDE-settings-system ./usr/share/applications/kde/kdmtheme.desktop -kdmtheme: desktop-entry-lacks-main-category ./usr/share/applications/kde/kdmtheme.desktop - diff --git a/redhat/applications/kdmtheme/trinity-kdmtheme.spec b/redhat/applications/kdmtheme/trinity-kdmtheme.spec index b7fb762dd..71d5dbdf0 100644 --- a/redhat/applications/kdmtheme/trinity-kdmtheme.spec +++ b/redhat/applications/kdmtheme/trinity-kdmtheme.spec @@ -2,16 +2,25 @@ %define kdecomp kdmtheme # If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". -%if "%{?_prefix}" != "/usr" +%if "%{?tde_prefix}" != "/usr" %define _variant .opt -%define _docdir %{_datadir}/doc %endif # TDE 3.5.13 specific building variables -BuildRequires: autoconf automake libtool m4 -%define tde_docdir %{_docdir}/kde -%define tde_includedir %{_includedir}/kde -%define tde_libdir %{_libdir}/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_mandir %{tde_datadir}/man +%define tde_appdir %{tde_datadir}/applications + +%define tde_tdeappdir %{tde_appdir}/kde +%define tde_tdedocdir %{tde_docdir}/kde +%define tde_tdeincludedir %{tde_includedir}/kde +%define tde_tdelibdir %{tde_libdir}/trinity + +%define _docdir %{tde_docdir} Name: trinity-%{kdecomp} @@ -26,14 +35,14 @@ Vendor: Trinity Project Packager: Francois Andriot <francois.andriot@free.fr> URL: http://beta.smileaf.org/projects -Prefix: %{_prefix} +Prefix: %{tde_prefix} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source0: %{kdecomp}-3.5.13.tar.gz BuildRequires: tqtinterface-devel -BuildRequires: trinity-kdelibs-devel -BuildRequires: trinity-kdebase-devel +BuildRequires: trinity-tdelibs-devel +BuildRequires: trinity-tdebase-devel BuildRequires: desktop-file-utils BuildRequires: gettext @@ -50,8 +59,8 @@ that allows you to easily install, remove and change your KDM themes. # Ugly hack to modify TQT include directory inside autoconf files. # If TQT detection fails, it fallbacks to TQT4 instead of TQT3 ! %__sed -i admin/acinclude.m4.in \ - -e "s|/usr/include/tqt|%{_includedir}/tqt|g" \ - -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_docdir}/HTML'|g" + -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \ + -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g" %__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in" %__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh" @@ -59,18 +68,25 @@ that allows you to easily install, remove and change your KDM themes. %build -export PATH="%{_bindir}:${PATH}" -export LDFLAGS="-L%{_libdir} -I%{_includedir}" +unset QTDIR; . /etc/profile.d/qt.sh +export PATH="%{tde_bindir}:${PATH}" +export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}" %configure \ - --disable-rpath \ - --with-extra-includes=%{_includedir}/tqt + --prefix=%{tde_prefix} \ + --exec-prefix=%{tde_prefix} \ + --bindir=%{tde_bindir} \ + --datadir=%{tde_datadir} \ + --libdir=%{tde_libdir} \ + --mandir=%{tde_mandir} \ + --disable-rpath \ + --with-extra-includes=%{tde_includedir}/tqt %__make %{?_smp_mflags} %install -export PATH="%{_bindir}:${PATH}" +export PATH="%{tde_bindir}:${PATH}" %__rm -rf %{buildroot} %__make install DESTDIR=%{buildroot} @@ -82,10 +98,17 @@ export PATH="%{_bindir}:${PATH}" %files %defattr(-,root,root,-) -%{tde_libdir}/kcm_kdmtheme.la -%{tde_libdir}/kcm_kdmtheme.so -%{_datadir}/applications/kde/kdmtheme.desktop -%{tde_docdir}/HTML/en/kdmtheme/ +%{tde_tdelibdir}/kcm_kdmtheme.la +%{tde_tdelibdir}/kcm_kdmtheme.so +%{tde_tdeappdir}/kdmtheme.desktop +%{tde_tdedocdir}/HTML/en/kdmtheme/ + + +%post +update-desktop-database %{tde_appdir} &> /dev/null + +%postun +update-desktop-database %{tde_appdir} &> /dev/null %Changelog diff --git a/redhat/applications/keep/trinity-keep.spec b/redhat/applications/keep/trinity-keep.spec index 2e172e5c4..a9e17885c 100644 --- a/redhat/applications/keep/trinity-keep.spec +++ b/redhat/applications/keep/trinity-keep.spec @@ -1,25 +1,32 @@ # Default version for this component %define kdecomp keep -%define version 0.4.0 -%define release 2 # If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". -%if "%{?_prefix}" != "/usr" +%if "%{?tde_prefix}" != "/usr" %define _variant .opt -%define _docdir %{_prefix}/share/doc %endif # TDE 3.5.13 specific building variables -BuildRequires: autoconf automake libtool m4 -%define tde_docdir %{_docdir}/kde -%define tde_includedir %{_includedir}/kde -%define tde_libdir %{_libdir}/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_mandir %{tde_datadir}/man +%define tde_appdir %{tde_datadir}/applications + +%define tde_tdeappdir %{tde_appdir}/kde +%define tde_tdedocdir %{tde_docdir}/kde +%define tde_tdeincludedir %{tde_includedir}/kde +%define tde_tdelibdir %{tde_libdir}/trinity + +%define _docdir %{tde_docdir} Name: trinity-%{kdecomp} Summary: backup system for KDE [Trinity] -Version: %{?version} -Release: %{?release}%{?dist}%{?_variant} +Version: 0.4.0 +Release: 2%{?dist}%{?_variant} License: GPLv2+ Group: Applications/Utilities @@ -28,14 +35,14 @@ Vendor: Trinity Project Packager: Francois Andriot <francois.andriot@free.fr> URL: http://www.trinitydesktop.org/ -Prefix: %{_prefix} +Prefix: %{tde_prefix} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source0: %{kdecomp}-3.5.13.tar.gz BuildRequires: tqtinterface-devel -BuildRequires: trinity-kdelibs-devel -BuildRequires: trinity-kdebase-devel +BuildRequires: trinity-tdelibs-devel +BuildRequires: trinity-tdebase-devel BuildRequires: desktop-file-utils BuildRequires: gettext @@ -54,8 +61,8 @@ Homepage: http://jr.falleri.free.fr/keep # Ugly hack to modify TQT include directory inside autoconf files. # If TQT detection fails, it fallbacks to TQT4 instead of TQT3 ! %__sed -i admin/acinclude.m4.in \ - -e "s|/usr/include/tqt|%{_includedir}/tqt|g" \ - -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_docdir}/HTML'|g" + -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \ + -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g" %__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in" %__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh" @@ -63,18 +70,25 @@ Homepage: http://jr.falleri.free.fr/keep %build -export PATH="%{_bindir}:${PATH}" -export LDFLAGS="-L%{_libdir} -I%{_includedir}" +unset QTDIR; . /etc/profile.d/qt.sh +export PATH="%{tde_bindir}:${PATH}" +export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}" %configure \ - --disable-rpath \ - --with-extra-includes=%{_includedir}/tqt + --prefix=%{tde_prefix} \ + --exec-prefix=%{tde_prefix} \ + --bindir=%{tde_bindir} \ + --datadir=%{tde_datadir} \ + --libdir=%{tde_libdir} \ + --mandir=%{tde_mandir} \ + --disable-rpath \ + --with-extra-includes=%{tde_includedir}/tqt %__make %{?_smp_mflags} %install -export PATH="%{_bindir}:${PATH}" +export PATH="%{tde_bindir}:${PATH}" %__rm -rf %{buildroot} %__make install DESTDIR=%{buildroot} @@ -85,25 +99,27 @@ export PATH="%{_bindir}:${PATH}" %post -touch --no-create %{_datadir}/icons/hicolor || : -gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +touch --no-create %{tde_datadir}/icons/hicolor || : +gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || : +update-desktop-database %{tde_appdir} &> /dev/null %postun -touch --no-create %{_datadir}/icons/hicolor || : -gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +touch --no-create %{tde_datadir}/icons/hicolor || : +gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || : +update-desktop-database %{tde_appdir} &> /dev/null %files -f %{kdecomp}.lang %defattr(-,root,root,-) -%{_bindir}/keep -%{tde_libdir}/kded_keep.la -%{tde_libdir}/kded_keep.so -%{_datadir}/applications/kde/keep.desktop -%{_datadir}/icons/hicolor/scalable/apps/keep.svgz -%{_datadir}/apps/keep -%{_datadir}/config.kcfg/keepsettings.kcfg -%{_datadir}/icons/hicolor/*/apps/keep.png -%{_datadir}/services/kded/keep.desktop +%{tde_bindir}/keep +%{tde_tdelibdir}/kded_keep.la +%{tde_tdelibdir}/kded_keep.so +%{tde_tdeappdir}/keep.desktop +%{tde_datadir}/icons/hicolor/scalable/apps/keep.svgz +%{tde_datadir}/apps/keep/ +%{tde_datadir}/config.kcfg/keepsettings.kcfg +%{tde_datadir}/icons/hicolor/*/apps/keep.png +%{tde_datadir}/services/kded/keep.desktop %Changelog diff --git a/redhat/applications/kerry/kerry-3.5.13-missing_ldflags.patch b/redhat/applications/kerry/kerry-3.5.13-missing_ldflags.patch new file mode 100644 index 000000000..a4ba56b6e --- /dev/null +++ b/redhat/applications/kerry/kerry-3.5.13-missing_ldflags.patch @@ -0,0 +1,22 @@ +--- kerry/kerry/src/Makefile.am.ORI 2012-08-05 16:28:11.459614735 +0200 ++++ kerry/kerry/src/Makefile.am 2012-08-05 16:28:35.195085921 +0200 +@@ -28,7 +28,7 @@ + dcopinterface.skel dcopinterface.stub kerrylabel.cpp query.cpp + + kerry_la_LDFLAGS = -Wl,-export-dynamic $(KDE_RPATH) $(all_libraries) -module $(KDE_PLUGIN) $(GLIB_LDFLAGS) $(LIBBEAGLE_LDFLAGS) $(LIB_QT) +-kerry_la_LIBADD = -lkio -lkonq $(LIB_KDEUI) $(LIBBEAGLE_LIBADD) $(GLIB_LIBADD) $(LIB_KABC) ++kerry_la_LIBADD = -lkio -lkonq $(LIB_KDEUI) $(LIBBEAGLE_LIBADD) $(GLIB_LIBADD) $(LIB_KABC) -lDCOP $(LIB_QT) $(LIB_KDECORE) + + autostartdir = $(datadir)/autostart + autostart_DATA = kerry.autostart.desktop beagled.desktop +--- kerry/kerry/src/kcm/Makefile.am.ORI 2012-08-06 10:28:54.410310191 -0400 ++++ kerry/kerry/src/kcm/Makefile.am 2012-08-06 10:29:27.804685127 -0400 +@@ -9,7 +9,7 @@ + select_privacy_resource.ui + + kcm_beagle_la_LDFLAGS = $(all_libraries) -module -avoid-version -no-undefined +-kcm_beagle_la_LIBADD = $(LIB_KDEUI) $(LIB_KIO) $(LIBBEAGLE_LIBADD) ++kcm_beagle_la_LIBADD = $(LIB_KDEUI) $(LIB_KIO) $(LIBBEAGLE_LIBADD) $(LIB_QT) $(LIB_KDECORE) -lDCOP + + xdg_apps_DATA = kcmbeagle.desktop + diff --git a/redhat/applications/kerry/trinity-kerry.spec b/redhat/applications/kerry/trinity-kerry.spec index cfe73a43d..683baa429 100644 --- a/redhat/applications/kerry/trinity-kerry.spec +++ b/redhat/applications/kerry/trinity-kerry.spec @@ -1,25 +1,32 @@ # Default version for this component %define kdecomp kerry -%define version 0.2.1 -%define release 1 # If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". -%if "%{?_prefix}" != "/usr" +%if "%{?tde_prefix}" != "/usr" %define _variant .opt -%define _docdir %{_prefix}/share/doc %endif # TDE 3.5.13 specific building variables -BuildRequires: autoconf automake libtool m4 -%define tde_docdir %{_docdir}/kde -%define tde_includedir %{_includedir}/kde -%define tde_libdir %{_libdir}/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_mandir %{tde_datadir}/man +%define tde_appdir %{tde_datadir}/applications + +%define tde_tdeappdir %{tde_appdir}/kde +%define tde_tdedocdir %{tde_docdir}/kde +%define tde_tdeincludedir %{tde_includedir}/kde +%define tde_tdelibdir %{tde_libdir}/trinity + +%define _docdir %{tde_docdir} Name: trinity-%{kdecomp} Summary: a KDE frontend for the Beagle desktop search daemon [Trinity] -Version: %{?version} -Release: %{?release}%{?dist}%{?_variant} +Version: 0.2.1 +Release: 1%{?dist}%{?_variant} License: GPLv2+ Group: Applications/Utilities @@ -28,21 +35,29 @@ Vendor: Trinity Project Packager: Francois Andriot <francois.andriot@free.fr> URL: http://en.opensuse.org/Kerry -Prefix: %{_prefix} +Prefix: %{tde_prefix} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source0: %{kdecomp}-3.5.13.tar.gz Source1: kerry.1.docbook +# [kerry] Missing LDFLAGS cause FTBFS on Mageia and Mandriva +Patch1: kerry-3.5.13-missing_ldflags.patch + + BuildRequires: tqtinterface-devel -BuildRequires: trinity-kdelibs-devel -BuildRequires: trinity-kdebase-devel +BuildRequires: trinity-tdelibs-devel +BuildRequires: trinity-tdebase-devel BuildRequires: desktop-file-utils BuildRequires: gettext - BuildRequires: libbeagle-devel >= 0.3.0 -#BuildRequires: docbook-utils + + +%if 0%{?mgaversion} || 0%{?mdkversion} +BuildRequires: docbook2x +%else BuildRequires: docbook2X +%endif %description Kerry is a Trinity frontend for the Beagle desktop search daemon. @@ -54,12 +69,13 @@ filesystems, chat logs, mail and data, RSS and other. %prep %setup -q -n applications/%{kdecomp} +%patch1 -p1 # Ugly hack to modify TQT include directory inside autoconf files. # If TQT detection fails, it fallbacks to TQT4 instead of TQT3 ! %__sed -i admin/acinclude.m4.in \ - -e "s|/usr/include/tqt|%{_includedir}/tqt|g" \ - -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_docdir}/HTML'|g" + -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \ + -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g" %__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in" %__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh" @@ -67,19 +83,26 @@ filesystems, chat logs, mail and data, RSS and other. %build -export PATH="%{_bindir}:${PATH}" -export LDFLAGS="-L%{_libdir} -I%{_includedir}" +unset QTDIR; . /etc/profile.d/qt.sh +export PATH="%{tde_bindir}:${PATH}" +export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}" %configure \ - --disable-rpath \ - --with-extra-includes=%{_includedir}/tqt + --prefix=%{tde_prefix} \ + --exec-prefix=%{tde_prefix} \ + --bindir=%{tde_bindir} \ + --datadir=%{tde_datadir} \ + --libdir=%{tde_libdir} \ + --mandir=%{tde_mandir} \ + --disable-rpath \ + --with-extra-includes=%{tde_includedir}/tqt:%{tde_includedir} %__make %{?_smp_mflags} %install -export PATH="%{_bindir}:${PATH}" +export PATH="%{tde_bindir}:${PATH}" %__rm -rf %{buildroot} %__make install DESTDIR=%{buildroot} @@ -93,34 +116,36 @@ export PATH="%{_bindir}:${PATH}" %post -/sbin/ldconfig -touch --no-create %{_datadir}/icons/hicolor || : -gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +/sbin/ldconfig || : +touch --no-create %{tde_datadir}/icons/hicolor || : +gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || : +update-desktop-database %{tde_appdir} &> /dev/null %postun -/sbin/ldconfig -touch --no-create %{_datadir}/icons/hicolor || : -gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +/sbin/ldconfig || : +touch --no-create %{tde_datadir}/icons/hicolor || : +gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || : +update-desktop-database %{tde_appdir} &> /dev/null %files -f %{kdecomp}.lang %defattr(-,root,root,-) -%{_datadir}/locale/*/LC_MESSAGES/kcmbeagle.mo -%{_bindir}/beagled-shutdown -%{_bindir}/kerry -%{_libdir}/libkdeinit_kerry.la -%{_libdir}/libkdeinit_kerry.so -%{tde_libdir}/kcm_beagle.la -%{tde_libdir}/kcm_beagle.so -%{tde_libdir}/kerry.la -%{tde_libdir}/kerry.so -%{_datadir}/applications/kde/kcmbeagle.desktop -%{_datadir}/applications/kde/kerry.desktop -%{_datadir}/applnk/.hidden/kcmkerry.desktop -%{_datadir}/apps/kerry/search-running.mng -%{_datadir}/autostart/beagled.desktop -%{_datadir}/autostart/kerry.autostart.desktop -%{_datadir}/icons/hicolor/*/*/* +%{tde_datadir}/locale/*/LC_MESSAGES/kcmbeagle.mo +%{tde_bindir}/beagled-shutdown +%{tde_bindir}/kerry +%{tde_libdir}/libkdeinit_kerry.la +%{tde_libdir}/libkdeinit_kerry.so +%{tde_tdelibdir}/kcm_beagle.la +%{tde_tdelibdir}/kcm_beagle.so +%{tde_tdelibdir}/kerry.la +%{tde_tdelibdir}/kerry.so +%{tde_tdeappdir}/kcmbeagle.desktop +%{tde_tdeappdir}/kerry.desktop +%{tde_datadir}/applnk/.hidden/kcmkerry.desktop +%{tde_datadir}/apps/kerry/search-running.mng +%{tde_datadir}/autostart/beagled.desktop +%{tde_datadir}/autostart/kerry.autostart.desktop +%{tde_datadir}/icons/hicolor/*/*/* %Changelog diff --git a/redhat/applications/kgtk-qt3/kgtk-qt3-3.5.13-fix_libsuffix.patch b/redhat/applications/kgtk-qt3/kgtk-qt3-3.5.13-fix_libsuffix.patch new file mode 100644 index 000000000..a8deaa551 --- /dev/null +++ b/redhat/applications/kgtk-qt3/kgtk-qt3-3.5.13-fix_libsuffix.patch @@ -0,0 +1,22 @@ +--- kgtk-qt3/qt3/kqt3-wrapper.cmake.ORI 2012-08-08 22:30:14.598900960 +0200 ++++ kgtk-qt3/qt3/kqt3-wrapper.cmake 2012-08-08 22:30:39.661367613 +0200 +@@ -15,7 +15,7 @@ + app=`basename $0` + + if [ "$app" = "kqt3-wrapper" ] ; then +- LD_PRELOAD=@CMAKE_INSTALL_PREFIX@/lib/kgtk/libkqt3.so:$LD_PRELOAD "$@" ++ LD_PRELOAD=@CMAKE_INSTALL_PREFIX@/lib@LIB_SUFFIX@/kgtk/libkqt3.so:$LD_PRELOAD "$@" + else + dir=`dirname $0` + oldPath=$PATH +--- kgtk-qt3/gtk2/kgtk2-wrapper.cmake.ORI 2012-08-08 22:31:30.684286835 +0200 ++++ kgtk-qt3/gtk2/kgtk2-wrapper.cmake 2012-08-08 22:32:10.294452119 +0200 +@@ -19,7 +19,7 @@ + app=`basename $0` + + if [ "$app" = "kgtk2-wrapper" ] ; then +- LD_PRELOAD=@CMAKE_INSTALL_PREFIX@/lib/kgtk/libkgtk2.so:libnspr4.so:$LD_PRELOAD "$@" ++ LD_PRELOAD=@CMAKE_INSTALL_PREFIX@/lib@LIB_SUFFIX@/kgtk/libkgtk2.so:libnspr4.so:$LD_PRELOAD "$@" + else + dir=`dirname $0` + oldPath=$PATH diff --git a/redhat/applications/kgtk-qt3/trinity-kgtk-qt3.spec b/redhat/applications/kgtk-qt3/trinity-kgtk-qt3.spec index 01ae9369b..3163d1b58 100644 --- a/redhat/applications/kgtk-qt3/trinity-kgtk-qt3.spec +++ b/redhat/applications/kgtk-qt3/trinity-kgtk-qt3.spec @@ -1,25 +1,32 @@ # Default version for this component %define kdecomp kgtk-qt3 -%define version 0.10.2 -%define release 2 # If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". -%if "%{?_prefix}" != "/usr" +%if "%{?tde_prefix}" != "/usr" %define _variant .opt -%define _docdir %{_prefix}/share/doc %endif # TDE 3.5.13 specific building variables -BuildRequires: autoconf automake libtool m4 -%define tde_docdir %{_docdir}/kde -%define tde_includedir %{_includedir}/kde -%define tde_libdir %{_libdir}/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_mandir %{tde_datadir}/man +%define tde_appdir %{tde_datadir}/applications + +%define tde_tdeappdir %{tde_appdir}/kde +%define tde_tdedocdir %{tde_docdir}/kde +%define tde_tdeincludedir %{tde_includedir}/kde +%define tde_tdelibdir %{tde_libdir}/trinity + +%define _docdir %{tde_docdir} Name: trinity-%{kdecomp} Summary: Use KDE dialogs in Gtk apps -Version: %{?version} -Release: %{?release}%{?dist}%{?_variant} +Version: 0.10.2 +Release: 2%{?dist}%{?_variant} License: GPLv2+ Group: Applications/Utilities @@ -28,14 +35,17 @@ Vendor: Trinity Project Packager: Francois Andriot <francois.andriot@free.fr> URL: http://www.trinitydesktop.org -Prefix: %{_prefix} +Prefix: %{tde_prefix} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source0: %{kdecomp}-3.5.13.tar.gz +# [kgtk-qt-engine] Fix libsuffix for 64 bits machines +Patch1: kgtk-qt3-3.5.13-fix_libsuffix.patch + BuildRequires: tqtinterface-devel -BuildRequires: trinity-kdelibs-devel -BuildRequires: trinity-kdebase-devel +BuildRequires: trinity-tdelibs-devel +BuildRequires: trinity-tdebase-devel BuildRequires: desktop-file-utils BuildRequires: gettext @@ -52,30 +62,43 @@ This package includes the kqt3-wrapper %prep %setup -q -n applications/%{kdecomp} +%patch1 -p1 # Ugly hack to modify TQT include directory inside autoconf files. # If TQT detection fails, it fallbacks to TQT4 instead of TQT3 ! find . -name CMakeLists.txt -exec sed -i {} \ - -e "s,/usr/include/tqt,%{_includedir}/tqt,g" \ - -e "s,/usr/bin/tmoc,%{_bindir}/tmoc,g" \ - -e "s,/usr/bin/uic-tqt,%{_bindir}/uic-tqt,g" \ + -e "s,/usr/include/tqt,%{tde_includedir}/tqt,g" \ + -e "s,/usr/bin/tmoc,%{tde_bindir}/tmoc,g" \ + -e "s,/usr/bin/uic-tqt,%{tde_bindir}/uic-tqt,g" \ \; %build unset QTDIR; . /etc/profile.d/qt.sh -export PATH="%{_bindir}:${PATH}" -export LDFLAGS="-L%{_libdir} -I%{_includedir} -L${QTLIB} -lX11" +export PATH="%{tde_bindir}:${PATH}" +export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir} -L${QTLIB} -lX11" +%if 0%{?rhel} || 0%{?fedora} %__mkdir_p build cd build -%cmake .. +%endif + +export CMAKE_INCLUDE_PATH="%{tde_tdeincludedir}" + +%cmake \ + -DCMAKE_INSTALL_PREFIX=%{tde_prefix} \ + -DBIN_INSTALL_DIR=%{tde_bindir} \ + -DINCLUDE_INSTALL_DIR=%{tde_tdeincludedir} \ + -DLIB_INSTALL_DIR=%{tde_libdir} \ + -DSHARE_INSTALL_PREFIX=%{tde_datadir} \ + -DCMAKE_SKIP_RPATH="OFF" \ + .. # SMP safe ! %__make %{?_smp_mflags} %install -export PATH="%{_bindir}:${PATH}" +export PATH="%{tde_bindir}:${PATH}" %__rm -rf %{buildroot} %__make install DESTDIR=%{buildroot} -C build @@ -91,13 +114,13 @@ export PATH="%{_bindir}:${PATH}" %files -f kdialogd3.lang %defattr(-,root,root,-) %doc AUTHORS ChangeLog COPYING README TODO -%{_bindir}/kdialogd-wrapper -%{_bindir}/kdialogd3 -%{_bindir}/kgtk-wrapper -%{_bindir}/kgtk2-wrapper -%{_bindir}/kqt3-wrapper -%{_libdir}/kgtk/libkgtk2.so -%{_libdir}/kgtk/libkqt3.so +%{tde_bindir}/kdialogd-wrapper +%{tde_bindir}/kdialogd3 +%{tde_bindir}/kgtk-wrapper +%{tde_bindir}/kgtk2-wrapper +%{tde_bindir}/kqt3-wrapper +%{tde_libdir}/kgtk/libkgtk2.so +%{tde_libdir}/kgtk/libkqt3.so %Changelog diff --git a/redhat/applications/kile/kile.xpm b/redhat/applications/kile/kile.xpm deleted file mode 100644 index 408d2710b..000000000 --- a/redhat/applications/kile/kile.xpm +++ /dev/null @@ -1,176 +0,0 @@ -/* XPM */ -static char *kile[] = { -/* columns rows colors chars-per-pixel */ -"32 32 138 2", -" c black", -". c #015FBC", -"X c #1067BE", -"o c #005DC0", -"O c #0063C3", -"+ c #006BC9", -"@ c #0A6EC9", -"# c #0071CC", -"$ c #0E76CE", -"% c #0076D0", -"& c #007BD2", -"* c #0978D0", -"= c #1467C0", -"- c #1468C1", -"; c #136FC9", -": c #1A6AC1", -"> c #1372CA", -", c #1C7BCE", -"< c #1B7DD0", -"1 c #267ACD", -"2 c #2878C6", -"3 c #2C7ECE", -"4 c #207ED0", -"5 c #3D7BC1", -"6 c #3F83BB", -"7 c #0080D6", -"8 c #0086DA", -"9 c #008ADC", -"0 c #0A85D8", -"q c #0C8BDB", -"w c #1A81D2", -"e c #2F81D0", -"r c #2B89D4", -"t c #2A98D9", -"y c #3D80C2", -"u c #3D8ACB", -"i c #328BD5", -"p c #3985D0", -"a c #3A89D3", -"s c #3D90CF", -"d c #3296DC", -"f c #3D92D0", -"g c #399CDF", -"h c #399EE0", -"j c #20A0E4", -"k c #4981C2", -"l c #468DD3", -"z c #4C8DD2", -"x c #4891D6", -"c c #518EC8", -"v c #5C8EC5", -"b c #5B9ECF", -"n c #5493D5", -"m c #519CD1", -"M c #549ADA", -"N c #5D98D7", -"B c #5F9AD8", -"V c #4FA2DF", -"C c #53A0DD", -"Z c #5BA4D2", -"A c #5BA3DE", -"S c #40A7E4", -"D c #4DA4E1", -"F c #53A9E3", -"G c #629CD9", -"H c #7999C3", -"J c #6DA2DB", -"K c #79A8CD", -"L c #71A5DC", -"P c #73A8DD", -"I c #7AABDE", -"U c #6DADE2", -"Y c #63B2E6", -"T c #77AEE1", -"R c #75B4E5", -"E c #7EB3E3", -"W c #79BAE8", -"Q c #829DC4", -"! c #82A2C7", -"~ c #82A7CA", -"^ c #89B6D8", -"/ c #88BCDF", -"( c #92A6C5", -") c #92AECA", -"_ c #91B3CF", -"` c #96B6D0", -"' c #9BBCD5", -"] c #84B2E1", -"[ c #8EB7E3", -"{ c #8EBBE5", -"} c #92BAE5", -"| c #98BEE6", -" . c #A1BED5", -".. c #B6B6C5", -"X. c #87C9EF", -"o. c #95C2E9", -"O. c #9CC0E7", -"+. c #9AC5EA", -"@. c #ADC2D6", -"#. c #BEC1CF", -"$. c #B2C2D4", -"%. c #B6C4DA", -"&. c #BDC8D7", -"*. c #A4C5E9", -"=. c #A1C8E3", -"-. c #ABCBEB", -";. c #AAD0EF", -":. c #AAD3F0", -">. c #B1CDEC", -",. c #B5D0ED", -"<. c #BDD5ED", -"1. c #B7D6F1", -"2. c #B4D8F2", -"3. c #BBD7F0", -"4. c #BFE6F9", -"5. c #C0C9D7", -"6. c #C1CCDD", -"7. c #C0D6EF", -"8. c #C6DBEC", -"9. c #C8D2E0", -"0. c #C0D7F0", -"q. c #C3DAF0", -"w. c #C9DDF2", -"e. c #D1DEEC", -"r. c #C6E8FA", -"t. c #CDE0F3", -"y. c #D2E3F4", -"u. c #D4EBF9", -"i. c #DBE8F6", -"p. c #DBEDF9", -"a. c #E1ECF7", -"s. c #E5EEF8", -"d. c #E6F1F9", -"f. c #E9F3FB", -"g. c #F1F6FB", -"h. c #F6F9FD", -"j. c #FEFEFE", -"k. c None", -/* pixels */ -"k.k.k.k.k.k.k.k.k.k.k.k.k.k.k.k.k.k.k.k.k.k.k.k.k.k.k.k.k.k.k.k.", -"k.k.k.k.k.k.k.k.k.k.k.k.k.k.k.k.k.k.k.k.k.k.k.k.k.k.k.k.k.k.k.k.", -"k.k.k.k.k.k.k.k.k.k.k... .%.&.&.&.&.@.' ....k.k.k.k.k.k.k.k.k.k.", -"k.k.k.k.k.k.k.k.k.....9.r.p.f.f.f.f.u.4.<.$...k.k.k.k.k.k.k.k.k.", -"k.k.k.k.k.k.k...#.e.s.s.s.s.s.s.f.d.s.s.d.s.8.%.....k.k.k.k.k.k.", -"k.k.k.k.k.k...6.e.i.i.i.i.i.i.i.i.i.i.i.i.i.p.y.=.` k.k.k.k.k.k.", -"k.k.k.k.k...6.t.y.w.w.y.y.w.w.y.t.t.t.y.t.w.y.w.w.X._ ..k.k.k.k.", -"k.k.k.k...%.7.7.q.8.0.8.7.w.w.0.7.w.q.7.8.q.7.8.8.3./ ..k.k.k.k.", -"k.k.k...^ 1.y.t.t.<.>.,.>.7.w.y.i.y.y.0.>.>.>.1.>.1.+.j ..k.k.k.", -"k.k.k...Y s.j.j.j.w.-.-.-.-.g.j.j.j.s.>.>.-.>.-.-.-.*.S Z ..k.k.", -"k.k._ t R i.j.j.j.7.*.| *.i.j.j.j.g.>.*.O.O.| | | O.| F t ) k.k.", -"k.k.K q U i.j.j.j.>.} } 7.h.j.j.h.0.| } } } } } } } } D 9 K k.k.", -"k...m 9 C y.j.j.j.-.^ O.h.j.j.h.>.] ] ] ^ ] ] } -.=.o.W 9 9 ..k.", -"k...8 8 d t.j.j.j.*.[ s.j.j.h.q.] ] ] ] I I ] w.j.a.O.f.q 8 N ..", -"..~ 7 7 0 2.j.j.j.*.y.j.j.j.>.^ ] I I G J J | f.-.y.C r.h 7 s ..", -"..f 7 7 7 :.j.j.j.i.j.j.j.i.I P L L G G G G | s.] 8.d u.h 7 s ..", -"..f & & & :.j.j.j.j.j.j.j.s.J G G N N n n n L s.y.i.y.p.& & f ..", -"..u & & & :.j.j.j.j.j.j.j.j.<.G n n n n l z l U i.j.y.D & & u ..", -"..u % % % -.j.j.j.q.o.h.j.j.h.*.z z l p e < * % % % % % % % u ..", -"..u # % # :.j.j.j.F w 1.j.j.j.g.M 1 , $ r +.:.:.:.:.-.:.# % u ..", -"k...# # # -.j.j.j.C # < p.j.j.j.y.i # # r ,.t.q.q.t.q.t.# # u ..", -"k.k.c + # -.j.j.j.M + + B d.j.j.j.;.+ + # < < < w < < < + + ! ..", -"k.k.H + + -.j.j.j.M + + @ T j.j.j.j.] @ , E a E { { { { + H k.k.", -"k.k.( 2 O -.j.j.j.M + O + @ 7.j.j.j.s.x a s.P s.j.h.j.j.+ H k.k.", -"k.k...v O 1 a p p ; O O O + ; a a a a 3 O O O O O O O O 5 6 k.k.", -"k.k.k...O O o . O o o O o o O + O + O O O o O O O O O o ....k.k.", -"k.k.k.k...5 . o o . o o o O O + O O o o . o o o . o - Q k.k.k.k.", -"k.k.k.k...Q o o o o o o o o o o o o o o o o o o . o Q ..k.k.k.k.", -"k.k.k.k.k.k.Q 5 o o o o o o o o o o o o o o o o 5 Q k.k.k.k.k.k.", -"k.k.k.k.k.k.....= o o o o o o o o o o o o o o . ....k.k.k.k.k.k.", -"k.k.k.k.k.k.k.k.....Q 5 o o o o o o o o - : ....k.k.k.k.k.k.k.k.", -"k.k.k.k.k.k.k.k.k.k.....k H H H H H H k 5 ..k.k.k.k.k.k.k.k.k.k." -}; diff --git a/redhat/applications/kile/trinity-kile.spec b/redhat/applications/kile/trinity-kile.spec index 1b106bb88..96318c5a9 100644 --- a/redhat/applications/kile/trinity-kile.spec +++ b/redhat/applications/kile/trinity-kile.spec @@ -1,25 +1,32 @@ # Default version for this component %define kdecomp kile -%define version 2.0.2 -%define release 3 # If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". -%if "%{?_prefix}" != "/usr" +%if "%{?tde_prefix}" != "/usr" %define _variant .opt -%define _docdir %{_prefix}/share/doc %endif # TDE 3.5.13 specific building variables -BuildRequires: autoconf automake libtool m4 -%define tde_docdir %{_docdir}/kde -%define tde_includedir %{_includedir}/kde -%define tde_libdir %{_libdir}/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_mandir %{tde_datadir}/man +%define tde_appdir %{tde_datadir}/applications + +%define tde_tdeappdir %{tde_appdir}/kde +%define tde_tdedocdir %{tde_docdir}/kde +%define tde_tdeincludedir %{tde_includedir}/kde +%define tde_tdelibdir %{tde_libdir}/trinity + +%define _docdir %{tde_docdir} Name: trinity-%{kdecomp} Summary: KDE Integrated LaTeX Environment [Trinity] -Version: %{?version} -Release: %{?release}%{?dist}%{?_variant} +Version: 2.0.2 +Release: 3%{?dist}%{?_variant} License: GPLv2+ Group: Applications/Publishing @@ -28,14 +35,14 @@ Vendor: Trinity Project Packager: Francois Andriot <francois.andriot@free.fr> URL: http://www.trinitydesktop.org/ -Prefix: %{_prefix} +Prefix: %{tde_prefix} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source0: %{kdecomp}-3.5.13.tar.gz BuildRequires: tqtinterface-devel -BuildRequires: trinity-kdelibs-devel -BuildRequires: trinity-kdebase-devel +BuildRequires: trinity-tdelibs-devel +BuildRequires: trinity-tdebase-devel BuildRequires: desktop-file-utils BuildRequires: gettext @@ -420,201 +427,211 @@ Kile can support large projects consisting of several smaller files. # Ugly hack to modify TQT include directory inside autoconf files. # If TQT detection fails, it fallbacks to TQT4 instead of TQT3 ! %__sed -i admin/acinclude.m4.in \ - -e "s|/usr/include/tqt|%{_includedir}/tqt|g" \ - -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_docdir}/HTML'|g" + -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \ + -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g" %__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in" -%__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || \ -%__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh" +%__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh" %__make -f "admin/Makefile.common" %build -export PATH="%{_bindir}:${PATH}" -export LDFLAGS="-L%{_libdir} -I%{_includedir}" +unset QTDIR; . /etc/profile.d/qt.sh +export PATH="%{tde_bindir}:${PATH}" +export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}" %configure \ + --prefix=%{tde_prefix} \ + --exec-prefix=%{tde_prefix} \ + --bindir=%{tde_bindir} \ + --datadir=%{tde_datadir} \ + --libdir=%{tde_libdir} \ + --mandir=%{tde_mandir} \ --disable-rpath \ - --with-extra-includes=%{_includedir}/tqt + --with-extra-includes=%{tde_includedir}/tqt %__make %{?_smp_mflags} %install -export PATH="%{_bindir}:${PATH}" +export PATH="%{tde_bindir}:${PATH}" %__rm -rf %{buildroot} %__make install DESTDIR=%{buildroot} -%__chmod +x %{buildroot}%{_datadir}/apps/kile/test/runTests.sh +%__chmod +x %{buildroot}%{tde_datadir}/apps/kile/test/runTests.sh + +# Unwanted files ... +%__rm -f %{?buildroot}%{tde_datadir}/apps/katepart/syntax/bibtex.xml +%__rm -f %{?buildroot}%{tde_datadir}/apps/katepart/syntax/latex.xml %clean %__rm -rf %{buildroot} %post -touch --no-create %{_datadir}/icons/hicolor || : -gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +update-desktop-database %{tde_appdir} > /dev/null +touch --no-create %{tde_datadir}/icons/hicolor || : +gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || : %postun -touch --no-create %{_datadir}/icons/hicolor || : -gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +update-desktop-database %{tde_appdir} > /dev/null +touch --no-create %{tde_datadir}/icons/hicolor || : +gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || : %files %defattr(-,root,root,-) -%{_bindir}/kile -%{_datadir}/applications/kde/kile.desktop -%exclude %{_datadir}/apps/katepart/syntax/bibtex.xml -%exclude %{_datadir}/apps/katepart/syntax/latex.xml -%{_datadir}/apps/kconf_update -%{_datadir}/apps/kile -%{_datadir}/config.kcfg/kile.kcfg -%{_datadir}/icons/hicolor/*/apps/kile.png -%{_datadir}/icons/hicolor/scalable/apps/kile.svgz -%{tde_docdir}/HTML/en/kile -%{_datadir}/mimelnk/text/x-kilepr.desktop +%{tde_bindir}/kile +%{tde_tdeappdir}/kile.desktop +%{tde_datadir}/apps/kconf_update +%{tde_datadir}/apps/kile +%{tde_datadir}/config.kcfg/kile.kcfg +%{tde_datadir}/icons/hicolor/*/apps/kile.png +%{tde_datadir}/icons/hicolor/scalable/apps/kile.svgz +%{tde_tdedocdir}/HTML/en/kile +%{tde_datadir}/mimelnk/text/x-kilepr.desktop %files i18n-da -%lang(da) %{tde_docdir}/HTML/da/kile -%lang(da) %{_datadir}/locale/da/LC_MESSAGES/kile.mo +%lang(da) %{tde_tdedocdir}/HTML/da/kile +%lang(da) %{tde_datadir}/locale/da/LC_MESSAGES/kile.mo %files i18n-es -%lang(es) %{tde_docdir}/HTML/es/kile -%lang(es) %{_datadir}/locale/es/LC_MESSAGES/kile.mo +%lang(es) %{tde_tdedocdir}/HTML/es/kile +%lang(es) %{tde_datadir}/locale/es/LC_MESSAGES/kile.mo %files i18n-et -%lang(et) %{tde_docdir}/HTML/et/kile -%lang(et) %{_datadir}/locale/et/LC_MESSAGES/kile.mo +%lang(et) %{tde_tdedocdir}/HTML/et/kile +%lang(et) %{tde_datadir}/locale/et/LC_MESSAGES/kile.mo %files i18n-it -%lang(it) %{tde_docdir}/HTML/it/kile -%lang(it) %{_datadir}/locale/it/LC_MESSAGES/kile.mo +%lang(it) %{tde_tdedocdir}/HTML/it/kile +%lang(it) %{tde_datadir}/locale/it/LC_MESSAGES/kile.mo %files i18n-nl -%lang(nl) %{tde_docdir}/HTML/nl/kile -%lang(nl) %{_datadir}/locale/nl/LC_MESSAGES/kile.mo +%lang(nl) %{tde_tdedocdir}/HTML/nl/kile +%lang(nl) %{tde_datadir}/locale/nl/LC_MESSAGES/kile.mo %files i18n-pt -%lang(pt) %{tde_docdir}/HTML/pt/kile -%lang(pt) %{_datadir}/locale/pt/LC_MESSAGES/kile.mo +%lang(pt) %{tde_tdedocdir}/HTML/pt/kile +%lang(pt) %{tde_datadir}/locale/pt/LC_MESSAGES/kile.mo %files i18n-sv -%lang(sv) %{tde_docdir}/HTML/sv/kile -%lang(sv) %{_datadir}/locale/sv/LC_MESSAGES/kile.mo +%lang(sv) %{tde_tdedocdir}/HTML/sv/kile +%lang(sv) %{tde_datadir}/locale/sv/LC_MESSAGES/kile.mo %files i18n-ar -%lang(ar) %{_datadir}/locale/ar/LC_MESSAGES/kile.mo +%lang(ar) %{tde_datadir}/locale/ar/LC_MESSAGES/kile.mo %files i18n-bg -%lang(bg) %{_datadir}/locale/bg/LC_MESSAGES/kile.mo +%lang(bg) %{tde_datadir}/locale/bg/LC_MESSAGES/kile.mo %files i18n-br -%lang(br) %{_datadir}/locale/br/LC_MESSAGES/kile.mo +%lang(br) %{tde_datadir}/locale/br/LC_MESSAGES/kile.mo %files i18n-ca -%lang(ca) %{_datadir}/locale/ca/LC_MESSAGES/kile.mo +%lang(ca) %{tde_datadir}/locale/ca/LC_MESSAGES/kile.mo %files i18n-cs -%lang(cs) %{_datadir}/locale/cs/LC_MESSAGES/kile.mo +%lang(cs) %{tde_datadir}/locale/cs/LC_MESSAGES/kile.mo %files i18n-cy -%lang(cy) %{_datadir}/locale/cy/LC_MESSAGES/kile.mo +%lang(cy) %{tde_datadir}/locale/cy/LC_MESSAGES/kile.mo %files i18n-de -%lang(de) %{_datadir}/locale/de/LC_MESSAGES/kile.mo +%lang(de) %{tde_datadir}/locale/de/LC_MESSAGES/kile.mo %files i18n-el -%lang(el) %{_datadir}/locale/el/LC_MESSAGES/kile.mo +%lang(el) %{tde_datadir}/locale/el/LC_MESSAGES/kile.mo %files i18n-engb -%lang(en_GB) %{_datadir}/locale/en_GB/LC_MESSAGES/kile.mo +%lang(en_GB) %{tde_datadir}/locale/en_GB/LC_MESSAGES/kile.mo %files i18n-eu -%lang(eu) %{_datadir}/locale/eu/LC_MESSAGES/kile.mo +%lang(eu) %{tde_datadir}/locale/eu/LC_MESSAGES/kile.mo %files i18n-fi -%lang(fi) %{_datadir}/locale/fi/LC_MESSAGES/kile.mo +%lang(fi) %{tde_datadir}/locale/fi/LC_MESSAGES/kile.mo %files i18n-fr -%lang(fr) %{_datadir}/locale/fr/LC_MESSAGES/kile.mo +%lang(fr) %{tde_datadir}/locale/fr/LC_MESSAGES/kile.mo %files i18n-ga -%lang(ga) %{_datadir}/locale/ga/LC_MESSAGES/kile.mo +%lang(ga) %{tde_datadir}/locale/ga/LC_MESSAGES/kile.mo %files i18n-gl -%lang(gl) %{_datadir}/locale/gl/LC_MESSAGES/kile.mo +%lang(gl) %{tde_datadir}/locale/gl/LC_MESSAGES/kile.mo %files i18n-hi -%lang(hi) %{_datadir}/locale/hi/LC_MESSAGES/kile.mo +%lang(hi) %{tde_datadir}/locale/hi/LC_MESSAGES/kile.mo %files i18n-hu -%lang(hu) %{_datadir}/locale/hu/LC_MESSAGES/kile.mo +%lang(hu) %{tde_datadir}/locale/hu/LC_MESSAGES/kile.mo %files i18n-is -%lang(is) %{_datadir}/locale/is/LC_MESSAGES/kile.mo +%lang(is) %{tde_datadir}/locale/is/LC_MESSAGES/kile.mo %files i18n-ja -%lang(ja) %{_datadir}/locale/ja/LC_MESSAGES/kile.mo +%lang(ja) %{tde_datadir}/locale/ja/LC_MESSAGES/kile.mo %files i18n-lt -%lang(lt) %{_datadir}/locale/lt/LC_MESSAGES/kile.mo +%lang(lt) %{tde_datadir}/locale/lt/LC_MESSAGES/kile.mo %files i18n-ms -%lang(ms) %{_datadir}/locale/ms/LC_MESSAGES/kile.mo +%lang(ms) %{tde_datadir}/locale/ms/LC_MESSAGES/kile.mo %files i18n-mt -%lang(mt) %{_datadir}/locale/mt/LC_MESSAGES/kile.mo +%lang(mt) %{tde_datadir}/locale/mt/LC_MESSAGES/kile.mo %files i18n-nb -%lang(nb) %{_datadir}/locale/nb/LC_MESSAGES/kile.mo +%lang(nb) %{tde_datadir}/locale/nb/LC_MESSAGES/kile.mo %files i18n-nds -%lang(nds) %{_datadir}/locale/nds/LC_MESSAGES/kile.mo +%lang(nds) %{tde_datadir}/locale/nds/LC_MESSAGES/kile.mo %files i18n-nn -%lang(nn) %{_datadir}/locale/nn/LC_MESSAGES/kile.mo +%lang(nn) %{tde_datadir}/locale/nn/LC_MESSAGES/kile.mo %files i18n-pa -%lang(pa) %{_datadir}/locale/pa/LC_MESSAGES/kile.mo +%lang(pa) %{tde_datadir}/locale/pa/LC_MESSAGES/kile.mo %files i18n-pl -%lang(pl) %{_datadir}/locale/pl/LC_MESSAGES/kile.mo +%lang(pl) %{tde_datadir}/locale/pl/LC_MESSAGES/kile.mo %files i18n-ptbr -%lang(pt_BR) %{_datadir}/locale/pt_BR/LC_MESSAGES/kile.mo +%lang(pt_BR) %{tde_datadir}/locale/pt_BR/LC_MESSAGES/kile.mo %files i18n-ro -%lang(ro) %{_datadir}/locale/ro/LC_MESSAGES/kile.mo +%lang(ro) %{tde_datadir}/locale/ro/LC_MESSAGES/kile.mo %files i18n-ru -%lang(ru) %{_datadir}/locale/ru/LC_MESSAGES/kile.mo +%lang(ru) %{tde_datadir}/locale/ru/LC_MESSAGES/kile.mo %files i18n-rw -%lang(rw) %{_datadir}/locale/rw/LC_MESSAGES/kile.mo +%lang(rw) %{tde_datadir}/locale/rw/LC_MESSAGES/kile.mo %files i18n-sk -%lang(sk) %{_datadir}/locale/sk/LC_MESSAGES/kile.mo +%lang(sk) %{tde_datadir}/locale/sk/LC_MESSAGES/kile.mo %files i18n-sr -%lang(sr) %{_datadir}/locale/sr/LC_MESSAGES/kile.mo +%lang(sr) %{tde_datadir}/locale/sr/LC_MESSAGES/kile.mo %files i18n-srlatin -%lang(sr@Latn) %{_datadir}/locale/sr@Latn/LC_MESSAGES/kile.mo +%lang(sr@Latn) %{tde_datadir}/locale/sr@Latn/LC_MESSAGES/kile.mo %files i18n-ta -%lang(ta) %{_datadir}/locale/ta/LC_MESSAGES/kile.mo +%lang(ta) %{tde_datadir}/locale/ta/LC_MESSAGES/kile.mo %files i18n-th -%lang(th) %{_datadir}/locale/th/LC_MESSAGES/kile.mo +%lang(th) %{tde_datadir}/locale/th/LC_MESSAGES/kile.mo %files i18n-tr -%lang(tr) %{_datadir}/locale/tr/LC_MESSAGES/kile.mo +%lang(tr) %{tde_datadir}/locale/tr/LC_MESSAGES/kile.mo %files i18n-uk -%lang(uk) %{_datadir}/locale/uk/LC_MESSAGES/kile.mo +%lang(uk) %{tde_datadir}/locale/uk/LC_MESSAGES/kile.mo %files i18n-zhcn -%lang(zh_CN) %{_datadir}/locale/zh_CN/LC_MESSAGES/kile.mo +%lang(zh_CN) %{tde_datadir}/locale/zh_CN/LC_MESSAGES/kile.mo diff --git a/redhat/applications/kima/trinity-kima.spec b/redhat/applications/kima/trinity-kima.spec index 8c1e6e3b7..657029f3c 100644 --- a/redhat/applications/kima/trinity-kima.spec +++ b/redhat/applications/kima/trinity-kima.spec @@ -2,16 +2,25 @@ %define kdecomp kima # If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". -%if "%{?_prefix}" != "/usr" +%if "%{?tde_prefix}" != "/usr" %define _variant .opt -%define _docdir %{_datadir}/doc %endif # TDE 3.5.13 specific building variables -BuildRequires: autoconf automake libtool m4 -%define tde_docdir %{_docdir}/kde -%define tde_includedir %{_includedir}/kde -%define tde_libdir %{_libdir}/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_mandir %{tde_datadir}/man +%define tde_appdir %{tde_datadir}/applications + +%define tde_tdeappdir %{tde_appdir}/kde +%define tde_tdedocdir %{tde_docdir}/kde +%define tde_tdeincludedir %{tde_includedir}/kde +%define tde_tdelibdir %{tde_libdir}/trinity + +%define _docdir %{tde_docdir} Name: trinity-%{kdecomp} @@ -26,14 +35,14 @@ Vendor: Trinity Project Packager: Francois Andriot <francois.andriot@free.fr> URL: http://www.elliptique.net/~ken/kima/ -Prefix: %{_prefix} +Prefix: %{tde_prefix} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source0: %{kdecomp}-3.5.13.tar.gz BuildRequires: tqtinterface-devel -BuildRequires: trinity-kdelibs-devel -BuildRequires: trinity-kdebase-devel +BuildRequires: trinity-tdelibs-devel +BuildRequires: trinity-tdebase-devel BuildRequires: desktop-file-utils BuildRequires: gettext @@ -50,8 +59,8 @@ panel. # Ugly hack to modify TQT include directory inside autoconf files. # If TQT detection fails, it fallbacks to TQT4 instead of TQT3 ! %__sed -i "admin/acinclude.m4.in" \ - -e "s|/usr/include/tqt|%{_includedir}/tqt|g" \ - -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_docdir}/HTML'|g" + -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \ + -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g" %__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in" %__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh" @@ -59,24 +68,31 @@ panel. %build -export PATH="%{_bindir}:${PATH}" -export LDFLAGS="-L%{_libdir} -I%{_includedir}" +unset QTDIR; . /etc/profile.d/qt.sh +export PATH="%{tde_bindir}:${PATH}" +export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}" %configure \ - --disable-rpath \ - --with-extra-includes=%{_includedir}/tqt:%{tde_includedir} + --prefix=%{tde_prefix} \ + --exec-prefix=%{tde_prefix} \ + --bindir=%{tde_bindir} \ + --datadir=%{tde_datadir} \ + --libdir=%{tde_libdir} \ + --mandir=%{tde_mandir} \ + --disable-rpath \ + --with-extra-includes=%{tde_includedir}/tqt:%{tde_tdeincludedir} # SMP safe ! %__make %{?_smp_mflags} %install -export PATH="%{_bindir}:${PATH}" +export PATH="%{tde_bindir}:${PATH}" %__rm -rf %{buildroot} %__make install DESTDIR=%{buildroot} -%find_lang %{kdecomp} || touch %{kdecomp}.lang +%find_lang %{kdecomp} @@ -87,10 +103,10 @@ export PATH="%{_bindir}:${PATH}" %files -f %{kdecomp}.lang %defattr(-,root,root,-) %doc AUTHORS ChangeLog COPYING NEWS README TODO -%{tde_libdir}/libkima.la -%{tde_libdir}/libkima.so -%{_datadir}/apps/kicker/applets/kima.desktop -%{tde_docdir}/HTML/en/kima/ +%{tde_tdelibdir}/libkima.la +%{tde_tdelibdir}/libkima.so +%{tde_datadir}/apps/kicker/applets/kima.desktop +%{tde_tdedocdir}/HTML/en/kima/ %Changelog diff --git a/redhat/applications/kio-locate/trinity-kio-locate-3.5.12.spec b/redhat/applications/kio-locate/trinity-kio-locate-3.5.12.spec new file mode 100644 index 000000000..f24f3a2f7 --- /dev/null +++ b/redhat/applications/kio-locate/trinity-kio-locate-3.5.12.spec @@ -0,0 +1,111 @@ +# Default version for this component +%define kdecomp kio-locate + +# 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 building 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_mandir %{tde_datadir}/man +%define tde_appdir %{tde_datadir}/applications + +%define tde_tdeappdir %{tde_appdir}/kde +%define tde_tdedocdir %{tde_docdir}/kde +%define tde_tdeincludedir %{tde_includedir}/kde +%define tde_tdelibdir %{tde_libdir}/trinity + +%define _docdir %{tde_docdir} + + +Name: trinity-%{kdecomp} +Summary: kio-slave for the locate command [Trinity] +Version: 0.4.5 +Release: 2%{?dist}%{?_variant} + +License: GPLv2+ +Group: Applications/Utilities + +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: %{kdecomp}-3.5.12.tar.gz + +# [kio-locate] Fix compilation with GCC 4.7 +Patch1: kio-locate-3.5.13-fix_gcc47_compilation.patch + +BuildRequires: tqtinterface-devel +BuildRequires: trinity-tdelibs-devel +BuildRequires: trinity-tdebase-devel +BuildRequires: desktop-file-utils + +BuildRequires: scons + +%description +Adds support for the "locate:" and "locater:" +protocols to Konqueror and other TDE applications. + +This enables you to perform locate searches as you +would in a terminal. The result is displayed just +as a directory. + + +%prep +%setup -q -n applications/%{kdecomp} +#patch1 -p1 -b .install + +# Ugly hack to modify TQT include directory inside SCONS files. +# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 ! +%__sed -i "admin/kde.py" \ + -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" + + +%build +unset QTDIR; . /etc/profile.d/qt.sh +export PATH="%{tde_bindir}:${PATH}" +export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}" +export CXXFLAGS="-I%{tde_includedir}/tqt ${CXXFLAGS}" +scons configure +scons + + +%install +export PATH="%{tde_bindir}:${PATH}" +%__rm -rf %{buildroot} +scons install DESTDIR=%{buildroot} + +%clean +%__rm -rf %{buildroot} + + + +%files +%defattr(-,root,root,-) +%doc AUTHORS ChangeLog COPYING TODO +%{tde_tdelibdir}/kio_locate.la +%{tde_tdelibdir}/kio_locate.so +%{tde_tdedocdir}/HTML/en/kio-locate/ +%{tde_datadir}/services/locate.protocol +%{tde_datadir}/services/locater.protocol +%{tde_datadir}/services/rlocate.protocol +%{tde_datadir}/services/searchproviders/locate.desktop + + +%Changelog +* Tue May 01 2012 Francois Andriot <francois.andriot@free.fr> - 0.4.5-2 +- Rebuilt for Fedora 17 +- Removes post and postun +- Fix compilation with GCC 4.7 + +* Sat Dec 03 2011 Francois Andriot <francois.andriot@free.fr> - 0.4.5-1 +- Initial build for RHEL 5, RHEL 6, Fedora 15, Fedora 16 + diff --git a/redhat/applications/kio-locate/trinity-kio-locate.spec b/redhat/applications/kio-locate/trinity-kio-locate-3.5.13.spec index 8c0677730..72b4e1032 100644 --- a/redhat/applications/kio-locate/trinity-kio-locate.spec +++ b/redhat/applications/kio-locate/trinity-kio-locate-3.5.13.spec @@ -1,25 +1,32 @@ # Default version for this component %define kdecomp kio-locate -%define version 0.4.5 -%define release 2 # If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". -%if "%{?_prefix}" != "/usr" +%if "%{?tde_prefix}" != "/usr" %define _variant .opt -%define _docdir %{_datadir}/doc %endif # TDE 3.5.13 specific building variables -BuildRequires: autoconf automake libtool m4 -%define tde_docdir %{_docdir}/kde -%define tde_includedir %{_includedir}/kde -%define tde_libdir %{_libdir}/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_mandir %{tde_datadir}/man +%define tde_appdir %{tde_datadir}/applications + +%define tde_tdeappdir %{tde_appdir}/kde +%define tde_tdedocdir %{tde_docdir}/kde +%define tde_tdeincludedir %{tde_includedir}/kde +%define tde_tdelibdir %{tde_libdir}/trinity + +%define _docdir %{tde_docdir} Name: trinity-%{kdecomp} Summary: kio-slave for the locate command [Trinity] -Version: %{?version} -Release: %{?release}%{?dist}%{?_variant} +Version: 0.4.5 +Release: 2%{?dist}%{?_variant} License: GPLv2+ Group: Applications/Utilities @@ -28,7 +35,7 @@ Vendor: Trinity Project Packager: Francois Andriot <francois.andriot@free.fr> URL: http://www.trinitydesktop.org -Prefix: %{_prefix} +Prefix: %{tde_prefix} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source0: %{kdecomp}-3.5.13.tar.gz @@ -36,9 +43,11 @@ Source0: %{kdecomp}-3.5.13.tar.gz # [kio-locate] Fix compilation with GCC 4.7 Patch1: kio-locate-3.5.13-fix_gcc47_compilation.patch +Patch2: kio-locate-3.5.13-downgrade_3512.patch + BuildRequires: tqtinterface-devel -BuildRequires: trinity-kdelibs-devel -BuildRequires: trinity-kdebase-devel +BuildRequires: trinity-tdelibs-devel +BuildRequires: trinity-tdebase-devel BuildRequires: desktop-file-utils BuildRequires: scons @@ -55,23 +64,24 @@ as a directory. %prep %setup -q -n applications/%{kdecomp} %patch1 -p1 -b .install +%patch2 -p7 # Ugly hack to modify TQT include directory inside SCONS files. # If TQT detection fails, it fallbacks to TQT4 instead of TQT3 ! %__sed -i "admin/kde.py" \ - -e "s|/usr/include/tqt|%{_includedir}/tqt|g" + -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" %build unset QTDIR; . /etc/profile.d/qt.sh -export PATH="%{_bindir}:${PATH}" -export LDFLAGS="-L%{_libdir} -I%{_includedir}" +export PATH="%{tde_bindir}:${PATH}" +export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}" scons configure scons %install -export PATH="%{_bindir}:${PATH}" +export PATH="%{tde_bindir}:${PATH}" %__rm -rf %{buildroot} scons install DESTDIR=%{buildroot} @@ -83,16 +93,13 @@ scons install DESTDIR=%{buildroot} %files %defattr(-,root,root,-) %doc AUTHORS ChangeLog COPYING TODO -%{tde_libdir}/kio_locate.la -%{tde_libdir}/kio_locate.so -%{tde_docdir}/HTML/en/kio-locate/common -%{tde_docdir}/HTML/en/kio-locate/index.cache.bz2 -%{tde_docdir}/HTML/en/kio-locate/index.docbook -%{tde_docdir}/HTML/en/kio-locate/screenshot.png -%{_datadir}/services/locate.protocol -%{_datadir}/services/locater.protocol -%{_datadir}/services/rlocate.protocol -%{_datadir}/services/searchproviders/locate.desktop +%{tde_tdelibdir}/kio_locate.la +%{tde_tdelibdir}/kio_locate.so +%{tde_tdedocdir}/HTML/en/kio-locate/ +%{tde_datadir}/services/locate.protocol +%{tde_datadir}/services/locater.protocol +%{tde_datadir}/services/rlocate.protocol +%{tde_datadir}/services/searchproviders/locate.desktop %Changelog diff --git a/redhat/applications/kio-umountwrapper/trinity-kio-umountwrapper.spec b/redhat/applications/kio-umountwrapper/trinity-kio-umountwrapper.spec index d8ed7076a..352e39845 100644 --- a/redhat/applications/kio-umountwrapper/trinity-kio-umountwrapper.spec +++ b/redhat/applications/kio-umountwrapper/trinity-kio-umountwrapper.spec @@ -2,16 +2,25 @@ %define kdecomp kio-umountwrapper # If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". -%if "%{?_prefix}" != "/usr" +%if "%{?tde_prefix}" != "/usr" %define _variant .opt -%define _docdir %{_datadir}/doc %endif # TDE 3.5.13 specific building variables -BuildRequires: autoconf automake libtool m4 -%define tde_docdir %{_docdir}/kde -%define tde_includedir %{_includedir}/kde -%define tde_libdir %{_libdir}/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_mandir %{tde_datadir}/man +%define tde_appdir %{tde_datadir}/applications + +%define tde_tdeappdir %{tde_appdir}/kde +%define tde_tdedocdir %{tde_docdir}/kde +%define tde_tdeincludedir %{tde_includedir}/kde +%define tde_tdelibdir %{tde_libdir}/trinity + +%define _docdir %{tde_docdir} Name: trinity-%{kdecomp} @@ -26,7 +35,7 @@ Vendor: Trinity Project Packager: Francois Andriot <francois.andriot@free.fr> URL: http://frode.kde.no/misc/kio_umountwrapper/ -Prefix: %{_prefix} +Prefix: %{tde_prefix} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source0: %{kdecomp}-3.5.13.tar.gz @@ -34,8 +43,8 @@ Source1: media_safelyremove.desktop BuildRequires: tqtinterface-devel -BuildRequires: trinity-kdelibs-devel -BuildRequires: trinity-kdebase-devel +BuildRequires: trinity-tdelibs-devel +BuildRequires: trinity-tdebase-devel BuildRequires: desktop-file-utils @@ -46,14 +55,13 @@ Provides a progress dialog for Safely Removing of devices in Trinity. %prep -unset QTDIR; . /etc/profile.d/qt.sh %setup -q -n applications/%{kdecomp} # Ugly hack to modify TQT include directory inside autoconf files. # If TQT detection fails, it fallbacks to TQT4 instead of TQT3 ! %__sed -i admin/acinclude.m4.in \ - -e "s|/usr/include/tqt|%{_includedir}/tqt|g" \ - -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_docdir}/HTML'|g" + -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \ + -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g" %__cp "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in" %__cp "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh" @@ -61,25 +69,32 @@ unset QTDIR; . /etc/profile.d/qt.sh %build -export PATH="%{_bindir}:${PATH}" -export LDFLAGS="-L%{_libdir} -I%{_includedir}" +unset QTDIR; . /etc/profile.d/qt.sh +export PATH="%{tde_bindir}:${PATH}" +export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}" %configure \ - --disable-rpath \ - --with-extra-includes=%{_includedir}/tqt \ - --enable-closure + --prefix=%{tde_prefix} \ + --exec-prefix=%{tde_prefix} \ + --bindir=%{tde_bindir} \ + --datadir=%{tde_datadir} \ + --libdir=%{tde_libdir} \ + --mandir=%{tde_mandir} \ + --disable-rpath \ + --with-extra-includes=%{tde_includedir}/tqt \ + --enable-closure %__make %{?_smp_mflags} %install -export PATH="%{_bindir}:${PATH}" +export PATH="%{tde_bindir}:${PATH}" %__rm -rf %{buildroot} %__make install DESTDIR=%{buildroot} -%__install -D -m 644 %{SOURCE1} %{?buildroot}%{_datadir}/apps/konqueror/servicemenus/media_safelyremove.desktop_kio-umountwrapper -#%__install -D -m 644 %{SOURCE1} %{?buildroot}%{_datadir}/apps/dolphin/servicemenus/media_safelyremove.desktop_kio-umountwrapper -%__install -D -m 644 %{SOURCE1} %{?buildroot}%{_datadir}/apps/d3lphin/servicemenus/media_safelyremove.desktop_kio-umountwrapper +%__install -D -m 644 %{SOURCE1} %{?buildroot}%{tde_datadir}/apps/konqueror/servicemenus/media_safelyremove.desktop_kio-umountwrapper +#%__install -D -m 644 %{SOURCE1} %{?buildroot}%{tde_datadir}/apps/dolphin/servicemenus/media_safelyremove.desktop_kio-umountwrapper +%__install -D -m 644 %{SOURCE1} %{?buildroot}%{tde_datadir}/apps/d3lphin/servicemenus/media_safelyremove.desktop_kio-umountwrapper %clean @@ -88,9 +103,9 @@ export PATH="%{_bindir}:${PATH}" %post for f in konqueror d3lphin; do alternatives --install \ - %{_datadir}/apps/${f}/servicemenus/media_safelyremove.desktop \ + %{tde_datadir}/apps/${f}/servicemenus/media_safelyremove.desktop \ media_safelyremove.desktop_${f} \ - %{_datadir}/apps/${f}/servicemenus/media_safelyremove.desktop_kio-umountwrapper \ + %{tde_datadir}/apps/${f}/servicemenus/media_safelyremove.desktop_kio-umountwrapper \ 20 done @@ -100,17 +115,17 @@ if [ $1 -eq 0 ]; then for f in konqueror d3lphin; do alternatives --remove \ media_safelyremove.desktop_${f} \ - %{_datadir}/apps/${f}/servicemenus/media_safelyremove.desktop_kio-umountwrapper + %{tde_datadir}/apps/${f}/servicemenus/media_safelyremove.desktop_kio-umountwrapper done fi %files %defattr(-,root,root,-) %doc AUTHORS ChangeLog COPYING NEWS README TODO -%{_bindir}/kio_umountwrapper -%{_datadir}/apps/konqueror/servicemenus/media_safelyremove.desktop_kio-umountwrapper -#%{_datadir}/apps/dolphin/servicemenus/media_safelyremove.desktop_kio-umountwrapper -%{_datadir}/apps/d3lphin/servicemenus/media_safelyremove.desktop_kio-umountwrapper +%{tde_bindir}/kio_umountwrapper +%{tde_datadir}/apps/konqueror/servicemenus/media_safelyremove.desktop_kio-umountwrapper +#%{tde_datadir}/apps/dolphin/servicemenus/media_safelyremove.desktop_kio-umountwrapper +%{tde_datadir}/apps/d3lphin/servicemenus/media_safelyremove.desktop_kio-umountwrapper %Changelog * Sun Jul 08 2012 Francois Andriot <francois.andriot@free.fr> - 0.2-3 diff --git a/redhat/applications/kiosktool/trinity-kiosktool.spec b/redhat/applications/kiosktool/trinity-kiosktool.spec index 523f5682e..3195e466b 100644 --- a/redhat/applications/kiosktool/trinity-kiosktool.spec +++ b/redhat/applications/kiosktool/trinity-kiosktool.spec @@ -1,24 +1,31 @@ # Default version for this component %define kdecomp kiosktool -%define version 1.0 -%define release 2 # If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". -%if "%{?_prefix}" != "/usr" +%if "%{?tde_prefix}" != "/usr" %define _variant .opt -%define _docdir %{_prefix}/share/doc %endif # TDE 3.5.13 specific building variables -BuildRequires: autoconf automake libtool m4 -%define tde_docdir %{_docdir}/kde -%define tde_includedir %{_includedir}/kde -%define tde_libdir %{_libdir}/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_mandir %{tde_datadir}/man +%define tde_appdir %{tde_datadir}/applications + +%define tde_tdeappdir %{tde_appdir}/kde +%define tde_tdedocdir %{tde_docdir}/kde +%define tde_tdeincludedir %{tde_includedir}/kde +%define tde_tdelibdir %{tde_libdir}/trinity + +%define _docdir %{tde_docdir} Name: trinity-%{kdecomp} -Version: %{?version} -Release: %{?release}%{?dist}%{?_variant} +Version: 1.0 +Release: 2%{?dist}%{?_variant} Summary: tool to configure the TDE kiosk framework License: GPLv2+ @@ -33,7 +40,7 @@ Source0: %{kdecomp}-3.5.13.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: gettext -BuildRequires: trinity-kdelibs-devel +BuildRequires: trinity-tdelibs-devel %description @@ -48,8 +55,8 @@ groups of users. # Ugly hack to modify TQT include directory inside autoconf files. # If TQT detection fails, it fallbacks to TQT4 instead of TQT3 ! %__sed -i admin/acinclude.m4.in \ - -e "s|/usr/include/tqt|%{_includedir}/tqt|g" \ - -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_docdir}/HTML'|g" + -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \ + -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g" %__cp "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in" %__cp "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh" @@ -58,24 +65,30 @@ groups of users. %build unset QTDIR || : ; source /etc/profile.d/qt.sh -export PATH="%{_bindir}:${PATH}" -export LDFLAGS="-L%{_libdir} -I%{_includedir}" +export PATH="%{tde_bindir}:${PATH}" +export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}" %configure \ + --prefix=%{tde_prefix} \ + --exec-prefix=%{tde_prefix} \ + --bindir=%{tde_bindir} \ + --datadir=%{tde_datadir} \ + --libdir=%{tde_libdir} \ + --mandir=%{tde_mandir} \ --disable-rpath \ --enable-new-ldflags \ --disable-debug --disable-warnings \ --disable-dependency-tracking --enable-final \ --enable-closure \ - --with-extra-includes=%{_includedir}/tqt + --with-extra-includes=%{tde_includedir}/tqt %__make %{?_smp_mflags} %install -export PATH="%{_bindir}:${PATH}" +export PATH="%{tde_bindir}:${PATH}" %__rm -rf $RPM_BUILD_ROOT %__make install DESTDIR=$RPM_BUILD_ROOT @@ -105,13 +118,13 @@ fi %post -touch --no-create %{_datadir}/icons/crystalsvg ||: -gtk-update-icon-cache -q %{_datadir}/icons/crystalsvg 2> /dev/null ||: +touch --no-create %{tde_datadir}/icons/crystalsvg ||: +gtk-update-icon-cache -q %{tde_datadir}/icons/crystalsvg 2> /dev/null ||: update-desktop-database >& /dev/null ||: %postun -touch --no-create %{_datadir}/icons/crystalsvg ||: -gtk-update-icon-cache -q %{_datadir}/icons/crystalsvg 2> /dev/null ||: +touch --no-create %{tde_datadir}/icons/crystalsvg ||: +gtk-update-icon-cache -q %{tde_datadir}/icons/crystalsvg 2> /dev/null ||: update-desktop-database >& /dev/null ||: @@ -119,14 +132,14 @@ update-desktop-database >& /dev/null ||: %files -f %{kdecomp}.lang %defattr(-,root,root,-) %doc ChangeLog COPYING README TODO -%{_bindir}/kiosktool -%{_bindir}/kiosktool-kdedirs -%{_datadir}/applications/kde/kiosktool.desktop -%{_datadir}/apps/kiosktool/*.png -%{tde_docdir}/HTML/en/kiosktool/ -%{_datadir}/icons/crystalsvg/*/apps/kiosktool.png -%{_datadir}/apps/kiosktool/kiosk_data.xml -%{_datadir}/apps/kiosktool/kiosktoolui.rc +%{tde_bindir}/kiosktool +%{tde_bindir}/kiosktool-kdedirs +%{tde_tdeappdir}/kiosktool.desktop +%{tde_datadir}/apps/kiosktool/*.png +%{tde_tdedocdir}/HTML/en/kiosktool/ +%{tde_datadir}/icons/crystalsvg/*/apps/kiosktool.png +%{tde_datadir}/apps/kiosktool/kiosk_data.xml +%{tde_datadir}/apps/kiosktool/kiosktoolui.rc %Changelog * Wed May 02 2012 Francois Andriot <francois.andriot@free.fr> - 1.0-2 diff --git a/redhat/applications/kmplayer/kmplayer-3.5.13-ftbfs.patch b/redhat/applications/kmplayer/kmplayer-3.5.13-ftbfs.patch deleted file mode 100644 index f3a5d51da..000000000 --- a/redhat/applications/kmplayer/kmplayer-3.5.13-ftbfs.patch +++ /dev/null @@ -1,10 +0,0 @@ ---- kmplayer/src/Makefile.am.ORI 2011-12-03 23:22:01.601981533 +0100 -+++ kmplayer/src/Makefile.am 2011-12-03 23:22:44.469655046 +0100 -@@ -58,6 +58,7 @@ - kgstplayer_SOURCES= gstplayer.cpp - - knpplayer_LDADD= $(LIBNSPR_LIBS) -+knpplayer_LDFLAGS= -lX11 -lgmodule-2.0 - knpplayer_SOURCES= npplayer.c - - xdg_apps_DATA = kmplayer.desktop diff --git a/redhat/applications/kmplayer/kmplayer-3.5.13-missing_ldflags.patch b/redhat/applications/kmplayer/kmplayer-3.5.13-missing_ldflags.patch new file mode 100644 index 000000000..ba6c16cb9 --- /dev/null +++ b/redhat/applications/kmplayer/kmplayer-3.5.13-missing_ldflags.patch @@ -0,0 +1,21 @@ +--- kmplayer/src/Makefile.am.ORI 2012-08-05 17:09:59.963896862 +0200 ++++ kmplayer/src/Makefile.am 2012-08-05 17:10:16.667563785 +0200 +@@ -6,7 +6,7 @@ + + libkmplayercommon_la_SOURCES = viewarea.cpp kmplayerview.cpp playlistview.cpp kmplayercontrolpanel.cpp kmplayerconfig.cpp pref.cpp kmplayerprocess.cpp kmplayer_callback.skel kmplayer_backend.stub kmplayerpartbase.cpp kmplayerplaylist.cpp kmplayer_asx.cpp kmplayer_smil.cpp kmplayer_rp.cpp kmplayer_rss.cpp kmplayer_atom.cpp kmplayer_xspf.cpp triestring.cpp kmplayerpartbase.skel + libkmplayercommon_la_LDFLAGS = -avoid-version $(all_libraries) +-libkmplayercommon_la_LIBADD = -lkmediaplayer $(LIB_KPARTS) $(LIB_KUTILS) $(LIB_EXPAT) -lm $(LIBCAIRO_LIBS) $(LIBQTDBUS) ++libkmplayercommon_la_LIBADD = -lkmediaplayer $(LIB_KPARTS) $(LIB_KUTILS) $(LIB_EXPAT) -lm $(LIBCAIRO_LIBS) $(LIBQTDBUS) $(LIB_QT) -lDCOP $(LIB_KDECORE) -lkdefx $(LIB_KDEUI) $(LIB_KIO) + + if include_koffice_support + kofficeplugin_lib= libkmplayerkofficepart.la +--- kmplayer/src/Makefile.am.ORI 2011-12-03 23:22:01.601981533 +0100 ++++ kmplayer/src/Makefile.am 2011-12-03 23:22:44.469655046 +0100 +@@ -58,6 +58,7 @@ + kgstplayer_SOURCES= gstplayer.cpp + + knpplayer_LDADD= $(LIBNSPR_LIBS) ++knpplayer_LDFLAGS= -lX11 -lgmodule-2.0 + knpplayer_SOURCES= npplayer.c + + xdg_apps_DATA = kmplayer.desktop diff --git a/redhat/applications/kmplayer/trinity-kmplayer.spec b/redhat/applications/kmplayer/trinity-kmplayer.spec index 933e47ee2..70589fe00 100644 --- a/redhat/applications/kmplayer/trinity-kmplayer.spec +++ b/redhat/applications/kmplayer/trinity-kmplayer.spec @@ -1,25 +1,32 @@ # Default version for this component %define kdecomp kmplayer -%define version 0.10.0c -%define release 2 # If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". -%if "%{?_prefix}" != "/usr" +%if "%{?tde_prefix}" != "/usr" %define _variant .opt -%define _docdir %{_prefix}/share/doc %endif # TDE 3.5.13 specific building variables -BuildRequires: autoconf automake libtool m4 -%define tde_docdir %{_docdir}/kde -%define tde_includedir %{_includedir}/kde -%define tde_libdir %{_libdir}/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_mandir %{tde_datadir}/man +%define tde_appdir %{tde_datadir}/applications + +%define tde_tdeappdir %{tde_appdir}/kde +%define tde_tdedocdir %{tde_docdir}/kde +%define tde_tdeincludedir %{tde_includedir}/kde +%define tde_tdelibdir %{tde_libdir}/trinity + +%define _docdir %{tde_docdir} Name: trinity-%{kdecomp} Summary: media player for Trinity -Version: %{?version} -Release: %{?release}%{?dist}%{?_variant} +Version: 0.10.0c +Release: 2%{?dist}%{?_variant} License: GPLv2+ Group: Applications/Multimedia @@ -28,24 +35,33 @@ Vendor: Trinity Project Packager: Francois Andriot <francois.andriot@free.fr> URL: http://kmplayer.kde.org -Prefix: %{_prefix} +Prefix: %{tde_prefix} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source0: %{kdecomp}-3.5.13.tar.gz -Patch0: kmplayer-3.5.13-ftbfs.patch # [kmplayer] Fix compilation with GCC 4.7 [Commit #5106117b] Patch1: kmplayer-3.5.13-fix_gcc47_compilation.patch +# [kmplayer] Missing LDLFLAGS cause FTBFS +Patch2: kmplayer-3.5.13-missing_ldflags.patch + BuildRequires: tqtinterface-devel -BuildRequires: trinity-kdelibs-devel -BuildRequires: trinity-kdebase-devel +BuildRequires: trinity-tdelibs-devel +BuildRequires: trinity-tdebase-devel BuildRequires: desktop-file-utils -BuildRequires: libXv-devel BuildRequires: dbus-tqt-devel + +%if 0%{?mgaversion} || 0%{?mdkversion} +BuildRequires: %{_lib}gstreamer0.10-devel +BuildRequires: %{_lib}gstreamer-plugins-base0.10-devel +BuildRequires: libxv-devel +%else BuildRequires: gstreamer-devel BuildRequires: gstreamer-plugins-base-devel +BuildRequires: libXv-devel +%endif Requires: %{name}-base @@ -96,16 +112,15 @@ Documention for KMPlayer, a basic audio/video viewer application for KDE. %prep -unset QTDIR; . /etc/profile.d/qt.sh %setup -q -n applications/%{kdecomp} -%patch0 -p1 %patch1 -p1 +%patch2 -p1 # Ugly hack to modify TQT include directory inside autoconf files. # If TQT detection fails, it fallbacks to TQT4 instead of TQT3 ! %__sed -i admin/acinclude.m4.in \ - -e "s|/usr/include/tqt|%{_includedir}/tqt|g" \ - -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_docdir}/HTML'|g" + -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \ + -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g" %__cp "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in" %__cp "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh" @@ -114,87 +129,98 @@ unset QTDIR; . /etc/profile.d/qt.sh %build -export PATH="%{_bindir}:${PATH}" -export LDFLAGS="-L%{_libdir} -I%{_includedir}" +unset QTDIR; . /etc/profile.d/qt.sh +export PATH="%{tde_bindir}:${PATH}" +export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}" %configure \ - --disable-rpath \ - --with-extra-includes=%{_includedir}/tqt:%{_includedir}/dbus-1.0 \ - --enable-closure + --prefix=%{tde_prefix} \ + --exec-prefix=%{tde_prefix} \ + --bindir=%{tde_bindir} \ + --datadir=%{tde_datadir} \ + --libdir=%{tde_libdir} \ + --mandir=%{tde_mandir} \ + --disable-rpath \ + --with-extra-includes=%{tde_includedir}/tqt:%{tde_includedir}/dbus-1.0 \ + --enable-closure + %__make %{?_smp_mflags} %install -export PATH="%{_bindir}:${PATH}" +export PATH="%{tde_bindir}:${PATH}" %__rm -rf %{buildroot} %__make install DESTDIR=%{buildroot} %find_lang %{kdecomp} +# Removes unwanted files +%__rm -f %{?buildroot}%{tde_datadir}/mimelnk/application/x-mplayer2.desktop + + %clean %__rm -rf %{buildroot} -%post -p /sbin/ldconfig -%postun -p /sbin/ldconfig +%post +/sbin/ldconfig || : + +%postun +/sbin/ldconfig || : %post base -touch --no-create %{_datadir}/icons/hicolor || : -gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +touch --no-create %{tde_datadir}/icons/hicolor || : +gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || : /sbin/ldconfig || : %postun base -touch --no-create %{_datadir}/icons/hicolor || : -gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +touch --no-create %{tde_datadir}/icons/hicolor || : +gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || : /sbin/ldconfig || : -%post konq-plugins -p /sbin/ldconfig -%postun konq-plugins -p /sbin/ldconfig - %files -f %{kdecomp}.lang %defattr(-,root,root,-) %doc AUTHORS COPYING ChangeLog INSTALL README TODO kmplayer.lsm -%{_bindir}/kmplayer -%{_bindir}/knpplayer -%{_bindir}/kxvplayer -%{_libdir}/libkdeinit_kmplayer.la -%{_libdir}/libkdeinit_kmplayer.so -%{tde_libdir}/kmplayer.la -%{tde_libdir}/kmplayer.so -%{_datadir}/applications/kde/kmplayer.desktop -%{_datadir}/apps/kmplayer -%exclude %{_datadir}/mimelnk/application/x-mplayer2.desktop -%{_datadir}/services/kmplayer_part.desktop +%{tde_bindir}/kmplayer +%{tde_bindir}/knpplayer +%{tde_bindir}/kxvplayer +%{tde_libdir}/libkdeinit_kmplayer.la +%{tde_libdir}/libkdeinit_kmplayer.so +%{tde_tdelibdir}/kmplayer.la +%{tde_tdelibdir}/kmplayer.so +%{tde_tdeappdir}/kmplayer.desktop +%{tde_datadir}/apps/kmplayer +%{tde_datadir}/services/kmplayer_part.desktop %files base %defattr(-,root,root,-) -%{_libdir}/libkmplayercommon.la -%{_libdir}/libkmplayercommon.so -%{_bindir}/kgstplayer -%{_bindir}/kxineplayer -%{_datadir}/config/kmplayerrc -%{_datadir}/apps/kmplayer/bookmarks.xml -%{_datadir}/apps/kmplayer/noise.gif -%{_datadir}/apps/kmplayer/pluginsinfo -%{_datadir}/icons/hicolor/*/apps/kmplayer.png -%{_datadir}/icons/hicolor/*/apps/kmplayer.svgz -%{_datadir}/mimelnk/application/x-kmplayer.desktop -%{_datadir}/mimelnk/video/x-ms-wmp.desktop +%{tde_libdir}/libkmplayercommon.la +%{tde_libdir}/libkmplayercommon.so +%{tde_bindir}/kgstplayer +%{tde_bindir}/kxineplayer +%{tde_datadir}/config/kmplayerrc +%{tde_datadir}/apps/kmplayer/bookmarks.xml +%{tde_datadir}/apps/kmplayer/noise.gif +%{tde_datadir}/apps/kmplayer/pluginsinfo +%{tde_datadir}/icons/hicolor/*/apps/kmplayer.png +%{tde_datadir}/icons/hicolor/*/apps/kmplayer.svgz +%{tde_datadir}/mimelnk/application/x-kmplayer.desktop +%{tde_datadir}/mimelnk/video/x-ms-wmp.desktop %files doc %defattr(-,root,root,-) -%{tde_docdir}/HTML/*/kmplayer +%{tde_tdedocdir}/HTML/*/kmplayer %files konq-plugins %defattr(-,root,root,-) -%{tde_libdir}/libkmplayerpart.la -%{tde_libdir}/libkmplayerpart.so -%{_datadir}/apps/kmplayer/kmplayerpartui.rc -%{_datadir}/apps/kmplayer/pluginsinfo -%{_datadir}/services/kmplayer_part.desktop +%{tde_tdelibdir}/libkmplayerpart.la +%{tde_tdelibdir}/libkmplayerpart.so +%{tde_datadir}/apps/kmplayer/kmplayerpartui.rc +%{tde_datadir}/apps/kmplayer/pluginsinfo +%{tde_datadir}/services/kmplayer_part.desktop %Changelog diff --git a/redhat/applications/kmyfirewall/kmyfirewall-3.5.13-missing_ldflags.patch b/redhat/applications/kmyfirewall/kmyfirewall-3.5.13-missing_ldflags.patch new file mode 100644 index 000000000..f2d236faa --- /dev/null +++ b/redhat/applications/kmyfirewall/kmyfirewall-3.5.13-missing_ldflags.patch @@ -0,0 +1,11 @@ +--- kmyfirewall/kmyfirewall/core/Makefile.am.ROI 2012-08-05 17:28:28.006801940 +0200 ++++ kmyfirewall/kmyfirewall/core/Makefile.am 2012-08-05 17:28:40.878545270 +0200 +@@ -53,7 +53,7 @@ + + libkmfcoreincludedir = $(includedir)/kmyfirewall/core/ + +-libkmfcore_la_LIBADD = $(LIB_KPARTS) $(LIB_KIO) ++libkmfcore_la_LIBADD = $(LIB_KPARTS) $(LIB_KIO) $(LIB_QT) $(LIB_KDECORE) $(LIB_KDEUI) + + libkmfcoreinclude_HEADERS = ipaddress.h \ + iptable.h \ diff --git a/redhat/applications/kmyfirewall/trinity-kmyfirewall.spec b/redhat/applications/kmyfirewall/trinity-kmyfirewall.spec index ddc21d3fa..5a0cde153 100644 --- a/redhat/applications/kmyfirewall/trinity-kmyfirewall.spec +++ b/redhat/applications/kmyfirewall/trinity-kmyfirewall.spec @@ -1,25 +1,32 @@ # Default version for this component %define kdecomp kmyfirewall -%define version 1.1.1 -%define release 2 # If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". -%if "%{?_prefix}" != "/usr" +%if "%{?tde_prefix}" != "/usr" %define _variant .opt -%define _docdir %{_prefix}/share/doc %endif # TDE 3.5.13 specific building variables -BuildRequires: autoconf automake libtool m4 -%define tde_docdir %{_docdir}/kde -%define tde_includedir %{_includedir}/kde -%define tde_libdir %{_libdir}/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_mandir %{tde_datadir}/man +%define tde_appdir %{tde_datadir}/applications + +%define tde_tdeappdir %{tde_appdir}/kde +%define tde_tdedocdir %{tde_docdir}/kde +%define tde_tdeincludedir %{tde_includedir}/kde +%define tde_tdelibdir %{tde_libdir}/trinity + +%define _docdir %{tde_docdir} Name: trinity-%{kdecomp} Summary: iptables based firewall configuration tool for KDE [Trinity] -Version: %{?version} -Release: %{?release}%{?dist}%{?_variant} +Version: 1.1.1 +Release: 2%{?dist}%{?_variant} License: GPLv2+ Group: Applications/Utilities @@ -28,17 +35,19 @@ Vendor: Trinity Project Packager: Francois Andriot <francois.andriot@free.fr> URL: http://www.trinitydesktop.org/ -Prefix: %{_prefix} +Prefix: %{tde_prefix} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source0: %{kdecomp}-3.5.13.tar.gz # [kmyfirewall] GCC 4.7 fixes. [Commit #88d2d2a7] Patch1: kmyfirewall-3.5.13-fix_gcc47_compilation.patch +# [kmyfirefall] Missing LDFLAGS cause FTBFS +Patch2: kmyfirewall-3.5.13-missing_ldflags.patch BuildRequires: tqtinterface-devel -BuildRequires: trinity-kdelibs-devel -BuildRequires: trinity-kdebase-devel +BuildRequires: trinity-tdelibs-devel +BuildRequires: trinity-tdebase-devel BuildRequires: desktop-file-utils @@ -64,15 +73,15 @@ Requires: %{name} = %{version}-%{release} %prep -unset QTDIR; . /etc/profile.d/qt.sh %setup -q -n applications/%{kdecomp} %patch1 -p1 +%patch2 -p1 # Ugly hack to modify TQT include directory inside autoconf files. # If TQT detection fails, it fallbacks to TQT4 instead of TQT3 ! %__sed -i admin/acinclude.m4.in \ - -e "s|/usr/include/tqt|%{_includedir}/tqt|g" \ - -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_docdir}/HTML'|g" + -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \ + -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g" %__cp "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in" %__cp "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh" @@ -80,18 +89,26 @@ unset QTDIR; . /etc/profile.d/qt.sh %build -export PATH="%{_bindir}:${PATH}" -export LDFLAGS="-L%{_libdir} -I%{_includedir}" +unset QTDIR; . /etc/profile.d/qt.sh +export PATH="%{tde_bindir}:${PATH}" +export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}" %configure \ - --disable-rpath \ - --with-extra-includes=%{_includedir}/tqt \ - --enable-closure + --prefix=%{tde_prefix} \ + --exec-prefix=%{tde_prefix} \ + --bindir=%{tde_bindir} \ + --datadir=%{tde_datadir} \ + --libdir=%{tde_libdir} \ + --mandir=%{tde_mandir} \ + --includedir=%{tde_tdeincludedir} \ + --disable-rpath \ + --with-extra-includes=%{tde_includedir}/tqt \ + --enable-closure %__make %{?_smp_mflags} %install -export PATH="%{_bindir}:${PATH}" +export PATH="%{tde_bindir}:${PATH}" %__rm -rf %{buildroot} %__make install DESTDIR=%{buildroot} @@ -101,16 +118,18 @@ export PATH="%{_bindir}:${PATH}" %post +update-desktop-database %{tde_appdir} > /dev/null for f in hicolor Locolor; do - touch --no-create %{_datadir}/icons/${f} || : - gtk-update-icon-cache --quiet %{_datadir}/icons/${f} || : + touch --no-create %{tde_datadir}/icons/${f} || : + gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} || : done /sbin/ldconfig || : %postun +update-desktop-database %{tde_appdir} > /dev/null for f in hicolor Locolor; do - touch --no-create %{_datadir}/icons/${f} || : - gtk-update-icon-cache --quiet %{_datadir}/icons/${f} || : + touch --no-create %{tde_datadir}/icons/${f} || : + gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} || : done /sbin/ldconfig || : @@ -118,68 +137,66 @@ done %files %defattr(-,root,root,-) %doc AUTHORS ChangeLog COPYING COPYING-DOCS README TODO -%{_bindir}/kmyfirewall -%{_libdir}/libkmfcore.so.* -%{_libdir}/libkmfwidgets.so.* -%{tde_libdir}/libkmfcompiler_ipt.la -%{tde_libdir}/libkmfcompiler_ipt.so -%{tde_libdir}/libkmfgenericinterfacepart.la -%{tde_libdir}/libkmfgenericinterfacepart.so -%{tde_libdir}/libkmfinstaller_linux.la -%{tde_libdir}/libkmfinstaller_linux.so -%{tde_libdir}/libkmfinstallerplugin.la -%{tde_libdir}/libkmfinstallerplugin.so -%{tde_libdir}/libkmfipteditorpart.la -%{tde_libdir}/libkmfipteditorpart.so -%{tde_libdir}/libkmfruleoptionedit_custom.la -%{tde_libdir}/libkmfruleoptionedit_custom.so -%{tde_libdir}/libkmfruleoptionedit_interface.la -%{tde_libdir}/libkmfruleoptionedit_interface.so -%{tde_libdir}/libkmfruleoptionedit_ip.la -%{tde_libdir}/libkmfruleoptionedit_ip.so -%{tde_libdir}/libkmfruleoptionedit_limit.la -%{tde_libdir}/libkmfruleoptionedit_limit.so -%{tde_libdir}/libkmfruleoptionedit_mac.la -%{tde_libdir}/libkmfruleoptionedit_mac.so -%{tde_libdir}/libkmfruleoptionedit_protocol.la -%{tde_libdir}/libkmfruleoptionedit_protocol.so -%{tde_libdir}/libkmfruleoptionedit_state.la -%{tde_libdir}/libkmfruleoptionedit_state.so -%{tde_libdir}/libkmfruleoptionedit_tos.la -%{tde_libdir}/libkmfruleoptionedit_tos.so -%{tde_libdir}/libkmfruletargetoptionedit_log.la -%{tde_libdir}/libkmfruletargetoptionedit_log.so -%{tde_libdir}/libkmfruletargetoptionedit_mark.la -%{tde_libdir}/libkmfruletargetoptionedit_mark.so -%{tde_libdir}/libkmfruletargetoptionedit_nat.la -%{tde_libdir}/libkmfruletargetoptionedit_nat.so -%{tde_libdir}/libkmfruletargetoptionedit_tos.la -%{tde_libdir}/libkmfruletargetoptionedit_tos.so -%{_datadir}/applications/kde/kmyfirewall.desktop -%{_datadir}/apps/kmfgenericinterfacepart/kmfgenericinterfacepartui.rc -%{_datadir}/apps/kmfipteditorpart/kmfipteditorpartui.rc -%{_datadir}/apps/kmfsystray -%{_datadir}/apps/kmyfirewall -%{_datadir}/config.kcfg/kmfconfig.kcfg -%{_datadir}/config/kmyfirewallrc -%{tde_docdir}/HTML/en/kmyfirewall/common -%{tde_docdir}/HTML/en/kmyfirewall/index.cache.bz2 -%{tde_docdir}/HTML/en/kmyfirewall/index.docbook -%{_datadir}/icons/hicolor/*/apps/kmyfirewall.png -%{_datadir}/icons/Locolor/*/apps/kmyfirewall.png -%{_datadir}/mimelnk/application/kmfgrs.desktop -%{_datadir}/mimelnk/application/kmfnet.desktop -%{_datadir}/mimelnk/application/kmfpkg.desktop -%{_datadir}/mimelnk/application/kmfrs.desktop -%{_datadir}/services/kmf*.desktop -%{_datadir}/servicetypes/kmf*.desktop +%{tde_bindir}/kmyfirewall +%{tde_libdir}/libkmfcore.so.* +%{tde_libdir}/libkmfwidgets.so.* +%{tde_tdelibdir}/libkmfcompiler_ipt.la +%{tde_tdelibdir}/libkmfcompiler_ipt.so +%{tde_tdelibdir}/libkmfgenericinterfacepart.la +%{tde_tdelibdir}/libkmfgenericinterfacepart.so +%{tde_tdelibdir}/libkmfinstaller_linux.la +%{tde_tdelibdir}/libkmfinstaller_linux.so +%{tde_tdelibdir}/libkmfinstallerplugin.la +%{tde_tdelibdir}/libkmfinstallerplugin.so +%{tde_tdelibdir}/libkmfipteditorpart.la +%{tde_tdelibdir}/libkmfipteditorpart.so +%{tde_tdelibdir}/libkmfruleoptionedit_custom.la +%{tde_tdelibdir}/libkmfruleoptionedit_custom.so +%{tde_tdelibdir}/libkmfruleoptionedit_interface.la +%{tde_tdelibdir}/libkmfruleoptionedit_interface.so +%{tde_tdelibdir}/libkmfruleoptionedit_ip.la +%{tde_tdelibdir}/libkmfruleoptionedit_ip.so +%{tde_tdelibdir}/libkmfruleoptionedit_limit.la +%{tde_tdelibdir}/libkmfruleoptionedit_limit.so +%{tde_tdelibdir}/libkmfruleoptionedit_mac.la +%{tde_tdelibdir}/libkmfruleoptionedit_mac.so +%{tde_tdelibdir}/libkmfruleoptionedit_protocol.la +%{tde_tdelibdir}/libkmfruleoptionedit_protocol.so +%{tde_tdelibdir}/libkmfruleoptionedit_state.la +%{tde_tdelibdir}/libkmfruleoptionedit_state.so +%{tde_tdelibdir}/libkmfruleoptionedit_tos.la +%{tde_tdelibdir}/libkmfruleoptionedit_tos.so +%{tde_tdelibdir}/libkmfruletargetoptionedit_log.la +%{tde_tdelibdir}/libkmfruletargetoptionedit_log.so +%{tde_tdelibdir}/libkmfruletargetoptionedit_mark.la +%{tde_tdelibdir}/libkmfruletargetoptionedit_mark.so +%{tde_tdelibdir}/libkmfruletargetoptionedit_nat.la +%{tde_tdelibdir}/libkmfruletargetoptionedit_nat.so +%{tde_tdelibdir}/libkmfruletargetoptionedit_tos.la +%{tde_tdelibdir}/libkmfruletargetoptionedit_tos.so +%{tde_tdeappdir}/kmyfirewall.desktop +%{tde_datadir}/apps/kmfgenericinterfacepart/kmfgenericinterfacepartui.rc +%{tde_datadir}/apps/kmfipteditorpart/kmfipteditorpartui.rc +%{tde_datadir}/apps/kmfsystray +%{tde_datadir}/apps/kmyfirewall +%{tde_datadir}/config.kcfg/kmfconfig.kcfg +%{tde_datadir}/config/kmyfirewallrc +%{tde_tdedocdir}/HTML/en/kmyfirewall/ +%{tde_datadir}/icons/hicolor/*/apps/kmyfirewall.png +%{tde_datadir}/icons/Locolor/*/apps/kmyfirewall.png +%{tde_datadir}/mimelnk/application/kmfgrs.desktop +%{tde_datadir}/mimelnk/application/kmfnet.desktop +%{tde_datadir}/mimelnk/application/kmfpkg.desktop +%{tde_datadir}/mimelnk/application/kmfrs.desktop +%{tde_datadir}/services/kmf*.desktop +%{tde_datadir}/servicetypes/kmf*.desktop %files devel -%{_includedir}/kmyfirewall -%{_libdir}/libkmfcore.la -%{_libdir}/libkmfcore.so -%{_libdir}/libkmfwidgets.la -%{_libdir}/libkmfwidgets.so +%{tde_tdeincludedir}/kmyfirewall +%{tde_libdir}/libkmfcore.la +%{tde_libdir}/libkmfcore.so +%{tde_libdir}/libkmfwidgets.la +%{tde_libdir}/libkmfwidgets.so %Changelog * Wed May 02 2012 Francois Andriot <francois.andriot@free.fr> - 1.1.1-2 diff --git a/redhat/applications/kmymoney/kmymoney-3.5.13-fix_qt3_plugins_location.patch b/redhat/applications/kmymoney/kmymoney-3.5.13-fix_qt3_plugins_location.patch new file mode 100644 index 000000000..8a6754fb5 --- /dev/null +++ b/redhat/applications/kmymoney/kmymoney-3.5.13-fix_qt3_plugins_location.patch @@ -0,0 +1,41 @@ +--- kmymoney/kmymoney2/widgets/Makefile.am.ORI 2012-08-05 18:38:59.001977368 +0200 ++++ kmymoney/kmymoney2/widgets/Makefile.am 2012-08-05 18:39:47.007986865 +0200 +@@ -68,19 +68,19 @@ + # Hence the quick hack to include the required objects from the + # libkmm_mymoney.so directly into libkmymoney.so + libkmymoney_la_CXXFLAGS = -U_CHECK_MEMORY -DKMM_DESIGNER +-libkmymoney_la_LDFLAGS = `ls ../mymoney/*.lo` $(KDE_LDFLAGS) $(QT_LDFLAGS) $(X_LDFLAGS) -rpath $(DESTDIR)$(qt_libraries)/../plugins/designer $(LIB_KDEUI) $(LIB_KDECORE) $(LIB_QT) ++libkmymoney_la_LDFLAGS = `ls ../mymoney/*.lo` $(KDE_LDFLAGS) $(QT_LDFLAGS) $(X_LDFLAGS) -rpath $(DESTDIR)${QTPLUGINS}/designer $(LIB_KDEUI) $(LIB_KDECORE) $(LIB_QT) + + if INSTALL_QTDESIGNER_SUPPORT + install-exec-local: libkmymoney.la +- $(mkinstalldirs) $(DESTDIR)$(qt_libraries)/../plugins/designer +- $(INSTALL_PROGRAM) .libs/libkmymoney.so $(DESTDIR)$(qt_libraries)/../plugins/designer ++ $(mkinstalldirs) $(DESTDIR)${QTPLUGINS}/designer ++ $(INSTALL_PROGRAM) .libs/libkmymoney.so $(DESTDIR)${QTPLUGINS}/designer + $(mkinstalldirs) $(DESTDIR)$(kde_datadir)/$(PICS_DIR) + for file in $(WIDGET_PNGS); do \ + $(INSTALL_DATA) $(abs_srcdir)/$$file $(DESTDIR)$(kde_datadir)/$(PICS_DIR); \ + done + + uninstall-local: +- -rm $(DESTDIR)$(qt_libraries)/../plugins/designer/libkmymoney.so ++ -rm $(DESTDIR)${QTPLUGINS}/designer/libkmymoney.so + for file in $(WIDGET_PNGS); do \ + rm -rf $(DESTDIR)$(kde_datadir)/$(PICS_DIR)/$$file; \ + done +--- kmymoney/admin/acinclude.m4.ORI 2012-08-05 19:47:47.819789267 +0200 ++++ kmymoney/admin/acinclude.m4.in 2012-08-05 19:48:35.842776216 +0200 +@@ -6724,7 +6724,11 @@ + QTDIR=`dirname $MOC` + QTDIR=${QTDIR%/bin} + fi +- LIBSQLITE3=${QTDIR}/plugins/sqldrivers/libsqlite3${qtlib}.so ++ if test x$QTPLUGINS = x; then ++ LIBSQLITE3=${QTDIR}/plugins/sqldrivers/libsqlite3${qtlib}.so ++ else ++ LIBSQLITE3=${QTPLUGINS}/sqldrivers/libsqlite3${qtlib}.so ++ fi + + # do the checks + if test $enable_sqlite3 = auto; then diff --git a/redhat/applications/kmymoney/kmymoney-3.5.13-missing_ldflags.patch b/redhat/applications/kmymoney/kmymoney-3.5.13-missing_ldflags.patch new file mode 100644 index 000000000..c80007000 --- /dev/null +++ b/redhat/applications/kmymoney/kmymoney-3.5.13-missing_ldflags.patch @@ -0,0 +1,18 @@ +--- kmymoney/qt-sqlite3-0.2/sqlite3/sqlite3.pro.ORI 2012-08-05 18:51:56.961702141 +0200 ++++ kmymoney/qt-sqlite3-0.2/sqlite3/sqlite3.pro 2012-08-05 19:05:43.064116419 +0200 +@@ -4,13 +4,13 @@ + # Target is una libreria: qsqlite3 + + INSTALLS += target +-target.path = $QTDIR/plugins/sqldrivers ++target.path = $(qt_plugins)/sqldrivers + HEADERS += qsql_sqlite3.h \ + qsqlcachedresult.h + SOURCES += smain.cpp \ + qsql_sqlite3.cpp \ + qsqlcachedresult.cpp +-LIBS += -lsqlite3 ++LIBS += -lsqlite3 -L$(QTLIB) + TARGET = qsqlite3 + DESTDIR = ../sqldrivers + CONFIG += release \ diff --git a/redhat/applications/kmymoney/trinity-kmymoney-3.5.13.spec b/redhat/applications/kmymoney/trinity-kmymoney-3.5.13.spec index f1a9dea58..9e01de404 100644 --- a/redhat/applications/kmymoney/trinity-kmymoney-3.5.13.spec +++ b/redhat/applications/kmymoney/trinity-kmymoney-3.5.13.spec @@ -1,27 +1,42 @@ # Default version for this component %define kdecomp kmymoney -%define version 1.0.5 -%define release 2 + +# Required for Mageia 2: removes the ldflag '--no-undefined' +%define _disable_ld_no_undefined 1 + +%if 0%{?mgaversion} || 0%{?mdkversion} +%define qt3pluginsdir %{_libdir}/qt3/plugins +%else +%define qt3pluginsdir %{_libdir}/qt-3.3/plugins +%endif # If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". -%if "%{?_prefix}" != "/usr" +%if "%{?tde_prefix}" != "/usr" %define _variant .opt -%define _docdir %{_datadir}/doc -%define _mandir %{_datadir}/man %endif # TDE 3.5.13 specific building variables -BuildRequires: autoconf automake libtool m4 -%define tde_docdir %{_docdir}/kde -%define tde_includedir %{_includedir}/kde -%define tde_libdir %{_libdir}/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_mandir %{tde_datadir}/man +%define tde_appdir %{tde_datadir}/applications + +%define tde_tdeappdir %{tde_appdir}/kde +%define tde_tdedocdir %{tde_docdir}/kde +%define tde_tdeincludedir %{tde_includedir}/kde +%define tde_tdelibdir %{tde_libdir}/trinity + +%define _docdir %{tde_docdir} Name: trinity-%{kdecomp} Summary: personal finance manager for TDE -Version: %{?version} -Release: %{?release}%{?dist}%{?_variant} +Version: 1.0.5 +Release: 2%{?dist}%{?_variant} License: GPLv2+ Group: Applications/Utilities @@ -30,7 +45,7 @@ Vendor: Trinity Project Packager: Francois Andriot <francois.andriot@free.fr> URL: http://www.trinitydesktop.org/ -Prefix: %{_prefix} +Prefix: %{tde_prefix} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source0: %{kdecomp}-3.5.13.tar.gz @@ -46,17 +61,28 @@ Patch2: kmymoney-3.5.13-update_to_1.0.5.patch # [kmymoney] Fix compilation with GCC 4.7 [Bug #958] Patch3: kmymoney-3.5.13-fix_gcc47_compilation.patch +# [kmymoney] Missing LDFLAGS causing FTBFS +Patch4: kmymoney-3.5.13-missing_ldflags.patch + +# [kmymoney] Fix QT3 plugins directory location +Patch5: kmymoney-3.5.13-fix_qt3_plugins_location.patch + BuildRequires: tqtinterface-devel BuildRequires: trinity-arts-devel -BuildRequires: trinity-kdelibs-devel -BuildRequires: trinity-kdebase-devel +BuildRequires: trinity-tdelibs-devel +BuildRequires: trinity-tdebase-devel BuildRequires: desktop-file-utils BuildRequires: recode BuildRequires: html2ps -BuildRequires: opensp-devel BuildRequires: libofx-devel +%if 0%{?mgaversion} +BuildRequires: %{_lib}OpenSP5-devel +%else +BuildRequires: opensp-devel +%endif + Requires: %{name}-common == %{version} %description @@ -92,13 +118,15 @@ This package contains development files needed for KMyMoney plugins. %patch1 -p1 %patch2 -p1 %patch3 -p1 +%patch5 -p1 -b .qtpluginsdir + %__install -m644 %{SOURCE1} kmymoney2/widgets/ # Ugly hack to modify TQT include directory inside autoconf files. # If TQT detection fails, it fallbacks to TQT4 instead of TQT3 ! %__sed -i admin/acinclude.m4.in \ - -e "s|/usr/include/tqt|%{_includedir}/tqt|g" \ - -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_docdir}/HTML'|g" + -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \ + -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g" %__cp "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in" %__cp "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh" @@ -106,29 +134,52 @@ This package contains development files needed for KMyMoney plugins. %build -export PATH="%{_bindir}:${PATH}" -export LDFLAGS="-L%{_libdir} -I%{_includedir}" +unset QTDIR; . /etc/profile.d/qt.sh +export PATH="%{tde_bindir}:${PATH}" +export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}" +export PKG_CONFIG_PATH="%{tde_libdir}/pkgconfig:${PKG_CONFIG_PATH}" + +# Required to find the QT3 plugins directory +%if 0%{?mgaversion} || 0%{?mdkversion} +export QTPLUGINS=%{_libdir}/qt3/plugins +%endif %configure \ - --disable-rpath \ - --with-extra-includes=%{_includedir}/tqt \ - --enable-closure \ - --enable-pdf-docs \ - --enable-ofxplugin \ - --enable-ofxbanking \ - --enable-qtdesigner \ - --enable-sqlite3 + --prefix=%{tde_prefix} \ + --exec-prefix=%{tde_prefix} \ + --bindir=%{tde_bindir} \ + --datadir=%{tde_datadir} \ + --libdir=%{tde_libdir} \ + --mandir=%{tde_mandir} \ + --includedir=%{tde_tdeincludedir} \ + --disable-rpath \ + --with-extra-includes=%{tde_includedir}/tqt \ + --enable-closure \ + --enable-pdf-docs \ + --enable-ofxplugin \ + --enable-ofxbanking \ + --enable-qtdesigner \ + --enable-sqlite3 + +# Fix FTBFS inside sqlite3 archive +patch -p1 < %{PATCH4} %__make %{?_smp_mflags} - %install -export PATH="%{_bindir}:${PATH}" +export PATH="%{tde_bindir}:${PATH}" %__rm -rf %{buildroot} + +# Required to find the QT3 plugins directory +%if 0%{?mgaversion} || 0%{?mdkversion} +export QTPLUGINS=%{_libdir}/qt3/plugins +%endif + %__make install DESTDIR=%{buildroot} + ## File lists # HTML (1.0) HTML_DIR=$(kde-config --expandvars --install html) @@ -154,65 +205,64 @@ fi %post +update-desktop-database %{tde_appdir} > /dev/null /sbin/ldconfig for f in hicolor locolor Tango oxygen; do - touch --no-create %{_datadir}/icons/${f} || : - gtk-update-icon-cache --quiet %{_datadir}/icons/${f} || : + touch --no-create %{tde_datadir}/icons/${f} || : + gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} || : done %postun +update-desktop-database %{tde_appdir} > /dev/null /sbin/ldconfig for f in hicolor locolor Tango oxygen; do - touch --no-create %{_datadir}/icons/${f} || : - gtk-update-icon-cache --quiet %{_datadir}/icons/${f} || : + touch --no-create %{tde_datadir}/icons/${f} || : + gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} || : done %files %defattr(-,root,root,-) -%{_bindir}/kmymoney -%{_bindir}/kmymoney2 -%{_datadir}/applications/kde/kmymoney2.desktop -%{_datadir}/mimelnk/application/x-kmymoney2.desktop -%{_datadir}/servicetypes/kmymoneyimporterplugin.desktop -%{_datadir}/servicetypes/kmymoneyplugin.desktop -%{_libdir}/*.so.* -%{tde_libdir}/kmm_ofximport.la -%{tde_libdir}/kmm_ofximport.so +%{tde_bindir}/kmymoney +%{tde_bindir}/kmymoney2 +%{tde_tdeappdir}/kmymoney2.desktop +%{tde_datadir}/mimelnk/application/x-kmymoney2.desktop +%{tde_datadir}/servicetypes/kmymoneyimporterplugin.desktop +%{tde_datadir}/servicetypes/kmymoneyplugin.desktop +%{tde_libdir}/*.so.* +%{tde_tdelibdir}/kmm_ofximport.la +%{tde_tdelibdir}/kmm_ofximport.so %files common -f kmymoney2.lang %defattr(-,root,root,-) -%{_datadir}/apps/kmymoney2/html/ -%{_datadir}/apps/kmymoney2/icons/*/*/*/*.png -%{_datadir}/apps/kmymoney2/kmymoney2ui.rc -%{_datadir}/apps/kmymoney2/misc/financequote.pl -%{_datadir}/apps/kmymoney2/pics/*.png -%{_datadir}/apps/kmymoney2/templates/*/*.kmt -%{_datadir}/apps/kmymoney2/tips -%{_datadir}/config.kcfg/kmymoney2.kcfg -%{_datadir}/icons/hicolor/*/*/*.png -%{_datadir}/icons/Tango/*/*/*.png -%{_datadir}/icons/Tango/scalable/*.svgz -%{_datadir}/icons/locolor/*/*/*.png -%{_datadir}/icons/oxygen/*/*/*.png -%{_datadir}/icons/oxygen/scalable/*.svgz -%{tde_docdir}/HTML/en/kmymoney2/*.docbook -%{tde_docdir}/HTML/en/kmymoney2/*.png -%{tde_docdir}/HTML/en/kmymoney2/common -%{tde_docdir}/HTML/en/kmymoney2/index.cache.bz2 -%{_mandir}/man1/kmymoney2.* -%{_datadir}/apps/kmm_ofximport/kmm_ofximport.rc -%{_datadir}/services/kmm_ofximport.desktop +%{tde_datadir}/apps/kmymoney2/html/ +%{tde_datadir}/apps/kmymoney2/icons/*/*/*/*.png +%{tde_datadir}/apps/kmymoney2/kmymoney2ui.rc +%{tde_datadir}/apps/kmymoney2/misc/financequote.pl +%{tde_datadir}/apps/kmymoney2/pics/*.png +%{tde_datadir}/apps/kmymoney2/templates/*/*.kmt +%{tde_datadir}/apps/kmymoney2/tips +%{tde_datadir}/config.kcfg/kmymoney2.kcfg +%{tde_datadir}/icons/hicolor/*/*/*.png +%{tde_datadir}/icons/Tango/*/*/*.png +%{tde_datadir}/icons/Tango/scalable/*.svgz +%{tde_datadir}/icons/locolor/*/*/*.png +%{tde_datadir}/icons/oxygen/*/*/*.png +%{tde_datadir}/icons/oxygen/scalable/*.svgz +%{tde_tdedocdir}/HTML/en/kmymoney2/ +%{tde_mandir}/man1/kmymoney2.* +%{tde_datadir}/apps/kmm_ofximport/kmm_ofximport.rc +%{tde_datadir}/services/kmm_ofximport.desktop %files devel %defattr(-,root,root,-) -%{_includedir}/kmymoney/*.h -%{_libdir}/libkmm_kdchart.la -%{_libdir}/libkmm_mymoney.la -%{_libdir}/libkmm_plugin.la -%{_libdir}/*.so -%{_usr}/%{_lib}/qt-3.3/plugins/sqldrivers/libsqlite3*.so -%{_usr}/%{_lib}/qt-3.3/plugins/designer/libkmymoney.so +%{tde_tdeincludedir}/kmymoney/*.h +%{tde_libdir}/libkmm_kdchart.la +%{tde_libdir}/libkmm_mymoney.la +%{tde_libdir}/libkmm_plugin.la +%{tde_libdir}/*.so +%{qt3pluginsdir}/sqldrivers/libsqlite3*.so +%{qt3pluginsdir}/designer/libkmymoney.so %Changelog * Wed May 02 2012 Francois Andriot <francois.andriot@free.fr> - 1.0.5-2 diff --git a/redhat/applications/knemo/trinity-knemo.spec b/redhat/applications/knemo/trinity-knemo.spec index 441a78732..3db393ccd 100644 --- a/redhat/applications/knemo/trinity-knemo.spec +++ b/redhat/applications/knemo/trinity-knemo.spec @@ -1,25 +1,32 @@ # Default version for this component %define kdecomp knemo -%define version 0.4.8 -%define release 2 # If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". -%if "%{?_prefix}" != "/usr" +%if "%{?tde_prefix}" != "/usr" %define _variant .opt -%define _docdir %{_datadir}/doc %endif # TDE 3.5.13 specific building variables -BuildRequires: autoconf automake libtool m4 -%define tde_docdir %{_docdir}/kde -%define tde_includedir %{_includedir}/kde -%define tde_libdir %{_libdir}/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_mandir %{tde_datadir}/man +%define tde_appdir %{tde_datadir}/applications + +%define tde_tdeappdir %{tde_appdir}/kde +%define tde_tdedocdir %{tde_docdir}/kde +%define tde_tdeincludedir %{tde_includedir}/kde +%define tde_tdelibdir %{tde_libdir}/trinity + +%define _docdir %{tde_docdir} Name: trinity-%{kdecomp} Summary: network interfaces monitor for the Trinity systray -Version: %{?version} -Release: %{?release}%{?dist}%{?_variant} +Version: 0.4.8 +Release: 2%{?dist}%{?_variant} License: GPLv2+ Group: Applications/Utilities @@ -28,14 +35,14 @@ Vendor: Trinity Project Packager: Francois Andriot <francois.andriot@free.fr> URL: http://beta.smileaf.org/projects -Prefix: %{_prefix} +Prefix: %{tde_prefix} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source0: %{kdecomp}-3.5.13.tar.gz BuildRequires: tqtinterface-devel -BuildRequires: trinity-kdelibs-devel -BuildRequires: trinity-kdebase-devel +BuildRequires: trinity-tdelibs-devel +BuildRequires: trinity-tdebase-devel BuildRequires: desktop-file-utils BuildRequires: gettext @@ -59,8 +66,8 @@ Homepage: http://extragear.kde.org/apps/knemo/ # Ugly hack to modify TQT include directory inside autoconf files. # If TQT detection fails, it fallbacks to TQT4 instead of TQT3 ! %__sed -i admin/acinclude.m4.in \ - -e "s|/usr/include/tqt|%{_includedir}/tqt|g" \ - -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_docdir}/HTML'|g" + -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \ + -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g" %__cp "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in" %__cp "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh" @@ -68,18 +75,26 @@ Homepage: http://extragear.kde.org/apps/knemo/ %build -export PATH="%{_bindir}:${PATH}" -export LDFLAGS="-L%{_libdir} -I%{_includedir}" +unset QTDIR; . /etc/profile.d/qt.sh +export PATH="%{tde_bindir}:${PATH}" +export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}" %configure \ - --disable-rpath \ - --with-extra-includes=%{_includedir}/tqt + --prefix=%{tde_prefix} \ + --exec-prefix=%{tde_prefix} \ + --bindir=%{tde_bindir} \ + --datadir=%{tde_datadir} \ + --libdir=%{tde_libdir} \ + --mandir=%{tde_mandir} \ + --includedir=%{tde_tdeincludedir} \ + --disable-rpath \ + --with-extra-includes=%{tde_includedir}/tqt %__make %{?_smp_mflags} %install -export PATH="%{_bindir}:${PATH}" +export PATH="%{tde_bindir}:${PATH}" %__rm -rf %{buildroot} %__make install DESTDIR=%{buildroot} @@ -88,26 +103,28 @@ export PATH="%{_bindir}:${PATH}" %post -touch --no-create %{_datadir}/icons/crystalsvg || : -gtk-update-icon-cache --quiet %{_datadir}/icons/crystalsvg || : +update-desktop-database %{tde_appdir} > /dev/null +touch --no-create %{tde_datadir}/icons/crystalsvg || : +gtk-update-icon-cache --quiet %{tde_datadir}/icons/crystalsvg || : %postun -touch --no-create %{_datadir}/icons/crystalsvg || : -gtk-update-icon-cache --quiet %{_datadir}/icons/crystalsvg || : +update-desktop-database %{tde_appdir} > /dev/null +touch --no-create %{tde_datadir}/icons/crystalsvg || : +gtk-update-icon-cache --quiet %{tde_datadir}/icons/crystalsvg || : %files %defattr(-,root,root,-) -%{tde_libdir}/kcm_knemo.la -%{tde_libdir}/kcm_knemo.so -%{tde_libdir}/kded_knemod.la -%{tde_libdir}/kded_knemod.so -%{_datadir}/applications/kde/kcm_knemo.desktop -%{_datadir}/apps/knemo/eventsrc -%{_datadir}/icons/crystalsvg/*/*/*.png -%{_datadir}/locale/*/LC_MESSAGES/knemod.mo -%{_datadir}/locale/*/LC_MESSAGES/kcm_knemo.mo -%{_datadir}/services/kded/knemod.desktop +%{tde_tdelibdir}/kcm_knemo.la +%{tde_tdelibdir}/kcm_knemo.so +%{tde_tdelibdir}/kded_knemod.la +%{tde_tdelibdir}/kded_knemod.so +%{tde_tdeappdir}/kcm_knemo.desktop +%{tde_datadir}/apps/knemo/eventsrc +%{tde_datadir}/icons/crystalsvg/*/*/*.png +%{tde_datadir}/locale/*/LC_MESSAGES/knemod.mo +%{tde_datadir}/locale/*/LC_MESSAGES/kcm_knemo.mo +%{tde_datadir}/services/kded/knemod.desktop %Changelog diff --git a/redhat/applications/knetload/trinity-knetload.spec b/redhat/applications/knetload/trinity-knetload.spec index 55b1383c2..89b234ac9 100644 --- a/redhat/applications/knetload/trinity-knetload.spec +++ b/redhat/applications/knetload/trinity-knetload.spec @@ -1,25 +1,32 @@ # Default version for this component %define kdecomp knetload -%define version 2.3 -%define release 2 # If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". -%if "%{?_prefix}" != "/usr" +%if "%{?tde_prefix}" != "/usr" %define _variant .opt -%define _docdir %{_prefix}/share/doc %endif # TDE 3.5.13 specific building variables -BuildRequires: autoconf automake libtool m4 -%define tde_docdir %{_docdir}/kde -%define tde_includedir %{_includedir}/kde -%define tde_libdir %{_libdir}/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_mandir %{tde_datadir}/man +%define tde_appdir %{tde_datadir}/applications + +%define tde_tdeappdir %{tde_appdir}/kde +%define tde_tdedocdir %{tde_docdir}/kde +%define tde_tdeincludedir %{tde_includedir}/kde +%define tde_tdelibdir %{tde_libdir}/trinity + +%define _docdir %{tde_docdir} Name: trinity-%{kdecomp} Summary: a network meter for Kicker [Trinity] -Version: %{?version} -Release: %{?release}%{?dist}%{?_variant} +Version: 2.3 +Release: 2%{?dist}%{?_variant} License: GPLv2+ Group: Applications/Utilities @@ -28,14 +35,14 @@ Vendor: Trinity Project Packager: Francois Andriot <francois.andriot@free.fr> URL: http://www.trinitydesktop.org -Prefix: %{_prefix} +Prefix: %{tde_prefix} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source0: %{kdecomp}-3.5.13.tar.gz BuildRequires: tqtinterface-devel -BuildRequires: trinity-kdelibs-devel -BuildRequires: trinity-kdebase-devel +BuildRequires: trinity-tdelibs-devel +BuildRequires: trinity-tdebase-devel BuildRequires: desktop-file-utils BuildRequires: gettext @@ -56,8 +63,8 @@ KNetLoad can monitor just about any network device. # Ugly hack to modify TQT include directory inside autoconf files. # If TQT detection fails, it fallbacks to TQT4 instead of TQT3 ! %__sed -i admin/acinclude.m4.in \ - -e "s|/usr/include/tqt|%{_includedir}/tqt|g" \ - -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_docdir}/HTML'|g" + -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \ + -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g" %__cp "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in" %__cp "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh" @@ -65,19 +72,27 @@ KNetLoad can monitor just about any network device. %build -export PATH="%{_bindir}:${PATH}" -export LDFLAGS="-L%{_libdir} -I%{_includedir}" +unset QTDIR; . /etc/profile.d/qt.sh +export PATH="%{tde_bindir}:${PATH}" +export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}" %configure \ - --disable-rpath \ - --with-extra-includes=%{_includedir}/tqt + --prefix=%{tde_prefix} \ + --exec-prefix=%{tde_prefix} \ + --bindir=%{tde_bindir} \ + --datadir=%{tde_datadir} \ + --libdir=%{tde_libdir} \ + --mandir=%{tde_mandir} \ + --includedir=%{tde_tdeincludedir} \ + --disable-rpath \ + --with-extra-includes=%{tde_includedir}/tqt # SMP safe ! %__make %{?_smp_mflags} %install -export PATH="%{_bindir}:${PATH}" +export PATH="%{tde_bindir}:${PATH}" %__rm -rf %{buildroot} %__make install DESTDIR=%{buildroot} @@ -90,25 +105,27 @@ export PATH="%{_bindir}:${PATH}" %post +update-desktop-database %{tde_appdir} > /dev/null for f in crystalsvg locolor ; do - touch --no-create %{_datadir}/icons/${f} || : - gtk-update-icon-cache --quiet %{_datadir}/icons/${f} || : + touch --no-create %{tde_datadir}/icons/${f} || : + gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} || : done %postun +update-desktop-database %{tde_appdir} > /dev/null for f in crystalsvg locolor ; do - touch --no-create %{_datadir}/icons/${f} || : - gtk-update-icon-cache --quiet %{_datadir}/icons/${f} || : + touch --no-create %{tde_datadir}/icons/${f} || : + gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} || : done %files -f %{kdecomp}.lang %defattr(-,root,root,-) -%{_bindir}/knetload -%{_datadir}/applications/kde/knetload.desktop -%{_datadir}/apps/knetload -%{_datadir}/icons/crystalsvg/*/apps/knetload.png -%{_datadir}/icons/locolor/*/apps/knetload.png +%{tde_bindir}/knetload +%{tde_tdeappdir}/knetload.desktop +%{tde_datadir}/apps/knetload +%{tde_datadir}/icons/crystalsvg/*/apps/knetload.png +%{tde_datadir}/icons/locolor/*/apps/knetload.png %Changelog diff --git a/redhat/applications/knetstats/trinity-knetstats.spec b/redhat/applications/knetstats/trinity-knetstats.spec index 0179cdd61..9e37f55c6 100644 --- a/redhat/applications/knetstats/trinity-knetstats.spec +++ b/redhat/applications/knetstats/trinity-knetstats.spec @@ -1,25 +1,32 @@ # Default version for this component %define kdecomp knetstats -%define version 1.6.1 -%define release 1 # If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". -%if "%{?_prefix}" != "/usr" +%if "%{?tde_prefix}" != "/usr" %define _variant .opt -%define _docdir %{_prefix}/share/doc %endif # TDE 3.5.13 specific building variables -BuildRequires: autoconf automake libtool m4 -%define tde_docdir %{_docdir}/kde -%define tde_includedir %{_includedir}/kde -%define tde_libdir %{_libdir}/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_mandir %{tde_datadir}/man +%define tde_appdir %{tde_datadir}/applications + +%define tde_tdeappdir %{tde_appdir}/kde +%define tde_tdedocdir %{tde_docdir}/kde +%define tde_tdeincludedir %{tde_includedir}/kde +%define tde_tdelibdir %{tde_libdir}/trinity + +%define _docdir %{tde_docdir} Name: trinity-%{kdecomp} Summary: network interfaces monitor for the Trinity systray -Version: %{?version} -Release: %{?release}%{?dist}%{?_variant} +Version: 1.6.1 +Release: 1%{?dist}%{?_variant} License: GPLv2+ Group: Applications/Utilities @@ -28,14 +35,14 @@ Vendor: Trinity Project Packager: Francois Andriot <francois.andriot@free.fr> URL: http://www.trinitydesktop.org -Prefix: %{_prefix} +Prefix: %{tde_prefix} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source0: %{kdecomp}-3.5.13.tar.gz BuildRequires: tqtinterface-devel -BuildRequires: trinity-kdelibs-devel -BuildRequires: trinity-kdebase-devel +BuildRequires: trinity-tdelibs-devel +BuildRequires: trinity-tdebase-devel BuildRequires: desktop-file-utils BuildRequires: gettext @@ -51,8 +58,8 @@ network interface on a system tray icon # Ugly hack to modify TQT include directory inside autoconf files. # If TQT detection fails, it fallbacks to TQT4 instead of TQT3 ! %__sed -i admin/acinclude.m4.in \ - -e "s|/usr/include/tqt|%{_includedir}/tqt|g" \ - -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_docdir}/HTML'|g" + -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \ + -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g" %__cp "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in" %__cp "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh" @@ -60,19 +67,27 @@ network interface on a system tray icon %build -export PATH="%{_bindir}:${PATH}" -export LDFLAGS="-L%{_libdir} -I%{_includedir}" +unset QTDIR; . /etc/profile.d/qt.sh +export PATH="%{tde_bindir}:${PATH}" +export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}" %configure \ - --disable-rpath \ - --with-extra-includes=%{_includedir}/tqt + --prefix=%{tde_prefix} \ + --exec-prefix=%{tde_prefix} \ + --bindir=%{tde_bindir} \ + --datadir=%{tde_datadir} \ + --libdir=%{tde_libdir} \ + --mandir=%{tde_mandir} \ + --includedir=%{tde_tdeincludedir} \ + --disable-rpath \ + --with-extra-includes=%{tde_includedir}/tqt # SMP safe ! %__make %{?_smp_mflags} %install -export PATH="%{_bindir}:${PATH}" +export PATH="%{tde_bindir}:${PATH}" %__rm -rf %{buildroot} %__make install DESTDIR=%{buildroot} @@ -85,23 +100,23 @@ export PATH="%{_bindir}:${PATH}" %post -touch --no-create %{_datadir}/icons/hicolor || : -gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +update-desktop-database %{tde_appdir} > /dev/null +touch --no-create %{tde_datadir}/icons/hicolor || : +gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || : %postun -touch --no-create %{_datadir}/icons/hicolor || : -gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +update-desktop-database %{tde_appdir} > /dev/null +touch --no-create %{tde_datadir}/icons/hicolor || : +gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || : %files -f %{kdecomp}.lang %defattr(-,root,root,-) -%{_bindir}/knetstats -%{_datadir}/applications/kde/knetstats.desktop -%{_datadir}/apps/knetstats -%{tde_docdir}/HTML/en/knetstats/common -%{tde_docdir}/HTML/en/knetstats/index.cache.bz2 -%{tde_docdir}/HTML/en/knetstats/index.docbook -%{_datadir}/icons/hicolor/*/apps/knetstats.png +%{tde_bindir}/knetstats +%{tde_tdeappdir}/knetstats.desktop +%{tde_datadir}/apps/knetstats +%{tde_tdedocdir}/HTML/en/knetstats/ +%{tde_datadir}/icons/hicolor/*/apps/knetstats.png %Changelog diff --git a/redhat/applications/knetworkmanager/trinity-knetworkmanager.spec b/redhat/applications/knetworkmanager/trinity-knetworkmanager.spec index 3dbcc7458..8adbb5f6d 100644 --- a/redhat/applications/knetworkmanager/trinity-knetworkmanager.spec +++ b/redhat/applications/knetworkmanager/trinity-knetworkmanager.spec @@ -1,26 +1,36 @@ # Default version for this component %define kdecomp knetworkmanager -%if 0%{?fedora} >= 15 +%if 0%{?fedora} >= 15 || 0%{?mgaversion} || 0%{?mdkversion} %define version 0.9 %else %define version 0.8 %endif -%define release 3 # If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". -%if "%{?_prefix}" != "/usr" +%if "%{?tde_prefix}" != "/usr" %define _variant .opt -%define _docdir %{_prefix}/share/doc %endif # TDE 3.5.13 specific building variables -BuildRequires: cmake >= 2.8 -%define tde_docdir %{_docdir}/kde -%define tde_libdir %{_libdir}/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_mandir %{tde_datadir}/man +%define tde_appdir %{tde_datadir}/applications + +%define tde_tdeappdir %{tde_appdir}/kde +%define tde_tdedocdir %{tde_docdir}/kde +%define tde_tdeincludedir %{tde_includedir}/kde +%define tde_tdelibdir %{tde_libdir}/trinity + +%define _docdir %{tde_tdedocdir} + Name: trinity-%{kdecomp} Version: %{?version} -Release: %{?release}%{?dist}%{?_variant} +Release: 3%{?dist}%{?_variant} Summary: Trinity applet for Network Manager @@ -42,10 +52,15 @@ Patch10: knetworkmanager-3.5.13-subdir_version.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -Requires: NetworkManager-gnome -Requires: kde-filesystem +#Requires: kde-filesystem BuildRequires: desktop-file-utils +%if 0%{?rhel} || 0%{?fedora} +Requires: NetworkManager-gnome +%else +Requires: networkmanager +%endif + BuildRequires: dbus-1-tqt-devel BuildRequires: dbus-tqt-devel BuildRequires: NetworkManager-glib-devel @@ -83,18 +98,29 @@ cd knetworkmanager-0.*/src %build unset QTDIR || : ; . /etc/profile.d/qt.sh -export PATH="%{_bindir}:${PATH}" -export PKG_CONFIG_PATH="%{_libdir}/pkgconfig" -export CMAKE_INCLUDE_PATH="%{_includedir}:%{_includedir}/tqt" -export LD_LIBRARY_PATH="%{_libdir}" +export PATH="%{tde_bindir}:${PATH}" +export PKG_CONFIG_PATH="%{tde_libdir}/pkgconfig" +export CMAKE_INCLUDE_PATH="%{tde_includedir}:%{tde_includedir}/tqt" +export LD_LIBRARY_PATH="%{tde_libdir}" # Missing TDE macros %__mkdir_p cmake -%__ln_s %{_datadir}/cmake cmake/modules +%__ln_s %{tde_datadir}/cmake cmake/modules -%__mkdir build +%if 0%{?rhel} || 0%{?fedora} +%__mkdir_p build cd build -%cmake .. +%endif + +%cmake \ + -DCMAKE_INSTALL_PREFIX=%{tde_prefix} \ + -DBIN_INSTALL_DIR=%{tde_bindir} \ + -DINCLUDE_INSTALL_DIR=%{tde_tdeincludedir} \ + -DLIB_INSTALL_DIR=%{tde_libdir} \ + -DSHARE_INSTALL_PREFIX=%{tde_datadir} \ + -DCMAKE_SKIP_RPATH="OFF" \ + .. + %__make %{?_smp_mflags} %install @@ -107,14 +133,16 @@ cd build %post +update-desktop-database %{tde_appdir} > /dev/null /sbin/ldconfig -touch --no-create %{_datadir}/icons/hicolor || : -gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +touch --no-create %{tde_datadir}/icons/hicolor || : +gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || : %postun +update-desktop-database %{tde_appdir} > /dev/null /sbin/ldconfig -touch --no-create %{_datadir}/icons/hicolor || : -gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +touch --no-create %{tde_datadir}/icons/hicolor || : +gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || : %post devel /sbin/ldconfig @@ -124,22 +152,22 @@ gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : %files %defattr(-,root,root,-) -%{_bindir}/knetworkmanager -%{_libdir}/*.la -%{_libdir}/*.so +%{tde_bindir}/knetworkmanager +%{tde_libdir}/*.la +%{tde_libdir}/*.so %{_sysconfdir}/dbus-1/system.d/knetworkmanager.conf -%{_datadir}/applications/kde/knetworkmanager.desktop -%{_datadir}/apps/knetworkmanager -%{_datadir}/icons/hicolor/*/apps/knetworkmanager* -%{_datadir}/servicetypes/knetworkmanager_plugin.desktop -%{_datadir}/servicetypes/knetworkmanager_vpnplugin.desktop +%{tde_tdeappdir}/knetworkmanager.desktop +%{tde_datadir}/apps/knetworkmanager +%{tde_datadir}/icons/hicolor/*/apps/knetworkmanager* +%{tde_datadir}/servicetypes/knetworkmanager_plugin.desktop +%{tde_datadir}/servicetypes/knetworkmanager_vpnplugin.desktop %files devel %defattr(-,root,root,-) -%{_includedir}/*.h -%{tde_libdir}/*.la -%{tde_libdir}/*.so +%{tde_tdeincludedir}/*.h +%{tde_tdelibdir}/*.la +%{tde_tdelibdir}/*.so %changelog * Wed May 02 2012 Francois Andriot <francois.andriot@free.fr> - 0.8-3 / 0.9-3 diff --git a/redhat/applications/knights/trinity-knights.spec b/redhat/applications/knights/trinity-knights.spec index 6338661d7..e0271e12d 100644 --- a/redhat/applications/knights/trinity-knights.spec +++ b/redhat/applications/knights/trinity-knights.spec @@ -1,25 +1,32 @@ # Default version for this component %define kdecomp knights -%define version 0.6 -%define release 3 # If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". -%if "%{?_prefix}" != "/usr" +%if "%{?tde_prefix}" != "/usr" %define _variant .opt -%define _docdir %{_prefix}/share/doc %endif # TDE 3.5.13 specific building variables -BuildRequires: autoconf automake libtool m4 -%define tde_docdir %{_docdir}/kde -%define tde_includedir %{_includedir}/kde -%define tde_libdir %{_libdir}/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_mandir %{tde_datadir}/man +%define tde_appdir %{tde_datadir}/applications + +%define tde_tdeappdir %{tde_appdir}/kde +%define tde_tdedocdir %{tde_docdir}/kde +%define tde_tdeincludedir %{tde_includedir}/kde +%define tde_tdelibdir %{tde_libdir}/trinity + +%define _docdir %{tde_docdir} Name: trinity-%{kdecomp} Summary: A chess interface for the K Desktop Environment [Trinity] -Version: %{?version} -Release: %{?release}%{?dist}%{?_variant} +Version: 0.6 +Release: 3%{?dist}%{?_variant} License: GPLv2+ Group: Amusements/Games @@ -28,14 +35,14 @@ Vendor: Trinity Project Packager: Francois Andriot <francois.andriot@free.fr> URL: http://www.trinitydesktop.org/ -Prefix: %{_prefix} +Prefix: %{tde_prefix} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source0: %{kdecomp}-3.5.13.tar.gz BuildRequires: tqtinterface-devel -BuildRequires: trinity-kdelibs-devel -BuildRequires: trinity-kdebase-devel +BuildRequires: trinity-tdelibs-devel +BuildRequires: trinity-tdebase-devel BuildRequires: desktop-file-utils BuildRequires: gettext @@ -62,8 +69,8 @@ Here's a quick list of Knights' key features: # Ugly hack to modify TQT include directory inside autoconf files. # If TQT detection fails, it fallbacks to TQT4 instead of TQT3 ! %__sed -i admin/acinclude.m4.in \ - -e "s|/usr/include/tqt|%{_includedir}/tqt|g" \ - -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_docdir}/HTML'|g" + -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \ + -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g" %__cp "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in" %__cp "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh" @@ -71,18 +78,26 @@ Here's a quick list of Knights' key features: %build -export PATH="%{_bindir}:${PATH}" -export LDFLAGS="-L%{_libdir} -I%{_includedir}" +unset QTDIR; . /etc/profile.d/qt.sh +export PATH="%{tde_bindir}:${PATH}" +export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}" %configure \ - --disable-rpath \ - --with-extra-includes=%{_includedir}/tqt + --prefix=%{tde_prefix} \ + --exec-prefix=%{tde_prefix} \ + --bindir=%{tde_bindir} \ + --datadir=%{tde_datadir} \ + --libdir=%{tde_libdir} \ + --mandir=%{tde_mandir} \ + --includedir=%{tde_tdeincludedir} \ + --disable-rpath \ + --with-extra-includes=%{tde_includedir}/tqt:%{tde_includedir} %__make %{?_smp_mflags} %install -export PATH="%{_bindir}:${PATH}" +export PATH="%{tde_bindir}:${PATH}" %__rm -rf %{buildroot} %__make install DESTDIR=%{buildroot} @@ -93,22 +108,22 @@ export PATH="%{_bindir}:${PATH}" %post -touch --no-create %{_datadir}/icons/hicolor || : -gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +touch --no-create %{tde_datadir}/icons/hicolor || : +gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || : %postun -touch --no-create %{_datadir}/icons/hicolor || : -gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +touch --no-create %{tde_datadir}/icons/hicolor || : +gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || : %files -f %{kdecomp}.lang %defattr(-,root,root,-) -%{_bindir}/knights -%{_datadir}/applnk/Games/Board/knights.desktop -%{_datadir}/apps/knights -%{tde_docdir}/HTML/*/knights -%{_datadir}/icons/hicolor/*/*/*.png -%{_datadir}/mimelnk/application/pgn.desktop +%{tde_bindir}/knights +%{tde_datadir}/applnk/Games/Board/knights.desktop +%{tde_datadir}/apps/knights +%{tde_tdedocdir}/HTML/*/knights +%{tde_datadir}/icons/hicolor/*/*/*.png +%{tde_datadir}/mimelnk/application/pgn.desktop %Changelog diff --git a/redhat/applications/knowit/trinity-knowit.spec b/redhat/applications/knowit/trinity-knowit.spec index 4b40fe29f..76467be17 100644 --- a/redhat/applications/knowit/trinity-knowit.spec +++ b/redhat/applications/knowit/trinity-knowit.spec @@ -1,25 +1,32 @@ # Default version for this component %define kdecomp knowit -%define version 0.10 -%define release 1 # If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". -%if "%{?_prefix}" != "/usr" +%if "%{?tde_prefix}" != "/usr" %define _variant .opt -%define _docdir %{_prefix}/share/doc %endif # TDE 3.5.13 specific building variables -BuildRequires: autoconf automake libtool m4 -%define tde_docdir %{_docdir}/kde -%define tde_includedir %{_includedir}/kde -%define tde_libdir %{_libdir}/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_mandir %{tde_datadir}/man +%define tde_appdir %{tde_datadir}/applications + +%define tde_tdeappdir %{tde_appdir}/kde +%define tde_tdedocdir %{tde_docdir}/kde +%define tde_tdeincludedir %{tde_includedir}/kde +%define tde_tdelibdir %{tde_libdir}/trinity + +%define _docdir %{tde_docdir} Name: trinity-%{kdecomp} Summary: Tool for managing notes [Trinity] -Version: %{?version} -Release: %{?release}%{?dist}%{?_variant} +Version: 0.10 +Release: 1%{?dist}%{?_variant} License: GPLv2+ Group: Applications/Utilities @@ -28,14 +35,14 @@ Vendor: Trinity Project Packager: Francois Andriot <francois.andriot@free.fr> URL: http://www.trinitydesktop.org -Prefix: %{_prefix} +Prefix: %{tde_prefix} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source0: %{kdecomp}-3.5.13.tar.gz BuildRequires: tqtinterface-devel -BuildRequires: trinity-kdelibs-devel -BuildRequires: trinity-kdebase-devel +BuildRequires: trinity-tdelibs-devel +BuildRequires: trinity-tdebase-devel BuildRequires: desktop-file-utils BuildRequires: gettext @@ -52,8 +59,8 @@ but KDE-based, and requires Trinity. # Ugly hack to modify TQT include directory inside autoconf files. # If TQT detection fails, it fallbacks to TQT4 instead of TQT3 ! %__sed -i admin/acinclude.m4.in \ - -e "s|/usr/include/tqt|%{_includedir}/tqt|g" \ - -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_docdir}/HTML'|g" + -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \ + -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g" %__cp "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in" %__cp "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh" @@ -61,25 +68,33 @@ but KDE-based, and requires Trinity. %build -export PATH="%{_bindir}:${PATH}" -export LDFLAGS="-L%{_libdir} -I%{_includedir}" +unset QTDIR; . /etc/profile.d/qt.sh +export PATH="%{tde_bindir}:${PATH}" +export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}" %configure \ - --disable-rpath \ - --with-extra-includes=%{_includedir}/tqt + --prefix=%{tde_prefix} \ + --exec-prefix=%{tde_prefix} \ + --bindir=%{tde_bindir} \ + --datadir=%{tde_datadir} \ + --libdir=%{tde_libdir} \ + --mandir=%{tde_mandir} \ + --includedir=%{tde_tdeincludedir} \ + --disable-rpath \ + --with-extra-includes=%{tde_includedir}/tqt # SMP safe ! %__make %{?_smp_mflags} %install -export PATH="%{_bindir}:${PATH}" +export PATH="%{tde_bindir}:${PATH}" %__rm -rf %{buildroot} %__make install DESTDIR=%{buildroot} -%__mkdir_p %{buildroot}%{_datadir}/applications/kde -%__mv %{buildroot}%{_datadir}/applnk/Applications/knowit.desktop %{buildroot}%{_datadir}/applications/kde/knowit.desktop -%__rm -r %{buildroot}%{_datadir}/applnk +%__mkdir_p %{buildroot}%{tde_tdeappdir} +%__mv %{buildroot}%{tde_datadir}/applnk/Applications/knowit.desktop %{buildroot}%{tde_tdeappdir}/knowit.desktop +%__rm -r %{buildroot}%{tde_datadir}/applnk %find_lang %{kdecomp} @@ -91,25 +106,27 @@ export PATH="%{_bindir}:${PATH}" %post -touch --no-create %{_datadir}/icons/hicolor || : -gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +update-desktop-database %{tde_appdir} > /dev/null +touch --no-create %{tde_datadir}/icons/hicolor || : +gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || : %postun -touch --no-create %{_datadir}/icons/hicolor || : -gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +update-desktop-database %{tde_appdir} > /dev/null +touch --no-create %{tde_datadir}/icons/hicolor || : +gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || : %files -f %{kdecomp}.lang %defattr(-,root,root,-) -%{_bindir}/knowit -%{_datadir}/applications/kde/knowit.desktop -%{_datadir}/apps/knowit/knowitui.rc -%{_datadir}/apps/knowit/tips -%{tde_docdir}/HTML/en/knowit/common -%{tde_docdir}/HTML/en/knowit/index.cache.bz2 -%{tde_docdir}/HTML/en/knowit/index.docbook -%{tde_docdir}/HTML/en/knowit/screenshot.png -%{_datadir}/icons/hicolor/*/apps/knowit.png +%{tde_bindir}/knowit +%{tde_tdeappdir}/knowit.desktop +%{tde_datadir}/apps/knowit/knowitui.rc +%{tde_datadir}/apps/knowit/tips +%{tde_tdedocdir}/HTML/en/knowit/common +%{tde_tdedocdir}/HTML/en/knowit/index.cache.bz2 +%{tde_tdedocdir}/HTML/en/knowit/index.docbook +%{tde_tdedocdir}/HTML/en/knowit/screenshot.png +%{tde_datadir}/icons/hicolor/*/apps/knowit.png %Changelog diff --git a/redhat/applications/knutclient/trinity-knutclient.spec b/redhat/applications/knutclient/trinity-knutclient.spec index ef45ad28d..a7c88e8af 100644 --- a/redhat/applications/knutclient/trinity-knutclient.spec +++ b/redhat/applications/knutclient/trinity-knutclient.spec @@ -1,25 +1,32 @@ # Default version for this component %define kdecomp knutclient -%define version 0.9.5 -%define release 2 # If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". -%if "%{?_prefix}" != "/usr" +%if "%{?tde_prefix}" != "/usr" %define _variant .opt -%define _docdir %{_prefix}/share/doc %endif # TDE 3.5.13 specific building variables -BuildRequires: autoconf automake libtool m4 -%define tde_docdir %{_docdir}/kde -%define tde_includedir %{_includedir}/kde -%define tde_libdir %{_libdir}/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_mandir %{tde_datadir}/man +%define tde_appdir %{tde_datadir}/applications + +%define tde_tdeappdir %{tde_appdir}/kde +%define tde_tdedocdir %{tde_docdir}/kde +%define tde_tdeincludedir %{tde_includedir}/kde +%define tde_tdelibdir %{tde_libdir}/trinity + +%define _docdir %{tde_docdir} Name: trinity-%{kdecomp} Summary: A KDE GUI that displays UPS statistics from NUT's upsd [Trinity] -Version: %{?version} -Release: %{?release}%{?dist}%{?_variant} +Version: 0.9.5 +Release: 2%{?dist}%{?_variant} License: GPLv2+ Group: Applications/Utilities @@ -28,15 +35,15 @@ Vendor: Trinity Project Packager: Francois Andriot <francois.andriot@free.fr> URL: http://www.knut.noveradsl.cz/knutclient/ -Prefix: %{_prefix} +Prefix: %{tde_prefix} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source0: %{kdecomp}-3.5.13.tar.gz BuildRequires: tqtinterface-devel -BuildRequires: trinity-kdelibs-devel -BuildRequires: trinity-kdebase-devel +BuildRequires: trinity-tdelibs-devel +BuildRequires: trinity-tdebase-devel BuildRequires: desktop-file-utils @@ -48,14 +55,13 @@ stations using an UPS. %prep -unset QTDIR; . /etc/profile.d/qt.sh %setup -q -n applications/%{kdecomp} # Ugly hack to modify TQT include directory inside autoconf files. # If TQT detection fails, it fallbacks to TQT4 instead of TQT3 ! %__sed -i admin/acinclude.m4.in \ - -e "s|/usr/include/tqt|%{_includedir}/tqt|g" \ - -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_docdir}/HTML'|g" + -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \ + -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g" %__cp "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in" %__cp "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh" @@ -63,19 +69,27 @@ unset QTDIR; . /etc/profile.d/qt.sh %build -export PATH="%{_bindir}:${PATH}" -export LDFLAGS="-L%{_libdir} -I%{_includedir}" +unset QTDIR; . /etc/profile.d/qt.sh +export PATH="%{tde_bindir}:${PATH}" +export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}" %configure \ - --disable-rpath \ - --with-extra-includes=%{_includedir}/tqt \ - --enable-closure + --prefix=%{tde_prefix} \ + --exec-prefix=%{tde_prefix} \ + --bindir=%{tde_bindir} \ + --datadir=%{tde_datadir} \ + --libdir=%{tde_libdir} \ + --mandir=%{tde_mandir} \ + --includedir=%{tde_tdeincludedir} \ + --disable-rpath \ + --with-extra-includes=%{tde_includedir}/tqt \ + --enable-closure %__make %{?_smp_mflags} %install -export PATH="%{_bindir}:${PATH}" +export PATH="%{tde_bindir}:${PATH}" %__rm -rf %{buildroot} %__make install DESTDIR=%{buildroot} @@ -87,28 +101,28 @@ export PATH="%{_bindir}:${PATH}" %post for f in hicolor locolor; do - touch --no-create %{_datadir}/icons/${f} || : - gtk-update-icon-cache --quiet %{_datadir}/icons/${f} || : + touch --no-create %{tde_datadir}/icons/${f} || : + gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} || : done %postun for f in hicolor locolor; do - touch --no-create %{_datadir}/icons/${f} || : - gtk-update-icon-cache --quiet %{_datadir}/icons/${f} || : + touch --no-create %{tde_datadir}/icons/${f} || : + gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} || : done %files -f %{kdecomp}.lang %defattr(-,root,root,-) %doc AUTHORS ChangeLog COPYING NEWS README TODO -%{_bindir}/knutclient -%{_datadir}/applnk/Utilities/knutclient.desktop -%{_datadir}/apps/knutclient/knutclientui.rc -%{_datadir}/apps/knutclient -%{tde_docdir}/HTML/cs/knutclient -%{tde_docdir}/HTML/en/knutclient -%{_datadir}/icons/hicolor/*/apps/*.png -%{_datadir}/icons/locolor/*/apps/*.png +%{tde_bindir}/knutclient +%{tde_datadir}/applnk/Utilities/knutclient.desktop +%{tde_datadir}/apps/knutclient/knutclientui.rc +%{tde_datadir}/apps/knutclient +%{tde_tdedocdir}/HTML/cs/knutclient +%{tde_tdedocdir}/HTML/en/knutclient +%{tde_datadir}/icons/hicolor/*/apps/*.png +%{tde_datadir}/icons/locolor/*/apps/*.png %Changelog * Wed May 02 2012 Francois Andriot <francois.andriot@free.fr> - 0.9.5-2 diff --git a/redhat/applications/koffice/chalk.xpm b/redhat/applications/koffice/chalk.xpm deleted file mode 100644 index 0edc4f49a..000000000 --- a/redhat/applications/koffice/chalk.xpm +++ /dev/null @@ -1,295 +0,0 @@ -/* XPM */ -static char *chalk[] = { -/* columns rows colors chars-per-pixel */ -"32 32 257 2", -" c #000000", -". c #0C0C0C", -"X c #080604", -"o c #0E0F12", -"O c #110D01", -"+ c #1A1200", -"@ c #131314", -"# c #171719", -"$ c #001D0B", -"% c #1A1C22", -"& c #00350A", -"* c #013716", -"= c #06221C", -"- c #242424", -"; c #2D2D2C", -": c #3D3C3D", -"> c #343434", -", c #282C33", -"< c #000F56", -"1 c #00164F", -"2 c #011554", -"3 c #001263", -"4 c #051E7B", -"5 c #0A2C6A", -"6 c #3B3D41", -"7 c #005313", -"8 c #085621", -"9 c #1D5137", -"0 c #016914", -"q c #0B6328", -"w c #126C3B", -"e c #23723C", -"r c #084755", -"t c #1B5952", -"y c #1F5475", -"u c #006044", -"i c #1B6F41", -"p c #2E5F48", -"a c #3D6270", -"s c #473504", -"d c #5C4B0B", -"f c #634F09", -"g c #4A4A4A", -"h c #424345", -"j c #5A5A5A", -"k c #5A5240", -"l c #496457", -"z c #5F636D", -"x c #605F5D", -"c c #6D765F", -"v c #636363", -"b c #656866", -"n c #666B73", -"m c #747573", -"M c #787778", -"N c #6C7572", -"B c #1A3890", -"V c #0739C1", -"C c #0030D2", -"Z c #1E5091", -"A c #13488F", -"S c #1243B4", -"D c #395787", -"F c #3B5498", -"G c #2554A9", -"H c #264CB8", -"J c #1B4BC1", -"K c #1650DB", -"L c #1960DE", -"P c #2254CF", -"I c #3766D9", -"U c #3A7AD6", -"Y c #2B67E2", -"T c #236EFE", -"R c #2C74FD", -"E c #2F78FD", -"W c #3269E2", -"Q c #386BFE", -"! c #337FFE", -"~ c #3578FD", -"^ c #2C7CE6", -"/ c #4569AF", -"( c #646287", -") c #4D70CE", -"_ c #4777E0", -"` c #4D7FFE", -"' c #038021", -"] c #128D2E", -"[ c #0EA835", -"{ c #3F9159", -"} c #2EB551", -"| c #22C24D", -" . c #6E8422", -".. c #428F5E", -"X. c #5D8270", -"o. c #53976B", -"O. c #58AA6F", -"+. c #618673", -"@. c #139CFD", -"#. c #0795FD", -"$. c #16A2FD", -"%. c #11B2F2", -"&. c #2880DA", -"*. c #378BF2", -"=. c #27B4F4", -"-. c #38A9F2", -";. c #22ABFE", -":. c #14C2FB", -">. c #19C5FE", -",. c #19C8FE", -"<. c #17C8FE", -"1. c #31C5F8", -"2. c #559C95", -"3. c #4C81B7", -"4. c #798484", -"5. c #7689B0", -"6. c #4F8DFD", -"7. c #5394ED", -"8. c #5091EF", -"9. c #43A0C6", -"0. c #52AEE8", -"q. c #749BE8", -"w. c #739EFE", -"e. c #6497F2", -"r. c #62BDC9", -"t. c #67A5FD", -"y. c #7DAFFD", -"u. c #5CCE82", -"i. c #56CFF2", -"p. c #70C4DA", -"a. c #63DAFC", -"s. c #66C9F5", -"d. c #B8682F", -"f. c #A78F18", -"g. c #9F915C", -"h. c #818279", -"j. c #958E78", -"k. c #969360", -"l. c #9FA07B", -"z. c #B69F47", -"x. c #D1B928", -"c. c #FEA509", -"v. c #FEBE01", -"b. c #FCB507", -"n. c #FEAD22", -"m. c #D7AF68", -"M. c #DCC82C", -"N. c #FEC100", -"B. c #FECC00", -"V. c #FDD201", -"C. c #FDDA01", -"Z. c #FEC614", -"A. c #F7C825", -"S. c #F9C63A", -"D. c #FDDC2A", -"F. c #F1D629", -"G. c #F8D638", -"H. c #E8CC39", -"J. c #FDE502", -"K. c #FDE717", -"L. c #FDF911", -"P. c #FAEA3F", -"I. c #FDF933", -"U. c #D3C254", -"Y. c #DED16A", -"T. c #E9D645", -"R. c #FEC550", -"E. c #F5D741", -"W. c #EDD476", -"Q. c #F7D375", -"!. c #EDDB63", -"~. c #FDEA58", -"^. c #FBF644", -"/. c #FDFE59", -"(. c #F5EE49", -"). c #FCE969", -"_. c #FBE27C", -"`. c #FDFE6B", -"'. c #FDFE71", -"]. c #92918F", -"[. c #989A81", -"{. c #9B9B9A", -"}. c #949492", -"|. c #898D8A", -" X c #8F92A0", -".X c #9AA3B7", -"XX c #9BACAA", -"oX c #A0A182", -"OX c #B0A996", -"+X c gray64", -"@X c #A8ACA9", -"#X c #AFB0AF", -"$X c #B4B5B3", -"%X c #BABABA", -"&X c #B6B6B3", -"*X c #ADA8AD", -"=X c #8BA9E9", -"-X c #92B3F0", -";X c #A8BDEB", -":X c #84D3A7", -">X c #93CAD8", -",X c #84C4D6", -"<X c #8BD4F8", -"1X c #90C9FD", -"2X c #93EBFE", -"3X c #B1C6D5", -"4X c #AECCFE", -"5X c #A8C5F8", -"6X c #A9D6FB", -"7X c #BACCF3", -"8X c #B8D9F8", -"9X c #BCCBEE", -"0X c #ACE6FB", -"qX c #D2BD83", -"wX c #C4BDBA", -"eX c #CFC497", -"rX c #C7C3B9", -"tX c #D1CABB", -"yX c #ECD98D", -"uX c #EECFA1", -"iX c #EDDCA2", -"pX c #FDF690", -"aX c #FDFAA8", -"sX c #FCFAB7", -"dX c #F8E3A2", -"fX c #C5C5C6", -"gX c #D3D3D3", -"hX c #D8D8D8", -"jX c #D0D0CE", -"kX c #C9D8F7", -"lX c #D6D7E3", -"zX c #D0DDFC", -"xX c #C8E4FB", -"cX c #DEE0E3", -"vX c #DDFEFE", -"bX c #D1EDFD", -"nX c #E3DDD1", -"mX c #E0DCE3", -"MX c #E4E1DA", -"NX c #F7ECCA", -"BX c #FDFDCB", -"VX c #FDFDC5", -"CX c #FBF5DD", -"ZX c #E1E2E1", -"AX c #E6E7E8", -"SX c #EEF0EE", -"DX c #E9F3F8", -"FX c #F4E9E4", -"GX c #FBFBE8", -"HX c #F4F4F2", -"JX c #F6FAFB", -"KX c #F8F5F0", -"LX c #FCFAF4", -"PX c #FDFDFD", -"IX c #F1F7FE", -"UX c #EBECF2", -"YX c None", -/* pixels */ -"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX f O YXYXYXYXYX", -"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXf F.+ YXYXYXYXYX", -"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX+ F.d YXYXYXYXYX", -"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXf.M.X YXYXYXYXYXYX", -"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXs I.d YXYXYXYXYXYXYX", -"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXO x.G.k . YXYXYXYXYXYX", -"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX - j M z.(.Q.PXg YXYXYXYXYXYX", -"YXYXYXYXYXYXYXYXYXYXYXYX # g M @XhXJXPXNX~.G.NXPX&X YXYXYXYXYX", -"YXYXYXYXYXYXYXYX # h m %XSXPXPXPXPXPXJXW.~.U.<X8XPX- YXYXYXYXYX", -"YXYXYX . : x ].rXKXPXPXPXPXJXxX6X8X0XNX).T.3.T w.PXv YXYXYX ", -"YX> }.wXFXPXPXIXkX4X4X-Xy.e.6.~ 6.1XxXW.).k.Q Q ` JX$X YX ", -"YXv PXxX1Xt.6.*.R E E T R R E t.<XbXdXQ.U.U E ! Y 7XLX@ ", -"YX; PXs.#.@.$.$.$.$.$.$.@.$.%.$.;.<XyX).2.@.U G 4 F MX: YXYX", -"YX. FX2X%.>.<.%.%.<.<.<.>.>.,.1.,.9.OXg./ G B 4 3 < .X]. YXYXYX", -"YX &XvXa.i.p.>X>X,Xp.a.a.a.p.p.2. X+.t r 5 5 3 1 1 5.KX@ YXYXYX", -"YXYXM PX3XcXKXLXKXrX{.XXr.u.| 0 e {.9 * 8 e q 8 7 * p PXg YXYXYX", -"YXYXj SXmXJXLXHXZX$Xm l O.| [ 0 N n * t { ] 0 7 & $ = HX|.YXYXYX", -"YXYX- lXSXLXJXZX$X|.v N O.[ 0 8 4.l o.{ i i u r y D / -XnX YXYX", -"YXYX. rXgXHXLXmX&XXX+XXXo.0 7 .c G Z A S V V _ zXzX) / PX; YXYX", -"YXX h +X&XgXAXAXcXgX%X#X#XX.a d.y J P P J S H =XkXvXkX7.JXm YXYX", -" b jXAXlXcXhXjXtXrXrXgXlXlXOX( _ _ I I I Y *.<X6X2XxXL 5XrX YX", -"; gXPXFX!.G.G.E.H.S.G.T.yXKXJX.X_ 8.7.-.=.%.%.0.-X=XK C q.GX- YX", -"g JXiXZ.B.V.B.N.v.N.N.C.B.A.nXjX0.i.-.-.*.^ Y I _ q.=XzXJXPXj YX", -": SXA.v.V.C.K.D.D.D.K.J.C.B.yX3X0.e.e.q.=X3XkXDXPXLXMX@Xm h @ YX", -"# gXpXD.K.^./.`.'.`./.I.K.`.sX.X=X9XUXJXPXKXMX&Xh.: o YXYXYX", -" OXG.pXsXaXsXVXBXsXaXsXaX^.H.jXKXMX%X].v > @ YXYXYXYXYXYXYX", -"YXn R.B.I.pXBXGXLXGXBX'.L.V.m.b : @ YXYXYXYXYXYXYXYXYXYXYX", -"YX, uXc.b.D.).aXsXsX).A.c.n.j. YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX", -"YX {.Q.n.b.v.B.C.C.V.Z.S.yX: YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX", -"YXYX# }.qXU.T.(.^.(.T.Y.eXv YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX", -"YXYXYXX g m j.l.oX[.h.x # YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX", -"YXYXYXYX o @ @ @ X YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX" -}; diff --git a/redhat/applications/koffice/koffice-3.5.13-disable_graphicksmagick.patch b/redhat/applications/koffice/koffice-3.5.13-disable_graphicksmagick.patch deleted file mode 100644 index 2ed8017e6..000000000 --- a/redhat/applications/koffice/koffice-3.5.13-disable_graphicksmagick.patch +++ /dev/null @@ -1,20 +0,0 @@ ---- koffice/configure.in.in.ORI 2011-11-23 14:10:51.406182478 -0500 -+++ koffice/configure.in.in 2011-11-23 14:11:51.714475724 -0500 -@@ -20,7 +20,7 @@ - - if test -n "$GRAPHICS_MAGICK_CONFIG"; then - vers=`$GRAPHICS_MAGICK_CONFIG --version 2>/dev/null | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'` -- if test -n "$vers" && test "$vers" -ge 1001007; then -+ if test -n "$vers" && test "$vers" -ge 1001007 && test "$vers" -lt 1002000; then - LIBGMAGICK_LIBS="`$GRAPHICS_MAGICK_CONFIG --libs`" - LIBGMAGICK_LDFLAGS="`$GRAPHICS_MAGICK_CONFIG --ldflags`" - LIBGMAGICK_RPATH= -@@ -36,7 +36,7 @@ - AC_DEFINE(HAVE_GMAGICK,1, [GraphicsMagick is available]) - have_graphicsmagick=yes - else -- AC_MSG_WARN([You need at least GraphicsMagick 1.1.7]) -+ AC_MSG_WARN([You need at least GraphicsMagick 1.1.7, but less than 1.2.0]) - fi - - fi diff --git a/redhat/applications/koffice/koffice-3.5.13-fix_lcms_detection.patch b/redhat/applications/koffice/koffice-3.5.13-fix_lcms_detection.patch new file mode 100644 index 000000000..bf714ab8a --- /dev/null +++ b/redhat/applications/koffice/koffice-3.5.13-fix_lcms_detection.patch @@ -0,0 +1,11 @@ +--- koffice/chalk/configure.in.in.ORI 2012-08-05 22:30:11.362533703 +0200 ++++ koffice/chalk/configure.in.in 2012-08-05 22:30:31.456987824 +0200 +@@ -48,7 +48,7 @@ + fi + + +-ac_link='$LIBTOOL_SHELL --mode=link ${CXX-g++} -o conftest $CXXFLAGS $all_includes $CPPFLAGS $LDFLAGS $all_libraries -ltqt conftest.$ac_ext -llcms 1>&5' ++ac_link='$LIBTOOL_SHELL --mode=link --tag=LD ${CXX-g++} -o conftest $CXXFLAGS $all_includes $CPPFLAGS $LDFLAGS $all_libraries -ltqt conftest.$ac_ext -llcms 1>&5' + + if AC_TRY_EVAL(ac_link) && test -s conftest; then + AC_MSG_RESULT(yes) diff --git a/redhat/applications/koffice/koffice-3.5.13-fix_poppler_detect.patch b/redhat/applications/koffice/koffice-3.5.13-fix_poppler_detect.patch deleted file mode 100644 index 2675ddd01..000000000 --- a/redhat/applications/koffice/koffice-3.5.13-fix_poppler_detect.patch +++ /dev/null @@ -1,10 +0,0 @@ ---- koffice/filters/chalk/pdf/configure.in.in.ORI 2011-11-23 14:20:06.517677101 -0500 -+++ koffice/filters/chalk/pdf/configure.in.in 2011-11-23 14:20:14.461584005 -0500 -@@ -1,5 +1,5 @@ - # Compile the pdf import filter only if Poppler is available --# PKG_CHECK_MODULES(POPPLER, poppler-qt >= 0.5.1, have_poppler=yes, have_poppler=no) --have_poppler=yes -+PKG_CHECK_MODULES(POPPLER, poppler-qt >= 0.5.1, have_poppler=yes, have_poppler=no) -+#have_poppler=yes - - AM_CONDITIONAL(include_PDF, test "x$have_poppler" = xyes) diff --git a/redhat/applications/koffice/koffice-3.5.13-missing_ldflags.patch b/redhat/applications/koffice/koffice-3.5.13-missing_ldflags.patch new file mode 100644 index 000000000..e6c683dc9 --- /dev/null +++ b/redhat/applications/koffice/koffice-3.5.13-missing_ldflags.patch @@ -0,0 +1,61 @@ +--- koffice/lib/store/Makefile.am.ORI 2012-08-05 21:05:16.181010835 +0200 ++++ koffice/lib/store/Makefile.am 2012-08-05 21:05:25.027837330 +0200 +@@ -7,7 +7,7 @@ + + ####### Files + +-libkstore_la_LIBADD = $(LIB_KIO) ++libkstore_la_LIBADD = $(LIB_KIO) $(LIB_QT) $(LIB_KDECORE) $(LIB_KDEUI) + libkstore_la_SOURCES = KoStore.cpp KoTarStore.cpp KoDirectoryStore.cpp KoZipStore.cpp KoStoreDrag.cpp KoStoreBase.cpp KoXmlWriter.cpp + libkstore_la_LDFLAGS = $(all_libraries) -version-info 3:0:0 $(KDE_LDFLAGS) -no-undefined + include_HEADERS = KoStore.h KoStoreDevice.h KoXmlWriter.h +--- koffice/lib/kwmf/Makefile.am.ORI 2012-08-05 21:09:16.183303850 +0200 ++++ koffice/lib/kwmf/Makefile.am 2012-08-05 21:09:35.742920240 +0200 +@@ -3,7 +3,7 @@ + INCLUDES= $(KOFFICECORE_INCLUDES) -I$(srcdir) $(all_includes) + libkwmf_la_LDFLAGS = $(all_libraries) -version-info 3:0:0 -no-undefined + # We use kdecore for kdDebug :) +-libkwmf_la_LIBADD = $(LIB_KDECORE) ++libkwmf_la_LIBADD = $(LIB_KDECORE) $(LIB_QT) + + ####### Files + +@@ -16,4 +16,4 @@ + + libkowmf_la_SOURCES = kowmfreadprivate.cc kowmfstack.cc kowmfread.cc kowmfwrite.cc kowmfpaint.cc + libkowmf_la_LDFLAGS = $(all_libraries) -version-info 2:0:0 -no-undefined +-libkowmf_la_LIBADD = $(LIB_KDECORE) ++libkowmf_la_LIBADD = $(LIB_KDECORE) $(LIB_QT) +--- koffice/lib/kofficecore/Makefile.am.ORI 2012-08-05 21:12:34.924406087 +0200 ++++ koffice/lib/kofficecore/Makefile.am 2012-08-05 21:12:47.700155525 +0200 +@@ -4,7 +4,7 @@ + KDE_CXXFLAGS = $(USE_RTTI) $(WOVERLOADED_VIRTUAL) + INCLUDES= $(KSTORE_INCLUDES) $(KWMF_INCLUDES) $(all_includes) + libkofficecore_la_LIBADD = $(LIB_KSTORE) $(LIB_KOWMF) $(LIB_KPARTS) \ +- $(LIB_KDEPRINT) $(LIB_KABC) $(LIB_KWMF) ++ $(LIB_KDEPRINT) $(LIB_KABC) $(LIB_KWMF) -lDCOP + + ####### Files + +--- koffice/lib/koproperty/Makefile.am.ORI 2012-08-05 21:16:10.320181691 +0200 ++++ koffice/lib/koproperty/Makefile.am 2012-08-05 21:16:17.135048036 +0200 +@@ -2,7 +2,7 @@ + + lib_LTLIBRARIES = libkoproperty.la + +-libkoproperty_la_LIBADD = $(LIB_KDEUI) ./editors/libkopropertyeditors.la ++libkoproperty_la_LIBADD = $(LIB_KDEUI) ./editors/libkopropertyeditors.la $(LIB_QT) $(LIB_KDECORE) + libkoproperty_la_LDFLAGS = -no-undefined $(all_libraries) -version-info 2:0:0 + libkoproperty_la_SOURCES = property.cpp customproperty.cpp set.cpp editor.cpp \ + editoritem.cpp factory.cpp widget.cpp +--- koffice/kpresenter/Makefile.am.ORI 2012-08-05 21:41:53.120199863 +0200 ++++ koffice/kpresenter/Makefile.am 2012-08-05 21:42:03.358832558 +0200 +@@ -72,7 +72,7 @@ + if include_ARTS + ARTSKDE = -lartskde + endif +-libkpresenterprivate_la_LIBADD = autoformEdit/libaf.la $(LIB_KOFFICEUI) $(LIB_KOTEXT) $(LIB_KOPAINTER) $(ARTSKDE) ++libkpresenterprivate_la_LIBADD = autoformEdit/libaf.la $(LIB_KOFFICEUI) $(LIB_KOTEXT) $(LIB_KOPAINTER) $(ARTSKDE) -lsoundserver_idl -lmcop + + ## The part + kde_module_LTLIBRARIES = libkpresenterpart.la diff --git a/redhat/applications/koffice/trinity-koffice-3.5.13-sru.spec b/redhat/applications/koffice/trinity-koffice-3.5.13-sru.spec new file mode 100644 index 000000000..f7ed27a99 --- /dev/null +++ b/redhat/applications/koffice/trinity-koffice-3.5.13-sru.spec @@ -0,0 +1,1037 @@ +# Default version for this component +%define kdecomp koffice + +# 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 building 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_mandir %{tde_datadir}/man +%define tde_appdir %{tde_datadir}/applications + +%define tde_tdeappdir %{tde_appdir}/kde +%define tde_tdedocdir %{tde_docdir}/kde +%define tde_tdeincludedir %{tde_includedir}/kde +%define tde_tdelibdir %{tde_libdir}/trinity + +%define _docdir %{tde_docdir} + +# Required for Mageia 2: removes the ldflag '--no-undefined' +%define _disable_ld_no_undefined 1 + +# Disable Kross support for RHEL <= 5 (python is too old) +%if 0%{?fedora} > 0 || 0%{?rhel} >= 6 || 0%{?mgaversion} || 0%{?mdkversion} +%define with_kross 1 +%endif + +%if 0%{?fedora} >= 17 +%define with_ruby 0 +%else +%define with_ruby 1 +%endif + +# Ruby 1.9 includes are located in strance directories ... (taken from ruby 1.9 spec file) +%global _normalized_cpu %(echo %{_target_cpu} | sed 's/^ppc/powerpc/;s/i.86/i386/;s/sparcv./sparc/;s/armv.*/arm/') + + +Name: trinity-%{kdecomp} +Summary: An integrated office suite +Version: 1.6.3 +Release: 6%{?dist}%{?_variant} + +Group: Applications/Productivity +License: GPLv2+ + +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: %{kdecomp}-3.5.13.tar.gz +Source100: koshell.png + +# [koffice] version 3.5.13-SRU +Patch0: koffice-3.5.13-sru-20120805.patch + +# [koffice] Fix compilation with Ruby 1.9 [Bug #735] +Patch13: koffice-3.5.13-fix_ruby_1.9.patch +# [koffice] Missing LDFLAGS cause FTBFS on Mageia / Mandriva +Patch16: koffice-3.5.13-missing_ldflags.patch +# [koffice] LCMS library detection fails on Mageia / Mandriva +Patch17: koffice-3.5.13-fix_lcms_detection.patch + +# BuildRequires: world-devel ;) +BuildRequires: trinity-tdelibs-devel +BuildRequires: trinity-tdegraphics-devel +BuildRequires: automake libtool +BuildRequires: freetype-devel +BuildRequires: fontconfig-devel +BuildRequires: libart_lgpl-devel +BuildRequires: libpng-devel +BuildRequires: libtiff-devel +BuildRequires: libjpeg-devel +BuildRequires: ImageMagick-devel +BuildRequires: bzip2-devel +BuildRequires: zlib-devel +BuildRequires: openssl-devel +BuildRequires: python-devel +BuildRequires: pcre-devel +BuildRequires: lcms-devel +BuildRequires: gettext-devel +BuildRequires: mysql-devel +BuildRequires: desktop-file-utils +BuildRequires: perl +BuildRequires: doxygen +BuildRequires: aspell-devel +BuildRequires: libxslt-devel +BuildRequires: OpenEXR-devel +BuildRequires: libexif-devel +BuildRequires: readline-devel +%if 0%{?with_ruby} +BuildRequires: ruby ruby-devel >= 1.8.2 +%endif +BuildRequires: libpaper-devel +BuildRequires: libutempter-devel +BuildRequires: GraphicsMagick-devel >= 1.1.0 + +#%if 0%{?rhel} >= 6 || 0%{?fedora} >= 15 +#BuildRequires: poppler-qt-devel >= 0.1.2 +#%else +#BuildRequires: trinity-poppler-qt3-devel >= 0.1.2 +#%endif + +BuildRequires: trinity-tdegraphics-libpoppler-tqt-devel + +# These libraries are either too old or too recent on distributions ! +# We always provide our versions with TDE... +BuildRequires: trinity-libwpd-devel +BuildRequires: trinity-libpqxx-devel + +%if 0%{?mgaversion} || 0%{?mdkversion} +BuildRequires: %{_lib}mesagl1-devel +BuildRequires: %{_lib}mesaglu1-devel +BuildRequires: %{_lib}xi-devel +BuildRequires: wv2-devel +%else +BuildRequires: libGL-devel +BuildRequires: libGLU-devel +BuildRequires: libXi-devel +BuildRequires: trinity-wv2-devel +%endif + +%description +KOffice is an integrated office suite. + +%package suite +Summary: An integrated office suite +Group: Applications/Productivity +Obsoletes: %{name} <= %{version}-%{release} +Obsoletes: %{name}-i18n < 4:%{version} +Requires: %{name}-core = %{version}-%{release} +Requires: %{name}-kword = %{version}-%{release} +Requires: %{name}-kspread = %{version}-%{release} +Requires: %{name}-kpresenter = %{version}-%{release} +Requires: %{name}-kivio = %{version}-%{release} +Requires: %{name}-karbon = %{version}-%{release} +Requires: %{name}-kugar = %{version}-%{release} +Requires: %{name}-kexi = %{version}-%{release} +Requires: %{name}-kexi-driver-mysql = %{version}-%{release} +Requires: %{name}-kexi-driver-pgsql = %{version}-%{release} +Requires: %{name}-kchart = %{version}-%{release} +Requires: %{name}-kformula = %{version}-%{release} +Requires: %{name}-filters = %{version}-%{release} +Requires: %{name}-kplato = %{version}-%{release} +Requires: %{name}-chalk = %{version}-%{release} + +%description suite +KOffice is an integrated office suite. + +%package core +Summary: Core support files for %{name} +Group: Applications/Productivity +Requires: %{name}-libs = %{version}-%{release} +Requires: perl +Conflicts: koffice-i18n < %{version} +%description core +%{summary}. + +%package libs +Summary: Runtime libraries for %{name} +Group: System Environment/Libraries +Conflicts: %{name} <= %{version}-%{release} +Requires: trinity-kdelibs +License: LGPLv2+ +%description libs +%{summary}. + +%package devel +Summary: Development files for %{name} +Group: Development/Libraries +Requires: %{name}-libs = %{version}-%{release} +License: LGPLv2+ +%description devel +%{summary}. + +%package kword +Summary: A frame-based word processor capable of professional standard documents +Group: Applications/Productivity +Requires: %{name}-core = %{version}-%{release} +%description kword +%{summary}. + +%package kspread +Summary: A powerful spreadsheet application +Group: Applications/Productivity +Requires: %{name}-core = %{version}-%{release} +%description kspread +%{summary}. + +%package kpresenter +Summary: A full-featured presentation program +Group: Applications/Productivity +Requires: %{name}-core = %{version}-%{release} +%description kpresenter +%{summary}. + +%package kivio +Summary: A flowcharting application +Group: Applications/Productivity +Requires: %{name}-core = %{version}-%{release} +Obsoletes: kivio < %{version}-%{release} +%description kivio +%{summary}. + +%package karbon +Summary: A vector drawing application +Group: Applications/Productivity +Requires: %{name}-core = %{version}-%{release} +%description karbon +%{summary}. + +%package kugar +Summary: A tool for generating business quality reports +Group: Applications/Productivity +Requires: %{name}-core = %{version}-%{release} +%description kugar +%{summary}. + +%package kexi +Summary: An integrated environment for managing data +Group: Applications/Productivity +Requires: %{name}-core = %{version}-%{release} +%description kexi +%{summary}. +For additional database drivers take a look at %{name}-kexi-driver-* + +%package kexi-driver-mysql +Summary: Mysql-driver for kexi +Group: Applications/Productivity +Requires: %{name}-kexi = %{version}-%{release} +%description kexi-driver-mysql +%{summary}. + +%package kexi-driver-pgsql +Summary: Postgresql driver for kexi +Group: Applications/Productivity +Requires: %{name}-kexi = %{version}-%{release} +%description kexi-driver-pgsql +%{summary}. + +%package kchart +Summary: An integrated graph and chart drawing tool +Group: Applications/Productivity +Requires: %{name}-core = %{version}-%{release} +%description kchart +%{summary}. + +%package kformula +Summary: A powerful formula editor +Group: Applications/Productivity +Requires: %{name}-core = %{version}-%{release} + +%if 0%{?mgaversion} || 0%{?mdkversion} +Requires: fonts-ttf-dejavu +%else +Requires: lyx-cmex10-fonts +%if 0%{?fedora} >= 11 || 0%{?rhel} >= 6 +Requires: dejavu-lgc-sans-fonts +%else +Requires: dejavu-lgc-fonts +%endif +%endif + +%description kformula +%{summary}. + +%package filters +Summary: Import and Export Filters for KOffice +Group: Applications/Productivity +Requires: %{name}-core = %{version}-%{release} +%description filters +%{summary}. + +%package kplato +Summary: An integrated project management and planning tool +Group: Applications/Productivity +Requires: %{name}-core = %{version}-%{release} +%description kplato +%{summary}. + +%package chalk +Summary: pixel-based image manipulation program for the TDE Office Suite [Trinity] +Group: Applications/Productivity +Requires: %{name}-core = %{version}-%{release} +Requires: %{name}-chalk-data = %{version}-%{release} +Requires: %{name}-filters +%description chalk +Chalk is a painting and image editing application for KOffice. Chalk contains +both ease-of-use and fun features like guided painting. + +This package is part of the TDE Office Suite. + +%package chalk-data +Summary: data files for Chalk painting program [Trinity] +Group: Applications/Productivity +%description chalk-data +This package contains architecture-independent data files for Chalk, +the painting program shipped with the TDE Office Suite. + +See the chalk package for further information. + +This package is part of the TDE Office Suite. + + + +%prep +%setup -q -n applications/%{kdecomp} + +# SRU +%patch0 -p1 + +%if 0%{?fedora} >= 17 +%patch13 -p1 -b .ruby19 +%endif +%patch16 -p1 +%patch17 -p1 + +# use LGC variant instead +%__sed -i.dejavu-lgc \ + -e 's|DejaVu Sans|DejaVu LGC Sans|' \ + -e 's|dejavu sans|dejavu lgc sans|' \ + lib/kformula/{contextstyle,fontstyle,symboltable}.cc + +# Ugly hack to modify TQT include directory inside autoconf files. +# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 ! +%__sed -i admin/acinclude.m4.in \ + -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \ + -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g" + +%__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in" +%__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh" +%__make -f "admin/Makefile.common" + + +%build +unset QTDIR || : ; . /etc/profile.d/qt.sh +export PATH="%{tde_bindir}:${PATH}" +export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}" +export PKG_CONFIG_PATH="%{tde_libdir}/pkgconfig:${PKG_CONFIG_PATH}" + +%configure \ + --prefix=%{tde_prefix} \ + --exec-prefix=%{tde_prefix} \ + --bindir=%{tde_bindir} \ + --datadir=%{tde_datadir} \ + --libdir=%{tde_libdir} \ + --mandir=%{tde_mandir} \ + --includedir=%{tde_tdeincludedir} \ + --disable-rpath --disable-dependency-tracking \ + --enable-new-ldflags \ + --disable-debug --disable-warnings \ + --with-pic --enable-shared --disable-static \ + --with-extra-libs=%{tde_libdir} \ + --enable-final \ + --with-extra-includes=%{tde_includedir}/tqt:%{tde_includedir}/arts \ + --enable-closure \ + --disable-kexi-macros \ + --with-pqxx-includes=%{tde_includedir} \ + --with-pqxx-libraries=%{tde_libdir} \ +%if 0%{?with_kross} > 0 + --enable-scripting \ +%else + --disable-scripting \ +%endif + +%__make %{?_smp_mflags} + + +%install +%__rm -rf %{buildroot} +%__make install DESTDIR=%{buildroot} + +[ ! -f %{buildroot}%{tde_datadir}/icons/hicolor/48x48/apps/koshell.png ] && \ +%__install -p -D -m644 %{SOURCE100} %{buildroot}%{tde_datadir}/icons/hicolor/48x48/apps/koshell.png + +# Replace absolute symlinks with relative ones +pushd %{buildroot}%{tde_tdedocdir}/HTML +for lang in *; do + if [ -d $lang ]; then + pushd $lang + for i in */*; do + [ -d $i -a -L $i/common ] && rm -f $i/common && ln -sf ../../common $i/common + done + popd + fi +done +popd + +desktop-file-install \ + --dir=%{buildroot}%{tde_tdeappdir} \ + --vendor="" \ + --delete-original \ + %{buildroot}%{tde_datadir}/applnk/Office/*.desktop + +## Hack-in NoDisplay=True (http://bugzilla.redhat.com/245061) +## until http://bugzilla.redhat.com/245190 is fixed +%if 0%{?rhel} || 0%{?fedora} +for desktop_file in %{buildroot}%{tde_datadir}/applnk/.hidden/*.desktop ; do + grep "^NoDisplay=" ${desktop_file} || \ + echo "NoDisplay=True" >> ${desktop_file} +done +%endif + +## unpackaged files +# fonts +rm -rfv %{buildroot}%{tde_datadir}/apps/kformula/fonts/ +# libtool archives +rm -f %{buildroot}%{tde_libdir}/lib*.la +# shouldn't these be in koffice-l10n? +rm -f %{buildroot}%{tde_datadir}/locale/pl/LC_MESSAGES/kexi_{add,delete}_column_gui_transl_pl.sh +# -devel symlinks to nuke +rm -f %{buildroot}%{tde_libdir}/lib*common.so +rm -f %{buildroot}%{tde_libdir}/lib*filters.so +rm -f %{buildroot}%{tde_libdir}/lib*private.so +rm -f %{buildroot}%{tde_libdir}/libkarbon*.so +rm -f %{buildroot}%{tde_libdir}/libkchart*.so +rm -f %{buildroot}%{tde_libdir}/libkexi*.so +rm -f %{buildroot}%{tde_libdir}/libkisexiv2.so +rm -f %{buildroot}%{tde_libdir}/libkformdesigner.so +rm -f %{buildroot}%{tde_libdir}/libkplato*.so +rm -f %{buildroot}%{tde_libdir}/libkpresenter*.so +rm -f %{buildroot}%{tde_libdir}/libkword*.so +rm -f %{buildroot}%{tde_libdir}/libkross*.so +rm -f %{buildroot}%{tde_libdir}/libkugar*.so + + +%clean +%__rm -rf %{buildroot} + +%post core +touch --no-create %{tde_datadir}/icons/crystalsvg &> /dev/null || : +touch --no-create %{tde_datadir}/icons/hicolor &> /dev/null || : +touch --no-create %{tde_datadir}/icons/locolor &> /dev/null || : + +%postun core +if [ $1 -eq 0 ]; then + gtk-update-icon-cache %{tde_datadir}/icons/crystalsvg &> /dev/null || : + gtk-update-icon-cache %{tde_datadir}/icons/hicolor &> /dev/null || : + gtk-update-icon-cache %{tde_datadir}/icons/locolor &> /dev/null || : + update-desktop-database -q &> /dev/null ||: +fi + +%posttrans core +gtk-update-icon-cache %{tde_datadir}/icons/crystalsvg &> /dev/null || : +gtk-update-icon-cache %{tde_datadir}/icons/hicolor &> /dev/null || : +gtk-update-icon-cache %{tde_datadir}/icons/locolor &> /dev/null || : +update-desktop-database -q &> /dev/null ||: + +%post karbon +/sbin/ldconfig || : + +%postun karbon +/sbin/ldconfig || : + +%post kword +/sbin/ldconfig || : + +%postun kword +/sbin/ldconfig || : + +%posttrans kword +update-desktop-database -q &> /dev/null ||: + +%post kpresenter +/sbin/ldconfig || : + +%postun kpresenter +/sbin/ldconfig || : + +%posttrans kpresenter +update-desktop-database -q &> /dev/null ||: + +%post kugar +/sbin/ldconfig || : + +%postun kugar +/sbin/ldconfig || : + +%posttrans kugar +update-desktop-database -q &> /dev/null ||: + +%post kexi +/sbin/ldconfig || : + +%postun kexi +/sbin/ldconfig || : + +%posttrans kexi +update-desktop-database -q &> /dev/null ||: + +%post kchart +/sbin/ldconfig || : + +%postun kchart +/sbin/ldconfig || : + +%posttrans kchart +update-desktop-database -q &> /dev/null ||: + +%post filters +/sbin/ldconfig || : + +%postun filters +/sbin/ldconfig || : + +%post libs +/sbin/ldconfig || : + +%postun libs +/sbin/ldconfig || : + +%post chalk +/sbin/ldconfig || : + +%postun chalk +/sbin/ldconfig || : + +%posttrans chalk +update-desktop-database -q &> /dev/null ||: + +%files suite +#empty => virtual package + +%files core +%defattr(-,root,root,-) +%doc AUTHORS COPYING README +%{tde_bindir}/koshell +%{tde_bindir}/kthesaurus +%{tde_bindir}/koconverter +%{tde_libdir}/libkdeinit_koshell.so +%{tde_libdir}/libkdeinit_kthesaurus.so +%{tde_tdelibdir}/kfile_koffice.* +%{tde_tdelibdir}/kfile_ooo.* +%{tde_tdelibdir}/kfile_abiword.* +%{tde_tdelibdir}/kfile_gnumeric.* +%{tde_tdelibdir}/kodocinfopropspage.* +%{tde_tdelibdir}/kofficescan.* +%{tde_tdelibdir}/kofficethumbnail.* +%{tde_tdelibdir}/koshell.* +%{tde_tdelibdir}/kthesaurus.* +%{tde_tdelibdir}/kwmailmerge_classic.* +%{tde_tdelibdir}/kwmailmerge_kabc.* +%{tde_tdelibdir}/kwmailmerge_qtsqldb_power.* +%{tde_tdelibdir}/kwmailmerge_qtsqldb.* +%{tde_tdelibdir}/libkounavailpart.* +%{tde_tdelibdir}/libkprkword.* +%{tde_tdelibdir}/libthesaurustool.* +%{tde_tdelibdir}/clipartthumbnail.* +%{tde_datadir}/apps/koffice/ +%{tde_datadir}/apps/konqueror/servicemenus/* +%{tde_datadir}/apps/koshell/ +%{tde_datadir}/apps/thesaurus/ +%{tde_datadir}/config.kcfg/koshell.kcfg +%{tde_tdedocdir}/HTML/en/koffice/ +%{tde_tdedocdir}/HTML/en/koshell/ +%{tde_tdedocdir}/HTML/en/thesaurus/ +%{tde_datadir}/icons/crystalsvg/*/*/* +%{tde_datadir}/icons/hicolor/*/*/* +%{tde_datadir}/icons/locolor/*/*/* +%{tde_datadir}/services/clipartthumbnail.desktop +%{tde_datadir}/services/kfile*.desktop +%{tde_datadir}/services/kwmailmerge*.desktop +%{tde_datadir}/services/kodocinfopropspage.desktop +%{tde_datadir}/services/kofficethumbnail.desktop +%{tde_datadir}/services/kounavail.desktop +%{tde_datadir}/services/kprkword.desktop +%{tde_datadir}/services/thesaurustool.desktop +%{tde_datadir}/servicetypes/kochart.desktop +%{tde_datadir}/servicetypes/kofficepart.desktop +%{tde_datadir}/servicetypes/koplugin.desktop +%{tde_datadir}/servicetypes/kwmailmerge.desktop +%{tde_datadir}/servicetypes/widgetfactory.desktop +%{tde_tdeappdir}/*koffice.desktop +%{tde_tdeappdir}/*KThesaurus.desktop +%{tde_tdeappdir}/*koshell.desktop +%{tde_datadir}/apps/kofficewidgets/ +%if 0%{?with_kross} > 0 +%{tde_datadir}/apps/kross/ +%{tde_tdelibdir}/krosspython.* +%if 0%{?with_ruby} +%{tde_tdelibdir}/krossruby.* +%endif +%endif + +%files libs +%defattr(-,root,root,-) +%doc COPYING.LIB +#_libdir/libk*common.so.* +%{tde_libdir}/libkarboncommon.so.* +%{tde_libdir}/libkspreadcommon.so.* +%{tde_libdir}/libkdchart.so.* +%{tde_libdir}/libkochart.so.* +%{tde_libdir}/libkofficecore.so.* +%{tde_libdir}/libkofficeui.so.* +%{tde_libdir}/libkotext.so.* +%{tde_libdir}/libkowmf.so.* +%{tde_libdir}/libkopainter.so.* +%{tde_libdir}/libkstore.so.* +%{tde_libdir}/libkwmailmerge_interface.so.* +%{tde_libdir}/libkwmf.so.* +%{tde_libdir}/libkformulalib.so.* +%{tde_libdir}/libkopalette.so.* +%{tde_libdir}/libkoproperty.so.* +%if 0%{?with_kross} > 0 +%{tde_libdir}/libkrossapi.so.* +%{tde_libdir}/libkrossmain.so.* +%endif + +%files devel +%defattr(-,root,root,-) +%lang(en) %{tde_tdedocdir}/HTML/en/koffice-apidocs/ +%{tde_includedir}/* +# FIXME: include only shlib symlinks we know/want to export +%{tde_libdir}/lib*.so +%exclude %{tde_libdir}/libkdeinit_*.so +%exclude %{tde_libdir}/libkudesignercore.so + +%files kword +%defattr(-,root,root,-) +%lang(en) %{tde_tdedocdir}/HTML/en/kword/ +%{tde_bindir}/kword +%{tde_libdir}/libkdeinit_kword.so +%{tde_libdir}/libkwordprivate.so.* +%{tde_tdelibdir}/libkwordpart.* +%{tde_tdelibdir}/kword.* +%{tde_datadir}/apps/kword/ +%{tde_datadir}/services/kword*.desktop +%{tde_datadir}/services/kwserial*.desktop +%{tde_datadir}/templates/TextDocument.desktop +%{tde_datadir}/templates/.source/TextDocument.kwt +%{tde_tdeappdir}/*kword.desktop + +%files kspread +%defattr(-,root,root,-) +%lang(en) %{tde_tdedocdir}/HTML/en/kspread/ +%{tde_bindir}/kspread +%{tde_libdir}/libkdeinit_kspread.so +%{tde_tdelibdir}/kspread.* +%{tde_tdelibdir}/libkspreadpart.* +%{tde_tdelibdir}/kwmailmerge_kspread.* +%{tde_tdelibdir}/libcsvexport.* +%{tde_tdelibdir}/libcsvimport.* +%{tde_tdelibdir}/libgnumericexport.* +%{tde_tdelibdir}/libgnumericimport.* +%{tde_tdelibdir}/libkspreadhtmlexport.* +%{tde_tdelibdir}/libkspreadinsertcalendar.* +%{tde_tdelibdir}/libopencalcexport.* +%{tde_tdelibdir}/libopencalcimport.* +%{tde_tdelibdir}/libqproimport.* +%{tde_datadir}/apps/kspread/ +%{tde_datadir}/services/kspread*.desktop +%{tde_datadir}/templates/SpreadSheet.desktop +%{tde_datadir}/templates/.source/SpreadSheet.kst +%{tde_tdeappdir}/*kspread.desktop +%if 0%{?with_kross} > 0 +%{tde_tdelibdir}/kspreadscripting.* +%{tde_tdelibdir}/krosskspreadcore.* +%endif + +%files kpresenter +%defattr(-,root,root,-) +%lang(en) %{tde_tdedocdir}/HTML/en/kpresenter/ +%{tde_bindir}/kpresenter +%{tde_bindir}/kprconverter.pl +%{tde_libdir}/libkdeinit_kpresenter.so +%{tde_libdir}/libkpresenterimageexport.so.* +%{tde_libdir}/libkpresenterprivate.so.* +%{tde_tdelibdir}/*kpresenter*.* +%{tde_datadir}/apps/kpresenter/ +%{tde_datadir}/services/kpresenter*.desktop +%{tde_datadir}/templates/Presentation.desktop +%{tde_datadir}/templates/.source/Presentation.kpt +%{tde_tdeappdir}/*kpresenter.desktop + +%files karbon +%defattr(-,root,root,-) +%lang(en) %{tde_tdedocdir}/HTML/en/karbon/ +%{tde_bindir}/karbon +%{tde_libdir}/libkdeinit_karbon.so +%{tde_tdelibdir}/*karbon*.* +%{tde_tdelibdir}/libwmfexport.* +%{tde_tdelibdir}/libwmfimport.* +%{tde_datadir}/apps/karbon/ +%{tde_datadir}/services/karbon* +%{tde_datadir}/servicetypes/karbon_module.desktop +%{tde_datadir}/templates/Illustration.desktop +%{tde_datadir}/templates/.source/Illustration.karbon +%{tde_tdeappdir}/*karbon.desktop + +%files kugar +%defattr(-,root,root,-) +%lang(en) %{tde_tdedocdir}/HTML/en/kugar/ +%{tde_bindir}/kugar +%{tde_bindir}/kudesigner +%{tde_libdir}/libkdeinit_kugar.so +%{tde_libdir}/libkdeinit_kudesigner.so +%{tde_libdir}/libkugarlib.so.* +%{tde_libdir}/libkudesignercore.so +%{tde_tdelibdir}/kudesigner.* +%{tde_tdelibdir}/kugar.* +%{tde_tdelibdir}/libkudesignerpart.* +%{tde_tdelibdir}/libkugarpart.* +%{tde_datadir}/apps/kudesigner/ +%{tde_datadir}/apps/kugar/ +%{tde_datadir}/services/kugar*.desktop +%{tde_tdeappdir}/*kugar.desktop +%{tde_tdeappdir}/*kudesigner.desktop + +%files kexi +%defattr(-,root,root,-) +%lang(en) %{tde_tdedocdir}/HTML/en/kexi/ +%{tde_bindir}/kexi* +%{tde_bindir}/ksqlite* +%{tde_libdir}/libkdeinit_kexi.so +%{tde_libdir}/libkexi*.so.* +%{tde_libdir}/libkformdesigner.so.* +%{tde_tdelibdir}/kformdesigner_*.* +%{tde_tdelibdir}/kexidb_sqlite2driver.* +%{tde_tdelibdir}/kexidb_sqlite3driver.* +%{tde_tdelibdir}/kexihandler_*.* +%{tde_tdelibdir}/kexi.* +# moved here to workaround bug #394101, alternative is to move libkexi(db|dbparser|utils) to -libs) +%{tde_tdelibdir}/libkspreadkexiimport.* +%{tde_datadir}/config/kexirc +%{tde_datadir}/config/magic/kexi.magic +%{tde_datadir}/mimelnk/application/* +%{tde_datadir}/servicetypes/kexi*.desktop +%{tde_datadir}/services/kexi/ +%{tde_datadir}/apps/kexi/ +%{tde_datadir}/services/kformdesigner/* +%{tde_tdeappdir}/*kexi.desktop +%{tde_datadir}/services/kexidb_sqlite*driver.desktop +%if 0%{?with_kross} > 0 +%{tde_bindir}/krossrunner +%{tde_tdelibdir}/krosskexiapp.* +%{tde_tdelibdir}/krosskexidb.* +%endif + +%files kexi-driver-mysql +%defattr(-,root,root,-) +%{tde_tdelibdir}/kexidb_mysqldriver.* +%{tde_tdelibdir}/keximigrate_mysql.* +%{tde_datadir}/services/keximigrate_mysql.desktop +%{tde_datadir}/services/kexidb_mysqldriver.desktop + +%files kexi-driver-pgsql +%defattr(-,root,root,-) +%{tde_tdelibdir}/kexidb_pqxxsqldriver.* +%{tde_tdelibdir}/keximigrate_pqxx.* +%{tde_datadir}/services/kexidb_pqxxsqldriver.desktop +%{tde_datadir}/services/keximigrate_pqxx.desktop + +%files kchart +%defattr(-,root,root,-) +%lang(en) %{tde_tdedocdir}/HTML/en/kchart/ +%{tde_bindir}/kchart +%{tde_libdir}/libkchart*.so.* +%{tde_libdir}/libkdeinit_kchart.so +%{tde_tdelibdir}/*kchart*.* +%{tde_datadir}/apps/kchart/ +%{tde_datadir}/services/kchart*.desktop +%{tde_tdeappdir}/*kchart.desktop + +%files kformula +%defattr(-,root,root,-) +%lang(en) %{tde_tdedocdir}/HTML/en/kformula/ +%{tde_bindir}/kformula +%{tde_libdir}/libkdeinit_kformula.so +%{tde_tdelibdir}/*kformula*.* +%{tde_datadir}/apps/kformula/ +%{tde_datadir}/services/kformula*.desktop +%{tde_tdeappdir}/*kformula.desktop + +%files kivio +%defattr(-,root,root,-) +%lang(en) %{tde_tdedocdir}/HTML/en/kivio/ +%{tde_bindir}/kivio +%{tde_libdir}/libkdeinit_kivio.so +%{tde_libdir}/libkiviocommon.so.* +%{tde_tdelibdir}/*kivio*.* +%{tde_tdelibdir}/straight_connector.* +%{tde_datadir}/apps/kivio/ +%{tde_datadir}/config.kcfg/kivio.kcfg +%{tde_datadir}/services/kivio*.desktop +%{tde_tdeappdir}/*kivio.desktop + +%files filters +%defattr(-,root,root,-) +%{tde_libdir}/libkwordexportfilters.so.* +%{tde_tdelibdir}/libabiwordexport.* +%{tde_tdelibdir}/libabiwordimport.* +%{tde_tdelibdir}/libamiproexport.* +%{tde_tdelibdir}/libamiproimport.* +%{tde_tdelibdir}/libapplixspreadimport.* +%{tde_tdelibdir}/libapplixwordimport.* +%{tde_tdelibdir}/libasciiexport.* +%{tde_tdelibdir}/libasciiimport.* +%{tde_tdelibdir}/libdbaseimport.* +%{tde_tdelibdir}/libdocbookexport.* +%{tde_tdelibdir}/libexcelimport.* +%{tde_tdelibdir}/libgenerickofilter.* +%{tde_tdelibdir}/libhtmlexport.* +%{tde_tdelibdir}/libhtmlimport.* +%{tde_tdelibdir}/libkarbonepsimport.* +%{tde_tdelibdir}/libkfolatexexport.* +%{tde_tdelibdir}/libkfomathmlexport.* +%{tde_tdelibdir}/libkfomathmlimport.* +%{tde_tdelibdir}/libkfopngexport.* +%{tde_tdelibdir}/libkspreadlatexexport.* +%{tde_tdelibdir}/libkugarnopimport.* +%{tde_tdelibdir}/libkwordkword1dot3import.* +%{tde_tdelibdir}/libkwordlatexexport.* +%{tde_tdelibdir}/libmswriteexport.* +%{tde_tdelibdir}/libmswriteimport.* +%{tde_tdelibdir}/libooimpressexport.* +%{tde_tdelibdir}/libooimpressimport.* +%{tde_tdelibdir}/liboowriterexport.* +%{tde_tdelibdir}/liboowriterimport.* +%{tde_tdelibdir}/libpalmdocexport.* +%{tde_tdelibdir}/libpalmdocimport.* +%{tde_tdelibdir}/libpdfimport.* +%{tde_tdelibdir}/librtfexport.* +%{tde_tdelibdir}/librtfimport.* +%{tde_tdelibdir}/libwmlexport.* +%{tde_tdelibdir}/libwmlimport.* +%{tde_tdelibdir}/libwpexport.* +%{tde_tdelibdir}/libwpimport.* +%{tde_tdelibdir}/libmswordimport.* +%{tde_tdelibdir}/libxsltimport.* +%{tde_tdelibdir}/libxsltexport.* +%{tde_tdelibdir}/libhancomwordimport.* +%{tde_tdelibdir}/libkfosvgexport.* +%{tde_tdelibdir}/liboodrawimport.* +%{tde_tdelibdir}/libolefilter.* +%{tde_datadir}/apps/xsltfilter/ +%{tde_datadir}/services/generic_filter.desktop +%{tde_datadir}/services/ole_powerpoint97_import.desktop +%{tde_datadir}/services/xslt*.desktop +%{tde_datadir}/servicetypes/kofilter*.desktop + +%files kplato +%defattr(-,root,root,-) +%lang(en) %{tde_tdedocdir}/HTML/en/kplato/ +%{tde_bindir}/kplato +%{tde_libdir}/libkdeinit_kplato.so +%{tde_tdelibdir}/kplato.* +%{tde_tdelibdir}/libkplatopart.* +%{tde_datadir}/apps/kplato/ +%{tde_datadir}/services/kplatopart.desktop +%{tde_tdeappdir}/*kplato.desktop + +%files chalk +%defattr(-,root,root,-) +%{tde_bindir}/chalk +%{tde_tdelibdir}/chalkblurfilter.la +%{tde_tdelibdir}/chalkblurfilter.so +%{tde_tdelibdir}/chalkbumpmap.la +%{tde_tdelibdir}/chalkbumpmap.so +%{tde_tdelibdir}/chalkcimg.la +%{tde_tdelibdir}/chalkcimg.so +%{tde_tdelibdir}/chalk_cmyk_* +%{tde_tdelibdir}/chalkcmykplugin.la +%{tde_tdelibdir}/chalkcmykplugin.so +%{tde_tdelibdir}/chalkcolorify.la +%{tde_tdelibdir}/chalkcolorify.so +%{tde_tdelibdir}/chalkcolorrange.la +%{tde_tdelibdir}/chalkcolorrange.so +%{tde_tdelibdir}/chalkcolorsfilters.la +%{tde_tdelibdir}/chalkcolorsfilters.so +%{tde_tdelibdir}/chalkcolorspaceconversion.la +%{tde_tdelibdir}/chalkcolorspaceconversion.so +%{tde_tdelibdir}/chalkconvolutionfilters.la +%{tde_tdelibdir}/chalkconvolutionfilters.so +%{tde_tdelibdir}/chalkdefaultpaintops.la +%{tde_tdelibdir}/chalkdefaultpaintops.so +%{tde_tdelibdir}/chalkdefaulttools.la +%{tde_tdelibdir}/chalkdefaulttools.so +%{tde_tdelibdir}/chalkdropshadow.la +%{tde_tdelibdir}/chalkdropshadow.so +%{tde_tdelibdir}/chalkembossfilter.la +%{tde_tdelibdir}/chalkembossfilter.so +%{tde_tdelibdir}/chalkexample.la +%{tde_tdelibdir}/chalkexample.so +%{tde_tdelibdir}/chalkextensioncolorsfilters.la +%{tde_tdelibdir}/chalkextensioncolorsfilters.so +%{tde_tdelibdir}/chalkfastcolortransfer.la +%{tde_tdelibdir}/chalkfastcolortransfer.so +%{tde_tdelibdir}/chalkfiltersgallery.la +%{tde_tdelibdir}/chalkfiltersgallery.so +%{tde_tdelibdir}/chalk_gray_* +%{tde_tdelibdir}/chalkgrayplugin.la +%{tde_tdelibdir}/chalkgrayplugin.so +%{tde_tdelibdir}/chalkhistogramdocker.la +%{tde_tdelibdir}/chalkhistogramdocker.so +%{tde_tdelibdir}/chalkhistogram.la +%{tde_tdelibdir}/chalkhistogram.so +%{tde_tdelibdir}/chalkimageenhancement.la +%{tde_tdelibdir}/chalkimageenhancement.so +%{tde_tdelibdir}/chalkimagesize.la +%{tde_tdelibdir}/chalkimagesize.so +%{tde_tdelibdir}/chalk.la +%{tde_tdelibdir}/chalklenscorrectionfilter.la +%{tde_tdelibdir}/chalklenscorrectionfilter.so +%{tde_tdelibdir}/chalklevelfilter.la +%{tde_tdelibdir}/chalklevelfilter.so +%{tde_tdelibdir}/chalk_lms_* +%{tde_tdelibdir}/chalkmodifyselection.la +%{tde_tdelibdir}/chalkmodifyselection.so +%{tde_tdelibdir}/chalknoisefilter.la +%{tde_tdelibdir}/chalknoisefilter.so +%{tde_tdelibdir}/chalkoilpaintfilter.la +%{tde_tdelibdir}/chalkoilpaintfilter.so +%{tde_tdelibdir}/chalkpixelizefilter.la +%{tde_tdelibdir}/chalkpixelizefilter.so +%{tde_tdelibdir}/chalkraindropsfilter.la +%{tde_tdelibdir}/chalkraindropsfilter.so +%{tde_tdelibdir}/chalkrandompickfilter.la +%{tde_tdelibdir}/chalkrandompickfilter.so +%{tde_tdelibdir}/chalk_rgb_* +%{tde_tdelibdir}/chalkrgbplugin.la +%{tde_tdelibdir}/chalkrgbplugin.so +%{tde_tdelibdir}/chalkrotateimage.la +%{tde_tdelibdir}/chalkrotateimage.so +%{tde_tdelibdir}/chalkroundcornersfilter.la +%{tde_tdelibdir}/chalkroundcornersfilter.so +%{tde_tdelibdir}/chalkselectiontools.la +%{tde_tdelibdir}/chalkselectiontools.so +%{tde_tdelibdir}/chalkselectopaque.la +%{tde_tdelibdir}/chalkselectopaque.so +%{tde_tdelibdir}/chalkseparatechannels.la +%{tde_tdelibdir}/chalkseparatechannels.so +%{tde_tdelibdir}/chalkshearimage.la +%{tde_tdelibdir}/chalkshearimage.so +%{tde_tdelibdir}/chalksmalltilesfilter.la +%{tde_tdelibdir}/chalksmalltilesfilter.so +%{tde_tdelibdir}/chalk.so +%{tde_tdelibdir}/chalkscreenshot.la +%{tde_tdelibdir}/chalkscreenshot.so +%{tde_tdelibdir}/chalksobelfilter.la +%{tde_tdelibdir}/chalksobelfilter.so +%{tde_tdelibdir}/chalksubstrate.la +%{tde_tdelibdir}/chalksubstrate.so +%{tde_tdelibdir}/chalktoolcrop.la +%{tde_tdelibdir}/chalktoolcrop.so +%{tde_tdelibdir}/chalktoolcurves.la +%{tde_tdelibdir}/chalktoolcurves.so +%{tde_tdelibdir}/chalktoolfilter.la +%{tde_tdelibdir}/chalktoolfilter.so +%{tde_tdelibdir}/chalktoolperspectivegrid.la +%{tde_tdelibdir}/chalktoolperspectivegrid.so +%{tde_tdelibdir}/chalktoolperspectivetransform.la +%{tde_tdelibdir}/chalktoolperspectivetransform.so +%{tde_tdelibdir}/chalktoolpolygon.la +%{tde_tdelibdir}/chalktoolpolygon.so +%{tde_tdelibdir}/chalktoolpolyline.la +%{tde_tdelibdir}/chalktoolpolyline.so +%{tde_tdelibdir}/chalktoolselectsimilar.la +%{tde_tdelibdir}/chalktoolselectsimilar.so +%{tde_tdelibdir}/chalktoolstar.la +%{tde_tdelibdir}/chalktoolstar.so +%{tde_tdelibdir}/chalktooltransform.la +%{tde_tdelibdir}/chalktooltransform.so +%{tde_tdelibdir}/chalkunsharpfilter.la +%{tde_tdelibdir}/chalkunsharpfilter.so +%{tde_tdelibdir}/chalkwavefilter.la +%{tde_tdelibdir}/chalkwavefilter.so +%{tde_tdelibdir}/chalkwetplugin.la +%{tde_tdelibdir}/chalkwetplugin.so +%{tde_tdelibdir}/chalk_ycbcr_* +%{tde_tdelibdir}/libchalkgmagickexport.la +%{tde_tdelibdir}/libchalkgmagickexport.so +%{tde_tdelibdir}/libchalkgmagickimport.la +%{tde_tdelibdir}/libchalkgmagickimport.so +%{tde_tdelibdir}/libchalkjpegexport.la +%{tde_tdelibdir}/libchalkjpegexport.so +%{tde_tdelibdir}/libchalkjpegimport.la +%{tde_tdelibdir}/libchalkjpegimport.so +%{tde_tdelibdir}/libchalk_openexr_export.la +%{tde_tdelibdir}/libchalk_openexr_export.so +%{tde_tdelibdir}/libchalk_openexr_import.la +%{tde_tdelibdir}/libchalk_openexr_import.so +%{tde_tdelibdir}/libchalkpart.la +%{tde_tdelibdir}/libchalkpart.so +%{tde_tdelibdir}/libchalkpdfimport.la +%{tde_tdelibdir}/libchalkpdfimport.so +%{tde_tdelibdir}/libchalkpngexport.la +%{tde_tdelibdir}/libchalkpngexport.so +%{tde_tdelibdir}/libchalkpngimport.la +%{tde_tdelibdir}/libchalkpngimport.so +%{tde_tdelibdir}/libchalk_raw_import.la +%{tde_tdelibdir}/libchalk_raw_import.so +%{tde_tdelibdir}/libchalktiffexport.la +%{tde_tdelibdir}/libchalktiffexport.so +%{tde_tdelibdir}/libchalktiffimport.la +%{tde_tdelibdir}/libchalktiffimport.so +%{tde_libdir}/libkdeinit_chalk.so +%{tde_libdir}/libchalk_cmyk_*.so.* +%{tde_libdir}/libchalkcolor.so.* +%{tde_libdir}/libchalkcommon.so.* +%{tde_libdir}/libchalkgrayscale.so.* +%{tde_libdir}/libchalk_gray_*.so.* +%{tde_libdir}/libchalkimage.so.* +%{tde_libdir}/libchalk_lms_*.so.* +%{tde_libdir}/libchalk_rgb_*.so.* +%{tde_libdir}/libchalkrgb.so.* +%{tde_libdir}/libchalkui.so.* +%{tde_libdir}/libchalk_ycbcr_*.so.* +%if 0%{?with_kross} > 0 +%{tde_tdelibdir}/krosschalkcore.la +%{tde_tdelibdir}/krosschalkcore.so +%{tde_tdelibdir}/chalkscripting.la +%{tde_tdelibdir}/chalkscripting.so +%{tde_libdir}/libchalkscripting.so.* +%endif + +%files chalk-data +%{tde_tdeappdir}/chalk.desktop +%{tde_datadir}/applnk/.hidden/chalk_*.desktop +%{tde_datadir}/apps/konqueror/servicemenus/chalk_konqi.desktop +%{tde_datadir}/apps/chalk +%{tde_datadir}/apps/chalkplugins +%lang(en) %{tde_tdedocdir}/HTML/en/chalk +%{tde_datadir}/icons/hicolor/*/apps/chalk.png +%{tde_datadir}/services/chalk*.desktop +%{tde_datadir}/servicetypes/chalk*.desktop + + +%changelog +* Sun Aug 05 2012 Francois Andriot <francois.andriot@free.fr> - 1.6.3-6 +- Switch to 3.5.13-sru branch diff --git a/redhat/applications/koffice/trinity-koffice-3.5.13.spec b/redhat/applications/koffice/trinity-koffice-3.5.13.spec new file mode 100644 index 000000000..996f785d1 --- /dev/null +++ b/redhat/applications/koffice/trinity-koffice-3.5.13.spec @@ -0,0 +1,1080 @@ +# Default version for this component +%define kdecomp koffice + +# 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 building 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_mandir %{tde_datadir}/man +%define tde_appdir %{tde_datadir}/applications + +%define tde_tdeappdir %{tde_appdir}/kde +%define tde_tdedocdir %{tde_docdir}/kde +%define tde_tdeincludedir %{tde_includedir}/kde +%define tde_tdelibdir %{tde_libdir}/trinity + +%define _docdir %{tde_docdir} + +# Disable Kross support for RHEL <= 5 (python is too old) +%if 0%{?fedora} > 0 || 0%{?rhel} >= 6 +%define with_kross 1 +%endif + +%if 0%{?fedora} >= 17 +%define with_ruby 0 +%else +%define with_ruby 1 +%endif + +# Ruby 1.9 includes are located in strance directories ... (taken from ruby 1.9 spec file) +%global _normalized_cpu %(echo %{_target_cpu} | sed 's/^ppc/powerpc/;s/i.86/i386/;s/sparcv./sparc/;s/armv.*/arm/') + + +Name: trinity-%{kdecomp} +Summary: An integrated office suite +Version: 1.6.3 +Release: 5%{?dist}%{?_variant} + +Group: Applications/Productivity +License: GPLv2+ + +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: %{kdecomp}-3.5.13.tar.gz +Source100: koshell.png + +# [lib/kross/python/scripts/RestrictedPython/Utilities.py] Syntax error [Bug #679] +Patch2: koffice-3.5.13-kross_utilities_syntax.patch +# [koffice/chalk] Fix GraphicksMagick 1.3 support [Bug #353] +Patch3: koffice-3.5.13-chalk_gmagick.patch +# [koffice/kexi] Various patches for kexi, found on the web [Bug # 777] +Patch5: kexi-fix-possible-crash-in-buffered-mode-sqlite-2.patch +Patch6: kexi-hide_hourglass-1.1.3-2.patch +Patch7: kexi-fix-support-for-boolean-types-in-migration.patch +Patch8: kexi-mysql_migrate_long_text-1.1.3.patch +Patch9: kexi-fix-support-for-boolean-types.patch +Patch10: kexi-thoushand_objects_support-1.1.3-2.patch +Patch11: kexi-fp_expressions-1.1.3.patch +# [koffice] Fix compilation with GCC 4.7 [Bug #958] +Patch12: koffice-3.5.13-fix_gcc47_compilation.patch +# [koffice] Fix compilation with Ruby 1.9 [Bug #735] +Patch13: koffice-3.5.13-fix_ruby_1.9.patch +# [koffice] Fix compilation with libpng [Bug #603] +Patch14: koffice-3.5.13-fix_libpng.patch +# [koffice] Fix FTBFS due to missing libraries [Bug #657] [Commit #5c69fcd3] +# Clean up lib paths in LDFLAGS - moved to LIBADD +# For KWord and and KPresenter added linking kspell2 +# For KSpread added linking kutils +Patch15: koffice-3.5.13-fix_bug_657.patch +# [koffice] Fix accidental conversions of binary files [Bug #1033] [Commit #dbe89307] +Source1: koffice-3.5.13-damaged_binary_files.tar.gz +# [koffice] Missing LDFLAGS cause FTBFS on Mageia / Mandriva +Patch16: koffice-3.5.13-missing_ldflags.patch + +# BuildRequires: world-devel ;) +BuildRequires: trinity-tdelibs-devel +BuildRequires: trinity-tdegraphics-devel +BuildRequires: automake libtool +BuildRequires: freetype-devel +BuildRequires: fontconfig-devel +BuildRequires: libart_lgpl-devel +BuildRequires: libpng-devel +BuildRequires: libtiff-devel +BuildRequires: libjpeg-devel +BuildRequires: ImageMagick-devel +BuildRequires: bzip2-devel +BuildRequires: zlib-devel +BuildRequires: openssl-devel +BuildRequires: python-devel +BuildRequires: pcre-devel +BuildRequires: lcms-devel +BuildRequires: gettext-devel +BuildRequires: mysql-devel +BuildRequires: desktop-file-utils +BuildRequires: perl +BuildRequires: doxygen +BuildRequires: aspell-devel +BuildRequires: libxslt-devel +BuildRequires: OpenEXR-devel +BuildRequires: libexif-devel +BuildRequires: readline-devel +%if 0%{?with_ruby} +BuildRequires: ruby ruby-devel >= 1.8.2 +%endif +BuildRequires: libpaper-devel +BuildRequires: libutempter-devel +BuildRequires: GraphicsMagick-devel >= 1.1.0 + +#%if 0%{?rhel} >= 6 || 0%{?fedora} >= 15 +#BuildRequires: poppler-qt-devel >= 0.1.2 +#%else +#BuildRequires: trinity-poppler-qt3-devel >= 0.1.2 +#%endif + +BuildRequires: trinity-tdegraphics-libpoppler-tqt-devel + +# These libraries are either too old or too recent on distributions ! +# We always provide our versions with TDE... +BuildRequires: trinity-libwpd-devel + +%if 0%{?mgaversion} || 0%{?mdkversion} +BuildRequires: %{_lib}mesagl1-devel +BuildRequires: %{_lib}mesaglu1-devel +BuildRequires: %{_lib}xi-devel +BuildRequires: wv2-devel +BuildRequires: libpqxx-devel +%else +BuildRequires: libGL-devel +BuildRequires: libGLU-devel +BuildRequires: libXi-devel +BuildRequires: trinity-wv2-devel +BuildRequires: trinity-libpqxx-devel +%endif + +%description +KOffice is an integrated office suite. + +%package suite +Summary: An integrated office suite +Group: Applications/Productivity +Obsoletes: %{name} <= %{version}-%{release} +Obsoletes: %{name}-i18n < 4:%{version} +Requires: %{name}-core = %{version}-%{release} +Requires: %{name}-kword = %{version}-%{release} +Requires: %{name}-kspread = %{version}-%{release} +Requires: %{name}-kpresenter = %{version}-%{release} +Requires: %{name}-kivio = %{version}-%{release} +Requires: %{name}-karbon = %{version}-%{release} +Requires: %{name}-kugar = %{version}-%{release} +Requires: %{name}-kexi = %{version}-%{release} +Requires: %{name}-kexi-driver-mysql = %{version}-%{release} +Requires: %{name}-kexi-driver-pgsql = %{version}-%{release} +Requires: %{name}-kchart = %{version}-%{release} +Requires: %{name}-kformula = %{version}-%{release} +Requires: %{name}-filters = %{version}-%{release} +Requires: %{name}-kplato = %{version}-%{release} +Requires: %{name}-chalk = %{version}-%{release} + +%description suite +KOffice is an integrated office suite. + +%package core +Summary: Core support files for %{name} +Group: Applications/Productivity +Requires: %{name}-libs = %{version}-%{release} +Requires: perl +Conflicts: koffice-i18n < %{version} +%description core +%{summary}. + +%package libs +Summary: Runtime libraries for %{name} +Group: System Environment/Libraries +Conflicts: %{name} <= %{version}-%{release} +Requires: trinity-kdelibs +License: LGPLv2+ +%description libs +%{summary}. + +%package devel +Summary: Development files for %{name} +Group: Development/Libraries +Requires: %{name}-libs = %{version}-%{release} +License: LGPLv2+ +%description devel +%{summary}. + +%package kword +Summary: A frame-based word processor capable of professional standard documents +Group: Applications/Productivity +Requires: %{name}-core = %{version}-%{release} +%description kword +%{summary}. + +%package kspread +Summary: A powerful spreadsheet application +Group: Applications/Productivity +Requires: %{name}-core = %{version}-%{release} +%description kspread +%{summary}. + +%package kpresenter +Summary: A full-featured presentation program +Group: Applications/Productivity +Requires: %{name}-core = %{version}-%{release} +%description kpresenter +%{summary}. + +%package kivio +Summary: A flowcharting application +Group: Applications/Productivity +Requires: %{name}-core = %{version}-%{release} +Obsoletes: kivio < %{version}-%{release} +%description kivio +%{summary}. + +%package karbon +Summary: A vector drawing application +Group: Applications/Productivity +Requires: %{name}-core = %{version}-%{release} +%description karbon +%{summary}. + +%package kugar +Summary: A tool for generating business quality reports +Group: Applications/Productivity +Requires: %{name}-core = %{version}-%{release} +%description kugar +%{summary}. + +%package kexi +Summary: An integrated environment for managing data +Group: Applications/Productivity +Requires: %{name}-core = %{version}-%{release} +%description kexi +%{summary}. +For additional database drivers take a look at %{name}-kexi-driver-* + +%package kexi-driver-mysql +Summary: Mysql-driver for kexi +Group: Applications/Productivity +Requires: %{name}-kexi = %{version}-%{release} +%description kexi-driver-mysql +%{summary}. + +%package kexi-driver-pgsql +Summary: Postgresql driver for kexi +Group: Applications/Productivity +Requires: %{name}-kexi = %{version}-%{release} +%description kexi-driver-pgsql +%{summary}. + +%package kchart +Summary: An integrated graph and chart drawing tool +Group: Applications/Productivity +Requires: %{name}-core = %{version}-%{release} +%description kchart +%{summary}. + +%package kformula +Summary: A powerful formula editor +Group: Applications/Productivity +Requires: %{name}-core = %{version}-%{release} +Requires: lyx-cmex10-fonts +%if 0%{?fedora} >= 11 || 0%{?rhel} >= 6 +Requires: dejavu-lgc-sans-fonts +%else +Requires: dejavu-lgc-fonts +%endif +%description kformula +%{summary}. + +%package filters +Summary: Import and Export Filters for KOffice +Group: Applications/Productivity +Requires: %{name}-core = %{version}-%{release} +%description filters +%{summary}. + +%package kplato +Summary: An integrated project management and planning tool +Group: Applications/Productivity +Requires: %{name}-core = %{version}-%{release} +%description kplato +%{summary}. + +%package chalk +Summary: pixel-based image manipulation program for the TDE Office Suite [Trinity] +Group: Applications/Productivity +Requires: %{name}-core = %{version}-%{release} +Requires: %{name}-chalk-data = %{version}-%{release} +Requires: %{name}-filters +%description chalk +Chalk is a painting and image editing application for KOffice. Chalk contains +both ease-of-use and fun features like guided painting. + +This package is part of the TDE Office Suite. + +%package chalk-data +Summary: data files for Chalk painting program [Trinity] +Group: Applications/Productivity +%description chalk-data +This package contains architecture-independent data files for Chalk, +the painting program shipped with the TDE Office Suite. + +See the chalk package for further information. + +This package is part of the TDE Office Suite. + + + +%prep +%setup -q -n applications/%{kdecomp} +%setup -q -n applications/%{kdecomp} -a 1 + +#patch0 -p1 +#patch1 -p1 +%patch2 -p1 +%patch3 -p1 +%patch5 -p0 +%patch6 -p0 +%patch7 -p0 +%patch8 -p0 +%patch9 -p0 +%patch10 -p0 +%patch11 -p0 +%patch12 -p1 -b .gcc47 +%if 0%{?fedora} >= 17 +%patch13 -p1 -b .ruby +%patch14 -p1 -b .libpng +%endif +%patch15 -p1 +%patch16 -p1 + +# use LGC variant instead +%__sed -i.dejavu-lgc \ + -e 's|DejaVu Sans|DejaVu LGC Sans|' \ + -e 's|dejavu sans|dejavu lgc sans|' \ + lib/kformula/{contextstyle,fontstyle,symboltable}.cc + +# Ugly hack to modify TQT include directory inside autoconf files. +# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 ! +%__sed -i admin/acinclude.m4.in \ + -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \ + -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g" + +%__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in" +%__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh" +%__make -f "admin/Makefile.common" + + +%build +unset QTDIR || : ; . /etc/profile.d/qt.sh +export PATH="%{tde_bindir}:${PATH}" +export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}" +export PKG_CONFIG_PATH="%{tde_libdir}/pkgconfig:${PKG_CONFIG_PATH}" + +%configure \ + --prefix=%{tde_prefix} \ + --exec-prefix=%{tde_prefix} \ + --bindir=%{tde_bindir} \ + --datadir=%{tde_datadir} \ + --libdir=%{tde_libdir} \ + --mandir=%{tde_mandir} \ + --includedir=%{tde_tdeincludedir} \ + --disable-rpath --disable-dependency-tracking \ + --enable-new-ldflags \ + --disable-debug --disable-warnings \ + --with-pic --enable-shared --disable-static \ + --with-extra-libs=%{tde_libdir} \ + --enable-final \ + --with-extra-includes=%{tde_includedir}/tqt \ + --enable-closure \ + --disable-kexi-macros \ + --with-pqxx-includes=%{tde_includedir} \ + --with-pqxx-libraries=%{tde_libdir} \ +%if 0%{?with_kross} > 0 + --enable-scripting \ +%else + --disable-scripting \ +%endif + +%__make %{?_smp_mflags} + + +%install +%__rm -rf %{buildroot} +%__make install DESTDIR=%{buildroot} + +[ ! -f %{buildroot}%{tde_datadir}/icons/hicolor/48x48/apps/koshell.png ] && \ +%__install -p -D -m644 %{SOURCE100} %{buildroot}%{tde_datadir}/icons/hicolor/48x48/apps/koshell.png + +# Replace absolute symlinks with relative ones +pushd %{buildroot}%{tde_tdedocdir}/HTML +for lang in *; do + if [ -d $lang ]; then + pushd $lang + for i in */*; do + [ -d $i -a -L $i/common ] && rm -f $i/common && ln -sf ../../common $i/common + done + popd + fi +done +popd + +desktop-file-install \ + --dir=%{buildroot}%{tde_tdeappdir} \ + --vendor="" \ + --delete-original \ + %{buildroot}%{tde_datadir}/applnk/Office/*.desktop + +## Hack-in NoDisplay=True (http://bugzilla.redhat.com/245061) +## until http://bugzilla.redhat.com/245190 is fixed +for desktop_file in %{buildroot}%{tde_datadir}/applnk/.hidden/*.desktop ; do + grep "^NoDisplay=" ${desktop_file} || \ + echo "NoDisplay=True" >> ${desktop_file} +done + +## unpackaged files +# fonts +rm -rfv %{buildroot}%{tde_datadir}/apps/kformula/fonts/ +# libtool archives +rm -f %{buildroot}%{tde_libdir}/lib*.la +# shouldn't these be in koffice-l10n? +rm -f %{buildroot}%{tde_datadir}/locale/pl/LC_MESSAGES/kexi_{add,delete}_column_gui_transl_pl.sh +# -devel symlinks to nuke +rm -f %{buildroot}%{tde_libdir}/lib*common.so +rm -f %{buildroot}%{tde_libdir}/lib*filters.so +rm -f %{buildroot}%{tde_libdir}/lib*private.so +rm -f %{buildroot}%{tde_libdir}/libkarbon*.so +rm -f %{buildroot}%{tde_libdir}/libkchart*.so +rm -f %{buildroot}%{tde_libdir}/libkexi*.so +rm -f %{buildroot}%{tde_libdir}/libkisexiv2.so +rm -f %{buildroot}%{tde_libdir}/libkformdesigner.so +rm -f %{buildroot}%{tde_libdir}/libkplato*.so +rm -f %{buildroot}%{tde_libdir}/libkpresenter*.so +rm -f %{buildroot}%{tde_libdir}/libkword*.so +rm -f %{buildroot}%{tde_libdir}/libkross*.so +rm -f %{buildroot}%{tde_libdir}/libkugar*.so + + +%clean +%__rm -rf %{buildroot} + +%post core +touch --no-create %{tde_datadir}/icons/crystalsvg &> /dev/null || : +touch --no-create %{tde_datadir}/icons/hicolor &> /dev/null || : +touch --no-create %{tde_datadir}/icons/locolor &> /dev/null || : + +%postun core +if [ $1 -eq 0 ]; then + gtk-update-icon-cache %{tde_datadir}/icons/crystalsvg &> /dev/null || : + gtk-update-icon-cache %{tde_datadir}/icons/hicolor &> /dev/null || : + gtk-update-icon-cache %{tde_datadir}/icons/locolor &> /dev/null || : + update-desktop-database -q &> /dev/null ||: +fi + +%posttrans core +gtk-update-icon-cache %{tde_datadir}/icons/crystalsvg &> /dev/null || : +gtk-update-icon-cache %{tde_datadir}/icons/hicolor &> /dev/null || : +gtk-update-icon-cache %{tde_datadir}/icons/locolor &> /dev/null || : +update-desktop-database -q &> /dev/null ||: + +%post karbon +/sbin/ldconfig || : + +%postun karbon +/sbin/ldconfig || : + +%post kword +/sbin/ldconfig || : + +%postun kword +/sbin/ldconfig || : + +%posttrans kword +update-desktop-database -q &> /dev/null ||: + +%post kpresenter +/sbin/ldconfig || : + +%postun kpresenter +/sbin/ldconfig || : + +%posttrans kpresenter +update-desktop-database -q &> /dev/null ||: + +%post kugar +/sbin/ldconfig || : + +%postun kugar +/sbin/ldconfig || : + +%posttrans kugar +update-desktop-database -q &> /dev/null ||: + +%post kexi +/sbin/ldconfig || : + +%postun kexi +/sbin/ldconfig || : + +%posttrans kexi +update-desktop-database -q &> /dev/null ||: + +%post kchart +/sbin/ldconfig || : + +%postun kchart +/sbin/ldconfig || : + +%posttrans kchart +update-desktop-database -q &> /dev/null ||: + +%post filters +/sbin/ldconfig || : + +%postun filters +/sbin/ldconfig || : + +%post libs +/sbin/ldconfig || : + +%postun libs +/sbin/ldconfig || : + +%post chalk +/sbin/ldconfig || : + +%postun chalk +/sbin/ldconfig || : + +%posttrans chalk +update-desktop-database -q &> /dev/null ||: + +%files suite +#empty => virtual package + +%files core +%defattr(-,root,root,-) +%doc AUTHORS COPYING README +%{tde_bindir}/koshell +%{tde_bindir}/kthesaurus +%{tde_bindir}/koconverter +%{tde_libdir}/libkdeinit_koshell.so +%{tde_libdir}/libkdeinit_kthesaurus.so +%{tde_tdelibdir}/kfile_koffice.* +%{tde_tdelibdir}/kfile_ooo.* +%{tde_tdelibdir}/kfile_abiword.* +%{tde_tdelibdir}/kfile_gnumeric.* +%{tde_tdelibdir}/kodocinfopropspage.* +%{tde_tdelibdir}/kofficescan.* +%{tde_tdelibdir}/kofficethumbnail.* +%{tde_tdelibdir}/koshell.* +%{tde_tdelibdir}/kthesaurus.* +%{tde_tdelibdir}/kwmailmerge_classic.* +%{tde_tdelibdir}/kwmailmerge_kabc.* +%{tde_tdelibdir}/kwmailmerge_qtsqldb_power.* +%{tde_tdelibdir}/kwmailmerge_qtsqldb.* +%{tde_tdelibdir}/libkounavailpart.* +%{tde_tdelibdir}/libkprkword.* +%{tde_tdelibdir}/libthesaurustool.* +%{tde_tdelibdir}/clipartthumbnail.* +%{tde_datadir}/apps/koffice/ +%{tde_datadir}/apps/konqueror/servicemenus/* +%{tde_datadir}/apps/koshell/ +%{tde_datadir}/apps/thesaurus/ +%{tde_datadir}/config.kcfg/koshell.kcfg +%{tde_tdedocdir}/HTML/en/koffice/ +%{tde_tdedocdir}/HTML/en/koshell/ +%{tde_tdedocdir}/HTML/en/thesaurus/ +%{tde_datadir}/icons/crystalsvg/*/*/* +%{tde_datadir}/icons/hicolor/*/*/* +%{tde_datadir}/icons/locolor/*/*/* +%{tde_datadir}/services/clipartthumbnail.desktop +%{tde_datadir}/services/kfile*.desktop +%{tde_datadir}/services/kwmailmerge*.desktop +%{tde_datadir}/services/kodocinfopropspage.desktop +%{tde_datadir}/services/kofficethumbnail.desktop +%{tde_datadir}/services/kounavail.desktop +%{tde_datadir}/services/kprkword.desktop +%{tde_datadir}/services/thesaurustool.desktop +%{tde_datadir}/servicetypes/kochart.desktop +%{tde_datadir}/servicetypes/kofficepart.desktop +%{tde_datadir}/servicetypes/koplugin.desktop +%{tde_datadir}/servicetypes/kwmailmerge.desktop +%{tde_datadir}/servicetypes/widgetfactory.desktop +%{tde_tdeappdir}/*koffice.desktop +%{tde_tdeappdir}/*KThesaurus.desktop +%{tde_tdeappdir}/*koshell.desktop +%{tde_datadir}/apps/kofficewidgets/ +%if 0%{?with_kross} > 0 +%{tde_datadir}/apps/kross/ +%{tde_tdelibdir}/krosspython.* +%if 0%{?with_ruby} +%{tde_tdelibdir}/krossruby.* +%endif +%endif + +%files libs +%defattr(-,root,root,-) +%doc COPYING.LIB +#_libdir/libk*common.so.* +%{tde_libdir}/libkarboncommon.so.* +%{tde_libdir}/libkspreadcommon.so.* +%{tde_libdir}/libkdchart.so.* +%{tde_libdir}/libkochart.so.* +%{tde_libdir}/libkofficecore.so.* +%{tde_libdir}/libkofficeui.so.* +%{tde_libdir}/libkotext.so.* +%{tde_libdir}/libkowmf.so.* +%{tde_libdir}/libkopainter.so.* +%{tde_libdir}/libkstore.so.* +%{tde_libdir}/libkwmailmerge_interface.so.* +%{tde_libdir}/libkwmf.so.* +%{tde_libdir}/libkformulalib.so.* +%{tde_libdir}/libkopalette.so.* +%{tde_libdir}/libkoproperty.so.* +%if 0%{?with_kross} > 0 +%{tde_libdir}/libkrossapi.so.* +%{tde_libdir}/libkrossmain.so.* +%endif + +%files devel +%defattr(-,root,root,-) +%lang(en) %{tde_tdedocdir}/HTML/en/koffice-apidocs/ +%{tde_includedir}/* +# FIXME: include only shlib symlinks we know/want to export +%{tde_libdir}/lib*.so +%exclude %{tde_libdir}/libkdeinit_*.so +%exclude %{tde_libdir}/libkudesignercore.so + +%files kword +%defattr(-,root,root,-) +%lang(en) %{tde_tdedocdir}/HTML/en/kword/ +%{tde_bindir}/kword +%{tde_libdir}/libkdeinit_kword.so +%{tde_libdir}/libkwordprivate.so.* +%{tde_tdelibdir}/libkwordpart.* +%{tde_tdelibdir}/kword.* +%{tde_datadir}/apps/kword/ +%{tde_datadir}/services/kword*.desktop +%{tde_datadir}/services/kwserial*.desktop +%{tde_datadir}/templates/TextDocument.desktop +%{tde_datadir}/templates/.source/TextDocument.kwt +%{tde_tdeappdir}/*kword.desktop + +%files kspread +%defattr(-,root,root,-) +%lang(en) %{tde_tdedocdir}/HTML/en/kspread/ +%{tde_bindir}/kspread +%{tde_libdir}/libkdeinit_kspread.so +%{tde_tdelibdir}/kspread.* +%{tde_tdelibdir}/libkspreadpart.* +%{tde_tdelibdir}/kwmailmerge_kspread.* +%{tde_tdelibdir}/libcsvexport.* +%{tde_tdelibdir}/libcsvimport.* +%{tde_tdelibdir}/libgnumericexport.* +%{tde_tdelibdir}/libgnumericimport.* +%{tde_tdelibdir}/libkspreadhtmlexport.* +%{tde_tdelibdir}/libkspreadinsertcalendar.* +%{tde_tdelibdir}/libopencalcexport.* +%{tde_tdelibdir}/libopencalcimport.* +%{tde_tdelibdir}/libqproimport.* +%{tde_datadir}/apps/kspread/ +%{tde_datadir}/services/kspread*.desktop +%{tde_datadir}/templates/SpreadSheet.desktop +%{tde_datadir}/templates/.source/SpreadSheet.kst +%{tde_tdeappdir}/*kspread.desktop +%if 0%{?with_kross} > 0 +%{tde_tdelibdir}/kspreadscripting.* +%{tde_tdelibdir}/krosskspreadcore.* +%endif + +%files kpresenter +%defattr(-,root,root,-) +%lang(en) %{tde_tdedocdir}/HTML/en/kpresenter/ +%{tde_bindir}/kpresenter +%{tde_bindir}/kprconverter.pl +%{tde_libdir}/libkdeinit_kpresenter.so +%{tde_libdir}/libkpresenterimageexport.so.* +%{tde_libdir}/libkpresenterprivate.so.* +%{tde_tdelibdir}/*kpresenter*.* +%{tde_datadir}/apps/kpresenter/ +%{tde_datadir}/services/kpresenter*.desktop +%{tde_datadir}/templates/Presentation.desktop +%{tde_datadir}/templates/.source/Presentation.kpt +%{tde_tdeappdir}/*kpresenter.desktop + +%files karbon +%defattr(-,root,root,-) +%lang(en) %{tde_tdedocdir}/HTML/en/karbon/ +%{tde_bindir}/karbon +%{tde_libdir}/libkdeinit_karbon.so +%{tde_tdelibdir}/*karbon*.* +%{tde_tdelibdir}/libwmfexport.* +%{tde_tdelibdir}/libwmfimport.* +%{tde_datadir}/apps/karbon/ +%{tde_datadir}/services/karbon* +%{tde_datadir}/servicetypes/karbon_module.desktop +%{tde_datadir}/templates/Illustration.desktop +%{tde_datadir}/templates/.source/Illustration.karbon +%{tde_tdeappdir}/*karbon.desktop + +%files kugar +%defattr(-,root,root,-) +%lang(en) %{tde_tdedocdir}/HTML/en/kugar/ +%{tde_bindir}/kugar +%{tde_bindir}/kudesigner +%{tde_libdir}/libkdeinit_kugar.so +%{tde_libdir}/libkdeinit_kudesigner.so +%{tde_libdir}/libkugarlib.so.* +%{tde_libdir}/libkudesignercore.so +%{tde_tdelibdir}/kudesigner.* +%{tde_tdelibdir}/kugar.* +%{tde_tdelibdir}/libkudesignerpart.* +%{tde_tdelibdir}/libkugarpart.* +%{tde_datadir}/apps/kudesigner/ +%{tde_datadir}/apps/kugar/ +%{tde_datadir}/services/kugar*.desktop +%{tde_tdeappdir}/*kugar.desktop +%{tde_tdeappdir}/*kudesigner.desktop + +%files kexi +%defattr(-,root,root,-) +%lang(en) %{tde_tdedocdir}/HTML/en/kexi/ +%{tde_bindir}/kexi* +%{tde_bindir}/ksqlite* +%{tde_libdir}/libkdeinit_kexi.so +%{tde_libdir}/libkexi*.so.* +%{tde_libdir}/libkformdesigner.so.* +%{tde_tdelibdir}/kformdesigner_*.* +%{tde_tdelibdir}/kexidb_sqlite2driver.* +%{tde_tdelibdir}/kexidb_sqlite3driver.* +%{tde_tdelibdir}/kexihandler_*.* +%{tde_tdelibdir}/kexi.* +# moved here to workaround bug #394101, alternative is to move libkexi(db|dbparser|utils) to -libs) +%{tde_tdelibdir}/libkspreadkexiimport.* +%{tde_datadir}/config/kexirc +%{tde_datadir}/config/magic/kexi.magic +%{tde_datadir}/mimelnk/application/* +%{tde_datadir}/servicetypes/kexi*.desktop +%{tde_datadir}/services/kexi/ +%{tde_datadir}/apps/kexi/ +%{tde_datadir}/services/kformdesigner/* +%{tde_tdeappdir}/*kexi.desktop +%{tde_datadir}/services/kexidb_sqlite*driver.desktop +%if 0%{?with_kross} > 0 +%{tde_bindir}/krossrunner +%{tde_tdelibdir}/krosskexiapp.* +%{tde_tdelibdir}/krosskexidb.* +%endif + +%files kexi-driver-mysql +%defattr(-,root,root,-) +%{tde_tdelibdir}/kexidb_mysqldriver.* +%{tde_tdelibdir}/keximigrate_mysql.* +%{tde_datadir}/services/keximigrate_mysql.desktop +%{tde_datadir}/services/kexidb_mysqldriver.desktop + +%files kexi-driver-pgsql +%defattr(-,root,root,-) +%{tde_tdelibdir}/kexidb_pqxxsqldriver.* +%{tde_tdelibdir}/keximigrate_pqxx.* +%{tde_datadir}/services/kexidb_pqxxsqldriver.desktop +%{tde_datadir}/services/keximigrate_pqxx.desktop + +%files kchart +%defattr(-,root,root,-) +%lang(en) %{tde_tdedocdir}/HTML/en/kchart/ +%{tde_bindir}/kchart +%{tde_libdir}/libkchart*.so.* +%{tde_libdir}/libkdeinit_kchart.so +%{tde_tdelibdir}/*kchart*.* +%{tde_datadir}/apps/kchart/ +%{tde_datadir}/services/kchart*.desktop +%{tde_tdeappdir}/*kchart.desktop + +%files kformula +%defattr(-,root,root,-) +%lang(en) %{tde_tdedocdir}/HTML/en/kformula/ +%{tde_bindir}/kformula +%{tde_libdir}/libkdeinit_kformula.so +%{tde_tdelibdir}/*kformula*.* +%{tde_datadir}/apps/kformula/ +%{tde_datadir}/services/kformula*.desktop +%{tde_tdeappdir}/*kformula.desktop + +%files kivio +%defattr(-,root,root,-) +%lang(en) %{tde_tdedocdir}/HTML/en/kivio/ +%{tde_bindir}/kivio +%{tde_libdir}/libkdeinit_kivio.so +%{tde_libdir}/libkiviocommon.so.* +%{tde_tdelibdir}/*kivio*.* +%{tde_tdelibdir}/straight_connector.* +%{tde_datadir}/apps/kivio/ +%{tde_datadir}/config.kcfg/kivio.kcfg +%{tde_datadir}/services/kivio*.desktop +%{tde_tdeappdir}/*kivio.desktop + +%files filters +%defattr(-,root,root,-) +%{tde_libdir}/libkwordexportfilters.so.* +%{tde_tdelibdir}/libabiwordexport.* +%{tde_tdelibdir}/libabiwordimport.* +%{tde_tdelibdir}/libamiproexport.* +%{tde_tdelibdir}/libamiproimport.* +%{tde_tdelibdir}/libapplixspreadimport.* +%{tde_tdelibdir}/libapplixwordimport.* +%{tde_tdelibdir}/libasciiexport.* +%{tde_tdelibdir}/libasciiimport.* +%{tde_tdelibdir}/libdbaseimport.* +%{tde_tdelibdir}/libdocbookexport.* +%{tde_tdelibdir}/libexcelimport.* +%{tde_tdelibdir}/libgenerickofilter.* +%{tde_tdelibdir}/libhtmlexport.* +%{tde_tdelibdir}/libhtmlimport.* +%{tde_tdelibdir}/libkarbonepsimport.* +%{tde_tdelibdir}/libkfolatexexport.* +%{tde_tdelibdir}/libkfomathmlexport.* +%{tde_tdelibdir}/libkfomathmlimport.* +%{tde_tdelibdir}/libkfopngexport.* +%{tde_tdelibdir}/libkspreadlatexexport.* +%{tde_tdelibdir}/libkugarnopimport.* +%{tde_tdelibdir}/libkwordkword1dot3import.* +%{tde_tdelibdir}/libkwordlatexexport.* +%{tde_tdelibdir}/libmswriteexport.* +%{tde_tdelibdir}/libmswriteimport.* +%{tde_tdelibdir}/libooimpressexport.* +%{tde_tdelibdir}/libooimpressimport.* +%{tde_tdelibdir}/liboowriterexport.* +%{tde_tdelibdir}/liboowriterimport.* +%{tde_tdelibdir}/libpalmdocexport.* +%{tde_tdelibdir}/libpalmdocimport.* +%{tde_tdelibdir}/libpdfimport.* +%{tde_tdelibdir}/librtfexport.* +%{tde_tdelibdir}/librtfimport.* +%{tde_tdelibdir}/libwmlexport.* +%{tde_tdelibdir}/libwmlimport.* +%{tde_tdelibdir}/libwpexport.* +%{tde_tdelibdir}/libwpimport.* +%{tde_tdelibdir}/libmswordimport.* +%{tde_tdelibdir}/libxsltimport.* +%{tde_tdelibdir}/libxsltexport.* +%{tde_tdelibdir}/libhancomwordimport.* +%{tde_tdelibdir}/libkfosvgexport.* +%{tde_tdelibdir}/liboodrawimport.* +%{tde_tdelibdir}/libolefilter.* +%{tde_datadir}/apps/xsltfilter/ +%{tde_datadir}/services/generic_filter.desktop +%{tde_datadir}/services/ole_powerpoint97_import.desktop +%{tde_datadir}/services/xslt*.desktop +%{tde_datadir}/servicetypes/kofilter*.desktop + +%files kplato +%defattr(-,root,root,-) +%lang(en) %{tde_tdedocdir}/HTML/en/kplato/ +%{tde_bindir}/kplato +%{tde_libdir}/libkdeinit_kplato.so +%{tde_tdelibdir}/kplato.* +%{tde_tdelibdir}/libkplatopart.* +%{tde_datadir}/apps/kplato/ +%{tde_datadir}/services/kplatopart.desktop +%{tde_tdeappdir}/*kplato.desktop + +%files chalk +%defattr(-,root,root,-) +%{tde_bindir}/chalk +%{tde_tdelibdir}/chalkblurfilter.la +%{tde_tdelibdir}/chalkblurfilter.so +%{tde_tdelibdir}/chalkbumpmap.la +%{tde_tdelibdir}/chalkbumpmap.so +%{tde_tdelibdir}/chalkcimg.la +%{tde_tdelibdir}/chalkcimg.so +%{tde_tdelibdir}/chalk_cmyk_* +%{tde_tdelibdir}/chalkcmykplugin.la +%{tde_tdelibdir}/chalkcmykplugin.so +%{tde_tdelibdir}/chalkcolorify.la +%{tde_tdelibdir}/chalkcolorify.so +%{tde_tdelibdir}/chalkcolorrange.la +%{tde_tdelibdir}/chalkcolorrange.so +%{tde_tdelibdir}/chalkcolorsfilters.la +%{tde_tdelibdir}/chalkcolorsfilters.so +%{tde_tdelibdir}/chalkcolorspaceconversion.la +%{tde_tdelibdir}/chalkcolorspaceconversion.so +%{tde_tdelibdir}/chalkconvolutionfilters.la +%{tde_tdelibdir}/chalkconvolutionfilters.so +%{tde_tdelibdir}/chalkdefaultpaintops.la +%{tde_tdelibdir}/chalkdefaultpaintops.so +%{tde_tdelibdir}/chalkdefaulttools.la +%{tde_tdelibdir}/chalkdefaulttools.so +%{tde_tdelibdir}/chalkdropshadow.la +%{tde_tdelibdir}/chalkdropshadow.so +%{tde_tdelibdir}/chalkembossfilter.la +%{tde_tdelibdir}/chalkembossfilter.so +%{tde_tdelibdir}/chalkexample.la +%{tde_tdelibdir}/chalkexample.so +%{tde_tdelibdir}/chalkextensioncolorsfilters.la +%{tde_tdelibdir}/chalkextensioncolorsfilters.so +%{tde_tdelibdir}/chalkfastcolortransfer.la +%{tde_tdelibdir}/chalkfastcolortransfer.so +%{tde_tdelibdir}/chalkfiltersgallery.la +%{tde_tdelibdir}/chalkfiltersgallery.so +%{tde_tdelibdir}/chalk_gray_* +%{tde_tdelibdir}/chalkgrayplugin.la +%{tde_tdelibdir}/chalkgrayplugin.so +%{tde_tdelibdir}/chalkhistogramdocker.la +%{tde_tdelibdir}/chalkhistogramdocker.so +%{tde_tdelibdir}/chalkhistogram.la +%{tde_tdelibdir}/chalkhistogram.so +%{tde_tdelibdir}/chalkimageenhancement.la +%{tde_tdelibdir}/chalkimageenhancement.so +%{tde_tdelibdir}/chalkimagesize.la +%{tde_tdelibdir}/chalkimagesize.so +%{tde_tdelibdir}/chalk.la +%{tde_tdelibdir}/chalklenscorrectionfilter.la +%{tde_tdelibdir}/chalklenscorrectionfilter.so +%{tde_tdelibdir}/chalklevelfilter.la +%{tde_tdelibdir}/chalklevelfilter.so +%{tde_tdelibdir}/chalk_lms_* +%{tde_tdelibdir}/chalkmodifyselection.la +%{tde_tdelibdir}/chalkmodifyselection.so +%{tde_tdelibdir}/chalknoisefilter.la +%{tde_tdelibdir}/chalknoisefilter.so +%{tde_tdelibdir}/chalkoilpaintfilter.la +%{tde_tdelibdir}/chalkoilpaintfilter.so +%{tde_tdelibdir}/chalkpixelizefilter.la +%{tde_tdelibdir}/chalkpixelizefilter.so +%{tde_tdelibdir}/chalkraindropsfilter.la +%{tde_tdelibdir}/chalkraindropsfilter.so +%{tde_tdelibdir}/chalkrandompickfilter.la +%{tde_tdelibdir}/chalkrandompickfilter.so +%{tde_tdelibdir}/chalk_rgb_* +%{tde_tdelibdir}/chalkrgbplugin.la +%{tde_tdelibdir}/chalkrgbplugin.so +%{tde_tdelibdir}/chalkrotateimage.la +%{tde_tdelibdir}/chalkrotateimage.so +%{tde_tdelibdir}/chalkroundcornersfilter.la +%{tde_tdelibdir}/chalkroundcornersfilter.so +%{tde_tdelibdir}/chalkselectiontools.la +%{tde_tdelibdir}/chalkselectiontools.so +%{tde_tdelibdir}/chalkselectopaque.la +%{tde_tdelibdir}/chalkselectopaque.so +%{tde_tdelibdir}/chalkseparatechannels.la +%{tde_tdelibdir}/chalkseparatechannels.so +%{tde_tdelibdir}/chalkshearimage.la +%{tde_tdelibdir}/chalkshearimage.so +%{tde_tdelibdir}/chalksmalltilesfilter.la +%{tde_tdelibdir}/chalksmalltilesfilter.so +%{tde_tdelibdir}/chalk.so +%{tde_tdelibdir}/chalkscreenshot.la +%{tde_tdelibdir}/chalkscreenshot.so +%{tde_tdelibdir}/chalksobelfilter.la +%{tde_tdelibdir}/chalksobelfilter.so +%{tde_tdelibdir}/chalksubstrate.la +%{tde_tdelibdir}/chalksubstrate.so +%{tde_tdelibdir}/chalktoolcrop.la +%{tde_tdelibdir}/chalktoolcrop.so +%{tde_tdelibdir}/chalktoolcurves.la +%{tde_tdelibdir}/chalktoolcurves.so +%{tde_tdelibdir}/chalktoolfilter.la +%{tde_tdelibdir}/chalktoolfilter.so +%{tde_tdelibdir}/chalktoolperspectivegrid.la +%{tde_tdelibdir}/chalktoolperspectivegrid.so +%{tde_tdelibdir}/chalktoolperspectivetransform.la +%{tde_tdelibdir}/chalktoolperspectivetransform.so +%{tde_tdelibdir}/chalktoolpolygon.la +%{tde_tdelibdir}/chalktoolpolygon.so +%{tde_tdelibdir}/chalktoolpolyline.la +%{tde_tdelibdir}/chalktoolpolyline.so +%{tde_tdelibdir}/chalktoolselectsimilar.la +%{tde_tdelibdir}/chalktoolselectsimilar.so +%{tde_tdelibdir}/chalktoolstar.la +%{tde_tdelibdir}/chalktoolstar.so +%{tde_tdelibdir}/chalktooltransform.la +%{tde_tdelibdir}/chalktooltransform.so +%{tde_tdelibdir}/chalkunsharpfilter.la +%{tde_tdelibdir}/chalkunsharpfilter.so +%{tde_tdelibdir}/chalkwavefilter.la +%{tde_tdelibdir}/chalkwavefilter.so +%{tde_tdelibdir}/chalkwetplugin.la +%{tde_tdelibdir}/chalkwetplugin.so +%{tde_tdelibdir}/chalk_ycbcr_* +%{tde_tdelibdir}/libchalkgmagickexport.la +%{tde_tdelibdir}/libchalkgmagickexport.so +%{tde_tdelibdir}/libchalkgmagickimport.la +%{tde_tdelibdir}/libchalkgmagickimport.so +%{tde_tdelibdir}/libchalkjpegexport.la +%{tde_tdelibdir}/libchalkjpegexport.so +%{tde_tdelibdir}/libchalkjpegimport.la +%{tde_tdelibdir}/libchalkjpegimport.so +%{tde_tdelibdir}/libchalk_openexr_export.la +%{tde_tdelibdir}/libchalk_openexr_export.so +%{tde_tdelibdir}/libchalk_openexr_import.la +%{tde_tdelibdir}/libchalk_openexr_import.so +%{tde_tdelibdir}/libchalkpart.la +%{tde_tdelibdir}/libchalkpart.so +%{tde_tdelibdir}/libchalkpdfimport.la +%{tde_tdelibdir}/libchalkpdfimport.so +%{tde_tdelibdir}/libchalkpngexport.la +%{tde_tdelibdir}/libchalkpngexport.so +%{tde_tdelibdir}/libchalkpngimport.la +%{tde_tdelibdir}/libchalkpngimport.so +%{tde_tdelibdir}/libchalk_raw_import.la +%{tde_tdelibdir}/libchalk_raw_import.so +%{tde_tdelibdir}/libchalktiffexport.la +%{tde_tdelibdir}/libchalktiffexport.so +%{tde_tdelibdir}/libchalktiffimport.la +%{tde_tdelibdir}/libchalktiffimport.so +%{tde_libdir}/libkdeinit_chalk.so +%{tde_libdir}/libchalk_cmyk_*.so.* +%{tde_libdir}/libchalkcolor.so.* +%{tde_libdir}/libchalkcommon.so.* +%{tde_libdir}/libchalkgrayscale.so.* +%{tde_libdir}/libchalk_gray_*.so.* +%{tde_libdir}/libchalkimage.so.* +%{tde_libdir}/libchalk_lms_*.so.* +%{tde_libdir}/libchalk_rgb_*.so.* +%{tde_libdir}/libchalkrgb.so.* +%{tde_libdir}/libchalkui.so.* +%{tde_libdir}/libchalk_ycbcr_*.so.* +%if 0%{?with_kross} > 0 +%{tde_tdelibdir}/krosschalkcore.la +%{tde_tdelibdir}/krosschalkcore.so +%{tde_tdelibdir}/chalkscripting.la +%{tde_tdelibdir}/chalkscripting.so +%{tde_libdir}/libchalkscripting.so.* +%endif + +%files chalk-data +%{tde_tdeappdir}/chalk.desktop +%{tde_datadir}/applnk/.hidden/chalk_*.desktop +%{tde_datadir}/apps/konqueror/servicemenus/chalk_konqi.desktop +%{tde_datadir}/apps/chalk +%{tde_datadir}/apps/chalkplugins +%lang(en) %{tde_tdedocdir}/HTML/en/chalk +%{tde_datadir}/icons/hicolor/*/apps/chalk.png +%{tde_datadir}/services/chalk*.desktop +%{tde_datadir}/servicetypes/chalk*.desktop + + +%changelog +* Sun Jul 08 2012 Francois Andriot <francois.andriot@free.fr> - 1.6.3-5 +- Fix kformula dependancies (for RHEL6) +- Fix FTBFS due to missing libraries [Bug #657] [Commit #5c69fcd3] + Clean up lib paths in LDFLAGS - moved to LIBADD + For KWord and and KPresenter added linking kspell2 + For KSpread added linking kutils +- Fix accidental conversions of binary files [Bug #1033] [Commit #dbe89307] + +* Thu Apr 26 2012 Francois Andriot <francois.andriot@free.fr> - 1.6.3-4 +- Updates BuildRequires +- Build for Fedora 17 +- Fix compilation with GCC 4.7 [Bug #958] +- Fix compilation with Ruby 1.9 [Bug #735] +- Fix compilation with libpng [Bug #603] + +* Sat Jan 07 2012 Francois Andriot <francois.andriot@free.fr> - 1.6.3-3 +- Fix GraphicksMagick 1.3 support [Bug #353] +- Various patches for kexi [Bug #777] + +* Fri Nov 25 2011 Francois Andriot <francois.andriot@free.fr> - 1.6.3-2 +- Fix HTML directory location + +* Tue Nov 22 2011 Francois Andriot <francois.andriot@free.fr> - 1.6.3-1 +- Initial build for RHEL 5, RHEL 6, Fedora 15, Fedora 16 +- Based on Spec file from Fedora 11 'koffice-2:1.6.3-25.20090306svn' +- Removed 'krita', added 'chalk' diff --git a/redhat/applications/koffice/trinity-koffice.spec b/redhat/applications/koffice/trinity-koffice.spec deleted file mode 100644 index b89c1251f..000000000 --- a/redhat/applications/koffice/trinity-koffice.spec +++ /dev/null @@ -1,1033 +0,0 @@ -# Default version for this component -%define kdecomp koffice -%define version 1.6.3 -%define release 5 - -# 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 %{_datadir}/doc -%endif - -# TDE 3.5.13 specific building variables -BuildRequires: autoconf automake libtool m4 -%define tde_appdir %{_datadir}/applications/kde -%define tde_docdir %{_docdir}/kde -%define tde_includedir %{_includedir}/kde -%define tde_libdir %{_libdir}/trinity - -# Disable Kross support for RHEL <= 5 (python is too old) -%if 0%{?fedora} > 0 || 0%{?rhel} >= 6 -%define with_kross 1 -%endif - -%if 0%{?fedora} >= 17 -%define with_ruby 0 -%else -%define with_ruby 1 -%endif - -# Ruby 1.9 includes are located in strance directories ... (taken from ruby 1.9 spec file) -%global _normalized_cpu %(echo %{_target_cpu} | sed 's/^ppc/powerpc/;s/i.86/i386/;s/sparcv./sparc/;s/armv.*/arm/') - - -Name: trinity-%{kdecomp} -Summary: An integrated office suite -Version: %{?version} -Release: %{?release}%{?dist}%{?_variant} - -Group: Applications/Productivity -License: GPLv2+ - -Vendor: Trinity Project -Packager: Francois Andriot <francois.andriot@free.fr> -URL: http://www.trinitydesktop.org/ - -Prefix: %{_prefix} -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) - -Source0: %{kdecomp}-3.5.13.tar.gz -Source100: koshell.png - -# [koffice] Disable GraphicksMagick version >= 1.2.0 [Bug #353] -Patch0: koffice-3.5.13-disable_graphicksmagick.patch -# [filters/chalk/pdf] Fix poppler-qt detection [Bug #783] -Patch1: koffice-3.5.13-fix_poppler_detect.patch -# [lib/kross/python/scripts/RestrictedPython/Utilities.py] Syntax error [Bug #679] -Patch2: koffice-3.5.13-kross_utilities_syntax.patch -# [koffice/chalk] Fix GraphicksMagick 1.3 support [Bug #353] -Patch3: koffice-3.5.13-chalk_gmagick.patch -# [koffice/kexi] Various patches for kexi, found on the web [Bug # 777] -Patch5: kexi-fix-possible-crash-in-buffered-mode-sqlite-2.patch -Patch6: kexi-hide_hourglass-1.1.3-2.patch -Patch7: kexi-fix-support-for-boolean-types-in-migration.patch -Patch8: kexi-mysql_migrate_long_text-1.1.3.patch -Patch9: kexi-fix-support-for-boolean-types.patch -Patch10: kexi-thoushand_objects_support-1.1.3-2.patch -Patch11: kexi-fp_expressions-1.1.3.patch -# [koffice] Fix compilation with GCC 4.7 [Bug #958] -Patch12: koffice-3.5.13-fix_gcc47_compilation.patch -# [koffice] Fix compilation with Ruby 1.9 [Bug #735] -Patch13: koffice-3.5.13-fix_ruby_1.9.patch -# [koffice] Fix compilation with libpng [Bug #603] -Patch14: koffice-3.5.13-fix_libpng.patch -# [koffice] Fix FTBFS due to missing libraries [Bug #657] [Commit #5c69fcd3] -# Clean up lib paths in LDFLAGS - moved to LIBADD -# For KWord and and KPresenter added linking kspell2 -# For KSpread added linking kutils -Patch15: koffice-3.5.13-fix_bug_657.patch -# [koffice] Fix accidental conversions of binary files [Bug #1033] [Commit #dbe89307] -Source1: koffice-3.5.13-damaged_binary_files.tar.gz - - -# BuildRequires: world-devel ;) -BuildRequires: trinity-kdelibs-devel -BuildRequires: trinity-kdegraphics-devel -BuildRequires: automake libtool -BuildRequires: freetype-devel -BuildRequires: fontconfig-devel -BuildRequires: libart_lgpl-devel -BuildRequires: libpng-devel -BuildRequires: libtiff-devel -BuildRequires: libjpeg-devel -BuildRequires: ImageMagick-devel -BuildRequires: bzip2-devel -BuildRequires: zlib-devel -BuildRequires: openssl-devel -BuildRequires: python-devel -BuildRequires: pcre-devel -BuildRequires: lcms-devel -BuildRequires: gettext-devel -BuildRequires: mysql-devel -BuildRequires: desktop-file-utils -BuildRequires: perl -BuildRequires: doxygen -BuildRequires: aspell-devel -BuildRequires: libxslt-devel -BuildRequires: OpenEXR-devel -BuildRequires: libexif-devel -BuildRequires: libGL-devel libGLU-devel -BuildRequires: readline-devel -%if 0%{?with_ruby} -BuildRequires: ruby ruby-devel >= 1.8.2 -%endif -BuildRequires: libpaper-devel -BuildRequires: libXi-devel -BuildRequires: libutempter-devel -BuildRequires: GraphicsMagick-devel >= 1.1.0 - -BuildRequires: trinity-wv2-devel -BuildRequires: trinity-libwpd-devel -BuildRequires: trinity-libpqxx-devel -%if 0%{?rhel} >= 6 || 0%{?fedora} >= 15 -BuildRequires: poppler-qt-devel >= 0.1.2 -%else -BuildRequires: trinity-poppler-qt3-devel >= 0.1.2 -%endif - -%description -KOffice is an integrated office suite. - -%package suite -Summary: An integrated office suite -Group: Applications/Productivity -Obsoletes: %{name} <= %{version}-%{release} -Obsoletes: %{name}-i18n < 4:%{version} -Requires: %{name}-core = %{version}-%{release} -Requires: %{name}-kword = %{version}-%{release} -Requires: %{name}-kspread = %{version}-%{release} -Requires: %{name}-kpresenter = %{version}-%{release} -Requires: %{name}-kivio = %{version}-%{release} -Requires: %{name}-karbon = %{version}-%{release} -Requires: %{name}-kugar = %{version}-%{release} -Requires: %{name}-kexi = %{version}-%{release} -Requires: %{name}-kexi-driver-mysql = %{version}-%{release} -Requires: %{name}-kexi-driver-pgsql = %{version}-%{release} -Requires: %{name}-kchart = %{version}-%{release} -Requires: %{name}-kformula = %{version}-%{release} -Requires: %{name}-filters = %{version}-%{release} -Requires: %{name}-kplato = %{version}-%{release} -Requires: %{name}-chalk = %{version}-%{release} - -%description suite -KOffice is an integrated office suite. - -%package core -Summary: Core support files for %{name} -Group: Applications/Productivity -Requires: %{name}-libs = %{version}-%{release} -Requires: perl -Conflicts: koffice-i18n < %{version} -%description core -%{summary}. - -%package libs -Summary: Runtime libraries for %{name} -Group: System Environment/Libraries -Conflicts: %{name} <= %{version}-%{release} -Requires: trinity-kdelibs -License: LGPLv2+ -%description libs -%{summary}. - -%package devel -Summary: Development files for %{name} -Group: Development/Libraries -Requires: %{name}-libs = %{version}-%{release} -License: LGPLv2+ -%description devel -%{summary}. - -%package kword -Summary: A frame-based word processor capable of professional standard documents -Group: Applications/Productivity -Requires: %{name}-core = %{version}-%{release} -%description kword -%{summary}. - -%package kspread -Summary: A powerful spreadsheet application -Group: Applications/Productivity -Requires: %{name}-core = %{version}-%{release} -%description kspread -%{summary}. - -%package kpresenter -Summary: A full-featured presentation program -Group: Applications/Productivity -Requires: %{name}-core = %{version}-%{release} -%description kpresenter -%{summary}. - -%package kivio -Summary: A flowcharting application -Group: Applications/Productivity -Requires: %{name}-core = %{version}-%{release} -Obsoletes: kivio < %{version}-%{release} -%description kivio -%{summary}. - -%package karbon -Summary: A vector drawing application -Group: Applications/Productivity -Requires: %{name}-core = %{version}-%{release} -%description karbon -%{summary}. - -%package kugar -Summary: A tool for generating business quality reports -Group: Applications/Productivity -Requires: %{name}-core = %{version}-%{release} -%description kugar -%{summary}. - -%package kexi -Summary: An integrated environment for managing data -Group: Applications/Productivity -Requires: %{name}-core = %{version}-%{release} -%description kexi -%{summary}. -For additional database drivers take a look at %{name}-kexi-driver-* - -%package kexi-driver-mysql -Summary: Mysql-driver for kexi -Group: Applications/Productivity -Requires: %{name}-kexi = %{version}-%{release} -%description kexi-driver-mysql -%{summary}. - -%package kexi-driver-pgsql -Summary: Postgresql driver for kexi -Group: Applications/Productivity -Requires: %{name}-kexi = %{version}-%{release} -%description kexi-driver-pgsql -%{summary}. - -%package kchart -Summary: An integrated graph and chart drawing tool -Group: Applications/Productivity -Requires: %{name}-core = %{version}-%{release} -%description kchart -%{summary}. - -%package kformula -Summary: A powerful formula editor -Group: Applications/Productivity -Requires: %{name}-core = %{version}-%{release} -Requires: lyx-cmex10-fonts -%if 0%{?fedora} >= 11 || 0%{?rhel} >= 6 -Requires: dejavu-lgc-sans-fonts -%else -Requires: dejavu-lgc-fonts -%endif -%description kformula -%{summary}. - -%package filters -Summary: Import and Export Filters for KOffice -Group: Applications/Productivity -Requires: %{name}-core = %{version}-%{release} -%description filters -%{summary}. - -%package kplato -Summary: An integrated project management and planning tool -Group: Applications/Productivity -Requires: %{name}-core = %{version}-%{release} -%description kplato -%{summary}. - -%package chalk -Summary: pixel-based image manipulation program for the TDE Office Suite [Trinity] -Group: Applications/Productivity -Requires: %{name}-core = %{version}-%{release} -Requires: %{name}-chalk-data = %{version}-%{release} -Requires: %{name}-filters -%description chalk -Chalk is a painting and image editing application for KOffice. Chalk contains -both ease-of-use and fun features like guided painting. - -This package is part of the TDE Office Suite. - -%package chalk-data -Summary: data files for Chalk painting program [Trinity] -Group: Applications/Productivity -%description chalk-data -This package contains architecture-independent data files for Chalk, -the painting program shipped with the TDE Office Suite. - -See the chalk package for further information. - -This package is part of the TDE Office Suite. - - - -%prep -%setup -q -n applications/%{kdecomp} -%setup -q -n applications/%{kdecomp} -a 1 - -#patch0 -p1 -#patch1 -p1 -%patch2 -p1 -%patch3 -p1 -%patch5 -p0 -%patch6 -p0 -%patch7 -p0 -%patch8 -p0 -%patch9 -p0 -%patch10 -p0 -%patch11 -p0 -%patch12 -p1 -b .gcc47 -%if 0%{?fedora} >= 17 -%patch13 -p1 -b .ruby -%patch14 -p1 -b .libpng -%endif -%patch15 -p1 - -# use LGC variant instead -%__sed -i.dejavu-lgc \ - -e 's|DejaVu Sans|DejaVu LGC Sans|' \ - -e 's|dejavu sans|dejavu lgc sans|' \ - lib/kformula/{contextstyle,fontstyle,symboltable}.cc - -# Ugly hack to modify TQT include directory inside autoconf files. -# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 ! -%__sed -i admin/acinclude.m4.in \ - -e "s|/usr/include/tqt|%{_includedir}/tqt|g" \ - -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_docdir}/HTML'|g" - -%__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in" -%__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh" -%__make -f "admin/Makefile.common" - - -%build -unset QTDIR || : ; . /etc/profile.d/qt.sh -export PATH="%{_bindir}:${PATH}" -export LDFLAGS="-L%{_libdir} -I%{_includedir}" - -%configure \ - --disable-rpath --disable-dependency-tracking \ - --enable-new-ldflags \ - --disable-debug --disable-warnings \ - --with-pic --enable-shared --disable-static \ - --with-extra-libs=%{_libdir} \ - --enable-final \ - --with-extra-includes=%{_includedir}/tqt \ - --enable-closure \ - --disable-kexi-macros \ - --with-pqxx-includes=%{_includedir} \ - --with-pqxx-libraries=%{_libdir} \ -%if 0%{?with_kross} > 0 - --enable-scripting \ -%else - --disable-scripting \ -%endif - -%__make %{?_smp_mflags} - - -%install -%__rm -rf %{buildroot} -%__make install DESTDIR=%{buildroot} - -[ ! -f %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/koshell.png ] && \ -%__install -p -D -m644 %{SOURCE100} %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/koshell.png - -# Replace absolute symlinks with relative ones -pushd %{buildroot}%{tde_docdir}/HTML -for lang in *; do - if [ -d $lang ]; then - pushd $lang - for i in */*; do - [ -d $i -a -L $i/common ] && rm -f $i/common && ln -sf ../../common $i/common - done - popd - fi -done -popd - -desktop-file-install \ - --dir=%{buildroot}%{tde_appdir} \ - --vendor="" \ - --delete-original \ - %{buildroot}%{_datadir}/applnk/Office/*.desktop - -## Hack-in NoDisplay=True (http://bugzilla.redhat.com/245061) -## until http://bugzilla.redhat.com/245190 is fixed -for desktop_file in %{buildroot}%{_datadir}/applnk/.hidden/*.desktop ; do - grep "^NoDisplay=" ${desktop_file} || \ - echo "NoDisplay=True" >> ${desktop_file} -done - -## unpackaged files -# fonts -rm -rfv %{buildroot}%{_datadir}/apps/kformula/fonts/ -# libtool archives -rm -f %{buildroot}%{_libdir}/lib*.la -# shouldn't these be in koffice-l10n? -rm -f %{buildroot}%{_datadir}/locale/pl/LC_MESSAGES/kexi_{add,delete}_column_gui_transl_pl.sh -# -devel symlinks to nuke -rm -f %{buildroot}%{_libdir}/lib*common.so -rm -f %{buildroot}%{_libdir}/lib*filters.so -rm -f %{buildroot}%{_libdir}/lib*private.so -rm -f %{buildroot}%{_libdir}/libkarbon*.so -rm -f %{buildroot}%{_libdir}/libkchart*.so -rm -f %{buildroot}%{_libdir}/libkexi*.so -rm -f %{buildroot}%{_libdir}/libkisexiv2.so -rm -f %{buildroot}%{_libdir}/libkformdesigner.so -rm -f %{buildroot}%{_libdir}/libkplato*.so -rm -f %{buildroot}%{_libdir}/libkpresenter*.so -rm -f %{buildroot}%{_libdir}/libkword*.so -rm -f %{buildroot}%{_libdir}/libkross*.so -rm -f %{buildroot}%{_libdir}/libkugar*.so - - -%clean -%__rm -rf %{buildroot} - -%post core -touch --no-create %{_datadir}/icons/crystalsvg &> /dev/null || : -touch --no-create %{_datadir}/icons/hicolor &> /dev/null || : -touch --no-create %{_datadir}/icons/locolor &> /dev/null || : - -%postun core -if [ $1 -eq 0 ]; then - gtk-update-icon-cache %{_datadir}/icons/crystalsvg &> /dev/null || : - gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || : - gtk-update-icon-cache %{_datadir}/icons/locolor &> /dev/null || : - update-desktop-database -q &> /dev/null ||: -fi - -%posttrans core -gtk-update-icon-cache %{_datadir}/icons/crystalsvg &> /dev/null || : -gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || : -gtk-update-icon-cache %{_datadir}/icons/locolor &> /dev/null || : -update-desktop-database -q &> /dev/null ||: - -%post karbon -p /sbin/ldconfig - -%postun karbon -p /sbin/ldconfig - -%post kword -p /sbin/ldconfig - -%postun kword -p /sbin/ldconfig - -%posttrans kword -update-desktop-database -q &> /dev/null ||: - -%post kpresenter -p /sbin/ldconfig - -%postun kpresenter -p /sbin/ldconfig - -%posttrans kpresenter -update-desktop-database -q &> /dev/null ||: - -%post kugar -p /sbin/ldconfig - -%postun kugar -p /sbin/ldconfig - -%posttrans kugar -update-desktop-database -q &> /dev/null ||: - -%post kexi -p /sbin/ldconfig - -%postun kexi -p /sbin/ldconfig - -%posttrans kexi -update-desktop-database -q &> /dev/null ||: - -%post kchart -p /sbin/ldconfig - -%postun kchart -p /sbin/ldconfig - -%posttrans kchart -update-desktop-database -q &> /dev/null ||: - -%post filters -p /sbin/ldconfig -%postun filters -p /sbin/ldconfig - -%post libs -p /sbin/ldconfig -%postun libs -p /sbin/ldconfig - -%post chalk -p /sbin/ldconfig - -%postun chalk -p /sbin/ldconfig - -%posttrans chalk -update-desktop-database -q &> /dev/null ||: - -%files suite -#empty => virtual package - -%files core -%defattr(-,root,root,-) -%doc AUTHORS COPYING README -%{_bindir}/koshell -%{_bindir}/kthesaurus -%{_bindir}/koconverter -%{_libdir}/libkdeinit_koshell.so -%{_libdir}/libkdeinit_kthesaurus.so -%{tde_libdir}/kfile_koffice.* -%{tde_libdir}/kfile_ooo.* -%{tde_libdir}/kfile_abiword.* -%{tde_libdir}/kfile_gnumeric.* -%{tde_libdir}/kodocinfopropspage.* -%{tde_libdir}/kofficescan.* -%{tde_libdir}/kofficethumbnail.* -%{tde_libdir}/koshell.* -%{tde_libdir}/kthesaurus.* -%{tde_libdir}/kwmailmerge_classic.* -%{tde_libdir}/kwmailmerge_kabc.* -%{tde_libdir}/kwmailmerge_qtsqldb_power.* -%{tde_libdir}/kwmailmerge_qtsqldb.* -%{tde_libdir}/libkounavailpart.* -%{tde_libdir}/libkprkword.* -%{tde_libdir}/libthesaurustool.* -%{tde_libdir}/clipartthumbnail.* -%{_datadir}/apps/koffice/ -%{_datadir}/apps/konqueror/servicemenus/* -%{_datadir}/apps/koshell/ -%{_datadir}/apps/thesaurus/ -%{_datadir}/config.kcfg/koshell.kcfg -%{tde_docdir}/HTML/en/koffice/ -%{tde_docdir}/HTML/en/koshell/ -%{tde_docdir}/HTML/en/thesaurus/ -%{_datadir}/icons/crystalsvg/*/*/* -%{_datadir}/icons/hicolor/*/*/* -%{_datadir}/icons/locolor/*/*/* -%{_datadir}/services/clipartthumbnail.desktop -%{_datadir}/services/kfile*.desktop -%{_datadir}/services/kwmailmerge*.desktop -%{_datadir}/services/kodocinfopropspage.desktop -%{_datadir}/services/kofficethumbnail.desktop -%{_datadir}/services/kounavail.desktop -%{_datadir}/services/kprkword.desktop -%{_datadir}/services/thesaurustool.desktop -%{_datadir}/servicetypes/kochart.desktop -%{_datadir}/servicetypes/kofficepart.desktop -%{_datadir}/servicetypes/koplugin.desktop -%{_datadir}/servicetypes/kwmailmerge.desktop -%{_datadir}/servicetypes/widgetfactory.desktop -%{tde_appdir}/*koffice.desktop -%{tde_appdir}/*KThesaurus.desktop -%{tde_appdir}/*koshell.desktop -%{_datadir}/apps/kofficewidgets/ -%if 0%{?with_kross} > 0 -%{_datadir}/apps/kross/ -%{tde_libdir}/krosspython.* -%if 0%{?with_ruby} -%{tde_libdir}/krossruby.* -%endif -%endif - -%files libs -%defattr(-,root,root,-) -%doc COPYING.LIB -#_libdir/libk*common.so.* -%{_libdir}/libkarboncommon.so.* -%{_libdir}/libkspreadcommon.so.* -%{_libdir}/libkdchart.so.* -%{_libdir}/libkochart.so.* -%{_libdir}/libkofficecore.so.* -%{_libdir}/libkofficeui.so.* -%{_libdir}/libkotext.so.* -%{_libdir}/libkowmf.so.* -%{_libdir}/libkopainter.so.* -%{_libdir}/libkstore.so.* -%{_libdir}/libkwmailmerge_interface.so.* -%{_libdir}/libkwmf.so.* -%{_libdir}/libkformulalib.so.* -%{_libdir}/libkopalette.so.* -%{_libdir}/libkoproperty.so.* -%if 0%{?with_kross} > 0 -%{_libdir}/libkrossapi.so.* -%{_libdir}/libkrossmain.so.* -%endif - -%files devel -%defattr(-,root,root,-) -%lang(en) %{tde_docdir}/HTML/en/koffice-apidocs/ -%{_includedir}/* -# FIXME: include only shlib symlinks we know/want to export -%{_libdir}/lib*.so -%exclude %{_libdir}/libkdeinit_*.so -%exclude %{_libdir}/libkudesignercore.so - -%files kword -%defattr(-,root,root,-) -%lang(en) %{tde_docdir}/HTML/en/kword/ -%{_bindir}/kword -%{_libdir}/libkdeinit_kword.so -%{_libdir}/libkwordprivate.so.* -%{tde_libdir}/libkwordpart.* -%{tde_libdir}/kword.* -%{_datadir}/apps/kword/ -%{_datadir}/services/kword*.desktop -%{_datadir}/services/kwserial*.desktop -%{_datadir}/templates/TextDocument.desktop -%{_datadir}/templates/.source/TextDocument.kwt -%{tde_appdir}/*kword.desktop - -%files kspread -%defattr(-,root,root,-) -%lang(en) %{tde_docdir}/HTML/en/kspread/ -%{_bindir}/kspread -%{_libdir}/libkdeinit_kspread.so -%{tde_libdir}/kspread.* -%{tde_libdir}/libkspreadpart.* -%{tde_libdir}/kwmailmerge_kspread.* -%{tde_libdir}/libcsvexport.* -%{tde_libdir}/libcsvimport.* -%{tde_libdir}/libgnumericexport.* -%{tde_libdir}/libgnumericimport.* -%{tde_libdir}/libkspreadhtmlexport.* -%{tde_libdir}/libkspreadinsertcalendar.* -%{tde_libdir}/libopencalcexport.* -%{tde_libdir}/libopencalcimport.* -%{tde_libdir}/libqproimport.* -%{_datadir}/apps/kspread/ -%{_datadir}/services/kspread*.desktop -%{_datadir}/templates/SpreadSheet.desktop -%{_datadir}/templates/.source/SpreadSheet.kst -%{tde_appdir}/*kspread.desktop -%if 0%{?with_kross} > 0 -%{tde_libdir}/kspreadscripting.* -%{tde_libdir}/krosskspreadcore.* -%endif - -%files kpresenter -%defattr(-,root,root,-) -%lang(en) %{tde_docdir}/HTML/en/kpresenter/ -%{_bindir}/kpresenter -%{_bindir}/kprconverter.pl -%{_libdir}/libkdeinit_kpresenter.so -%{_libdir}/libkpresenterimageexport.so.* -%{_libdir}/libkpresenterprivate.so.* -%{tde_libdir}/*kpresenter*.* -%{_datadir}/apps/kpresenter/ -%{_datadir}/services/kpresenter*.desktop -%{_datadir}/templates/Presentation.desktop -%{_datadir}/templates/.source/Presentation.kpt -%{tde_appdir}/*kpresenter.desktop - -%files karbon -%defattr(-,root,root,-) -%lang(en) %{tde_docdir}/HTML/en/karbon/ -%{_bindir}/karbon -%{_libdir}/libkdeinit_karbon.so -%{tde_libdir}/*karbon*.* -%{tde_libdir}/libwmfexport.* -%{tde_libdir}/libwmfimport.* -%{_datadir}/apps/karbon/ -%{_datadir}/services/karbon* -%{_datadir}/servicetypes/karbon_module.desktop -%{_datadir}/templates/Illustration.desktop -%{_datadir}/templates/.source/Illustration.karbon -%{tde_appdir}/*karbon.desktop - -%files kugar -%defattr(-,root,root,-) -%lang(en) %{tde_docdir}/HTML/en/kugar/ -%{_bindir}/kugar -%{_bindir}/kudesigner -%{_libdir}/libkdeinit_kugar.so -%{_libdir}/libkdeinit_kudesigner.so -%{_libdir}/libkugarlib.so.* -%{_libdir}/libkudesignercore.so -%{tde_libdir}/kudesigner.* -%{tde_libdir}/kugar.* -%{tde_libdir}/libkudesignerpart.* -%{tde_libdir}/libkugarpart.* -%{_datadir}/apps/kudesigner/ -%{_datadir}/apps/kugar/ -%{_datadir}/services/kugar*.desktop -%{tde_appdir}/*kugar.desktop -%{tde_appdir}/*kudesigner.desktop - -%files kexi -%defattr(-,root,root,-) -%lang(en) %{tde_docdir}/HTML/en/kexi/ -%{_bindir}/kexi* -%{_bindir}/ksqlite* -%{_libdir}/libkdeinit_kexi.so -%{_libdir}/libkexi*.so.* -%{_libdir}/libkformdesigner.so.* -%{tde_libdir}/kformdesigner_*.* -%{tde_libdir}/kexidb_sqlite2driver.* -%{tde_libdir}/kexidb_sqlite3driver.* -%{tde_libdir}/kexihandler_*.* -%{tde_libdir}/kexi.* -# moved here to workaround bug #394101, alternative is to move libkexi(db|dbparser|utils) to -libs) -%{tde_libdir}/libkspreadkexiimport.* -%{_datadir}/config/kexirc -%{_datadir}/config/magic/kexi.magic -%{_datadir}/mimelnk/application/* -%{_datadir}/servicetypes/kexi*.desktop -%{_datadir}/services/kexi/ -%{_datadir}/apps/kexi/ -%{_datadir}/services/kformdesigner/* -%{tde_appdir}/*kexi.desktop -%{_datadir}/services/kexidb_sqlite*driver.desktop -%if 0%{?with_kross} > 0 -%{_bindir}/krossrunner -%{tde_libdir}/krosskexiapp.* -%{tde_libdir}/krosskexidb.* -%endif - -%files kexi-driver-mysql -%defattr(-,root,root,-) -%{tde_libdir}/kexidb_mysqldriver.* -%{tde_libdir}/keximigrate_mysql.* -%{_datadir}/services/keximigrate_mysql.desktop -%{_datadir}/services/kexidb_mysqldriver.desktop - -%files kexi-driver-pgsql -%defattr(-,root,root,-) -%{tde_libdir}/kexidb_pqxxsqldriver.* -%{tde_libdir}/keximigrate_pqxx.* -%{_datadir}/services/kexidb_pqxxsqldriver.desktop -%{_datadir}/services/keximigrate_pqxx.desktop - -%files kchart -%defattr(-,root,root,-) -%lang(en) %{tde_docdir}/HTML/en/kchart/ -%{_bindir}/kchart -%{_libdir}/libkchart*.so.* -%{_libdir}/libkdeinit_kchart.so -%{tde_libdir}/*kchart*.* -%{_datadir}/apps/kchart/ -%{_datadir}/services/kchart*.desktop -%{tde_appdir}/*kchart.desktop - -%files kformula -%defattr(-,root,root,-) -%lang(en) %{tde_docdir}/HTML/en/kformula/ -%{_bindir}/kformula -%{_libdir}/libkdeinit_kformula.so -%{tde_libdir}/*kformula*.* -%{_datadir}/apps/kformula/ -%{_datadir}/services/kformula*.desktop -%{tde_appdir}/*kformula.desktop - -%files kivio -%defattr(-,root,root,-) -%lang(en) %{tde_docdir}/HTML/en/kivio/ -%{_bindir}/kivio -%{_libdir}/libkdeinit_kivio.so -%{_libdir}/libkiviocommon.so.* -%{tde_libdir}/*kivio*.* -%{tde_libdir}/straight_connector.* -%{_datadir}/apps/kivio/ -%{_datadir}/config.kcfg/kivio.kcfg -%{_datadir}/services/kivio*.desktop -%{tde_appdir}/*kivio.desktop - -%files filters -%defattr(-,root,root,-) -%{_libdir}/libkwordexportfilters.so.* -%{tde_libdir}/libabiwordexport.* -%{tde_libdir}/libabiwordimport.* -%{tde_libdir}/libamiproexport.* -%{tde_libdir}/libamiproimport.* -%{tde_libdir}/libapplixspreadimport.* -%{tde_libdir}/libapplixwordimport.* -%{tde_libdir}/libasciiexport.* -%{tde_libdir}/libasciiimport.* -%{tde_libdir}/libdbaseimport.* -%{tde_libdir}/libdocbookexport.* -%{tde_libdir}/libexcelimport.* -%{tde_libdir}/libgenerickofilter.* -%{tde_libdir}/libhtmlexport.* -%{tde_libdir}/libhtmlimport.* -%{tde_libdir}/libkarbonepsimport.* -%{tde_libdir}/libkfolatexexport.* -%{tde_libdir}/libkfomathmlexport.* -%{tde_libdir}/libkfomathmlimport.* -%{tde_libdir}/libkfopngexport.* -%{tde_libdir}/libkspreadlatexexport.* -%{tde_libdir}/libkugarnopimport.* -%{tde_libdir}/libkwordkword1dot3import.* -%{tde_libdir}/libkwordlatexexport.* -%{tde_libdir}/libmswriteexport.* -%{tde_libdir}/libmswriteimport.* -%{tde_libdir}/libooimpressexport.* -%{tde_libdir}/libooimpressimport.* -%{tde_libdir}/liboowriterexport.* -%{tde_libdir}/liboowriterimport.* -%{tde_libdir}/libpalmdocexport.* -%{tde_libdir}/libpalmdocimport.* -%{tde_libdir}/libpdfimport.* -%{tde_libdir}/librtfexport.* -%{tde_libdir}/librtfimport.* -%{tde_libdir}/libwmlexport.* -%{tde_libdir}/libwmlimport.* -%{tde_libdir}/libwpexport.* -%{tde_libdir}/libwpimport.* -%{tde_libdir}/libmswordimport.* -%{tde_libdir}/libxsltimport.* -%{tde_libdir}/libxsltexport.* -%{tde_libdir}/libhancomwordimport.* -%{tde_libdir}/libkfosvgexport.* -%{tde_libdir}/liboodrawimport.* -%{tde_libdir}/libolefilter.* -%{_datadir}/apps/xsltfilter/ -%{_datadir}/services/generic_filter.desktop -%{_datadir}/services/ole_powerpoint97_import.desktop -%{_datadir}/services/xslt*.desktop -%{_datadir}/servicetypes/kofilter*.desktop - -%files kplato -%defattr(-,root,root,-) -%lang(en) %{tde_docdir}/HTML/en/kplato/ -%{_bindir}/kplato -%{_libdir}/libkdeinit_kplato.so -%{tde_libdir}/kplato.* -%{tde_libdir}/libkplatopart.* -%{_datadir}/apps/kplato/ -%{_datadir}/services/kplatopart.desktop -%{tde_appdir}/*kplato.desktop - -%files chalk -%defattr(-,root,root,-) -%{_bindir}/chalk -%{tde_libdir}/chalkblurfilter.la -%{tde_libdir}/chalkblurfilter.so -%{tde_libdir}/chalkbumpmap.la -%{tde_libdir}/chalkbumpmap.so -%{tde_libdir}/chalkcimg.la -%{tde_libdir}/chalkcimg.so -%{tde_libdir}/chalk_cmyk_* -%{tde_libdir}/chalkcmykplugin.la -%{tde_libdir}/chalkcmykplugin.so -%{tde_libdir}/chalkcolorify.la -%{tde_libdir}/chalkcolorify.so -%{tde_libdir}/chalkcolorrange.la -%{tde_libdir}/chalkcolorrange.so -%{tde_libdir}/chalkcolorsfilters.la -%{tde_libdir}/chalkcolorsfilters.so -%{tde_libdir}/chalkcolorspaceconversion.la -%{tde_libdir}/chalkcolorspaceconversion.so -%{tde_libdir}/chalkconvolutionfilters.la -%{tde_libdir}/chalkconvolutionfilters.so -%{tde_libdir}/chalkdefaultpaintops.la -%{tde_libdir}/chalkdefaultpaintops.so -%{tde_libdir}/chalkdefaulttools.la -%{tde_libdir}/chalkdefaulttools.so -%{tde_libdir}/chalkdropshadow.la -%{tde_libdir}/chalkdropshadow.so -%{tde_libdir}/chalkembossfilter.la -%{tde_libdir}/chalkembossfilter.so -%{tde_libdir}/chalkexample.la -%{tde_libdir}/chalkexample.so -%{tde_libdir}/chalkextensioncolorsfilters.la -%{tde_libdir}/chalkextensioncolorsfilters.so -%{tde_libdir}/chalkfastcolortransfer.la -%{tde_libdir}/chalkfastcolortransfer.so -%{tde_libdir}/chalkfiltersgallery.la -%{tde_libdir}/chalkfiltersgallery.so -%{tde_libdir}/chalk_gray_* -%{tde_libdir}/chalkgrayplugin.la -%{tde_libdir}/chalkgrayplugin.so -%{tde_libdir}/chalkhistogramdocker.la -%{tde_libdir}/chalkhistogramdocker.so -%{tde_libdir}/chalkhistogram.la -%{tde_libdir}/chalkhistogram.so -%{tde_libdir}/chalkimageenhancement.la -%{tde_libdir}/chalkimageenhancement.so -%{tde_libdir}/chalkimagesize.la -%{tde_libdir}/chalkimagesize.so -%{tde_libdir}/chalk.la -%{tde_libdir}/chalklenscorrectionfilter.la -%{tde_libdir}/chalklenscorrectionfilter.so -%{tde_libdir}/chalklevelfilter.la -%{tde_libdir}/chalklevelfilter.so -%{tde_libdir}/chalk_lms_* -%{tde_libdir}/chalkmodifyselection.la -%{tde_libdir}/chalkmodifyselection.so -%{tde_libdir}/chalknoisefilter.la -%{tde_libdir}/chalknoisefilter.so -%{tde_libdir}/chalkoilpaintfilter.la -%{tde_libdir}/chalkoilpaintfilter.so -%{tde_libdir}/chalkpixelizefilter.la -%{tde_libdir}/chalkpixelizefilter.so -%{tde_libdir}/chalkraindropsfilter.la -%{tde_libdir}/chalkraindropsfilter.so -%{tde_libdir}/chalkrandompickfilter.la -%{tde_libdir}/chalkrandompickfilter.so -%{tde_libdir}/chalk_rgb_* -%{tde_libdir}/chalkrgbplugin.la -%{tde_libdir}/chalkrgbplugin.so -%{tde_libdir}/chalkrotateimage.la -%{tde_libdir}/chalkrotateimage.so -%{tde_libdir}/chalkroundcornersfilter.la -%{tde_libdir}/chalkroundcornersfilter.so -%{tde_libdir}/chalkselectiontools.la -%{tde_libdir}/chalkselectiontools.so -%{tde_libdir}/chalkselectopaque.la -%{tde_libdir}/chalkselectopaque.so -%{tde_libdir}/chalkseparatechannels.la -%{tde_libdir}/chalkseparatechannels.so -%{tde_libdir}/chalkshearimage.la -%{tde_libdir}/chalkshearimage.so -%{tde_libdir}/chalksmalltilesfilter.la -%{tde_libdir}/chalksmalltilesfilter.so -%{tde_libdir}/chalk.so -%{tde_libdir}/chalkscreenshot.la -%{tde_libdir}/chalkscreenshot.so -%{tde_libdir}/chalksobelfilter.la -%{tde_libdir}/chalksobelfilter.so -%{tde_libdir}/chalksubstrate.la -%{tde_libdir}/chalksubstrate.so -%{tde_libdir}/chalktoolcrop.la -%{tde_libdir}/chalktoolcrop.so -%{tde_libdir}/chalktoolcurves.la -%{tde_libdir}/chalktoolcurves.so -%{tde_libdir}/chalktoolfilter.la -%{tde_libdir}/chalktoolfilter.so -%{tde_libdir}/chalktoolperspectivegrid.la -%{tde_libdir}/chalktoolperspectivegrid.so -%{tde_libdir}/chalktoolperspectivetransform.la -%{tde_libdir}/chalktoolperspectivetransform.so -%{tde_libdir}/chalktoolpolygon.la -%{tde_libdir}/chalktoolpolygon.so -%{tde_libdir}/chalktoolpolyline.la -%{tde_libdir}/chalktoolpolyline.so -%{tde_libdir}/chalktoolselectsimilar.la -%{tde_libdir}/chalktoolselectsimilar.so -%{tde_libdir}/chalktoolstar.la -%{tde_libdir}/chalktoolstar.so -%{tde_libdir}/chalktooltransform.la -%{tde_libdir}/chalktooltransform.so -%{tde_libdir}/chalkunsharpfilter.la -%{tde_libdir}/chalkunsharpfilter.so -%{tde_libdir}/chalkwavefilter.la -%{tde_libdir}/chalkwavefilter.so -%{tde_libdir}/chalkwetplugin.la -%{tde_libdir}/chalkwetplugin.so -%{tde_libdir}/chalk_ycbcr_* -%{tde_libdir}/libchalkgmagickexport.la -%{tde_libdir}/libchalkgmagickexport.so -%{tde_libdir}/libchalkgmagickimport.la -%{tde_libdir}/libchalkgmagickimport.so -%{tde_libdir}/libchalkjpegexport.la -%{tde_libdir}/libchalkjpegexport.so -%{tde_libdir}/libchalkjpegimport.la -%{tde_libdir}/libchalkjpegimport.so -%{tde_libdir}/libchalk_openexr_export.la -%{tde_libdir}/libchalk_openexr_export.so -%{tde_libdir}/libchalk_openexr_import.la -%{tde_libdir}/libchalk_openexr_import.so -%{tde_libdir}/libchalkpart.la -%{tde_libdir}/libchalkpart.so -%{tde_libdir}/libchalkpdfimport.la -%{tde_libdir}/libchalkpdfimport.so -%{tde_libdir}/libchalkpngexport.la -%{tde_libdir}/libchalkpngexport.so -%{tde_libdir}/libchalkpngimport.la -%{tde_libdir}/libchalkpngimport.so -%{tde_libdir}/libchalk_raw_import.la -%{tde_libdir}/libchalk_raw_import.so -%{tde_libdir}/libchalktiffexport.la -%{tde_libdir}/libchalktiffexport.so -%{tde_libdir}/libchalktiffimport.la -%{tde_libdir}/libchalktiffimport.so -%{_libdir}/libkdeinit_chalk.so -%{_libdir}/libchalk_cmyk_*.so.* -%{_libdir}/libchalkcolor.so.* -%{_libdir}/libchalkcommon.so.* -%{_libdir}/libchalkgrayscale.so.* -%{_libdir}/libchalk_gray_*.so.* -%{_libdir}/libchalkimage.so.* -%{_libdir}/libchalk_lms_*.so.* -%{_libdir}/libchalk_rgb_*.so.* -%{_libdir}/libchalkrgb.so.* -%{_libdir}/libchalkui.so.* -%{_libdir}/libchalk_ycbcr_*.so.* -%if 0%{?with_kross} > 0 -%{tde_libdir}/krosschalkcore.la -%{tde_libdir}/krosschalkcore.so -%{tde_libdir}/chalkscripting.la -%{tde_libdir}/chalkscripting.so -%{_libdir}/libchalkscripting.so.* -%endif - -%files chalk-data -%{tde_appdir}/chalk.desktop -%{_datadir}/applnk/.hidden/chalk_*.desktop -%{_datadir}/apps/konqueror/servicemenus/chalk_konqi.desktop -%{_datadir}/apps/chalk -%{_datadir}/apps/chalkplugins -%lang(en) %{tde_docdir}/HTML/en/chalk -%{_datadir}/icons/hicolor/*/apps/chalk.png -%{_datadir}/services/chalk*.desktop -%{_datadir}/servicetypes/chalk*.desktop - - -%changelog -* Sun Jul 08 2012 Francois Andriot <francois.andriot@free.fr> - 1.6.3-5 -- Fix kformula dependancies (for RHEL6) -- Fix FTBFS due to missing libraries [Bug #657] [Commit #5c69fcd3] - Clean up lib paths in LDFLAGS - moved to LIBADD - For KWord and and KPresenter added linking kspell2 - For KSpread added linking kutils -- Fix accidental conversions of binary files [Bug #1033] [Commit #dbe89307] - -* Thu Apr 26 2012 Francois Andriot <francois.andriot@free.fr> - 1.6.3-4 -- Updates BuildRequires -- Build for Fedora 17 -- Fix compilation with GCC 4.7 [Bug #958] -- Fix compilation with Ruby 1.9 [Bug #735] -- Fix compilation with libpng [Bug #603] - -* Sat Jan 07 2012 Francois Andriot <francois.andriot@free.fr> - 1.6.3-3 -- Fix GraphicksMagick 1.3 support [Bug #353] -- Various patches for kexi [Bug #777] - -* Fri Nov 25 2011 Francois Andriot <francois.andriot@free.fr> - 1.6.3-2 -- Fix HTML directory location - -* Tue Nov 22 2011 Francois Andriot <francois.andriot@free.fr> - 1.6.3-1 -- Initial build for RHEL 5, RHEL 6, Fedora 15, Fedora 16 -- Based on Spec file from Fedora 11 'koffice-2:1.6.3-25.20090306svn' -- Removed 'krita', added 'chalk' diff --git a/redhat/applications/konversation/trinity-konversation-3.5.13.spec b/redhat/applications/konversation/trinity-konversation-3.5.13.spec index c99927475..730ed8433 100644 --- a/redhat/applications/konversation/trinity-konversation-3.5.13.spec +++ b/redhat/applications/konversation/trinity-konversation-3.5.13.spec @@ -1,25 +1,32 @@ # Default version for this component %define kdecomp konversation -%define version 1.1 -%define release 2 # If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". -%if "%{?_prefix}" != "/usr" +%if "%{?tde_prefix}" != "/usr" %define _variant .opt -%define _docdir %{_datadir}/doc %endif # TDE 3.5.13 specific building variables -BuildRequires: autoconf automake libtool m4 -%define tde_docdir %{_docdir}/kde -%define tde_includedir %{_includedir}/kde -%define tde_libdir %{_libdir}/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_mandir %{tde_datadir}/man +%define tde_appdir %{tde_datadir}/applications + +%define tde_tdeappdir %{tde_appdir}/kde +%define tde_tdedocdir %{tde_docdir}/kde +%define tde_tdeincludedir %{tde_includedir}/kde +%define tde_tdelibdir %{tde_libdir}/trinity + +%define _docdir %{tde_docdir} Name: trinity-%{kdecomp} Summary: user friendly Internet Relay Chat (IRC) client for KDE [Trinity] -Version: %{?version} -Release: %{?release}%{?dist}%{?_variant} +Version: 1.1 +Release: 2%{?dist}%{?_variant} License: GPLv2+ Group: Applications/Utilities @@ -28,7 +35,7 @@ Vendor: Trinity Project Packager: Francois Andriot <francois.andriot@free.fr> URL: http://www.trinitydesktop.org/ -Prefix: %{_prefix} +Prefix: %{tde_prefix} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source0: %{kdecomp}-3.5.13.tar.gz @@ -47,15 +54,19 @@ Patch5: bp004-ca3d6cef.diff BuildRequires: tqtinterface-devel BuildRequires: trinity-arts-devel -BuildRequires: trinity-kdelibs-devel -BuildRequires: trinity-kdebase-devel +BuildRequires: trinity-tdelibs-devel +BuildRequires: trinity-tdebase-devel BuildRequires: desktop-file-utils BuildRequires: gettext -BuildRequires: libxslt +BuildRequires: libxslt-devel BuildRequires: docbook-style-xsl -BuildRequires: libXi-devel +%if 0%{?mgaversion} || 0%{?mdkversion} +BuildRequires: %{_lib}xi-devel +%else +BuildRequires: libXi-devel +%endif %description Konversation is a client for the Internet Relay Chat (IRC) protocol. @@ -89,8 +100,8 @@ and experienced users alike will appreciate its many features: # Ugly hack to modify TQT include directory inside autoconf files. # If TQT detection fails, it fallbacks to TQT4 instead of TQT3 ! %__sed -i admin/acinclude.m4.in \ - -e "s|/usr/include/tqt|%{_includedir}/tqt|g" \ - -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_docdir}/HTML'|g" + -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \ + -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g" %__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in" %__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh" @@ -99,50 +110,76 @@ and experienced users alike will appreciate its many features: %build unset QTDIR || : ; source /etc/profile.d/qt.sh -export PATH="%{_bindir}:${PATH}" -export LDFLAGS="-L%{_libdir} -I%{_includedir}" +export PATH="%{tde_bindir}:${PATH}" +export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}" %configure \ - --disable-rpath \ - --with-extra-includes=%{_includedir}/tqt \ - --enable-closure + --prefix=%{tde_prefix} \ + --exec-prefix=%{tde_prefix} \ + --bindir=%{tde_bindir} \ + --datadir=%{tde_datadir} \ + --libdir=%{tde_libdir} \ + --mandir=%{tde_mandir} \ + --includedir=%{tde_tdeincludedir} \ + --disable-rpath \ + --with-extra-includes=%{tde_includedir}/tqt \ + --enable-closure %__make %{?_smp_mflags} %install -export PATH="%{_bindir}:${PATH}" +export PATH="%{tde_bindir}:${PATH}" %__rm -rf %{buildroot} %__make install DESTDIR=%{buildroot} - +%find_lang %{kdecomp} %clean %__rm -rf %{buildroot} %post -touch --no-create %{_datadir}/icons/hicolor || : -gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +touch --no-create %{tde_datadir}/icons/hicolor || : +gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || : %postun -touch --no-create %{_datadir}/icons/hicolor || : -gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +touch --no-create %{tde_datadir}/icons/hicolor || : +gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || : -%files +%files -f %{kdecomp}.lang %defattr(-,root,root,-) %doc AUTHORS COPYING -%{_bindir}/* -%{_datadir}/applications/*/*.desktop -%{_datadir}/locale/*/LC_MESSAGES/konversation.mo -%{_datadir}/config.kcfg/konversation.kcfg -%{_datadir}/services/*.protocol -#%{_datadir}/servicetypes/digikamimageplugin.desktop -%{_datadir}/apps/*/ -%{tde_docdir}/HTML/*/konversation/ -%{_datadir}/icons/*/*/*/* -#%{_mandir}/man*/* +%{tde_bindir}/konversation +%{tde_tdeappdir}/konversation.desktop +%{tde_datadir}/apps/kconf_update/konversation-0.19-appearance.pl +%{tde_datadir}/apps/kconf_update/konversation-0.19-colorcodes.pl +%{tde_datadir}/apps/kconf_update/konversation-0.19-colors.pl +%{tde_datadir}/apps/kconf_update/konversation-0.19-custombrowser.pl +%{tde_datadir}/apps/kconf_update/konversation-0.19-notifylists.pl +%{tde_datadir}/apps/kconf_update/konversation-0.19-sortorder.pl +%{tde_datadir}/apps/kconf_update/konversation-0.19-tabplacement.pl +%{tde_datadir}/apps/kconf_update/konversation-0.20-customfonts.pl +%{tde_datadir}/apps/kconf_update/konversation-0.20-quickbuttons.pl +%{tde_datadir}/apps/kconf_update/konversation.upd +%{tde_datadir}/apps/konversation/ +%{tde_datadir}/config.kcfg/konversation.kcfg +%{tde_datadir}/services/konvirc.protocol +%{tde_datadir}/services/konvirc6.protocol +%{tde_tdedocdir}/HTML/*/konversation/ +%{tde_datadir}/icons/crystalsvg/*/actions/kimproxyaway.png +%{tde_datadir}/icons/crystalsvg/*/actions/kimproxyoffline.png +%{tde_datadir}/icons/crystalsvg/*/actions/kimproxyonline.png +%{tde_datadir}/icons/crystalsvg/*/actions/char.png +%{tde_datadir}/icons/crystalsvg/*/actions/konv_message.png +%{tde_datadir}/icons/crystalsvg/scalable/actions/kimproxyaway.svgz +%{tde_datadir}/icons/crystalsvg/scalable/actions/kimproxyoffline.svgz +%{tde_datadir}/icons/crystalsvg/scalable/actions/kimproxyonline.svgz +%{tde_datadir}/icons/crystalsvg/scalable/actions/konv_message.svgz +%{tde_datadir}/icons/hicolor/*/apps/konversation.png +%{tde_datadir}/icons/hicolor/scalable/apps/konversation.svgz + %Changelog * Sat May 05 2012 Francois Andriot <francois.andriot@free.fr> - 1.1-2 diff --git a/redhat/applications/kopete-otr/trinity-kopete-otr.spec b/redhat/applications/kopete-otr/trinity-kopete-otr.spec index ec87c5a5e..c5a11710b 100644 --- a/redhat/applications/kopete-otr/trinity-kopete-otr.spec +++ b/redhat/applications/kopete-otr/trinity-kopete-otr.spec @@ -1,25 +1,35 @@ # Default version for this component %define kdecomp kopete-otr -%define version 0.7 -%define release 2 + +# Required for Mageia 2: removes the ldflag '--no-undefined' +%define _disable_ld_no_undefined 1 # If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". -%if "%{?_prefix}" != "/usr" +%if "%{?tde_prefix}" != "/usr" %define _variant .opt -%define _docdir %{_prefix}/share/doc %endif # TDE 3.5.13 specific building variables -BuildRequires: autoconf automake libtool m4 -%define tde_docdir %{_docdir}/kde -%define tde_includedir %{_includedir}/kde -%define tde_libdir %{_libdir}/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_mandir %{tde_datadir}/man +%define tde_appdir %{tde_datadir}/applications + +%define tde_tdeappdir %{tde_appdir}/kde +%define tde_tdedocdir %{tde_docdir}/kde +%define tde_tdeincludedir %{tde_includedir}/kde +%define tde_tdelibdir %{tde_libdir}/trinity + +%define _docdir %{tde_docdir} Name: trinity-%{kdecomp} Summary: Off-The-Record encryption for Kopete [Trinity] -Version: %{?version} -Release: %{?release}%{?dist}%{?_variant} +Version: 0.7 +Release: 2%{?dist}%{?_variant} License: GPLv2+ Group: Applications/Utilities @@ -28,20 +38,20 @@ Vendor: Trinity Project Packager: Francois Andriot <francois.andriot@free.fr> URL: http://www.trinitydesktop.org/ -Prefix: %{_prefix} +Prefix: %{tde_prefix} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source0: %{kdecomp}-3.5.13.tar.gz BuildRequires: tqtinterface-devel -BuildRequires: trinity-kdelibs-devel -BuildRequires: trinity-kdebase-devel +BuildRequires: trinity-tdelibs-devel +BuildRequires: trinity-tdebase-devel BuildRequires: desktop-file-utils # Kopete is provided by kdenetwork -BuildRequires: trinity-kdenetwork-devel -Requires: trinity-kdenetwork +BuildRequires: trinity-tdenetwork-devel +Requires: trinity-tdenetwork BuildRequires: libotr-devel %description @@ -51,14 +61,13 @@ users with IM-Cients supporting the OTR encryption method. %prep -unset QTDIR; . /etc/profile.d/qt.sh %setup -q -n applications/%{kdecomp} # Ugly hack to modify TQT include directory inside autoconf files. # If TQT detection fails, it fallbacks to TQT4 instead of TQT3 ! %__sed -i admin/acinclude.m4.in \ - -e "s|/usr/include/tqt|%{_includedir}/tqt|g" \ - -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_docdir}/HTML'|g" + -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \ + -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g" %__cp "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in" %__cp "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh" @@ -66,57 +75,65 @@ unset QTDIR; . /etc/profile.d/qt.sh %build -export PATH="%{_bindir}:${PATH}" -export LDFLAGS="-L%{_libdir} -I%{_includedir}" +unset QTDIR; . /etc/profile.d/qt.sh +export PATH="%{tde_bindir}:${PATH}" +export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}" %configure \ - --disable-rpath \ - --with-extra-includes=%{_includedir}/tqt \ - --enable-closure - -%__make %{?_smp_mflags} + --prefix=%{tde_prefix} \ + --exec-prefix=%{tde_prefix} \ + --bindir=%{tde_bindir} \ + --datadir=%{tde_datadir} \ + --libdir=%{tde_libdir} \ + --mandir=%{tde_mandir} \ + --includedir=%{tde_tdeincludedir} \ + --disable-rpath \ + --with-extra-includes=%{tde_includedir}/tqt \ + --enable-closure + +%__make %{_smp_mflags} %install -export PATH="%{_bindir}:${PATH}" +export PATH="%{tde_bindir}:${PATH}" %__rm -rf %{buildroot} %__make install DESTDIR=%{buildroot} +# Unwanted files +%__rm -f %{?buildroot}%{tde_libdir}/libkotr.so + +%find_lang kopete_otr %clean %__rm -rf %{buildroot} %post -touch --no-create %{_datadir}/icons/crystalsvg || : -gtk-update-icon-cache --quiet %{_datadir}/icons/crystalsvg || : +touch --no-create %{tde_datadir}/icons/crystalsvg || : +gtk-update-icon-cache --quiet %{tde_datadir}/icons/crystalsvg || : /sbin/ldconfig || : %postun -touch --no-create %{_datadir}/icons/crystalsvg || : -gtk-update-icon-cache --quiet %{_datadir}/icons/crystalsvg || : +touch --no-create %{tde_datadir}/icons/crystalsvg || : +gtk-update-icon-cache --quiet %{tde_datadir}/icons/crystalsvg || : /sbin/ldconfig || : -%files +%files -f kopete_otr.lang %defattr(-,root,root,-) %doc AUTHORS ChangeLog COPYING README TODO -%{_libdir}/libkotr.la -%{_libdir}/libkotr.so -%{_libdir}/libkotr.so.0 -%{_libdir}/libkotr.so.0.0.0 -%{tde_libdir}/kcm_kopete_otr.la -%{tde_libdir}/kcm_kopete_otr.so -%{tde_libdir}/kopete_otr.la -%{tde_libdir}/kopete_otr.so -%{_datadir}/apps/kopete_otr -%{_datadir}/config.kcfg/kopete_otr.kcfg -%{tde_docdir}/HTML/en/kopete_otr/common -%{tde_docdir}/HTML/en/kopete_otr/index.cache.bz2 -%{tde_docdir}/HTML/en/kopete_otr/index.docbook -%{_datadir}/icons/crystalsvg/16x16/apps/kopete_otr.png -%{_datadir}/locale/de/LC_MESSAGES/kopete_otr.mo -%{_datadir}/services/kconfiguredialog/kopete_otr_config.desktop -%{_datadir}/services/kopete_otr.desktop +%{tde_libdir}/libkotr.la +%{tde_libdir}/libkotr.so.0 +%{tde_libdir}/libkotr.so.0.0.0 +%{tde_tdelibdir}/kcm_kopete_otr.la +%{tde_tdelibdir}/kcm_kopete_otr.so +%{tde_tdelibdir}/kopete_otr.la +%{tde_tdelibdir}/kopete_otr.so +%{tde_datadir}/apps/kopete_otr +%{tde_datadir}/config.kcfg/kopete_otr.kcfg +%{tde_tdedocdir}/HTML/en/kopete_otr/ +%{tde_datadir}/icons/crystalsvg/16x16/apps/kopete_otr.png +%{tde_datadir}/services/kconfiguredialog/kopete_otr_config.desktop +%{tde_datadir}/services/kopete_otr.desktop %Changelog diff --git a/redhat/applications/kpicosim/kpicosim-3.5.13-fix_not_a_string_literal_error.patch b/redhat/applications/kpicosim/kpicosim-3.5.13-fix_not_a_string_literal_error.patch new file mode 100644 index 000000000..fa2f57859 --- /dev/null +++ b/redhat/applications/kpicosim/kpicosim-3.5.13-fix_not_a_string_literal_error.patch @@ -0,0 +1,11 @@ +--- kpicosim/src/cassembler.cpp.ORI 2012-08-05 23:39:09.061007283 +0200 ++++ kpicosim/src/cassembler.cpp 2012-08-05 23:42:53.639017712 +0200 +@@ -575,7 +575,7 @@ + for( j = 31 ; j >= 0 ; j-- ) + fprintf( outfile, "%02X", INITP[ j ][ line ] ) ; + } else if ( strcmp( "name", varname ) == 0 ) { +- fprintf( outfile, entityName.c_str() ) ; ++ fprintf( outfile, "%s", entityName.c_str() ) ; + } else if ( strcmp( "begin template", varname ) == 0 ) { + copy = true ; + } diff --git a/redhat/applications/kpicosim/trinity-kpicosim.spec b/redhat/applications/kpicosim/trinity-kpicosim.spec index e6fcf0466..43c024ed5 100644 --- a/redhat/applications/kpicosim/trinity-kpicosim.spec +++ b/redhat/applications/kpicosim/trinity-kpicosim.spec @@ -1,25 +1,32 @@ # Default version for this component %define kdecomp kpicosim -%define version 0.6a -%define release 1 # If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". -%if "%{?_prefix}" != "/usr" +%if "%{?tde_prefix}" != "/usr" %define _variant .opt -%define _docdir %{_datadir}/doc %endif # TDE 3.5.13 specific building variables -BuildRequires: autoconf automake libtool m4 -%define tde_docdir %{_docdir}/kde -%define tde_includedir %{_includedir}/kde -%define tde_libdir %{_libdir}/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_mandir %{tde_datadir}/man +%define tde_appdir %{tde_datadir}/applications + +%define tde_tdeappdir %{tde_appdir}/kde +%define tde_tdedocdir %{tde_docdir}/kde +%define tde_tdeincludedir %{tde_includedir}/kde +%define tde_tdelibdir %{tde_libdir}/trinity + +%define _docdir %{tde_docdir} Name: trinity-%{kdecomp} Summary: IDE and simulator for the Xilinx PicoBlaze-3 [Trinity] -Version: %{?version} -Release: %{?release}%{?dist}%{?_variant} +Version: 0.6a +Release: 1%{?dist}%{?_variant} License: GPLv2+ Group: Applications/Utilities @@ -28,14 +35,17 @@ Vendor: Trinity Project Packager: Francois Andriot <francois.andriot@free.fr> URL: http://www.trinitydesktop.org -Prefix: %{_prefix} +Prefix: %{tde_prefix} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source0: %{kdecomp}-3.5.13.tar.gz +# [kpicosim] Fix "not a string literal" error +Patch1: kpicosim-3.5.13-fix_not_a_string_literal_error.patch + BuildRequires: tqtinterface-devel -BuildRequires: trinity-kdelibs-devel -BuildRequires: trinity-kdebase-devel +BuildRequires: trinity-tdelibs-devel +BuildRequires: trinity-tdebase-devel BuildRequires: desktop-file-utils BuildRequires: gettext @@ -49,12 +59,13 @@ simulator and export functions to VHDL, HEX and MEM files. %prep %setup -q -n applications/%{kdecomp} +%patch1 -p1 # Ugly hack to modify TQT include directory inside autoconf files. # If TQT detection fails, it fallbacks to TQT4 instead of TQT3 ! %__sed -i admin/acinclude.m4.in \ - -e "s|/usr/include/tqt|%{_includedir}/tqt|g" \ - -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_docdir}/HTML'|g" + -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \ + -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g" %__cp "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in" %__cp "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh" @@ -62,19 +73,27 @@ simulator and export functions to VHDL, HEX and MEM files. %build -export PATH="%{_bindir}:${PATH}" -export LDFLAGS="-L%{_libdir} -I%{_includedir}" +unset QTDIR; . /etc/profile.d/qt.sh +export PATH="%{tde_bindir}:${PATH}" +export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}" %configure \ - --disable-rpath \ - --with-extra-includes=%{_includedir}/tqt:%{tde_includedir} + --prefix=%{tde_prefix} \ + --exec-prefix=%{tde_prefix} \ + --bindir=%{tde_bindir} \ + --datadir=%{tde_datadir} \ + --libdir=%{tde_libdir} \ + --mandir=%{tde_mandir} \ + --includedir=%{tde_tdeincludedir} \ + --disable-rpath \ + --with-extra-includes=%{tde_includedir}/tqt:%{tde_tdeincludedir} # SMP safe ! %__make %{?_smp_mflags} %install -export PATH="%{_bindir}:${PATH}" +export PATH="%{tde_bindir}:${PATH}" %__rm -rf %{buildroot} %__make install DESTDIR=%{buildroot} @@ -88,23 +107,23 @@ export PATH="%{_bindir}:${PATH}" %post -touch --no-create %{_datadir}/icons/hicolor || : -gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +touch --no-create %{tde_datadir}/icons/hicolor || : +gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || : %postun -touch --no-create %{_datadir}/icons/hicolor || : -gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +touch --no-create %{tde_datadir}/icons/hicolor || : +gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || : %files -f %{kdecomp}.lang %defattr(-,root,root,-) %doc AUTHORS ChangeLog COPYING NEWS README -%{_bindir}/kpicosim -%{_datadir}/applnk/Development/kpicosim.desktop -%{_datadir}/apps/katepart/syntax/psm.xml -%{_datadir}/apps/kpicosim -%{tde_docdir}/HTML/en/kpicosim -%{_datadir}/icons/hicolor/*/apps/kpicosim.png +%{tde_bindir}/kpicosim +%{tde_datadir}/applnk/Development/kpicosim.desktop +%{tde_datadir}/apps/katepart/syntax/psm.xml +%{tde_datadir}/apps/kpicosim +%{tde_tdedocdir}/HTML/en/kpicosim +%{tde_datadir}/icons/hicolor/*/apps/kpicosim.png %Changelog diff --git a/redhat/applications/kpilot/kpilot-3.5.13-missing_ldflags.patch b/redhat/applications/kpilot/kpilot-3.5.13-missing_ldflags.patch new file mode 100644 index 000000000..c655bbeb4 --- /dev/null +++ b/redhat/applications/kpilot/kpilot-3.5.13-missing_ldflags.patch @@ -0,0 +1,11 @@ +--- kpilot/lib/Makefile.am.ORI 2012-08-05 23:51:32.492490057 +0200 ++++ kpilot/lib/Makefile.am 2012-08-05 23:51:42.771261684 +0200 +@@ -29,7 +29,7 @@ + pilotTodoEntry.cc + + libkpilot_la_LDFLAGS = $(PISOCK_LDFLAGS) -no-undefined $(all_libraries) $(KDE_EXTRA_RPATH) $(KDE_RPATH) +-libkpilot_la_LIBADD = $(PISOCK_LIB) $(LIB_KDEUI) $(LIB_KABC) -lkcal ++libkpilot_la_LIBADD = $(PISOCK_LIB) $(LIB_KDEUI) $(LIB_KABC) -lkcal $(LIB_QT) $(LIB_KDECORE) -lDCOP $(LIB_KIO) + + kpilotincludedir = $(includedir)/kpilot + kpilotinclude_HEADERS = \ diff --git a/redhat/applications/kpilot/trinity-kpilot.spec b/redhat/applications/kpilot/trinity-kpilot.spec index ad078e091..1c2fff802 100644 --- a/redhat/applications/kpilot/trinity-kpilot.spec +++ b/redhat/applications/kpilot/trinity-kpilot.spec @@ -1,25 +1,32 @@ # Default version for this component %define kdecomp kpilot -%define version 0.7 -%define release 2 # If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". -%if "%{?_prefix}" != "/usr" +%if "%{?tde_prefix}" != "/usr" %define _variant .opt -%define _docdir %{_prefix}/share/doc %endif # TDE 3.5.13 specific building variables -BuildRequires: autoconf automake libtool m4 -%define tde_docdir %{_docdir}/kde -%define tde_includedir %{_includedir}/kde -%define tde_libdir %{_libdir}/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_mandir %{tde_datadir}/man +%define tde_appdir %{tde_datadir}/applications + +%define tde_tdeappdir %{tde_appdir}/kde +%define tde_tdedocdir %{tde_docdir}/kde +%define tde_tdeincludedir %{tde_includedir}/kde +%define tde_tdelibdir %{tde_libdir}/trinity + +%define _docdir %{tde_docdir} Name: trinity-%{kdecomp} Summary: TDE Palm Pilot hot-sync tool -Version: %{?version} -Release: %{?release}%{?dist}%{?_variant} +Version: 0.7 +Release: 2%{?dist}%{?_variant} License: GPLv2+ Group: Applications/Utilities @@ -28,7 +35,7 @@ Vendor: Trinity Project Packager: Francois Andriot <francois.andriot@free.fr> URL: http://www.trinitydesktop.org -Prefix: %{_prefix} +Prefix: %{tde_prefix} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source0: %{kdecomp}-3.5.13.tar.gz @@ -36,9 +43,12 @@ Source0: %{kdecomp}-3.5.13.tar.gz # Fix FTBFS Patch0: kpilot-3.5.13-ftbfs.patch +# [kpilot] Missing LDFLAGS cause FTBFS on Mageia / Mandriva +Patch1: kpilot-3.5.13-missing_ldflags.patch + BuildRequires: tqtinterface-devel -BuildRequires: trinity-kdelibs-devel -BuildRequires: trinity-kdebase-devel +BuildRequires: trinity-tdelibs-devel +BuildRequires: trinity-tdebase-devel BuildRequires: desktop-file-utils BuildRequires: gettext @@ -55,12 +65,13 @@ and synchronize the built-in applications with their KDE counterparts. %prep %setup -q -n applications/%{kdecomp} %patch0 -p1 +%patch1 -p1 -b .ldflags # Ugly hack to modify TQT include directory inside autoconf files. # If TQT detection fails, it fallbacks to TQT4 instead of TQT3 ! %__sed -i admin/acinclude.m4.in \ - -e "s|/usr/include/tqt|%{_includedir}/tqt|g" \ - -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_docdir}/HTML'|g" + -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \ + -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g" %__cp "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in" %__cp "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh" @@ -68,24 +79,34 @@ and synchronize the built-in applications with their KDE counterparts. %build -export PATH="%{_bindir}:${PATH}" -export LDFLAGS="-L%{_libdir} -I%{_includedir}" +unset QTDIR; . /etc/profile.d/qt.sh +export PATH="%{tde_bindir}:${PATH}" +export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}" %configure \ - --disable-rpath \ - --with-extra-includes=%{_includedir}/tqt:%{tde_includedir} + --prefix=%{tde_prefix} \ + --exec-prefix=%{tde_prefix} \ + --bindir=%{tde_bindir} \ + --datadir=%{tde_datadir} \ + --libdir=%{tde_libdir} \ + --mandir=%{tde_mandir} \ + --includedir=%{tde_tdeincludedir} \ + --disable-rpath \ + --with-extra-includes=%{tde_includedir}/tqt:%{tde_tdeincludedir} # SMP safe ! %__make %{?_smp_mflags} %install -export PATH="%{_bindir}:${PATH}" +export PATH="%{tde_bindir}:${PATH}" %__rm -rf %{buildroot} %__make install DESTDIR=%{buildroot} +# Unwanted files +%__rm -f %{?buildroot}%{tde_libdir}/libkpilot.so -%find_lang %{kdecomp} || touch %{kdecomp}.lang +%find_lang %{kdecomp} @@ -94,65 +115,66 @@ export PATH="%{_bindir}:${PATH}" %post +update-desktop-database %{tde_appdir} > /dev/null for f in hicolor locolor crystalsvg; do - touch --no-create %{_datadir}/icons/${f} || : - gtk-update-icon-cache --quiet %{_datadir}/icons/${f} || : + touch --no-create %{tde_datadir}/icons/${f} || : + gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} || : done /sbin/ldconfig || : %postun +update-desktop-database %{tde_appdir} > /dev/null for f in hicolor locolor crystalsvg; do - touch --no-create %{_datadir}/icons/${f} || : - gtk-update-icon-cache --quiet %{_datadir}/icons/${f} || : + touch --no-create %{tde_datadir}/icons/${f} || : + gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} || : done /sbin/ldconfig || : %files -f %{kdecomp}.lang %defattr(-,root,root,-) -%{_bindir}/kpalmdoc -%{_bindir}/kpilot -%{_bindir}/kpilotDaemon -%{_includedir}/kpilot -%{_libdir}/libkpilot.la -%{_libdir}/libkpilot.so -%{_libdir}/libkpilot.so.0 -%{_libdir}/libkpilot.so.0.0.0 -%{tde_libdir}/conduit_address.la -%{tde_libdir}/conduit_address.so -%{tde_libdir}/conduit_doc.la -%{tde_libdir}/conduit_doc.so -%{tde_libdir}/conduit_knotes.la -%{tde_libdir}/conduit_knotes.so -%{tde_libdir}/conduit_memofile.la -%{tde_libdir}/conduit_memofile.so -%{tde_libdir}/conduit_notepad.la -%{tde_libdir}/conduit_notepad.so -%{tde_libdir}/conduit_popmail.la -%{tde_libdir}/conduit_popmail.so -%{tde_libdir}/conduit_sysinfo.la -%{tde_libdir}/conduit_sysinfo.so -%{tde_libdir}/conduit_time.la -%{tde_libdir}/conduit_time.so -%{tde_libdir}/conduit_todo.la -%{tde_libdir}/conduit_todo.so -%{tde_libdir}/conduit_vcal.la -%{tde_libdir}/conduit_vcal.so -%{tde_libdir}/kcm_kpilot.la -%{tde_libdir}/kcm_kpilot.so -%{_datadir}/applications/kde/kpalmdoc.desktop -%{_datadir}/applications/kde/kpilot.desktop -%{_datadir}/applications/kde/kpilotdaemon.desktop -%{_datadir}/apps/kaddressbook/contacteditorpages/KPilotCustomFieldEditor.ui -%{_datadir}/apps/kconf_update/kpalmdoc.upd -%{_datadir}/apps/kconf_update/kpilot.upd -%{_datadir}/apps/kpilot -%{_datadir}/config.kcfg/*.kcfg -%{_datadir}/icons/crystalsvg/*/apps/*.png -%{_datadir}/icons/hicolor/*/apps/*.png -%{_datadir}/icons/locolor/*/apps/*.png -%{_datadir}/services/*.desktop -%{_datadir}/servicetypes/kpilotconduit.desktop +%{tde_bindir}/kpalmdoc +%{tde_bindir}/kpilot +%{tde_bindir}/kpilotDaemon +%{tde_tdeincludedir}/kpilot +%{tde_libdir}/libkpilot.la +%{tde_libdir}/libkpilot.so.0 +%{tde_libdir}/libkpilot.so.0.0.0 +%{tde_tdelibdir}/conduit_address.la +%{tde_tdelibdir}/conduit_address.so +%{tde_tdelibdir}/conduit_doc.la +%{tde_tdelibdir}/conduit_doc.so +%{tde_tdelibdir}/conduit_knotes.la +%{tde_tdelibdir}/conduit_knotes.so +%{tde_tdelibdir}/conduit_memofile.la +%{tde_tdelibdir}/conduit_memofile.so +%{tde_tdelibdir}/conduit_notepad.la +%{tde_tdelibdir}/conduit_notepad.so +%{tde_tdelibdir}/conduit_popmail.la +%{tde_tdelibdir}/conduit_popmail.so +%{tde_tdelibdir}/conduit_sysinfo.la +%{tde_tdelibdir}/conduit_sysinfo.so +%{tde_tdelibdir}/conduit_time.la +%{tde_tdelibdir}/conduit_time.so +%{tde_tdelibdir}/conduit_todo.la +%{tde_tdelibdir}/conduit_todo.so +%{tde_tdelibdir}/conduit_vcal.la +%{tde_tdelibdir}/conduit_vcal.so +%{tde_tdelibdir}/kcm_kpilot.la +%{tde_tdelibdir}/kcm_kpilot.so +%{tde_tdeappdir}/kpalmdoc.desktop +%{tde_tdeappdir}/kpilot.desktop +%{tde_tdeappdir}/kpilotdaemon.desktop +%{tde_datadir}/apps/kaddressbook/contacteditorpages/KPilotCustomFieldEditor.ui +%{tde_datadir}/apps/kconf_update/kpalmdoc.upd +%{tde_datadir}/apps/kconf_update/kpilot.upd +%{tde_datadir}/apps/kpilot +%{tde_datadir}/config.kcfg/*.kcfg +%{tde_datadir}/icons/crystalsvg/*/apps/*.png +%{tde_datadir}/icons/hicolor/*/apps/*.png +%{tde_datadir}/icons/locolor/*/apps/*.png +%{tde_datadir}/services/*.desktop +%{tde_datadir}/servicetypes/kpilotconduit.desktop %Changelog diff --git a/redhat/applications/kpowersave/trinity-kpowersave.spec b/redhat/applications/kpowersave/trinity-kpowersave.spec index 427d621c8..b496d3af6 100644 --- a/redhat/applications/kpowersave/trinity-kpowersave.spec +++ b/redhat/applications/kpowersave/trinity-kpowersave.spec @@ -1,24 +1,31 @@ # Default version for this component %define kdecomp kpowersave -%define version 0.7.3 -%define release 2 # If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". -%if "%{?_prefix}" != "/usr" +%if "%{?tde_prefix}" != "/usr" %define _variant .opt -%define _docdir %{_datadir}/doc %endif # TDE 3.5.13 specific building variables -BuildRequires: autoconf automake libtool m4 -%define tde_docdir %{_docdir}/kde -%define tde_includedir %{_includedir}/kde -%define tde_libdir %{_libdir}/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_mandir %{tde_datadir}/man +%define tde_appdir %{tde_datadir}/applications + +%define tde_tdeappdir %{tde_appdir}/kde +%define tde_tdedocdir %{tde_docdir}/kde +%define tde_tdeincludedir %{tde_includedir}/kde +%define tde_tdelibdir %{tde_libdir}/trinity + +%define _docdir %{tde_docdir} Name: trinity-%{kdecomp} -Version: %{?version} -Release: %{?release}%{?dist}%{?_variant} +Version: 0.7.3 +Release: 2%{?dist}%{?_variant} Summary: HAL based power management applet for Trinityfiles or directories. License: GPLv2+ @@ -28,15 +35,15 @@ Vendor: Trinity Project Packager: Francois Andriot <francois.andriot@free.fr> URL: http://www.trinitydesktop.org/ -Prefix: %{_prefix} +Prefix: %{tde_prefix} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source0: %{kdecomp}-3.5.13.tar.gz BuildRequires: tqtinterface-devel -BuildRequires: trinity-kdelibs-devel -BuildRequires: trinity-kdebase-devel +BuildRequires: trinity-tdelibs-devel +BuildRequires: trinity-tdebase-devel BuildRequires: desktop-file-utils %description @@ -75,18 +82,29 @@ settings for: %build unset QTDIR || : ; . /etc/profile.d/qt.sh -export PATH="%{_bindir}:${PATH}" +export PATH="%{tde_bindir}:${PATH}" + +export PKG_CONFIG_PATH="%{tde_libdir}/pkgconfig" -%__mkdir build +%if 0%{?rhel} || 0%{?fedora} +%__mkdir_p build cd build +%endif + %cmake \ + -DCMAKE_INSTALL_PREFIX=%{tde_prefix} \ + -DBIN_INSTALL_DIR=%{tde_bindir} \ + -DINCLUDE_INSTALL_DIR=%{tde_tdeincludedir} \ + -DLIB_INSTALL_DIR=%{tde_libdir} \ + -DSHARE_INSTALL_PREFIX=%{tde_datadir} \ + -DCMAKE_SKIP_RPATH="OFF" \ .. %__make %{?_smp_mflags} %install -export PATH="%{_bindir}:${PATH}" +export PATH="%{tde_bindir}:${PATH}" %__rm -rf %{buildroot} %__make install DESTDIR=%{buildroot} -C build @@ -96,30 +114,32 @@ export PATH="%{_bindir}:${PATH}" %post +update-desktop-database %{tde_appdir} > /dev/null /sbin/ldconfig -touch --no-create %{_datadir}/icons/hicolor || : -gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +touch --no-create %{tde_datadir}/icons/hicolor || : +gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || : %postun +update-desktop-database %{tde_appdir} > /dev/null /sbin/ldconfig -touch --no-create %{_datadir}/icons/hicolor || : -gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +touch --no-create %{tde_datadir}/icons/hicolor || : +gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || : %files %defattr(-,root,root,-) %doc AUTHORS ChangeLog COPYING NEWS README TODO -%{_bindir}/kpowersave -%{_libdir}/libkdeinit_kpowersave.la -%{_libdir}/libkdeinit_kpowersave.so -%{tde_libdir}/kpowersave.la -%{tde_libdir}/kpowersave.so -%{_datadir}/applications/kde/kpowersave.desktop -%{_datadir}/apps/kpowersave/eventsrc -%{_datadir}/apps/kpowersave/icons/*/*/*/*.png -%{_datadir}/icons/hicolor/*/*/*.png -%{_datadir}/autostart/kpowersave-autostart.desktop -%{_datadir}/config/kpowersaverc +%{tde_bindir}/kpowersave +%{tde_libdir}/libkdeinit_kpowersave.la +%{tde_libdir}/libkdeinit_kpowersave.so +%{tde_tdelibdir}/kpowersave.la +%{tde_tdelibdir}/kpowersave.so +%{tde_tdeappdir}/kpowersave.desktop +%{tde_datadir}/apps/kpowersave/eventsrc +%{tde_datadir}/apps/kpowersave/icons/*/*/*/*.png +%{tde_datadir}/icons/hicolor/*/*/*.png +%{tde_datadir}/autostart/kpowersave-autostart.desktop +%{tde_datadir}/config/kpowersaverc %Changelog * Sat Nov 26 2011 Francois Andriot <francois.andriot@free.fr> - 0.7.3-2 diff --git a/redhat/applications/kradio/trinity-kradio.spec b/redhat/applications/kradio/trinity-kradio.spec index efec2fec8..dfaedd47d 100644 --- a/redhat/applications/kradio/trinity-kradio.spec +++ b/redhat/applications/kradio/trinity-kradio.spec @@ -2,17 +2,25 @@ %define kdecomp kradio # If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". -%if "%{?_prefix}" != "/usr" +%if "%{?tde_prefix}" != "/usr" %define _variant .opt -%define _docdir %{_datadir}/doc %endif # TDE 3.5.13 specific building variables -BuildRequires: autoconf automake libtool m4 -%define tde_appdir %{_datadir}/applications/kde -%define tde_docdir %{_docdir}/kde -%define tde_includedir %{_includedir}/kde -%define tde_libdir %{_libdir}/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_mandir %{tde_datadir}/man +%define tde_appdir %{tde_datadir}/applications + +%define tde_tdeappdir %{tde_appdir}/kde +%define tde_tdedocdir %{tde_docdir}/kde +%define tde_tdeincludedir %{tde_includedir}/kde +%define tde_tdelibdir %{tde_libdir}/trinity + +%define _docdir %{tde_docdir} Name: trinity-%{kdecomp} @@ -27,20 +35,25 @@ Vendor: Trinity Project Packager: Francois Andriot <francois.andriot@free.fr> URL: http://www.trinitydesktop.org/ -Prefix: %{_prefix} +Prefix: %{tde_prefix} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source0: %{kdecomp}-3.5.13.tar.gz BuildRequires: tqtinterface-devel -BuildRequires: trinity-kdelibs-devel -BuildRequires: trinity-kdebase-devel +BuildRequires: trinity-tdelibs-devel +BuildRequires: trinity-tdebase-devel BuildRequires: desktop-file-utils BuildRequires: gettext BuildRequires: libsndfile-devel BuildRequires: lirc-devel + +%if 0%{?mgaversion} || 0%{?mdkversion} +BuildRequires: %{_lib}twolame-devel +%else BuildRequires: lame-devel +%endif %description KRadio is a comfortable radio application for Trinity with support for @@ -69,8 +82,8 @@ of new plugins (e.g. Internet Radio Streams, new cool GUIs) are welcome. # Ugly hack to modify TQT include directory inside autoconf files. # If TQT detection fails, it fallbacks to TQT4 instead of TQT3 ! %__sed -i admin/acinclude.m4.in \ - -e "s|/usr/include/tqt|%{_includedir}/tqt|g" \ - -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_docdir}/HTML'|g" + -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \ + -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g" %__cp "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in" %__cp "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh" @@ -78,18 +91,32 @@ of new plugins (e.g. Internet Radio Streams, new cool GUIs) are welcome. %build -export PATH="%{_bindir}:${PATH}" -export LDFLAGS="-L%{_libdir} -I%{_includedir}" +unset QTDIR; . /etc/profile.d/qt.sh +export PATH="%{tde_bindir}:${PATH}" +export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}" %configure \ - --disable-rpath \ - --with-extra-includes=%{_includedir}/tqt + --prefix=%{tde_prefix} \ + --exec-prefix=%{tde_prefix} \ + --bindir=%{tde_bindir} \ + --datadir=%{tde_datadir} \ + --libdir=%{tde_libdir} \ + --mandir=%{tde_mandir} \ + --includedir=%{tde_tdeincludedir} \ + --disable-rpath \ + --with-extra-includes=%{tde_includedir}/tqt \ + --enable-lirc \ + --enable-v4l2 \ + --enable-lame \ + --enable-ogg \ + --enable-alsa \ + --enable-oss %__make %{?_smp_mflags} %install -export PATH="%{_bindir}:${PATH}" +export PATH="%{tde_bindir}:${PATH}" %__rm -rf %{buildroot} %__make install DESTDIR=%{buildroot} @@ -101,28 +128,28 @@ export PATH="%{_bindir}:${PATH}" %post for f in hicolor locolor ; do - touch --no-create %{_datadir}/icons/${f} || : - gtk-update-icon-cache --quiet %{_datadir}/icons/${f} || : + touch --no-create %{tde_datadir}/icons/${f} || : + gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} || : done -update-desktop-database -q &> /dev/null ||: +update-desktop-database %{tde_appdir} -q &> /dev/null ||: %postun for f in hicolor locolor ; do - touch --no-create %{_datadir}/icons/${f} || : - gtk-update-icon-cache --quiet %{_datadir}/icons/${f} || : + touch --no-create %{tde_datadir}/icons/${f} || : + gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} || : done -update-desktop-database -q &> /dev/null ||: +update-desktop-database %{tde_appdir} -q &> /dev/null ||: %files -f %{kdecomp}.lang %defattr(-,root,root,-) -%{_bindir}/convert-presets -%{_bindir}/kradio -%{_libdir}/kradio/plugins/*.la -%{_libdir}/kradio/plugins/*.so -%{tde_appdir}/kradio.desktop -%{_datadir}/apps/kradio/ -%{_datadir}/locale/*/LC_MESSAGES/kradio-*.mo +%{tde_bindir}/convert-presets +%{tde_bindir}/kradio +%{tde_libdir}/kradio/plugins/*.la +%{tde_libdir}/kradio/plugins/*.so +%{tde_tdeappdir}/kradio.desktop +%{tde_datadir}/apps/kradio/ +%{tde_datadir}/locale/*/LC_MESSAGES/kradio-*.mo %Changelog * Sun Jul 08 2012 Francois Andriot <francois.andriot@free.fr> - 0.1.1.1-3 diff --git a/redhat/applications/krename/trinity-krename-3.5.12.spec b/redhat/applications/krename/trinity-krename-3.5.12.spec index 37fc9e1c5..d76ed0723 100644 --- a/redhat/applications/krename/trinity-krename-3.5.12.spec +++ b/redhat/applications/krename/trinity-krename-3.5.12.spec @@ -6,14 +6,14 @@ # 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 %{tde_prefix}/share/doc %endif # TDE 3.5.12 specific building variables BuildRequires: autoconf automake libtool m4 %define tde_docdir %{_docdir} -%define tde_includedir %{_includedir}/kde -%define tde_libdir %{_libdir}/kde3 +%define tde_includedir %{tde_includedir}/kde +%define tde_libdir %{tde_libdir}/kde3 Name: trinity-%{kdecomp} @@ -31,8 +31,8 @@ URL: http://www.trinitydesktop.org/ Source0: %{kdecomp}-3.5.12.tar.gz BuildRequires: tqtinterface-devel -BuildRequires: trinity-kdelibs-devel -BuildRequires: trinity-kdebase-devel +BuildRequires: trinity-tdelibs-devel +BuildRequires: trinity-tdebase-devel BuildRequires: desktop-file-utils BuildRequires: imlib-devel @@ -51,19 +51,20 @@ or Exif informations of an image. %build -export PATH="%{_bindir}:${PATH}" -export LDFLAGS="-L%{_libdir} -I%{_includedir}" +unset QTDIR; . /etc/profile.d/qt.sh +export PATH="%{tde_bindir}:${PATH}" +export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}" %configure \ --disable-rpath \ - --with-extra-includes=%{_includedir}/tqt \ + --with-extra-includes=%{tde_includedir}/tqt \ --enable-closure %__make %{?_smp_mflags} %install -export PATH="%{_bindir}:${PATH}" +export PATH="%{tde_bindir}:${PATH}" %__rm -rf %{buildroot} %make_install @@ -73,23 +74,23 @@ export PATH="%{_bindir}:${PATH}" %post -touch --no-create %{_datadir}/icons/hicolor || : -gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +touch --no-create %{tde_datadir}/icons/hicolor || : +gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || : %postun -touch --no-create %{_datadir}/icons/hicolor || : -gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +touch --no-create %{tde_datadir}/icons/hicolor || : +gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || : %files %defattr(-,root,root,-) %doc AUTHORS COPYING -%{_bindir}/* -%{_datadir}/applications/*/*.desktop -%{_datadir}/apps/*/ -%{tde_docdir}/HTML/en/*/ -%{_datadir}/icons/*/*/*/* -%{_datadir}/locale/*/*/*.mo +%{tde_bindir}/* +%{tde_datadir}/applications/*/*.desktop +%{tde_datadir}/apps/*/ +%{tde_tdedocdir}/HTML/en/*/ +%{tde_datadir}/icons/*/*/*/* +%{tde_datadir}/locale/*/*/*.mo %Changelog diff --git a/redhat/applications/krename/trinity-krename-3.5.13.spec b/redhat/applications/krename/trinity-krename-3.5.13.spec index 1b0a6929e..bb74edf1d 100644 --- a/redhat/applications/krename/trinity-krename-3.5.13.spec +++ b/redhat/applications/krename/trinity-krename-3.5.13.spec @@ -1,25 +1,32 @@ # Default version for this component %define kdecomp krename -%define version 3.0.14 -%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" +%if "%{?tde_prefix}" != "/usr" %define _variant .opt -%define _docdir %{_datadir}/doc %endif # TDE 3.5.13 specific building variables -BuildRequires: autoconf automake libtool m4 -%define tde_docdir %{_docdir}/kde -%define tde_includedir %{_includedir}/kde -%define tde_libdir %{_libdir}/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_mandir %{tde_datadir}/man +%define tde_appdir %{tde_datadir}/applications + +%define tde_tdeappdir %{tde_appdir}/kde +%define tde_tdedocdir %{tde_docdir}/kde +%define tde_tdeincludedir %{tde_includedir}/kde +%define tde_tdelibdir %{tde_libdir}/trinity + +%define _docdir %{tde_docdir} Name: trinity-%{kdecomp} Summary: A TDE batch file renaming utility. -Version: %{?version} -Release: %{?release}%{?dist}%{?_variant} +Version: 3.0.14 +Release: 4%{?dist}%{?_variant} License: GPLv2+ Group: Applications/Utilities @@ -28,14 +35,14 @@ Vendor: Trinity Project Packager: Francois Andriot <francois.andriot@free.fr> URL: http://www.trinitydesktop.org/ -Prefix: %{_prefix} +Prefix: %{tde_prefix} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source0: %{kdecomp}-3.5.13.tar.gz BuildRequires: tqtinterface-devel -BuildRequires: trinity-kdelibs-devel -BuildRequires: trinity-kdebase-devel +BuildRequires: trinity-tdelibs-devel +BuildRequires: trinity-tdebase-devel BuildRequires: desktop-file-utils BuildRequires: imlib-devel @@ -51,8 +58,8 @@ or Exif informations of an image. # Ugly hack to modify TQT include directory inside autoconf files. # If TQT detection fails, it fallbacks to TQT4 instead of TQT3 ! %__sed -i admin/acinclude.m4.in \ - -e "s|/usr/include/tqt|%{_includedir}/tqt|g" \ - -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_docdir}/HTML'|g" + -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \ + -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g" %__cp "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in" %__cp "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh" @@ -60,19 +67,27 @@ or Exif informations of an image. %build -export PATH="%{_bindir}:${PATH}" -export LDFLAGS="-L%{_libdir} -I%{_includedir}" +unset QTDIR; . /etc/profile.d/qt.sh +export PATH="%{tde_bindir}:${PATH}" +export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}" %configure \ - --disable-rpath \ - --with-extra-includes=%{_includedir}/tqt \ - --enable-closure + --prefix=%{tde_prefix} \ + --exec-prefix=%{tde_prefix} \ + --bindir=%{tde_bindir} \ + --datadir=%{tde_datadir} \ + --libdir=%{tde_libdir} \ + --mandir=%{tde_mandir} \ + --includedir=%{tde_tdeincludedir} \ + --disable-rpath \ + --with-extra-includes=%{tde_includedir}/tqt \ + --enable-closure %__make %{?_smp_mflags} %install -export PATH="%{_bindir}:${PATH}" +export PATH="%{tde_bindir}:${PATH}" %__rm -rf %{buildroot} %__make install DESTDIR=%{buildroot} @@ -85,26 +100,29 @@ export PATH="%{_bindir}:${PATH}" %post for f in hicolor locolor ; do - touch --no-create %{_datadir}/icons/${f} || : - gtk-update-icon-cache --quiet %{_datadir}/icons/${f} || : + touch --no-create %{tde_datadir}/icons/${f} || : + gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} || : done +update-desktop-database %{tde_appdir} &> /dev/null %postun for f in hicolor locolor ; do - touch --no-create %{_datadir}/icons/${f} || : - gtk-update-icon-cache --quiet %{_datadir}/icons/${f} || : + touch --no-create %{tde_datadir}/icons/${f} || : + gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} || : done - +update-desktop-database %{tde_appdir} &> /dev/null %files -f %{kdecomp}.lang %defattr(-,root,root,-) %doc AUTHORS COPYING -%{_bindir}/* -%{_datadir}/applications/*/*.desktop -%{_datadir}/apps/*/ -%{tde_docdir}/HTML/en/*/ -%{_datadir}/icons/hicolor/*/*/* -%{_datadir}/icons/locolor/*/*/* +%{tde_bindir}/krename +%{tde_tdeappdir}/krename.desktop +%{tde_datadir}/apps/konqueror/servicemenus/krename_dir.desktop +%{tde_datadir}/apps/konqueror/servicemenus/krenameservicemenu.desktop +%{tde_datadir}/apps/krename/ +%{tde_tdedocdir}/HTML/en/krename/ +%{tde_datadir}/icons/hicolor/*/apps/krename.png +%{tde_datadir}/icons/locolor/*/apps/krename.png %Changelog diff --git a/redhat/applications/krusader/krusader-3.5.13-fix_not_a_string_literal_error.patch b/redhat/applications/krusader/krusader-3.5.13-fix_not_a_string_literal_error.patch new file mode 100644 index 000000000..754544dc3 --- /dev/null +++ b/redhat/applications/krusader/krusader-3.5.13-fix_not_a_string_literal_error.patch @@ -0,0 +1,11 @@ +--- krusader/krusader/main.cpp.ORI 2012-08-06 00:19:36.475622376 +0200 ++++ krusader/krusader/main.cpp 2012-08-06 00:19:48.867387323 +0200 +@@ -199,7 +199,7 @@ + exit( 0 ); + TQCString regName = client->registerAs( KApplication::kApplication() ->name(), !singleInstanceMode ); + if( singleInstanceMode && regName != KApplication::kApplication()->name() ) { +- fprintf( stderr, i18n( "Application already running!\n" ).ascii() ); ++ fprintf( stderr, "%s", i18n( "Application already running!\n" ).ascii() ); + + DCOPClient::mainClient()->send( KApplication::kApplication() ->name(), "Krusader-Interface", + "moveToTop()", TQByteArray() ); diff --git a/redhat/applications/krusader/trinity-krusader.spec b/redhat/applications/krusader/trinity-krusader.spec index 13beeab6b..d4e84f369 100644 --- a/redhat/applications/krusader/trinity-krusader.spec +++ b/redhat/applications/krusader/trinity-krusader.spec @@ -2,17 +2,25 @@ %define kdecomp krusader # If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". -%if "%{?_prefix}" != "/usr" +%if "%{?tde_prefix}" != "/usr" %define _variant .opt -%define _docdir %{_datadir}/doc -%define _mandir %{_datadir}/man %endif # TDE 3.5.13 specific building variables -BuildRequires: autoconf automake libtool m4 -%define tde_docdir %{_docdir}/kde -%define tde_includedir %{_includedir}/kde -%define tde_libdir %{_libdir}/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_mandir %{tde_datadir}/man +%define tde_appdir %{tde_datadir}/applications + +%define tde_tdeappdir %{tde_appdir}/kde +%define tde_tdedocdir %{tde_docdir}/kde +%define tde_tdeincludedir %{tde_includedir}/kde +%define tde_tdelibdir %{tde_libdir}/trinity + +%define _docdir %{tde_docdir} Name: trinity-%{kdecomp} @@ -27,20 +35,22 @@ Vendor: Trinity Project Packager: Francois Andriot <francois.andriot@free.fr> URL: http://www.trinitydesktop.org/ -Prefix: %{_prefix} +Prefix: %{tde_prefix} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source0: %{kdecomp}-3.5.13.tar.gz # [krusader] GCC 4.7 fixes. [Commit #fdf6d340] Patch1: krusader-3.5.13-fix_gcc47_compilation.patch +# [krusader] Fix "not a string literal" error +Patch2: krusader-3.5.13-fix_not_a_string_literal_error.patch BuildRequires: tqtinterface-devel -BuildRequires: trinity-kdelibs-devel -BuildRequires: trinity-kdebase-devel +BuildRequires: trinity-tdelibs-devel +BuildRequires: trinity-tdebase-devel BuildRequires: desktop-file-utils -BuildRequires: trinity-kdebindings-devel +BuildRequires: trinity-tdebindings-devel %description Krusader is a simple, easy, powerful, twin-panel (commander-style) file @@ -65,12 +75,13 @@ great on your desktop. %prep %setup -q -n applications/%{kdecomp} %patch1 -p1 +%patch2 -p1 # Ugly hack to modify TQT include directory inside autoconf files. # If TQT detection fails, it fallbacks to TQT4 instead of TQT3 ! %__sed -i admin/acinclude.m4.in \ - -e "s|/usr/include/tqt|%{_includedir}/tqt|g" \ - -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_docdir}/HTML'|g" + -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \ + -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g" %__cp "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in" %__cp "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh" @@ -78,18 +89,26 @@ great on your desktop. %build -export PATH="%{_bindir}:${PATH}" -export LDFLAGS="-L%{_libdir} -I%{_includedir}" +unset QTDIR; . /etc/profile.d/qt.sh +export PATH="%{tde_bindir}:${PATH}" +export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}" %configure \ - --disable-rpath \ - --with-extra-includes=%{_includedir}/tqt:%{tde_includedir} + --prefix=%{tde_prefix} \ + --exec-prefix=%{tde_prefix} \ + --bindir=%{tde_bindir} \ + --datadir=%{tde_datadir} \ + --libdir=%{tde_libdir} \ + --mandir=%{tde_mandir} \ + --includedir=%{tde_tdeincludedir} \ + --disable-rpath \ + --with-extra-includes=%{tde_includedir}/tqt %__make %{?_smp_mflags} %install -export PATH="%{_bindir}:${PATH}" +export PATH="%{tde_bindir}:${PATH}" %__rm -rf %{buildroot} %__make install DESTDIR=%{buildroot} @@ -100,36 +119,38 @@ export PATH="%{_bindir}:${PATH}" %post +update-desktop-database %{tde_appdir} > /dev/null for f in crystalsvg locolor ; do - touch --no-create %{_datadir}/icons/${f} || : - gtk-update-icon-cache --quiet %{_datadir}/icons/${f} || : + touch --no-create %{tde_datadir}/icons/${f} || : + gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} || : done %postun +update-desktop-database %{tde_appdir} > /dev/null for f in crystalsvg locolor ; do - touch --no-create %{_datadir}/icons/${f} || : - gtk-update-icon-cache --quiet %{_datadir}/icons/${f} || : + touch --no-create %{tde_datadir}/icons/${f} || : + gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} || : done %files -f %{kdecomp}.lang %defattr(-,root,root,-) %doc AUTHORS COPYING FAQ README TODO -%{_bindir}/krusader -%{tde_libdir}/kio_krarc.la -%{tde_libdir}/kio_krarc.so -%{tde_libdir}/kio_virt.la -%{tde_libdir}/kio_virt.so -%{_datadir}/applications/kde/krusader.desktop -%{_datadir}/applications/kde/krusader_root-mode.desktop -%{_datadir}/apps/krusader -%{tde_docdir}/HTML/en/krusader/ -%lang(ru) %{tde_docdir}/HTML/ru/krusader/ -%{_datadir}/icons/crystalsvg/*/apps/*.png -%{_datadir}/icons/locolor/*/apps/*.png -%{_datadir}/services/krarc.protocol -%{_datadir}/services/virt.protocol -%{_mandir}/man1/krusader.1 +%{tde_bindir}/krusader +%{tde_tdelibdir}/kio_krarc.la +%{tde_tdelibdir}/kio_krarc.so +%{tde_tdelibdir}/kio_virt.la +%{tde_tdelibdir}/kio_virt.so +%{tde_tdeappdir}/krusader.desktop +%{tde_tdeappdir}/krusader_root-mode.desktop +%{tde_datadir}/apps/krusader +%{tde_tdedocdir}/HTML/en/krusader/ +%lang(ru) %{tde_tdedocdir}/HTML/ru/krusader/ +%{tde_datadir}/icons/crystalsvg/*/apps/*.png +%{tde_datadir}/icons/locolor/*/apps/*.png +%{tde_datadir}/services/krarc.protocol +%{tde_datadir}/services/virt.protocol +%{tde_mandir}/man1/krusader.1 %Changelog diff --git a/redhat/applications/ksplash-engine-moodin/trinity-ksplash-engine-moodin.spec b/redhat/applications/ksplash-engine-moodin/trinity-ksplash-engine-moodin.spec index 5fc9e7c07..192bf9cc3 100644 --- a/redhat/applications/ksplash-engine-moodin/trinity-ksplash-engine-moodin.spec +++ b/redhat/applications/ksplash-engine-moodin/trinity-ksplash-engine-moodin.spec @@ -1,25 +1,32 @@ # Default version for this component %define kdecomp ksplash-engine-moodin -%define version 0.4.2 -%define release 2 # If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". -%if "%{?_prefix}" != "/usr" +%if "%{?tde_prefix}" != "/usr" %define _variant .opt -%define _docdir %{_prefix}/share/doc %endif # TDE 3.5.13 specific building variables -BuildRequires: autoconf automake libtool m4 -%define tde_docdir %{_docdir}/kde -%define tde_includedir %{_includedir}/kde -%define tde_libdir %{_libdir}/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_mandir %{tde_datadir}/man +%define tde_appdir %{tde_datadir}/applications + +%define tde_tdeappdir %{tde_appdir}/kde +%define tde_tdedocdir %{tde_docdir}/kde +%define tde_tdeincludedir %{tde_includedir}/kde +%define tde_tdelibdir %{tde_libdir}/trinity + +%define _docdir %{tde_docdir} Name: trinity-%{kdecomp} Summary: fading splash screen engine for Trinity -Version: %{?version} -Release: %{?release}%{?dist}%{?_variant} +Version: 0.4.2 +Release: 2%{?dist}%{?_variant} License: GPLv2+ Group: Applications/Utilities @@ -28,14 +35,14 @@ Vendor: Trinity Project Packager: Francois Andriot <francois.andriot@free.fr> URL: http://www.trinitydesktop.org/ -Prefix: %{_prefix} +Prefix: %{tde_prefix} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source0: %{kdecomp}-3.5.13.tar.gz BuildRequires: tqtinterface-devel -BuildRequires: trinity-kdelibs-devel -BuildRequires: trinity-kdebase-devel +BuildRequires: trinity-tdelibs-devel +BuildRequires: trinity-tdebase-devel BuildRequires: desktop-file-utils BuildRequires: gettext @@ -64,8 +71,8 @@ Homepage: http://moodwrod.com # Ugly hack to modify TQT include directory inside autoconf files. # If TQT detection fails, it fallbacks to TQT4 instead of TQT3 ! %__sed -i admin/acinclude.m4.in \ - -e "s|/usr/include/tqt|%{_includedir}/tqt|g" \ - -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_docdir}/HTML'|g" + -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \ + -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g" %__cp "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in" %__cp "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh" @@ -73,18 +80,26 @@ Homepage: http://moodwrod.com %build -export PATH="%{_bindir}:${PATH}" -export LDFLAGS="-L%{_libdir} -I%{_includedir}" +unset QTDIR; . /etc/profile.d/qt.sh +export PATH="%{tde_bindir}:${PATH}" +export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}" %configure \ - --disable-rpath \ - --with-extra-includes=%{_includedir}/tqt + --prefix=%{tde_prefix} \ + --exec-prefix=%{tde_prefix} \ + --bindir=%{tde_bindir} \ + --datadir=%{tde_datadir} \ + --libdir=%{tde_libdir} \ + --mandir=%{tde_mandir} \ + --includedir=%{tde_tdeincludedir} \ + --disable-rpath \ + --with-extra-includes=%{tde_includedir}/tqt %__make %{?_smp_mflags} %install -export PATH="%{_bindir}:${PATH}" +export PATH="%{tde_bindir}:${PATH}" %__rm -rf %{buildroot} %__make install DESTDIR=%{buildroot} @@ -95,10 +110,11 @@ export PATH="%{_bindir}:${PATH}" %files %defattr(-,root,root,-) -%{tde_libdir}/ksplashmoodin.la -%{tde_libdir}/ksplashmoodin.so -%{_datadir}/apps/ksplash -%{_datadir}/services/ksplashmoodin.desktop +%{tde_tdelibdir}/ksplashmoodin.la +%{tde_tdelibdir}/ksplashmoodin.so +%{tde_datadir}/apps/ksplash/Themes/FingerPrint/ +%{tde_datadir}/apps/ksplash/Themes/MoodinKDE/ +%{tde_datadir}/services/ksplashmoodin.desktop %Changelog diff --git a/redhat/applications/ksquirrel/trinity-ksquirrel.spec b/redhat/applications/ksquirrel/trinity-ksquirrel.spec index 945628cfb..90abc45cd 100644 --- a/redhat/applications/ksquirrel/trinity-ksquirrel.spec +++ b/redhat/applications/ksquirrel/trinity-ksquirrel.spec @@ -1,26 +1,32 @@ # Default version for this component %define kdecomp ksquirrel -%define version 0.8.0 -%define release 2 # If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". -%if "%{?_prefix}" != "/usr" +%if "%{?tde_prefix}" != "/usr" %define _variant .opt -%define _docdir %{_datadir}/doc -%define _mandir %{_datadir}/man %endif # TDE 3.5.13 specific building variables -BuildRequires: autoconf automake libtool m4 -%define tde_docdir %{_docdir}/kde -%define tde_includedir %{_includedir}/kde -%define tde_libdir %{_libdir}/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_mandir %{tde_datadir}/man +%define tde_appdir %{tde_datadir}/applications + +%define tde_tdeappdir %{tde_appdir}/kde +%define tde_tdedocdir %{tde_docdir}/kde +%define tde_tdeincludedir %{tde_includedir}/kde +%define tde_tdelibdir %{tde_libdir}/trinity + +%define _docdir %{tde_docdir} Name: trinity-%{kdecomp} Summary: Powerful Trinity image viewer -Version: %{?version} -Release: %{?release}%{?dist}%{?_variant} +Version: 0.8.0 +Release: 2%{?dist}%{?_variant} License: GPLv2+ Group: Amusements/Games @@ -29,14 +35,14 @@ Vendor: Trinity Project Packager: Francois Andriot <francois.andriot@free.fr> URL: http://www.trinitydesktop.org/ -Prefix: %{_prefix} +Prefix: %{tde_prefix} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source0: %{kdecomp}-3.5.13.tar.gz BuildRequires: tqtinterface-devel -BuildRequires: trinity-kdelibs-devel -BuildRequires: trinity-kdebase-devel +BuildRequires: trinity-tdelibs-devel +BuildRequires: trinity-tdebase-devel BuildRequires: desktop-file-utils BuildRequires: gettext @@ -59,8 +65,8 @@ OpenGL and dynamic format support. # Ugly hack to modify TQT include directory inside autoconf files. # If TQT detection fails, it fallbacks to TQT4 instead of TQT3 ! %__sed -i admin/acinclude.m4.in \ - -e "s|/usr/include/tqt|%{_includedir}/tqt|g" \ - -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_docdir}/HTML'|g" + -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \ + -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g" %__cp "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in" %__cp "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh" @@ -68,18 +74,26 @@ OpenGL and dynamic format support. %build -export PATH="%{_bindir}:${PATH}" -export LDFLAGS="-L%{_libdir} -I%{_includedir}" +unset QTDIR; . /etc/profile.d/qt.sh +export PATH="%{tde_bindir}:${PATH}" +export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}" %configure \ - --disable-rpath \ - --with-extra-includes=%{_includedir}/tqt + --prefix=%{tde_prefix} \ + --exec-prefix=%{tde_prefix} \ + --bindir=%{tde_bindir} \ + --datadir=%{tde_datadir} \ + --libdir=%{tde_libdir} \ + --mandir=%{tde_mandir} \ + --includedir=%{tde_tdeincludedir} \ + --disable-rpath \ + --with-extra-includes=%{tde_includedir}/tqt %__make %{?_smp_mflags} %install -export PATH="%{_bindir}:${PATH}" +export PATH="%{tde_bindir}:${PATH}" %__rm -rf %{buildroot} %__make install DESTDIR=%{buildroot} @@ -90,36 +104,38 @@ export PATH="%{_bindir}:${PATH}" %post -touch --no-create %{_datadir}/icons/hicolor || : -gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +update-desktop-database %{tde_appdir} > /dev/null +touch --no-create %{tde_datadir}/icons/hicolor || : +gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || : %postun -touch --no-create %{_datadir}/icons/hicolor || : -gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +update-desktop-database %{tde_appdir} > /dev/null +touch --no-create %{tde_datadir}/icons/hicolor || : +gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || : %files -f %{kdecomp} %defattr(-,root,root,-) %doc AUTHORS ChangeLog COPYING LICENSE LICENSE.GFDL LICENSE.LGPL README TODO -%{_bindir}/ksquirrel -%{_bindir}/ksquirrel-libs-configurator -%{_bindir}/ksquirrel-libs-configurator-real -%{tde_libdir}/libksquirrelpart.la -%{tde_libdir}/libksquirrelpart.so -%{_datadir}/applications/kde/ksquirrel.desktop -%{_datadir}/apps/dolphin/servicemenus/dolphksquirrel-dir.desktop -%{_datadir}/apps/konqueror/servicemenus/konqksquirrel-dir.desktop -%{_datadir}/apps/ksquirrel/ -%{_datadir}/apps/ksquirrelpart/ksquirrelpart.rc -%{_datadir}/config/magic/x-ras.magic -%{_datadir}/config/magic/x-sun.magic -%{_datadir}/config/magic/x-utah.magic -%{tde_docdir}/HTML/*/ksquirrel -%{_datadir}/icons/hicolor/*/apps/ksquirrel.png -%{_datadir}/mimelnk/image/*.desktop -%{_datadir}/services/ksquirrelpart.desktop -%{_datadir}/locale/*/LC_MESSAGES/ksquirrel.mo -%{_mandir}/man1/ksquirrel.1 +%{tde_bindir}/ksquirrel +%{tde_bindir}/ksquirrel-libs-configurator +%{tde_bindir}/ksquirrel-libs-configurator-real +%{tde_tdelibdir}/libksquirrelpart.la +%{tde_tdelibdir}/libksquirrelpart.so +%{tde_tdeappdir}/ksquirrel.desktop +%{tde_datadir}/apps/dolphin/servicemenus/dolphksquirrel-dir.desktop +%{tde_datadir}/apps/konqueror/servicemenus/konqksquirrel-dir.desktop +%{tde_datadir}/apps/ksquirrel/ +%{tde_datadir}/apps/ksquirrelpart/ksquirrelpart.rc +%{tde_datadir}/config/magic/x-ras.magic +%{tde_datadir}/config/magic/x-sun.magic +%{tde_datadir}/config/magic/x-utah.magic +%{tde_tdedocdir}/HTML/*/ksquirrel +%{tde_datadir}/icons/hicolor/*/apps/ksquirrel.png +%{tde_datadir}/mimelnk/image/*.desktop +%{tde_datadir}/services/ksquirrelpart.desktop +%{tde_datadir}/locale/*/LC_MESSAGES/ksquirrel.mo +%{tde_mandir}/man1/ksquirrel.1 %Changelog * Wed May 02 2012 Francois Andriot <francois.andriot@free.fr> - 0.8.1-2 diff --git a/redhat/applications/kstreamripper/kstreamripper-3.5.13-fix_doc_directory.patch b/redhat/applications/kstreamripper/kstreamripper-3.5.13-fix_doc_directory.patch new file mode 100644 index 000000000..c0bf88288 --- /dev/null +++ b/redhat/applications/kstreamripper/kstreamripper-3.5.13-fix_doc_directory.patch @@ -0,0 +1,9 @@ +--- kstreamripper/doc/SConscript.ORI 2012-08-06 10:50:27.856547193 +0200 ++++ kstreamripper/doc/SConscript 2012-08-06 10:50:34.599402333 +0200 +@@ -79,5 +79,5 @@ + myenv.KDEinstall( 'KDEDOC', lang+'/'+destination, folder+'/index.cache.bz2' ) + + ## Use processfolder for each documentation directory +-processfolder('en/', 'en') ++processfolder('en/', 'en', 'kstreamripper') + diff --git a/redhat/applications/kstreamripper/kstreamripper-3.5.13-missing_ldflags.patch b/redhat/applications/kstreamripper/kstreamripper-3.5.13-missing_ldflags.patch new file mode 100644 index 000000000..dbdaae544 --- /dev/null +++ b/redhat/applications/kstreamripper/kstreamripper-3.5.13-missing_ldflags.patch @@ -0,0 +1,11 @@ +--- kstreamripper/src/SConscript.ORI 2012-08-06 10:46:01.509252125 +0200 ++++ kstreamripper/src/SConscript 2012-08-06 10:46:10.021070424 +0200 +@@ -43,7 +43,7 @@ + myenv.KDEaddpaths_includes( ['./', '../'] ) + + ## Necessary libraries to link against +-myenv.KDEaddlibs( ['tqt', 'kio', 'kdeui'] ) ++myenv.KDEaddlibs( ['tqt', 'kio', 'kdeui', 'qt-mt'] ) + if env['KDEm2']>3: myenv.KDEaddlibs( ['kdnssd']) + ############################# + ## Data to install diff --git a/redhat/applications/kstreamripper/trinity-kstreamripper-3.5.13.spec b/redhat/applications/kstreamripper/trinity-kstreamripper-3.5.13.spec index 8ac29215a..792fa0495 100644 --- a/redhat/applications/kstreamripper/trinity-kstreamripper-3.5.13.spec +++ b/redhat/applications/kstreamripper/trinity-kstreamripper-3.5.13.spec @@ -2,16 +2,25 @@ %define kdecomp kstreamripper # If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". -%if "%{?_prefix}" != "/usr" +%if "%{?tde_prefix}" != "/usr" %define _variant .opt -%define _docdir %{_datadir}/doc %endif # TDE 3.5.13 specific building variables -BuildRequires: autoconf automake libtool m4 -%define tde_docdir %{_docdir}/kde -%define tde_includedir %{_includedir}/kde -%define tde_libdir %{_libdir}/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_mandir %{tde_datadir}/man +%define tde_appdir %{tde_datadir}/applications + +%define tde_tdeappdir %{tde_appdir}/kde +%define tde_tdedocdir %{tde_docdir}/kde +%define tde_tdeincludedir %{tde_includedir}/kde +%define tde_tdelibdir %{tde_libdir}/trinity + +%define _docdir %{tde_docdir} Name: trinity-%{kdecomp} @@ -27,17 +36,23 @@ Vendor: Trinity Project Packager: Francois Andriot <francois.andriot@free.fr> URL: http://www.trinitydesktop.org/ -Prefix: %{_prefix} +Prefix: %{tde_prefix} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source0: %{kdecomp}-3.5.13.tar.gz Patch0: kstreamripper-3.5.13-missing_include_tqt.patch +# [kstreamripper] Missing LDFLAGS cause FTBFS on Mageia / Mandriva +Patch1: kstreamripper-3.5.13-missing_ldflags.patch + +# [kstreamripper] Fix directory of HTML documentation +Patch2: kstreamripper-3.5.13-fix_doc_directory.patch + BuildRequires: tqtinterface-devel BuildRequires: trinity-arts-devel -BuildRequires: trinity-kdelibs-devel -BuildRequires: trinity-kdebase-devel +BuildRequires: trinity-tdelibs-devel +BuildRequires: trinity-tdebase-devel BuildRequires: desktop-file-utils BuildRequires: scons @@ -52,18 +67,21 @@ you with managing/ripping your preferred streams. %prep %setup -q -n applications/%{kdecomp} %patch0 -p1 +%patch1 -p1 -b .ldflags +%patch2 -p1 -b .doc %build -export PATH="%{_bindir}:${PATH}" -export LDFLAGS="-L%{_libdir} -I%{_includedir}" +unset QTDIR; . /etc/profile.d/qt.sh +export PATH="%{tde_bindir}:${PATH}" +export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}" -export CXXFLAGS="-I%{_includedir}/tqt" +export CXXFLAGS="-I%{tde_includedir}/tqt" %__make %{?_smp_mflags} %install -export PATH="%{_bindir}:${PATH}" +export PATH="%{tde_bindir}:${PATH}" %__rm -rf %{buildroot} %__make install DESTDIR=%{buildroot} @@ -95,10 +113,10 @@ fi %files %defattr(-,root,root,-) -%{_bindir}/kstreamripper -%{_datadir}/applnk/Utilities/kstreamripper.desktop -%{_datadir}/apps/kstreamripper/kstreamripperui.rc -%{tde_docdir}/HTML/en/en/index.cache.bz2 +%{tde_bindir}/kstreamripper +%{tde_datadir}/applnk/Utilities/kstreamripper.desktop +%{tde_datadir}/apps/kstreamripper/kstreamripperui.rc +%{tde_tdedocdir}/HTML/en/kstreamripper/ diff --git a/redhat/applications/ksystemlog/trinity-ksystemlog.spec b/redhat/applications/ksystemlog/trinity-ksystemlog.spec index 8c2e00269..9f74d8b0a 100644 --- a/redhat/applications/ksystemlog/trinity-ksystemlog.spec +++ b/redhat/applications/ksystemlog/trinity-ksystemlog.spec @@ -1,25 +1,32 @@ # Default version for this component %define kdecomp ksystemlog -%define version 0.3.2 -%define release 1 # If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". -%if "%{?_prefix}" != "/usr" +%if "%{?tde_prefix}" != "/usr" %define _variant .opt -%define _docdir %{_prefix}/share/doc %endif # TDE 3.5.13 specific building variables -BuildRequires: autoconf automake libtool m4 -%define tde_docdir %{_docdir}/kde -%define tde_includedir %{_includedir}/kde -%define tde_libdir %{_libdir}/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_mandir %{tde_datadir}/man +%define tde_appdir %{tde_datadir}/applications + +%define tde_tdeappdir %{tde_appdir}/kde +%define tde_tdedocdir %{tde_docdir}/kde +%define tde_tdeincludedir %{tde_includedir}/kde +%define tde_tdelibdir %{tde_libdir}/trinity + +%define _docdir %{tde_docdir} Name: trinity-%{kdecomp} Summary: system log viewer tool for Trinity -Version: %{?version} -Release: %{?release}%{?dist}%{?_variant} +Version: 0.3.2 +Release: 1%{?dist}%{?_variant} License: GPLv2+ Group: Applications/System @@ -28,15 +35,15 @@ Vendor: Trinity Project Packager: Francois Andriot <francois.andriot@free.fr> URL: http://ksystemlog.forum-software.org -Prefix: %{_prefix} +Prefix: %{tde_prefix} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source0: %{kdecomp}-3.5.13.tar.gz BuildRequires: tqtinterface-devel -BuildRequires: trinity-kdelibs-devel -BuildRequires: trinity-kdebase-devel +BuildRequires: trinity-tdelibs-devel +BuildRequires: trinity-tdebase-devel BuildRequires: desktop-file-utils @@ -50,14 +57,13 @@ quickly see problems occuring on their server. %prep -unset QTDIR; . /etc/profile.d/qt.sh %setup -q -n applications/%{kdecomp} # Ugly hack to modify TQT include directory inside autoconf files. # If TQT detection fails, it fallbacks to TQT4 instead of TQT3 ! %__sed -i admin/acinclude.m4.in \ - -e "s|/usr/include/tqt|%{_includedir}/tqt|g" \ - -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_docdir}/HTML'|g" + -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \ + -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g" %__cp "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in" %__cp "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh" @@ -65,19 +71,27 @@ unset QTDIR; . /etc/profile.d/qt.sh %build -export PATH="%{_bindir}:${PATH}" -export LDFLAGS="-L%{_libdir} -I%{_includedir}" +unset QTDIR; . /etc/profile.d/qt.sh +export PATH="%{tde_bindir}:${PATH}" +export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}" %configure \ - --disable-rpath \ - --with-extra-includes=%{_includedir}/tqt \ - --enable-closure + --prefix=%{tde_prefix} \ + --exec-prefix=%{tde_prefix} \ + --bindir=%{tde_bindir} \ + --datadir=%{tde_datadir} \ + --libdir=%{tde_libdir} \ + --mandir=%{tde_mandir} \ + --includedir=%{tde_tdeincludedir} \ + --disable-rpath \ + --with-extra-includes=%{tde_includedir}/tqt \ + --enable-closure %__make %{?_smp_mflags} %install -export PATH="%{_bindir}:${PATH}" +export PATH="%{tde_bindir}:${PATH}" %__rm -rf %{buildroot} %__make install DESTDIR=%{buildroot} @@ -87,23 +101,23 @@ export PATH="%{_bindir}:${PATH}" %post -touch --no-create %{_datadir}/icons/hicolor || : -gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +touch --no-create %{tde_datadir}/icons/hicolor || : +gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || : %postun -touch --no-create %{_datadir}/icons/hicolor || : -gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +touch --no-create %{tde_datadir}/icons/hicolor || : +gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || : %files %defattr(-,root,root,-) %doc AUTHORS ChangeLog COPYING README -%{_bindir}/ksystemlog -%{_datadir}/applnk/Utilities/ksystemlog.desktop -%{_datadir}/apps/ksystemlog/ksystemlogui.rc -%{_datadir}/config.kcfg/ksystemlog.kcfg -%{_datadir}/icons/hicolor/*/apps/ksystemlog.png -%{_datadir}/icons/hicolor/*/apps/ksystemlog.svgz +%{tde_bindir}/ksystemlog +%{tde_datadir}/applnk/Utilities/ksystemlog.desktop +%{tde_datadir}/apps/ksystemlog/ksystemlogui.rc +%{tde_datadir}/config.kcfg/ksystemlog.kcfg +%{tde_datadir}/icons/hicolor/*/apps/ksystemlog.png +%{tde_datadir}/icons/hicolor/*/apps/ksystemlog.svgz %Changelog diff --git a/redhat/applications/ktechlab/ktechlab-3.5.13-missing_ldflags.patch b/redhat/applications/ktechlab/ktechlab-3.5.13-missing_ldflags.patch new file mode 100644 index 000000000..5c9ee7e8a --- /dev/null +++ b/redhat/applications/ktechlab/ktechlab-3.5.13-missing_ldflags.patch @@ -0,0 +1,11 @@ +--- ktechlab/src/Makefile.am.ORI 2012-08-06 11:04:54.798218350 +0200 ++++ ktechlab/src/Makefile.am 2012-08-06 11:05:01.909069510 +0200 +@@ -19,7 +19,7 @@ + $(top_builddir)/src/mechanics/libmechanics.la $(top_builddir)/src/electronics/libelectronics.la \ + $(top_builddir)/src/electronics/simulation/libelements.la $(top_builddir)/src/electronics/components/libcomponents.la \ + $(top_builddir)/src/languages/liblanguages.la $(top_builddir)/src/drawparts/libdrawparts.la \ +- $(top_builddir)/src/core/libcore.la -lkutils $(LIB_GPSIM) -lktexteditor $(LIB_KFILE) $(LIB_KDEPRINT) ++ $(top_builddir)/src/core/libcore.la -lkutils $(LIB_GPSIM) -lktexteditor $(LIB_KFILE) $(LIB_KDEPRINT) $(LIB_QT) + + # which sources should be compiled for ktechlab + ktechlab_SOURCES = ktechlab.cpp node.cpp connector.cpp itemlibrary.cpp \ diff --git a/redhat/applications/ktechlab/trinity-ktechlab.spec b/redhat/applications/ktechlab/trinity-ktechlab.spec index f6b421450..45134f847 100644 --- a/redhat/applications/ktechlab/trinity-ktechlab.spec +++ b/redhat/applications/ktechlab/trinity-ktechlab.spec @@ -1,25 +1,32 @@ # Default version for this component %define kdecomp ktechlab -%define version 0.3 -%define release 2 # If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". -%if "%{?_prefix}" != "/usr" +%if "%{?tde_prefix}" != "/usr" %define _variant .opt -%define _docdir %{_datadir}/doc %endif # TDE 3.5.13 specific building variables -BuildRequires: autoconf automake libtool m4 -%define tde_docdir %{_docdir}/kde -%define tde_includedir %{_includedir}/kde -%define tde_libdir %{_libdir}/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_mandir %{tde_datadir}/man +%define tde_appdir %{tde_datadir}/applications + +%define tde_tdeappdir %{tde_appdir}/kde +%define tde_tdedocdir %{tde_docdir}/kde +%define tde_tdeincludedir %{tde_includedir}/kde +%define tde_tdelibdir %{tde_libdir}/trinity + +%define _docdir %{tde_docdir} Name: trinity-%{kdecomp} Summary: circuit simulator for microcontrollers and electronics [Trinity] -Version: %{?version} -Release: %{?release}%{?dist}%{?_variant} +Version: 0.3 +Release: 2%{?dist}%{?_variant} License: GPLv2+ Group: Applications/Utilities @@ -28,17 +35,19 @@ Vendor: Trinity Project Packager: Francois Andriot <francois.andriot@free.fr> URL: http://www.trinitydesktop.org/ -Prefix: %{_prefix} +Prefix: %{tde_prefix} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source0: %{kdecomp}-3.5.13.tar.gz # [ktechlab] Fix list of icons to install [Bug #990] Patch0: ktechlab-3.5.13-duplicate_icons.patch +# [ktechlab] Missing LDFLAGS cause FTBFS +Patch1: ktechlab-3.5.13-missing_ldflags.patch BuildRequires: tqtinterface-devel -BuildRequires: trinity-kdelibs-devel -BuildRequires: trinity-kdebase-devel +BuildRequires: trinity-tdelibs-devel +BuildRequires: trinity-tdebase-devel BuildRequires: desktop-file-utils BuildRequires: gettext @@ -54,12 +63,13 @@ Homepage: http://ktechlab.org/ %prep %setup -q -n applications/%{kdecomp} %patch0 -p1 +%patch1 -p1 # Ugly hack to modify TQT include directory inside autoconf files. # If TQT detection fails, it fallbacks to TQT4 instead of TQT3 ! %__sed -i admin/acinclude.m4.in \ - -e "s|/usr/include/tqt|%{_includedir}/tqt|g" \ - -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_docdir}/HTML'|g" + -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \ + -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g" %__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in" %__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh" @@ -67,18 +77,26 @@ Homepage: http://ktechlab.org/ %build -export PATH="%{_bindir}:${PATH}" -export LDFLAGS="-L%{_libdir} -I%{_includedir}" +unset QTDIR; . /etc/profile.d/qt.sh +export PATH="%{tde_bindir}:${PATH}" +export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}" %configure \ - --disable-rpath \ - --with-extra-includes=%{_includedir}/tqt + --prefix=%{tde_prefix} \ + --exec-prefix=%{tde_prefix} \ + --bindir=%{tde_bindir} \ + --datadir=%{tde_datadir} \ + --libdir=%{tde_libdir} \ + --mandir=%{tde_mandir} \ + --includedir=%{tde_tdeincludedir} \ + --disable-rpath \ + --with-extra-includes=%{tde_includedir}/tqt %__make %{?_smp_mflags} %install -export PATH="%{_bindir}:${PATH}" +export PATH="%{tde_bindir}:${PATH}" %__rm -rf %{buildroot} %__make install DESTDIR=%{buildroot} @@ -89,28 +107,28 @@ export PATH="%{_bindir}:${PATH}" %post -touch --no-create %{_datadir}/icons/hicolor || : -gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +touch --no-create %{tde_datadir}/icons/hicolor || : +gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || : %postun -touch --no-create %{_datadir}/icons/hicolor || : -gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +touch --no-create %{tde_datadir}/icons/hicolor || : +gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || : %files -f %{kdecomp}.lang %defattr(-,root,root,-) -%{_bindir}/ktechlab -%{_bindir}/microbe -%{_datadir}/applnk/Development/ktechlab.desktop -%{_datadir}/apps/katepart/syntax/microbe.xml -%{_datadir}/apps/ktechlab -%{_datadir}/config.kcfg/ktechlab.kcfg -%{tde_docdir}/HTML/en/ktechlab/ -%{_datadir}/icons/hicolor/*/*/*.png -%{_datadir}/mimelnk/application/x-circuit.desktop -%{_datadir}/mimelnk/application/x-flowcode.desktop -%{_datadir}/mimelnk/application/x-ktechlab.desktop -%{_datadir}/mimelnk/application/x-microbe.desktop +%{tde_bindir}/ktechlab +%{tde_bindir}/microbe +%{tde_datadir}/applnk/Development/ktechlab.desktop +%{tde_datadir}/apps/katepart/syntax/microbe.xml +%{tde_datadir}/apps/ktechlab +%{tde_datadir}/config.kcfg/ktechlab.kcfg +%{tde_tdedocdir}/HTML/en/ktechlab/ +%{tde_datadir}/icons/hicolor/*/*/*.png +%{tde_datadir}/mimelnk/application/x-circuit.desktop +%{tde_datadir}/mimelnk/application/x-flowcode.desktop +%{tde_datadir}/mimelnk/application/x-ktechlab.desktop +%{tde_datadir}/mimelnk/application/x-microbe.desktop %Changelog diff --git a/redhat/applications/ktorrent/ktorrent-3.5.13-missing_ldflags.patch b/redhat/applications/ktorrent/ktorrent-3.5.13-missing_ldflags.patch new file mode 100644 index 000000000..ef85a74f8 --- /dev/null +++ b/redhat/applications/ktorrent/ktorrent-3.5.13-missing_ldflags.patch @@ -0,0 +1,9 @@ +--- ktorrent/libktorrent/Makefile.am.ORI 2012-08-06 11:11:35.700759480 +0200 ++++ ktorrent/libktorrent/Makefile.am 2012-08-06 11:11:44.437574091 +0200 +@@ -18,5 +18,5 @@ + libktorrent_la_LIBADD = ../libktorrent/net/libnet.la \ + ../libktorrent/datachecker/libdatachecker.la ../libktorrent/mse/libmse.la ../libktorrent/migrate/libmigrate.la \ + ../libktorrent/util/libutil.la ../libktorrent/torrent/libtorrent.la \ +- ../libktorrent/kademlia/libkademlia.la ../libktorrent/interfaces/libinterfaces.la $(LIB_KPARTS) ++ ../libktorrent/kademlia/libkademlia.la ../libktorrent/interfaces/libinterfaces.la $(LIB_KPARTS) $(LIB_KIO) $(LIB_KDECORE) $(LIB_QT) $(LIB_KDEUI) + KDE_CXXFLAGS = $(USE_EXCEPTIONS) $(USE_RTTI) diff --git a/redhat/applications/ktorrent/trinity-ktorrent.spec b/redhat/applications/ktorrent/trinity-ktorrent.spec index 73e1bacf6..cee7ff745 100644 --- a/redhat/applications/ktorrent/trinity-ktorrent.spec +++ b/redhat/applications/ktorrent/trinity-ktorrent.spec @@ -1,25 +1,32 @@ # Default version for this component %define kdecomp ktorrent -%define version 2.2.8 -%define release 1 # If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". -%if "%{?_prefix}" != "/usr" +%if "%{?tde_prefix}" != "/usr" %define _variant .opt -%define _docdir %{_datadir}/doc %endif # TDE 3.5.13 specific building variables -BuildRequires: autoconf automake libtool m4 -%define tde_docdir %{_docdir}/kde -%define tde_includedir %{_includedir}/kde -%define tde_libdir %{_libdir}/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_mandir %{tde_datadir}/man +%define tde_appdir %{tde_datadir}/applications + +%define tde_tdeappdir %{tde_appdir}/kde +%define tde_tdedocdir %{tde_docdir}/kde +%define tde_tdeincludedir %{tde_includedir}/kde +%define tde_tdelibdir %{tde_libdir}/trinity + +%define _docdir %{tde_docdir} Name: trinity-%{kdecomp} Summary: BitTorrent client for Trinity -Version: %{?version} -Release: %{?release}%{?dist}%{?_variant} +Version: 2.2.8 +Release: 1%{?dist}%{?_variant} License: GPLv2+ Group: Applications/Utilities @@ -28,7 +35,7 @@ Vendor: Trinity Project Packager: Francois Andriot <francois.andriot@free.fr> URL: http://ktorrent.org -Prefix: %{_prefix} +Prefix: %{tde_prefix} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source0: %{kdecomp}-3.5.13.tar.gz @@ -51,11 +58,12 @@ Patch6: ktorrent-3.5.13-5dcbbbba-partial.diff Patch7: bp006-5af9907f.diff # [ktorrent] Change default configuration to use external geoip database when found and use internal database only when external database is not found. [Bug #443] [Commit #355c6b69] Patch8: bp007-355c6b69.diff - +# [ktorrent] Missing LDFLAGS cause FTBFS on Mageia / Mandriva +Patch9: ktorrent-3.5.13-missing_ldflags.patch BuildRequires: tqtinterface-devel -BuildRequires: trinity-kdelibs-devel -BuildRequires: trinity-kdebase-devel +BuildRequires: trinity-tdelibs-devel +BuildRequires: trinity-tdebase-devel BuildRequires: desktop-file-utils BuildRequires: gettext @@ -78,12 +86,13 @@ enabling background downloading. %patch6 -p1 %patch7 -p1 %patch8 -p1 +%patch9 -p1 # Ugly hack to modify TQT include directory inside autoconf files. # If TQT detection fails, it fallbacks to TQT4 instead of TQT3 ! %__sed -i admin/acinclude.m4.in \ - -e "s|/usr/include/tqt|%{_includedir}/tqt|g" \ - -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_docdir}/HTML'|g" + -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \ + -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g" %__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in" %__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh" @@ -91,12 +100,20 @@ enabling background downloading. %build -export PATH="%{_bindir}:${PATH}" -export LDFLAGS="-L%{_libdir} -I%{_includedir}" +unset QTDIR; . /etc/profile.d/qt.sh +export PATH="%{tde_bindir}:${PATH}" +export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}" %configure \ - --disable-rpath \ - --with-extra-includes=%{_includedir}/tqt + --prefix=%{tde_prefix} \ + --exec-prefix=%{tde_prefix} \ + --bindir=%{tde_bindir} \ + --datadir=%{tde_datadir} \ + --libdir=%{tde_libdir} \ + --mandir=%{tde_mandir} \ + --includedir=%{tde_tdeincludedir} \ + --disable-rpath \ + --with-extra-includes=%{tde_includedir}/tqt # Not SMP safe ! @@ -104,68 +121,72 @@ export LDFLAGS="-L%{_libdir} -I%{_includedir}" %install -export PATH="%{_bindir}:${PATH}" +export PATH="%{tde_bindir}:${PATH}" %__rm -rf %{buildroot} %__make install DESTDIR=%{buildroot} %find_lang %{kdecomp} +# Unwanted files +%__rm -f %{?buildroot}%{tde_libdir}/libktorrent.so + %clean %__rm -rf %{buildroot} %post -touch --no-create %{_datadir}/icons/hicolor || : -gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +update-desktop-database %{tde_appdir} > /dev/null +touch --no-create %{tde_datadir}/icons/hicolor || : +gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || : /sbin/ldconfig || : %postun -touch --no-create %{_datadir}/icons/hicolor || : -gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +update-desktop-database %{tde_appdir} > /dev/null +touch --no-create %{tde_datadir}/icons/hicolor || : +gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || : /sbin/ldconfig || : %files -f %{kdecomp}.lang %defattr(-,root,root,-) -%{_bindir}/ktcachecheck -%{_bindir}/ktorrent -%{_bindir}/ktshell -%{_bindir}/kttorinfo -%{_bindir}/ktupnptest -%{_libdir}/libktorrent-%{version}.so -%{_libdir}/libktorrent.la -%{_libdir}/libktorrent.so -%{tde_libdir}/ktinfowidgetplugin.la -%{tde_libdir}/ktinfowidgetplugin.so -%{tde_libdir}/ktipfilterplugin.la -%{tde_libdir}/ktipfilterplugin.so -%{tde_libdir}/ktlogviewerplugin.la -%{tde_libdir}/ktlogviewerplugin.so -%{tde_libdir}/ktpartfileimportplugin.la -%{tde_libdir}/ktpartfileimportplugin.so -%{tde_libdir}/ktrssfeedplugin.la -%{tde_libdir}/ktrssfeedplugin.so -%{tde_libdir}/ktscanfolderplugin.la -%{tde_libdir}/ktscanfolderplugin.so -%{tde_libdir}/ktschedulerplugin.la -%{tde_libdir}/ktschedulerplugin.so -%{tde_libdir}/ktsearchplugin.la -%{tde_libdir}/ktsearchplugin.so -%{tde_libdir}/ktstatsplugin.la -%{tde_libdir}/ktstatsplugin.so -%{tde_libdir}/ktupnpplugin.la -%{tde_libdir}/ktupnpplugin.so -%{tde_libdir}/ktwebinterfaceplugin.la -%{tde_libdir}/ktwebinterfaceplugin.so -%{_datadir}/applications/kde/ktorrent.desktop -%{_datadir}/apps/ktorrent -%{_datadir}/config.kcfg/*.kcfg -%{_datadir}/icons/hicolor/*/*/*.png -%{_datadir}/icons/hicolor/*/*/*.svgz -%{_datadir}/services/*.desktop -%{_datadir}/servicetypes/ktorrentplugin.desktop +%{tde_bindir}/ktcachecheck +%{tde_bindir}/ktorrent +%{tde_bindir}/ktshell +%{tde_bindir}/kttorinfo +%{tde_bindir}/ktupnptest +%{tde_libdir}/libktorrent-%{version}.so +%{tde_libdir}/libktorrent.la +%{tde_tdelibdir}/ktinfowidgetplugin.la +%{tde_tdelibdir}/ktinfowidgetplugin.so +%{tde_tdelibdir}/ktipfilterplugin.la +%{tde_tdelibdir}/ktipfilterplugin.so +%{tde_tdelibdir}/ktlogviewerplugin.la +%{tde_tdelibdir}/ktlogviewerplugin.so +%{tde_tdelibdir}/ktpartfileimportplugin.la +%{tde_tdelibdir}/ktpartfileimportplugin.so +%{tde_tdelibdir}/ktrssfeedplugin.la +%{tde_tdelibdir}/ktrssfeedplugin.so +%{tde_tdelibdir}/ktscanfolderplugin.la +%{tde_tdelibdir}/ktscanfolderplugin.so +%{tde_tdelibdir}/ktschedulerplugin.la +%{tde_tdelibdir}/ktschedulerplugin.so +%{tde_tdelibdir}/ktsearchplugin.la +%{tde_tdelibdir}/ktsearchplugin.so +%{tde_tdelibdir}/ktstatsplugin.la +%{tde_tdelibdir}/ktstatsplugin.so +%{tde_tdelibdir}/ktupnpplugin.la +%{tde_tdelibdir}/ktupnpplugin.so +%{tde_tdelibdir}/ktwebinterfaceplugin.la +%{tde_tdelibdir}/ktwebinterfaceplugin.so +%{tde_tdeappdir}/ktorrent.desktop +%{tde_datadir}/apps/ktorrent +%{tde_datadir}/config.kcfg/*.kcfg +%{tde_datadir}/icons/hicolor/*/*/*.png +%{tde_datadir}/icons/hicolor/*/*/*.svgz +%{tde_datadir}/services/*.desktop +%{tde_datadir}/servicetypes/ktorrentplugin.desktop %Changelog diff --git a/redhat/applications/kuickshow/kuickshow-3.5.13-missing_ldflags.patch b/redhat/applications/kuickshow/kuickshow-3.5.13-missing_ldflags.patch new file mode 100644 index 000000000..8028d1941 --- /dev/null +++ b/redhat/applications/kuickshow/kuickshow-3.5.13-missing_ldflags.patch @@ -0,0 +1,11 @@ +--- kuickshow/kuickshow/src/Makefile.am.ORI 2012-08-06 11:35:57.271341272 +0200 ++++ kuickshow/kuickshow/src/Makefile.am 2012-08-06 11:36:20.916830749 +0200 +@@ -10,7 +10,7 @@ + METASOURCES = AUTO + + kuickshow_la_LDFLAGS = $(all_libraries) -module -avoid-version +-kuickshow_la_LIBADD = $(LIB_KDEPRINT) $(LIB_IMLIB) ++kuickshow_la_LIBADD = $(LIB_KDEPRINT) $(LIB_IMLIB) $(LIB_QT) $(LIB_KDECORE) $(LIB_KDEUI) $(LIB_KIO) + kuickshow_la_SOURCES = kuickshow.cpp \ + aboutwidget.cpp generalwidget.cpp kuickconfigdlg.cpp main.cpp \ + defaultswidget.cpp imagewindow.cpp kuickdata.cpp \ diff --git a/redhat/applications/kuickshow/trinity-kuickshow-3.5.12.spec b/redhat/applications/kuickshow/trinity-kuickshow-3.5.12.spec index 307f9f0cc..bf7c79c3b 100644 --- a/redhat/applications/kuickshow/trinity-kuickshow-3.5.12.spec +++ b/redhat/applications/kuickshow/trinity-kuickshow-3.5.12.spec @@ -6,14 +6,14 @@ # 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 %{tde_prefix}/share/doc %endif # TDE 3.5.12 specific building variables BuildRequires: autoconf automake libtool m4 %define tde_docdir %{_docdir} -%define tde_includedir %{_includedir}/kde -%define tde_libdir %{_libdir}/kde3 +%define tde_includedir %{tde_includedir}/kde +%define tde_libdir %{tde_libdir}/kde3 Name: trinity-%{kdecomp} @@ -33,8 +33,8 @@ Source0: %{kdecomp}-3.5.12.tar.gz Conflicts: trinity-kdegraphics BuildRequires: tqtinterface-devel -BuildRequires: trinity-kdelibs-devel -BuildRequires: trinity-kdebase-devel +BuildRequires: trinity-tdelibs-devel +BuildRequires: trinity-tdebase-devel BuildRequires: desktop-file-utils BuildRequires: imlib-devel @@ -53,19 +53,20 @@ Clicking on an image shows the image in its normal size. %build -export PATH="%{_bindir}:${PATH}" -export LDFLAGS="-L%{_libdir} -I%{_includedir}" +unset QTDIR; . /etc/profile.d/qt.sh +export PATH="%{tde_bindir}:${PATH}" +export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}" %configure \ --disable-rpath \ - --with-extra-includes=%{_includedir}/tqt \ + --with-extra-includes=%{tde_includedir}/tqt \ --enable-closure %__make %{?_smp_mflags} %install -export PATH="%{_bindir}:${PATH}" +export PATH="%{tde_bindir}:${PATH}" %__rm -rf %{buildroot} %make_install @@ -75,26 +76,26 @@ export PATH="%{_bindir}:${PATH}" %post -touch --no-create %{_datadir}/icons/hicolor || : -gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +touch --no-create %{tde_datadir}/icons/hicolor || : +gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || : %postun -touch --no-create %{_datadir}/icons/hicolor || : -gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +touch --no-create %{tde_datadir}/icons/hicolor || : +gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || : %files %defattr(-,root,root,-) %doc AUTHORS COPYING -%{_bindir}/* -%{_datadir}/applications/*/*.desktop -%{_datadir}/apps/*/ -%{tde_docdir}/HTML/en/*/ -%{_datadir}/icons/*/*/*/* -%{_libdir}/libkdeinit_%{kdecomp}.so - -%exclude %{_libdir}/*.la -%exclude %{_libdir}/*/*.so -%exclude %{_libdir}/*/*.la +%{tde_bindir}/* +%{tde_datadir}/applications/*/*.desktop +%{tde_datadir}/apps/*/ +%{tde_tdedocdir}/HTML/en/*/ +%{tde_datadir}/icons/*/*/*/* +%{tde_libdir}/libkdeinit_%{kdecomp}.so + +%exclude %{tde_libdir}/*.la +%exclude %{tde_libdir}/*/*.so +%exclude %{tde_libdir}/*/*.la %Changelog diff --git a/redhat/applications/kuickshow/trinity-kuickshow-3.5.13.spec b/redhat/applications/kuickshow/trinity-kuickshow-3.5.13.spec index 88a8e2fec..aa01c55fb 100644 --- a/redhat/applications/kuickshow/trinity-kuickshow-3.5.13.spec +++ b/redhat/applications/kuickshow/trinity-kuickshow-3.5.13.spec @@ -2,16 +2,25 @@ %define kdecomp kuickshow # If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". -%if "%{?_prefix}" != "/usr" +%if "%{?tde_prefix}" != "/usr" %define _variant .opt -%define _docdir %{_datadir}/doc %endif # TDE 3.5.13 specific building variables -BuildRequires: autoconf automake libtool m4 -%define tde_docdir %{_docdir}/kde -%define tde_includedir %{_includedir}/kde -%define tde_libdir %{_libdir}/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_mandir %{tde_datadir}/man +%define tde_appdir %{tde_datadir}/applications + +%define tde_tdeappdir %{tde_appdir}/kde +%define tde_tdedocdir %{tde_docdir}/kde +%define tde_tdeincludedir %{tde_includedir}/kde +%define tde_tdelibdir %{tde_libdir}/trinity + +%define _docdir %{tde_docdir} Name: trinity-%{kdecomp} @@ -38,10 +47,12 @@ Patch1: bp001-28d9c774.diff Patch2: bp002-bdeb8b3a.diff # [kuickshow] Remove inadvertent renaming [Commit #d97e403f] [Bug #863] Patch3: bp003-d97e403f.diff +# [kuickshow] Missing LDFLAGS cause FTBFS on Mageia / Mandriva +Patch4: kuickshow-3.5.13-missing_ldflags.patch BuildRequires: tqtinterface-devel -BuildRequires: trinity-kdelibs-devel -BuildRequires: trinity-kdebase-devel +BuildRequires: trinity-tdelibs-devel +BuildRequires: trinity-tdebase-devel BuildRequires: desktop-file-utils BuildRequires: imlib-devel @@ -57,12 +68,13 @@ Clicking on an image shows the image in its normal size. %patch1 -p1 %patch2 -p1 %patch3 -p1 +%patch4 -p1 -b .ldflags # Ugly hack to modify TQT include directory inside autoconf files. # If TQT detection fails, it fallbacks to TQT4 instead of TQT3 ! %__sed -i admin/acinclude.m4.in \ - -e "s|/usr/include/tqt|%{_includedir}/tqt|g" \ - -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_docdir}/HTML'|g" + -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \ + -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g" %__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in" %__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh" @@ -70,19 +82,27 @@ Clicking on an image shows the image in its normal size. %build -export PATH="%{_bindir}:${PATH}" -export LDFLAGS="-L%{_libdir} -I%{_includedir}" +unset QTDIR; . /etc/profile.d/qt.sh +export PATH="%{tde_bindir}:${PATH}" +export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}" %configure \ - --disable-rpath \ - --with-extra-includes=%{_includedir}/tqt \ - --enable-closure + --prefix=%{tde_prefix} \ + --exec-prefix=%{tde_prefix} \ + --bindir=%{tde_bindir} \ + --datadir=%{tde_datadir} \ + --libdir=%{tde_libdir} \ + --mandir=%{tde_mandir} \ + --includedir=%{tde_tdeincludedir} \ + --disable-rpath \ + --with-extra-includes=%{tde_includedir}/tqt \ + --enable-closure %__make %{?_smp_mflags} %install -export PATH="%{_bindir}:${PATH}" +export PATH="%{tde_bindir}:${PATH}" %__rm -rf %{buildroot} %__make install DESTDIR=%{?buildroot} @@ -92,27 +112,27 @@ export PATH="%{_bindir}:${PATH}" %post -touch --no-create %{_datadir}/icons/hicolor || : -gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +touch --no-create %{tde_datadir}/icons/hicolor || : +gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || : /sbin/ldconfig %postun -touch --no-create %{_datadir}/icons/hicolor || : -gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +touch --no-create %{tde_datadir}/icons/hicolor || : +gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || : /sbin/ldconfig %files %defattr(-,root,root,-) %doc AUTHORS COPYING -%{_bindir}/* -%{_datadir}/applications/*/*.desktop -%{_datadir}/apps/*/ -%{_datadir}/icons/hicolor/*/*/* -%{_libdir}/lib[kt]deinit_%{kdecomp}.so -%{_libdir}/*.la -%{tde_libdir}/*.so +%{tde_bindir}/* +%{tde_datadir}/applications/*/*.desktop +%{tde_datadir}/apps/*/ +%{tde_datadir}/icons/hicolor/*/*/* +%{tde_libdir}/lib[kt]deinit_%{kdecomp}.so %{tde_libdir}/*.la -%{tde_docdir}/HTML/en/*/ +%{tde_tdelibdir}/*.so +%{tde_tdelibdir}/*.la +%{tde_tdedocdir}/HTML/en/*/ %Changelog diff --git a/redhat/applications/kvirc/kvirc-3.5.13-directories.patch b/redhat/applications/kvirc/kvirc-3.5.13-directories.patch index 021671fee..ab633568b 100644 --- a/redhat/applications/kvirc/kvirc-3.5.13-directories.patch +++ b/redhat/applications/kvirc/kvirc-3.5.13-directories.patch @@ -13,3 +13,14 @@ AC_SUBST(modulelibdir) defscriptdir="\${globalkvircdir}/defscript" +--- kvirc/configure.in.ORI 2012-08-06 13:48:54.586710376 +0200 ++++ kvirc/configure.in 2012-08-06 13:50:31.344841522 +0200 +@@ -100,7 +100,7 @@ + + AC_SS_HEADER([Checking KDE]) + +-SS_KDE_GENERAL_FILE_TO_SEARCH="include/kwin.h" ++SS_KDE_GENERAL_FILE_TO_SEARCH="include/kwin.h include/kde/kwin.h" + SS_KDE_INCLUDE_FILE_TO_SEARCH="kwin.h" + + AC_SS_FIND_KDE diff --git a/redhat/applications/kvirc/kvirc-3.5.13-fix_acinclude_m4.patch b/redhat/applications/kvirc/kvirc-3.5.13-fix_acinclude_m4.patch index b06570d73..d838ce911 100644 --- a/redhat/applications/kvirc/kvirc-3.5.13-fix_acinclude_m4.patch +++ b/redhat/applications/kvirc/kvirc-3.5.13-fix_acinclude_m4.patch @@ -1,6 +1,5 @@ -diff -u a/acinclude.m4 b/acinclude.m4 ---- a/acinclude.m4 -+++ b/acinclude.m4 +--- kvirc/admin/acinclude.m4.in.ORI 2012-08-06 12:20:40.350261853 +0200 ++++ kvirc/admin/acinclude.m4.in 2012-08-06 12:21:34.061121107 +0200 @@ -2149,7 +2149,7 @@ if test -n "$KDEDIR"; then ss_kde_general_test_dirs="$KDEDIR $ss_kde_general_test_dirs" @@ -19,48 +18,3 @@ diff -u a/acinclude.m4 b/acinclude.m4 SS_RPATH="$SS_RPATH -rpath $SS_OTHER_LIBDIRS" fi -diff -u a/admin/acinclude.m4.in b/admin/acinclude.m4.in ---- a/admin/acinclude.m4.in -+++ b/admin/acinclude.m4.in -@@ -2149,7 +2149,7 @@ - if test -n "$KDEDIR"; then - ss_kde_general_test_dirs="$KDEDIR $ss_kde_general_test_dirs" - fi -- ss_kde_general_test_path_suffix="kde kde3.0 kde3 KDE Kde KDE3 kde3 ." -+ ss_kde_general_test_path_suffix="trinity kde kde3.0 kde3 KDE Kde KDE3 kde3 ." - - AC_SS_FIND_FILE_PATH_EXT($SS_KDE_GENERAL_FILE_TO_SEARCH,$ss_kde_general_test_dirs,$ss_kde_general_test_path_suffix,SS_KDE_GENERAL_DIR) - -@@ -2524,7 +2524,7 @@ - - if test -n "$SS_OTHER_LIBDIRS"; then - SS_LIBDIRS="$SS_LIBDIRS $SS_OTHER_LIBDIRS" -- $SS_OTHER_LIBDIRS=`echo "$SS_OTHER_LIBDIRS" | sed -e s/-L//g` -+ SS_OTHER_LIBDIRS=`echo "$SS_OTHER_LIBDIRS" | sed -e s/-L//g` - SS_RPATH="$SS_RPATH -rpath $SS_OTHER_LIBDIRS" - fi - -diff -u a/src/modules/mediaplayer/Makefile.am b/src/modules/mediaplayer/Makefile.am ---- a/src/modules/mediaplayer/Makefile.am -+++ b/src/modules/mediaplayer/Makefile.am -@@ -10,7 +10,7 @@ - #%.moc: %.h - # $(SS_QT_MOC) $< -o $@ - --libkvimediaplayer_la_LDFLAGS = -avoid-version -module -+libkvimediaplayer_la_LDFLAGS = -avoid-version -module $(SS_LDFLAGS) $(SS_LIBDIRS) - - libkvimediaplayer_la_SOURCES = libkvimediaplayer.cpp \ - mp_amarokinterface.cpp \ -diff -u a/src/modules/torrent/Makefile.am b/src/modules/torrent/Makefile.am ---- a/src/modules/torrent/Makefile.am -+++ b/src/modules/torrent/Makefile.am -@@ -10,7 +10,7 @@ - #%.moc: %.h - # $(SS_QT_MOC) $< -o $@ - --libkvitorrent_la_LDFLAGS = -avoid-version -module -+libkvitorrent_la_LDFLAGS = -avoid-version -module $(SS_LDFLAGS) $(SS_LIBDIRS) - - libkvitorrent_la_SOURCES = libkvitorrent.cpp \ - tc_interface.cpp \ diff --git a/redhat/applications/kvirc/kvirc-3.5.13-missing_ldflags.patch b/redhat/applications/kvirc/kvirc-3.5.13-missing_ldflags.patch new file mode 100644 index 000000000..55f2be2e7 --- /dev/null +++ b/redhat/applications/kvirc/kvirc-3.5.13-missing_ldflags.patch @@ -0,0 +1,22 @@ +--- kvirc/src/kvilib/build/Makefile.am.ORI 2012-08-06 12:13:32.982315876 +0200 ++++ kvirc/src/kvilib/build/Makefile.am 2012-08-06 12:13:44.438073791 +0200 +@@ -9,7 +9,7 @@ + + lib_LTLIBRARIES = libkvilib.la + libkvilib_la_LDFLAGS = $(SS_LDFLAGS) -version-info 3:0:0 $(SS_LIBDIRS) +-libkvilib_la_LIBADD = $(SS_LIBLINK) ++libkvilib_la_LIBADD = $(SS_LIBLINK) -lkio -lDCOP + + # + # Command useful to find out all the sources +--- kvirc/src/kvirc/build/Makefile.am.ORI 2011-11-26 22:37:04.065565368 +0100 ++++ kvirc/src/kvirc/build/Makefile.am 2011-11-26 22:37:17.139565032 +0100 +@@ -8,7 +8,7 @@ + AM_CPPFLAGS = -I$(SS_TOPSRCDIR)/src/kvilib/include/ -I$(SS_TOPSRCDIR)/src/kvirc/include/ \ + $(SS_INCDIRS) $(SS_CPPFLAGS) -DGLOBAL_KVIRC_DIR=\"$(globalkvircdir)\" + +-kvirc_LDFLAGS = -export-dynamic $(SS_LDFLAGS) $(SS_LIBDIRS) $(SS_RPATH) ++kvirc_LDFLAGS = -export-dynamic $(SS_LDFLAGS) $(SS_LIBDIRS) $(SS_RPATH) -lDCOP -lkdefx -lkio + kvirc_LDADD = $(SS_LIBLINK) ../../kvilib/build/libkvilib.la + + bin_PROGRAMS = kvirc diff --git a/redhat/applications/kvirc/trinity-kvirc-3.5.13-sru.spec b/redhat/applications/kvirc/trinity-kvirc-3.5.13-sru.spec new file mode 100644 index 000000000..d60f09b4b --- /dev/null +++ b/redhat/applications/kvirc/trinity-kvirc-3.5.13-sru.spec @@ -0,0 +1,228 @@ +# Default version for this component +%define kdecomp kvirc + +# 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 building 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_mandir %{tde_datadir}/man +%define tde_appdir %{tde_datadir}/applications + +%define tde_tdeappdir %{tde_appdir}/kde +%define tde_tdedocdir %{tde_docdir}/kde +%define tde_tdeincludedir %{tde_includedir}/kde +%define tde_tdelibdir %{tde_libdir}/trinity + +%define _docdir %{tde_docdir} + + +Name: trinity-%{kdecomp} +Summary: Trinity based next generation IRC client with module support +Version: 3.4.0 +Release: 2%{?dist}%{?_variant} + +License: GPLv2+ +Group: Applications/Utilities + +Vendor: Trinity Project +Packager: Francois Andriot <francois.andriot@free.fr> +URL: http://kvirc.net/ + +Prefix: %{tde_prefix} +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +Source0: %{kdecomp}-3.5.13.tar.gz + +# [kvirc] Release 3.5.13-sru +Patch0: kvirc-3.5.13-sru-20120806.patch +# [kvirc] Modules do not install in correct folder [RHEL/Fedora] +Patch1: kvirc-3.5.13-directories.patch +# [kvirc] FTBFS because of missing link libraries [Bug #991] +Patch2: kvirc-3.5.13-missing_ldflags.patch + + + +BuildRequires: tqtinterface-devel +BuildRequires: trinity-tdelibs-devel +BuildRequires: trinity-tdebase-devel +BuildRequires: desktop-file-utils +BuildRequires: gettext + +Requires: %{name}-data = %{version}-%{release} + +%description +A highly configurable graphical IRC client with an MDI interface, +built-in scripting language, support for IRC DCC, drag & drop file +browsing, and much more. KVIrc uses the KDE widget set, can be extended +using its own scripting language, integrates with KDE, and supports +custom plugins. + +If you are a developer and you want to write a custom module for KVIrc, +you need to install the kvirc-dev package. + +%package data +Group: Applications/Utilities +Summary: Data files for KVIrc +Requires: %{name} = %{version}-%{release} + +%description data +This package contains the architecture-independent data needed by KVIrc in +order to run, such as icons and images, language files, and shell scripts. +It also contains complete reference guides on scripting and functions +within KVIrc in its internal help format. Unless you want to use KVIrc only +as a very simple IRC client you are likely to want to write scripts to +tailor KVIrc to your needs. + +KVIrc is a graphical IRC client based on the KDE widget set which integrates +with the K Desktop Environment version 3. + +%package devel +Group: Development/Libraries +Summary: Development files for KVIrc +Requires: %{name} = %{version}-%{release} + +%description devel +This package contains KVIrc libraries and include files you need if you +want to develop plugins for KVIrc. + +KVIrc is a graphical IRC client based on the KDE widget set which integrates +with the K Desktop Environment version 3. + + +%prep +%setup -q -n applications/%{kdecomp} +%patch0 -p1 +%patch1 -p1 +%patch2 -p1 -b .ldflags + + +# Ugly hack to modify TQT include directory inside autoconf files. +# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 ! +%__sed -i admin/acinclude.m4.in \ + -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \ + -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g" + +# Hardcoded absolute PATH to KDEDIR in source code ! That sucks ! +%__sed -i "src/kvirc/kernel/kvi_app_fs.cpp" \ + -e "s|/opt/kde3/lib|%{tde_prefix}/%{_lib}|g" +%__sed -i "src/kvirc/kernel/kvi_app_setup.cpp" \ + -e "s|/opt/kde3|%{tde_prefix}|g" + +%__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in" +%__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh" +./autogen.sh + + +%build +unset QTDIR; . /etc/profile.d/qt.sh +export PATH="%{tde_bindir}:${PATH}" +export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}" +export KDEDIR=%{tde_prefix} + +#export CXXFLAGS="${CXXFLAGS} -I%{tde_includedir} -lqt-mt" + +# Workaround until the mess of TDE includedir is solved +export CXXFLAGS="${CXXFLAGS} -I%{tde_includedir}" + +%configure \ + --prefix=%{tde_prefix} \ + --exec-prefix=%{tde_prefix} \ + --bindir=%{tde_bindir} \ + --datadir=%{tde_datadir} \ + --libdir=%{tde_libdir} \ + --mandir=%{tde_mandir} \ + --includedir=%{tde_tdeincludedir} \ + --disable-rpath \ + --with-fno-rtti --with-aa-fonts --with-big-channels \ + --enable-perl --with-pic --enable-wall \ + --with-ix86-asm \ + --with-extra-includes=%{tde_includedir}/tqt:%{tde_includedir} \ + --with-kde-services-dir=%{tde_datadir}/services \ + --with-kde-library-dir=%{tde_libdir} \ + --with-kde-include-dir=%{tde_tdeincludedir} \ + --with-qt-library-dir=${QTLIB} \ + --with-qt-include-dir=${QTINC} \ + --with-qt-moc=${QTDIR}/bin/moc + +# Symbolic links must exist prior to parallel building +%__make symlinks -C src/kvilib/build +%__make symlinks -C src/kvirc/build + +%__make %{?_smp_mflags} + + +%install +export PATH="%{tde_bindir}:${PATH}" +%__rm -rf %{buildroot} +%__make install DESTDIR=%{buildroot} + +# Debian maintainer has renamed 'COPYING' file to 'EULA', so we do the same ... +%__mv \ + %{?buildroot}%{tde_datadir}/kvirc/3.4/license/COPYING \ + %{?buildroot}%{tde_datadir}/kvirc/3.4/license/EULA + +%clean +%__rm -rf %{buildroot} + + +%post +/sbin/ldconfig +touch --no-create %{tde_datadir}/icons/hicolor || : +gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || : + +%postun +/sbin/ldconfig +touch --no-create %{tde_datadir}/icons/hicolor || : +gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || : + + +%files +%defattr(-,root,root,-) +%doc ChangeLog FAQ README TODO +%{tde_bindir}/kvirc +%{tde_libdir}/*.so.* +%{tde_libdir}/kvirc/*/modules/*.so + +%files data +%defattr(-,root,root,-) +%{tde_bindir}/kvi_run_netscape +%{tde_bindir}/kvi_search_help +%{tde_libdir}/kvirc/*/modules/caps/ +%{tde_datadir}/applnk/Internet/kvirc.desktop +%{tde_datadir}/icons/hicolor/* +%{tde_datadir}/kvirc +%{tde_datadir}/mimelnk/text/*.desktop +%{tde_datadir}/services/*.protocol +%{tde_mandir}/man1/kvirc.1 + +%files devel +%defattr(-,root,root,-) +%{tde_bindir}/kvirc-config +%{tde_includedir}/kvirc/ +%{tde_libdir}/*.la +%{tde_libdir}/*.so +%{tde_libdir}/kvirc/*/modules/*.la + + +%Changelog +* Sat May 05 2012 Francois Andriot <francois.andriot@free.fr> - 3.4.0-2 +- Rebuilt for Fedora 17 +- Fix HTML directory location +- Rename old tq methods that no longer need a unique name [Commit #32a249ba] +- Remove additional unneeded tq method conversions [Commit #f9114981] +- Rename obsolete tq methods to standard names [Commit #2dd6d32b] +- Rename a few stragglers [Commit #1c00d6ff] +- Fix FTBFS [Commits #ff96f491, #2285efe5] +- Fix linear alphabet string errors [Commit #51bbe9e5] +- Fix inadvertent "TQ" changes. [Commit #a24a8595] +- Fix "acinclude.m4" file [Bug #980] + +* Fri Nov 25 2011 Francois Andriot <francois.andriot@free.fr> - 3.4.0-1 +- Initial build for RHEL 5, RHEL 6, Fedora 15, Fedora 16 diff --git a/redhat/applications/kvirc/trinity-kvirc.spec b/redhat/applications/kvirc/trinity-kvirc-3.5.13.spec index 4da540dee..b41ead906 100644 --- a/redhat/applications/kvirc/trinity-kvirc.spec +++ b/redhat/applications/kvirc/trinity-kvirc-3.5.13.spec @@ -1,26 +1,32 @@ # Default version for this component %define kdecomp kvirc -%define version 3.4.0 -%define release 2 # If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". -%if "%{?_prefix}" != "/usr" +%if "%{?tde_prefix}" != "/usr" %define _variant .opt -%define _docdir %{_datadir}/doc -%define _mandir %{_datadir}/man %endif # TDE 3.5.13 specific building variables -BuildRequires: autoconf automake libtool m4 -%define tde_docdir %{_docdir}/kde -%define tde_includedir %{_includedir}/kde -%define tde_libdir %{_libdir}/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_mandir %{tde_datadir}/man +%define tde_appdir %{tde_datadir}/applications + +%define tde_tdeappdir %{tde_appdir}/kde +%define tde_tdedocdir %{tde_docdir}/kde +%define tde_tdeincludedir %{tde_includedir}/kde +%define tde_tdelibdir %{tde_libdir}/trinity + +%define _docdir %{tde_docdir} Name: trinity-%{kdecomp} Summary: Trinity based next generation IRC client with module support -Version: %{?version} -Release: %{?release}%{?dist}%{?_variant} +Version: 3.4.0 +Release: 2%{?dist}%{?_variant} License: GPLv2+ Group: Applications/Utilities @@ -29,7 +35,7 @@ Vendor: Trinity Project Packager: Francois Andriot <francois.andriot@free.fr> URL: http://kvirc.net/ -Prefix: %{_prefix} +Prefix: %{tde_prefix} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source0: %{kdecomp}-3.5.13.tar.gz @@ -56,10 +62,10 @@ Patch8: bp006-51bbe9e5.diff Patch9: bp007-a24a8595.diff # [kvirc] Fix "acinclude.m4" file [Bug #980] Patch10: kvirc-3.5.13-fix_acinclude_m4.patch - + BuildRequires: tqtinterface-devel -BuildRequires: trinity-kdelibs-devel -BuildRequires: trinity-kdebase-devel +BuildRequires: trinity-tdelibs-devel +BuildRequires: trinity-tdebase-devel BuildRequires: desktop-file-utils BuildRequires: gettext @@ -121,14 +127,14 @@ with the K Desktop Environment version 3. # Ugly hack to modify TQT include directory inside autoconf files. # If TQT detection fails, it fallbacks to TQT4 instead of TQT3 ! %__sed -i admin/acinclude.m4.in \ - -e "s|/usr/include/tqt|%{_includedir}/tqt|g" \ - -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_docdir}/HTML'|g" + -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \ + -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g" # Hardcoded absolute PATH to KDEDIR in source code ! That sucks ! %__sed -i "src/kvirc/kernel/kvi_app_fs.cpp" \ - -e "s|/opt/kde3/lib|%{_prefix}/%{_lib}|g" + -e "s|/opt/kde3/lib|%{tde_prefix}/%{_lib}|g" %__sed -i "src/kvirc/kernel/kvi_app_setup.cpp" \ - -e "s|/opt/kde3|%{_prefix}|g" + -e "s|/opt/kde3|%{tde_prefix}|g" %__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in" %__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh" @@ -136,20 +142,32 @@ with the K Desktop Environment version 3. %build -export PATH="%{_bindir}:${PATH}" -export LDFLAGS="-L%{_libdir} -I%{_includedir}" -export KDEDIR=%{_prefix} +unset QTDIR; . /etc/profile.d/qt.sh +export PATH="%{tde_bindir}:${PATH}" +export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}" +export KDEDIR=%{tde_prefix} + +#export CXXFLAGS="${CXXFLAGS} -I%{tde_includedir} -lqt-mt" %configure \ - --disable-rpath \ - --with-fno-rtti --with-aa-fonts --with-big-channels \ - --enable-perl --with-pic --enable-wall \ - --with-ix86-asm \ - --with-qt-moc=%{_bindir}/tmoc \ - --with-extra-includes=%{_includedir}/tqt \ - --with-kde-services-dir=%{_datadir}/services \ - --with-kde-library-dir=%{_libdir} \ - --with-kde-include-dir=%{_includedir} + --prefix=%{tde_prefix} \ + --exec-prefix=%{tde_prefix} \ + --bindir=%{tde_bindir} \ + --datadir=%{tde_datadir} \ + --libdir=%{tde_libdir} \ + --mandir=%{tde_mandir} \ + --includedir=%{tde_tdeincludedir} \ + --disable-rpath \ + --with-fno-rtti --with-aa-fonts --with-big-channels \ + --enable-perl --with-pic --enable-wall \ + --with-ix86-asm \ + --with-extra-includes=%{tde_includedir}/tqt:%{tde_includedir} \ + --with-kde-services-dir=%{tde_datadir}/services \ + --with-kde-library-dir=%{tde_libdir} \ + --with-kde-include-dir=%{tde_tdeincludedir} \ + --with-qt-library-dir=${QTLIB} \ + --with-qt-include-dir=${QTINC} \ + --with-qt-moc=${QTDIR}/bin/moc # Symbolic links must exist prior to parallel building %__make symlinks -C src/kvilib/build @@ -159,14 +177,14 @@ export KDEDIR=%{_prefix} %install -export PATH="%{_bindir}:${PATH}" +export PATH="%{tde_bindir}:${PATH}" %__rm -rf %{buildroot} %__make install DESTDIR=%{buildroot} # Debian maintainer has renamed 'COPYING' file to 'EULA', so we do the same ... %__mv \ - %{?buildroot}%{_datadir}/kvirc/3.4/license/COPYING \ - %{?buildroot}%{_datadir}/kvirc/3.4/license/EULA + %{?buildroot}%{tde_datadir}/kvirc/3.4/license/COPYING \ + %{?buildroot}%{tde_datadir}/kvirc/3.4/license/EULA %clean %__rm -rf %{buildroot} @@ -174,41 +192,41 @@ export PATH="%{_bindir}:${PATH}" %post /sbin/ldconfig -touch --no-create %{_datadir}/icons/hicolor || : -gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +touch --no-create %{tde_datadir}/icons/hicolor || : +gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || : %postun /sbin/ldconfig -touch --no-create %{_datadir}/icons/hicolor || : -gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +touch --no-create %{tde_datadir}/icons/hicolor || : +gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || : %files %defattr(-,root,root,-) %doc ChangeLog FAQ README TODO -%{_bindir}/kvirc -%{_libdir}/*.so.* -%{_libdir}/kvirc/*/modules/*.so +%{tde_bindir}/kvirc +%{tde_libdir}/*.so.* +%{tde_libdir}/kvirc/*/modules/*.so %files data %defattr(-,root,root,-) -%{_bindir}/kvi_run_netscape -%{_bindir}/kvi_search_help -%{_libdir}/kvirc/*/modules/caps/ -%{_datadir}/applnk/Internet/kvirc.desktop -%{_datadir}/icons/hicolor/* -%{_datadir}/kvirc -%{_datadir}/mimelnk/text/*.desktop -%{_datadir}/services/*.protocol -%{_mandir}/man1/kvirc.1 +%{tde_bindir}/kvi_run_netscape +%{tde_bindir}/kvi_search_help +%{tde_libdir}/kvirc/*/modules/caps/ +%{tde_datadir}/applnk/Internet/kvirc.desktop +%{tde_datadir}/icons/hicolor/* +%{tde_datadir}/kvirc +%{tde_datadir}/mimelnk/text/*.desktop +%{tde_datadir}/services/*.protocol +%{tde_mandir}/man1/kvirc.1 %files devel %defattr(-,root,root,-) -%{_bindir}/kvirc-config -%{_includedir}/kvirc/ -%{_libdir}/*.la -%{_libdir}/*.so -%{_libdir}/kvirc/*/modules/*.la +%{tde_bindir}/kvirc-config +%{tde_includedir}/kvirc/ +%{tde_libdir}/*.la +%{tde_libdir}/*.so +%{tde_libdir}/kvirc/*/modules/*.la %Changelog diff --git a/redhat/applications/kvkbd/trinity-kvkbd.spec b/redhat/applications/kvkbd/trinity-kvkbd.spec index 110cbbb9e..cd5159319 100644 --- a/redhat/applications/kvkbd/trinity-kvkbd.spec +++ b/redhat/applications/kvkbd/trinity-kvkbd.spec @@ -1,25 +1,32 @@ # Default version for this component %define kdecomp kvkbd -%define version 0.4.8 -%define release 1 # If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". -%if "%{?_prefix}" != "/usr" +%if "%{?tde_prefix}" != "/usr" %define _variant .opt -%define _docdir %{_datadir}/doc %endif # TDE 3.5.13 specific building variables -BuildRequires: autoconf automake libtool m4 -%define tde_docdir %{_docdir}/kde -%define tde_includedir %{_includedir}/kde -%define tde_libdir %{_libdir}/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_mandir %{tde_datadir}/man +%define tde_appdir %{tde_datadir}/applications + +%define tde_tdeappdir %{tde_appdir}/kde +%define tde_tdedocdir %{tde_docdir}/kde +%define tde_tdeincludedir %{tde_includedir}/kde +%define tde_tdelibdir %{tde_libdir}/trinity + +%define _docdir %{tde_docdir} Name: trinity-%{kdecomp} Summary: Virtual keyboard for KDE [Trinity] -Version: %{?version} -Release: %{?release}%{?dist}%{?_variant} +Version: 0.4.8 +Release: 1%{?dist}%{?_variant} License: GPLv2+ Group: Applications/System @@ -28,14 +35,14 @@ Vendor: Trinity Project Packager: Francois Andriot <francois.andriot@free.fr> URL: http://pan4os.info/main/index.php -Prefix: %{_prefix} +Prefix: %{tde_prefix} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source0: %{kdecomp}-3.5.13.tar.gz BuildRequires: tqtinterface-devel -BuildRequires: trinity-kdelibs-devel -BuildRequires: trinity-kdebase-devel +BuildRequires: trinity-tdelibs-devel +BuildRequires: trinity-tdebase-devel BuildRequires: desktop-file-utils @@ -50,8 +57,8 @@ a systray widget as well as a dockwidget. # Ugly hack to modify TQT include directory inside autoconf files. # If TQT detection fails, it fallbacks to TQT4 instead of TQT3 ! %__sed -i admin/acinclude.m4.in \ - -e "s|/usr/include/tqt|%{_includedir}/tqt|g" \ - -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_docdir}/HTML'|g" + -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \ + -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g" %__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in" %__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh" @@ -60,19 +67,26 @@ a systray widget as well as a dockwidget. %build unset QTDIR; . /etc/profile.d/qt.sh -export PATH="%{_bindir}:${PATH}" -export LDFLAGS="-L%{_libdir} -I%{_includedir}" +export PATH="%{tde_bindir}:${PATH}" +export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}" %configure \ - --disable-rpath \ - --with-extra-includes=%{_includedir}/tqt \ - --enable-closure + --prefix=%{tde_prefix} \ + --exec-prefix=%{tde_prefix} \ + --bindir=%{tde_bindir} \ + --datadir=%{tde_datadir} \ + --libdir=%{tde_libdir} \ + --mandir=%{tde_mandir} \ + --includedir=%{tde_tdeincludedir} \ + --disable-rpath \ + --with-extra-includes=%{tde_includedir}/tqt \ + --enable-closure %__make %{?_smp_mflags} %install -export PATH="%{_bindir}:${PATH}" +export PATH="%{tde_bindir}:${PATH}" %__rm -rf %{buildroot} %__make install DESTDIR=%{buildroot} @@ -82,23 +96,22 @@ export PATH="%{_bindir}:${PATH}" %post -touch --no-create %{_datadir}/icons/hicolor || : -gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +touch --no-create %{tde_datadir}/icons/hicolor || : +gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || : %postun -touch --no-create %{_datadir}/icons/hicolor || : -gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +touch --no-create %{tde_datadir}/icons/hicolor || : +gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || : %files %defattr(-,root,root,-) %doc AUTHORS ChangeLog COPYING NEWS README TODO -%{_bindir}/kvkbd -%{_datadir}/applnk/Utilities/kvkbd.desktop -%{_datadir}/apps/kvkbd/pics/dock.png -%{_datadir}/apps/kvkbd/pics/tray.png -%{_datadir}/icons/hicolor/16x16/apps/kvkbd.png -%{_datadir}/icons/hicolor/32x32/apps/kvkbd.png +%{tde_bindir}/kvkbd +%{tde_datadir}/applnk/Utilities/kvkbd.desktop +%{tde_datadir}/apps/kvkbd/pics/dock.png +%{tde_datadir}/apps/kvkbd/pics/tray.png +%{tde_datadir}/icons/hicolor/*/apps/kvkbd.png %Changelog diff --git a/redhat/applications/kwin-style-crystal/trinity-kwin-style-crystal-3.5.12.spec b/redhat/applications/kwin-style-crystal/trinity-kwin-style-crystal-3.5.12.spec index feb901d13..624249bf0 100644 --- a/redhat/applications/kwin-style-crystal/trinity-kwin-style-crystal-3.5.12.spec +++ b/redhat/applications/kwin-style-crystal/trinity-kwin-style-crystal-3.5.12.spec @@ -6,14 +6,14 @@ # 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 %{tde_prefix}/share/doc %endif # TDE 3.5.13 specific building variables BuildRequires: autoconf automake libtool m4 %define tde_docdir %{_docdir} -%define tde_includedir %{_includedir}/kde -%define tde_libdir %{_libdir}/kde3 +%define tde_includedir %{tde_includedir}/kde +%define tde_libdir %{tde_libdir}/kde3 Name: trinity-%{kdecomp} @@ -28,14 +28,14 @@ Vendor: Trinity Project Packager: Francois Andriot <francois.andriot@free.fr> URL: http://www.trinitydesktop.org/ -Prefix: %{_prefix} +Prefix: %{tde_prefix} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source0: %{kdecomp}-3.5.12.tar.gz BuildRequires: tqtinterface-devel -BuildRequires: trinity-kdelibs-devel -BuildRequires: trinity-kdebase-devel +BuildRequires: trinity-tdelibs-devel +BuildRequires: trinity-tdebase-devel BuildRequires: desktop-file-utils BuildRequires: gettext @@ -56,7 +56,7 @@ And it is of course nice to look at. Upstream says: # Ugly hack to modify TQT include directory inside autoconf files. # If TQT detection fails, it fallbacks to TQT4 instead of TQT3 ! sed -i admin/acinclude.m4.in \ - -e "s,/usr/include/tqt,%{_includedir}/tqt,g" + -e "s,/usr/include/tqt,%{tde_includedir}/tqt,g" %__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in" %__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" @@ -65,18 +65,18 @@ sed -i admin/acinclude.m4.in \ %build unset QTDIR; . /etc/profile.d/qt.sh -export PATH="%{_bindir}:${PATH}" -export LDFLAGS="-L%{_libdir} -I%{_includedir}" +export PATH="%{tde_bindir}:${PATH}" +export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}" %configure \ --disable-rpath \ - --with-extra-includes=%{_includedir}/tqt + --with-extra-includes=%{tde_includedir}/tqt %__make %{?_smp_mflags} %install -export PATH="%{_bindir}:${PATH}" +export PATH="%{tde_bindir}:${PATH}" %__rm -rf %{buildroot} %__make install DESTDIR=%{buildroot} @@ -86,22 +86,22 @@ export PATH="%{_bindir}:${PATH}" %post -touch --no-create %{_datadir}/icons/hicolor || : -gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +touch --no-create %{tde_datadir}/icons/hicolor || : +gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || : %postun -touch --no-create %{_datadir}/icons/hicolor || : -gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +touch --no-create %{tde_datadir}/icons/hicolor || : +gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || : %files %defattr(-,root,root,-) %doc AUTHORS COPYING -%{tde_libdir}/kwin3_crystal.la -%{tde_libdir}/kwin3_crystal.so -%{tde_libdir}/kwin_crystal_config.la -%{tde_libdir}/kwin_crystal_config.so -%{_datadir}/apps/kwin/crystal.desktop +%{tde_tdelibdir}/kwin3_crystal.la +%{tde_tdelibdir}/kwin3_crystal.so +%{tde_tdelibdir}/kwin_crystal_config.la +%{tde_tdelibdir}/kwin_crystal_config.so +%{tde_datadir}/apps/kwin/crystal.desktop %Changelog diff --git a/redhat/applications/kwin-style-crystal/trinity-kwin-style-crystal-3.5.13.spec b/redhat/applications/kwin-style-crystal/trinity-kwin-style-crystal-3.5.13.spec index fdfe31fbc..0febc8eb1 100644 --- a/redhat/applications/kwin-style-crystal/trinity-kwin-style-crystal-3.5.13.spec +++ b/redhat/applications/kwin-style-crystal/trinity-kwin-style-crystal-3.5.13.spec @@ -1,25 +1,32 @@ # Default version for this component %define kdecomp kwin-style-crystal -%define version 1.0.5 -%define release 1 # If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". -%if "%{?_prefix}" != "/usr" +%if "%{?tde_prefix}" != "/usr" %define _variant .opt -%define _docdir %{_datadir}/doc %endif # TDE 3.5.13 specific building variables -BuildRequires: autoconf automake libtool m4 -%define tde_docdir %{_docdir}/kde -%define tde_includedir %{_includedir}/kde -%define tde_libdir %{_libdir}/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_mandir %{tde_datadir}/man +%define tde_appdir %{tde_datadir}/applications + +%define tde_tdeappdir %{tde_appdir}/kde +%define tde_tdedocdir %{tde_docdir}/kde +%define tde_tdeincludedir %{tde_includedir}/kde +%define tde_tdelibdir %{tde_libdir}/trinity + +%define _docdir %{tde_tdedocdir} Name: trinity-%{kdecomp} Summary: Semi transparant window decoration for Trinity. -Version: %{?version} -Release: %{?release}%{?dist}%{?_variant} +Version: 1.0.5 +Release: 1%{?dist}%{?_variant} License: GPLv2+ Group: Applications/Utilities @@ -28,14 +35,14 @@ Vendor: Trinity Project Packager: Francois Andriot <francois.andriot@free.fr> URL: http://www.trinitydesktop.org/ -Prefix: %{_prefix} +Prefix: %{tde_prefix} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source0: %{kdecomp}-3.5.13.tar.gz BuildRequires: tqtinterface-devel -BuildRequires: trinity-kdelibs-devel -BuildRequires: trinity-kdebase-devel +BuildRequires: trinity-tdelibs-devel +BuildRequires: trinity-tdebase-devel BuildRequires: desktop-file-utils BuildRequires: gettext @@ -56,8 +63,8 @@ And it is of course nice to look at. Upstream says: # Ugly hack to modify TQT include directory inside autoconf files. # If TQT detection fails, it fallbacks to TQT4 instead of TQT3 ! %__sed -i admin/acinclude.m4.in \ - -e "s|/usr/include/tqt|%{_includedir}/tqt|g" \ - -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_docdir}/HTML'|g" + -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \ + -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g" %__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in" %__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh" @@ -66,18 +73,25 @@ And it is of course nice to look at. Upstream says: %build unset QTDIR; . /etc/profile.d/qt.sh -export PATH="%{_bindir}:${PATH}" -export LDFLAGS="-L%{_libdir} -I%{_includedir}" +export PATH="%{tde_bindir}:${PATH}" +export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}" %configure \ - --disable-rpath \ - --with-extra-includes=%{_includedir}/tqt + --prefix=%{tde_prefix} \ + --exec-prefix=%{tde_prefix} \ + --bindir=%{tde_bindir} \ + --datadir=%{tde_datadir} \ + --libdir=%{tde_libdir} \ + --mandir=%{tde_mandir} \ + --includedir=%{tde_includedir} \ + --disable-rpath \ + --with-extra-includes=%{tde_includedir}/tqt %__make %{?_smp_mflags} %install -export PATH="%{_bindir}:${PATH}" +export PATH="%{tde_bindir}:${PATH}" %__rm -rf %{buildroot} %__make install DESTDIR=%{buildroot} @@ -90,11 +104,11 @@ export PATH="%{_bindir}:${PATH}" %files %defattr(-,root,root,-) %doc AUTHORS COPYING -%{tde_libdir}/kwin3_crystal.la -%{tde_libdir}/kwin3_crystal.so -%{tde_libdir}/kwin_crystal_config.la -%{tde_libdir}/kwin_crystal_config.so -%{_datadir}/apps/kwin/crystal.desktop +%{tde_tdelibdir}/kwin3_crystal.la +%{tde_tdelibdir}/kwin3_crystal.so +%{tde_tdelibdir}/kwin_crystal_config.la +%{tde_tdelibdir}/kwin_crystal_config.so +%{tde_datadir}/apps/kwin/crystal.desktop %Changelog diff --git a/redhat/applications/piklab/trinity-piklab.spec b/redhat/applications/piklab/trinity-piklab.spec index f1ccb45be..93fd28370 100644 --- a/redhat/applications/piklab/trinity-piklab.spec +++ b/redhat/applications/piklab/trinity-piklab.spec @@ -1,26 +1,32 @@ # Default version for this component %define kdecomp piklab -%define version 0.15.2 -%define release 3 # If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". -%if "%{?_prefix}" != "/usr" +%if "%{?tde_prefix}" != "/usr" %define _variant .opt -%define _docdir %{_datadir}/doc -%define _mandir %{_datadir}/man %endif # TDE 3.5.13 specific building variables -BuildRequires: autoconf automake libtool m4 -%define tde_docdir %{_docdir}/kde -%define tde_includedir %{_includedir}/kde -%define tde_libdir %{_libdir}/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_mandir %{tde_datadir}/man +%define tde_appdir %{tde_datadir}/applications + +%define tde_tdeappdir %{tde_appdir}/kde +%define tde_tdedocdir %{tde_docdir}/kde +%define tde_tdeincludedir %{tde_includedir}/kde +%define tde_tdelibdir %{tde_libdir}/trinity + +%define _docdir %{tde_tdedocdir} Name: trinity-%{kdecomp} Summary: IDE for PIC-microcontroller development [Trinity] -Version: %{?version} -Release: %{?release}%{?dist}%{?_variant} +Version: 0.15.2 +Release: 3%{?dist}%{?_variant} License: GPLv2+ Group: Applications/Utilities @@ -29,7 +35,7 @@ Vendor: Trinity Project Packager: Francois Andriot <francois.andriot@free.fr> URL: http://www.trinitydesktop.org/ -Prefix: %{_prefix} +Prefix: %{tde_prefix} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source0: %{kdecomp}-3.5.13.tar.gz @@ -38,8 +44,8 @@ Source0: %{kdecomp}-3.5.13.tar.gz Patch1: piklab-3.5.13-fix_gcc47_compilation.patch BuildRequires: tqtinterface-devel -BuildRequires: trinity-kdelibs-devel -BuildRequires: trinity-kdebase-devel +BuildRequires: trinity-tdelibs-devel +BuildRequires: trinity-tdebase-devel BuildRequires: desktop-file-utils BuildRequires: gettext @@ -62,8 +68,8 @@ are supported. A command-line programmer and debugger are also available. # Ugly hack to modify TQT include directory inside autoconf files. # If TQT detection fails, it fallbacks to TQT4 instead of TQT3 ! %__sed -i admin/acinclude.m4.in \ - -e "s|/usr/include/tqt|%{_includedir}/tqt|g" \ - -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_docdir}/HTML'|g" + -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \ + -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g" %__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in" %__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh" @@ -71,23 +77,31 @@ are supported. A command-line programmer and debugger are also available. %build -export PATH="%{_bindir}:${PATH}" -export LDFLAGS="-L%{_libdir} -I%{_includedir}" +unset QTDIR; . /etc/profile.d/qt.sh +export PATH="%{tde_bindir}:${PATH}" +export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}" %configure \ - --disable-rpath \ - --with-extra-includes=%{_includedir}/tqt + --prefix=%{tde_prefix} \ + --exec-prefix=%{tde_prefix} \ + --bindir=%{tde_bindir} \ + --datadir=%{tde_datadir} \ + --libdir=%{tde_libdir} \ + --mandir=%{tde_mandir} \ + --includedir=%{tde_includedir} \ + --disable-rpath \ + --with-extra-includes=%{tde_includedir}/tqt %__make %{?_smp_mflags} %install -export PATH="%{_bindir}:${PATH}" +export PATH="%{tde_bindir}:${PATH}" %__rm -rf %{buildroot} %__make install DESTDIR=%{buildroot} # Incorrect extension on manpage -%__mv -f %{buildroot}%{_mandir}/man1/piklab.1x %{buildroot}%{_mandir}/man1/piklab.1 +%__mv -f %{buildroot}%{tde_mandir}/man1/piklab.1x %{buildroot}%{tde_mandir}/man1/piklab.1 %find_lang %{kdecomp} @@ -96,33 +110,35 @@ export PATH="%{_bindir}:${PATH}" %post -touch --no-create %{_datadir}/icons/hicolor || : -gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +update-desktop-database %{tde_appdir} > /dev/null +touch --no-create %{tde_datadir}/icons/hicolor || : +gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || : %postun -touch --no-create %{_datadir}/icons/hicolor || : -gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +update-desktop-database %{tde_appdir} > /dev/null +touch --no-create %{tde_datadir}/icons/hicolor || : +gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || : %files -f %{kdecomp}.lang %defattr(-,root,root,-) -%{_bindir}/piklab -%{_bindir}/piklab-coff -%{_bindir}/piklab-hex -%{_bindir}/piklab-prog -%{_datadir}/applications/kde/piklab.desktop -%{_datadir}/apps/katepart/syntax/asm-pic.xml -%{_datadir}/apps/katepart/syntax/coff-c-pic.xml -%{_datadir}/apps/katepart/syntax/coff-pic.xml -%{_datadir}/apps/katepart/syntax/jal-pic.xml -%{_datadir}/apps/piklab -%{tde_docdir}/HTML/en/piklab -%{_datadir}/icons/hicolor/*/*/*.png -%{_datadir}/mimelnk/application/x-piklab.desktop -%{_mandir}/man1/piklab-coff.1 -%{_mandir}/man1/piklab-hex.1 -%{_mandir}/man1/piklab-prog.1 -%{_mandir}/man1/piklab.1 +%{tde_bindir}/piklab +%{tde_bindir}/piklab-coff +%{tde_bindir}/piklab-hex +%{tde_bindir}/piklab-prog +%{tde_tdeappdir}/piklab.desktop +%{tde_datadir}/apps/katepart/syntax/asm-pic.xml +%{tde_datadir}/apps/katepart/syntax/coff-c-pic.xml +%{tde_datadir}/apps/katepart/syntax/coff-pic.xml +%{tde_datadir}/apps/katepart/syntax/jal-pic.xml +%{tde_datadir}/apps/piklab +%{tde_tdedocdir}/HTML/en/piklab +%{tde_datadir}/icons/hicolor/*/*/*.png +%{tde_datadir}/mimelnk/application/x-piklab.desktop +%{tde_mandir}/man1/piklab-coff.1 +%{tde_mandir}/man1/piklab-hex.1 +%{tde_mandir}/man1/piklab-prog.1 +%{tde_mandir}/man1/piklab.1 %Changelog diff --git a/redhat/applications/potracegui/trinity-potracegui.spec b/redhat/applications/potracegui/trinity-potracegui.spec index 96c5c8da0..a90649337 100644 --- a/redhat/applications/potracegui/trinity-potracegui.spec +++ b/redhat/applications/potracegui/trinity-potracegui.spec @@ -1,25 +1,32 @@ # Default version for this component %define kdecomp potracegui -%define version 1.3 -%define release 1 # If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". -%if "%{?_prefix}" != "/usr" +%if "%{?tde_prefix}" != "/usr" %define _variant .opt -%define _docdir %{_datadir}/doc %endif # TDE 3.5.13 specific building variables -BuildRequires: autoconf automake libtool m4 -%define tde_docdir %{_docdir}/kde -%define tde_includedir %{_includedir}/kde -%define tde_libdir %{_libdir}/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_mandir %{tde_datadir}/man +%define tde_appdir %{tde_datadir}/applications + +%define tde_tdeappdir %{tde_appdir}/kde +%define tde_tdedocdir %{tde_docdir}/kde +%define tde_tdeincludedir %{tde_includedir}/kde +%define tde_tdelibdir %{tde_libdir}/trinity + +%define _docdir %{tde_tdedocdir} Name: trinity-%{kdecomp} Summary: KDE frontend for potrace [Trinity] -Version: %{?version} -Release: %{?release}%{?dist}%{?_variant} +Version: 1.3 +Release: 1%{?dist}%{?_variant} License: GPLv2+ Group: Applications/Multimedia @@ -28,14 +35,14 @@ Vendor: Trinity Project Packager: Francois Andriot <francois.andriot@free.fr> URL: http://potracegui.sourceforge.net -Prefix: %{_prefix} +Prefix: %{tde_prefix} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source0: %{kdecomp}-3.5.13.tar.gz BuildRequires: tqtinterface-devel -BuildRequires: trinity-kdelibs-devel -BuildRequires: trinity-kdebase-devel +BuildRequires: trinity-tdelibs-devel +BuildRequires: trinity-tdebase-devel BuildRequires: desktop-file-utils @@ -47,14 +54,13 @@ remote files (web, ftp, ...) is also supported. %prep -unset QTDIR; . /etc/profile.d/qt.sh %setup -q -n applications/%{kdecomp} # Ugly hack to modify TQT include directory inside autoconf files. # If TQT detection fails, it fallbacks to TQT4 instead of TQT3 ! %__sed -i admin/acinclude.m4.in \ - -e "s|/usr/include/tqt|%{_includedir}/tqt|g" \ - -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_docdir}/HTML'|g" + -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \ + -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g" %__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in" %__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh" @@ -62,19 +68,27 @@ unset QTDIR; . /etc/profile.d/qt.sh %build -export PATH="%{_bindir}:${PATH}" -export LDFLAGS="-L%{_libdir} -I%{_includedir}" +unset QTDIR; . /etc/profile.d/qt.sh +export PATH="%{tde_bindir}:${PATH}" +export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}" %configure \ - --disable-rpath \ - --with-extra-includes=%{_includedir}/tqt \ - --enable-closure + --prefix=%{tde_prefix} \ + --exec-prefix=%{tde_prefix} \ + --bindir=%{tde_bindir} \ + --datadir=%{tde_datadir} \ + --libdir=%{tde_libdir} \ + --mandir=%{tde_mandir} \ + --includedir=%{tde_includedir} \ + --disable-rpath \ + --with-extra-includes=%{tde_includedir}/tqt \ + --enable-closure %__make %{?_smp_mflags} %install -export PATH="%{_bindir}:${PATH}" +export PATH="%{tde_bindir}:${PATH}" %__rm -rf %{buildroot} %__make install DESTDIR=%{buildroot} @@ -84,26 +98,26 @@ export PATH="%{_bindir}:${PATH}" %post -touch --no-create %{_datadir}/icons/hicolor || : -gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +touch --no-create %{tde_datadir}/icons/hicolor || : +gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || : %postun -touch --no-create %{_datadir}/icons/hicolor || : -gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +touch --no-create %{tde_datadir}/icons/hicolor || : +gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || : %files %defattr(-,root,root,-) %doc AUTHORS ChangeLog COPYING NEWS README TODO -%{_bindir}/potracegui -%{_datadir}/applnk/Utilities/potracegui.desktop -%{_datadir}/apps/potracegui/potraceguiui.rc -%{tde_docdir}/HTML/en/potracegui/common -%{tde_docdir}/HTML/en/potracegui/index.cache.bz2 -%{tde_docdir}/HTML/en/potracegui/index.docbook -%{_datadir}/icons/hicolor/16x16/apps/potracegui.png -%{_datadir}/icons/hicolor/32x32/apps/potracegui.png -%lang(de) %{_datadir}/locale/de/LC_MESSAGES/potracegui.mo +%{tde_bindir}/potracegui +%{tde_datadir}/applnk/Utilities/potracegui.desktop +%{tde_datadir}/apps/potracegui/potraceguiui.rc +%{tde_tdedocdir}/HTML/en/potracegui/common +%{tde_tdedocdir}/HTML/en/potracegui/index.cache.bz2 +%{tde_tdedocdir}/HTML/en/potracegui/index.docbook +%{tde_datadir}/icons/hicolor/16x16/apps/potracegui.png +%{tde_datadir}/icons/hicolor/32x32/apps/potracegui.png +%lang(de) %{tde_datadir}/locale/de/LC_MESSAGES/potracegui.mo %Changelog diff --git a/redhat/applications/rosegarden/rosegarden-3.5.13-missing_ldflags.patch b/redhat/applications/rosegarden/rosegarden-3.5.13-missing_ldflags.patch new file mode 100644 index 000000000..f4e7d4b98 --- /dev/null +++ b/redhat/applications/rosegarden/rosegarden-3.5.13-missing_ldflags.patch @@ -0,0 +1,15 @@ +--- rosegarden/src/CMakeLists.txt.ORI 2012-08-06 15:14:11.135307943 +0200 ++++ rosegarden/src/CMakeLists.txt 2012-08-06 15:14:13.950244825 +0200 +@@ -150,11 +150,11 @@ + TARGET_LINK_LIBRARIES(rosegarden + dl + lo ++ ${XFT_LIBS} + ${QT_AND_KDECORE_LIBS} + ${LIBLO_LIBS} + ${LRDF_LIBS} + ${FFTW3F_LIBS} +- ${XFT_LIBS} + ${LIRC_LIBS} + ${JACK_LIBS} + kio diff --git a/redhat/applications/rosegarden/trinity-rosegarden-3.5.13-sru.spec b/redhat/applications/rosegarden/trinity-rosegarden-3.5.13-sru.spec new file mode 100644 index 000000000..be4ca0f1f --- /dev/null +++ b/redhat/applications/rosegarden/trinity-rosegarden-3.5.13-sru.spec @@ -0,0 +1,208 @@ +# Default version for this component +%define kdecomp rosegarden + +# 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 building 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_mandir %{tde_datadir}/man +%define tde_appdir %{tde_datadir}/applications + +%define tde_tdeappdir %{tde_appdir}/kde +%define tde_tdedocdir %{tde_docdir}/kde +%define tde_tdeincludedir %{tde_includedir}/kde +%define tde_tdelibdir %{tde_libdir}/trinity + +%define _docdir %{tde_tdedocdir} + + +Name: trinity-%{kdecomp} +Summary: music editor and MIDI/audio sequencer [Trinity] +Version: 1.7.0 +Release: 3%{?dist}%{?_variant} + +License: GPLv2+ +Group: Applications/Multimedia + +Vendor: Trinity Project +Packager: Francois Andriot <francois.andriot@free.fr> +URL: http://www.rosegardenmusic.com/ + +Prefix: %{tde_prefix} +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +Source0: %{kdecomp}-3.5.13.tar.gz + +# [rosegarden] Version 3.5.13-sru +Patch0: rosegarden-3.5.13-sru-20120806.patch +# [rosegarden] Missing LDFLAGS cause FTBFS +Patch1: rosegarden-3.5.13-missing_ldflags.patch + +BuildRequires: tqtinterface-devel +BuildRequires: trinity-tdelibs-devel +BuildRequires: trinity-tdebase-devel +BuildRequires: desktop-file-utils +BuildRequires: gettext + +BuildRequires: fftw-devel +BuildRequires: dssi-devel +BuildRequires: liblo-devel +BuildRequires: liblrdf-devel +BuildRequires: fontconfig-devel + +%if 0%{?mgaversion} || 0%{?mdkversion} +BuildRequires: %{_lib}jack-devel +%else +BuildRequires: jack-audio-connection-kit-devel +%endif + +Requires: lilypond +Requires: perl-XML-Twig +Requires: libsndfile-utils + +# LIRC does not exist on RHEL. +%if 0%{?fedora} > 0 +BuildRequires: lirc-devel +%endif + +Requires: %{name}-data == %{version}-%{release} + +%description +Rosegarden is a KDE application which provides a mixed Audio/MIDI +sequencer (for playback and recording), a multi-track editor, music +editing using both piano-roll and score notation, MIDI file IO, +lilypond and Csound files export, etc. + +%package data +Group: Applications/Multimedia +Requires: %{name} == %{version}-%{release} +Summary: music editor and MIDI/audio sequencer data files [Trinity] + +%description data +Rosegarden is a KDE application which provides a mixed Audio/MIDI +sequencer (for playback and recording), a multi-track editor, music +editing using both piano-roll and score notation, MIDI file IO, +lilypond and Csound files export, etc. + +This package provides the data files necessary for running Rosegarden + + +%prep +%setup -q -n applications/%{kdecomp} +%patch0 -p1 +%patch1 -p1 + +# Hard-coded path to TQT binaries spotted !!! +%__sed -i CMakeLists.txt \ + -e "s|/usr/bin/uic-tqt|%{tde_bindir}/uic-tqt|g" \ + -e "s|/usr/bin/tmoc|%{tde_bindir}/tmoc|g" \ + -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" + +%build +unset QTDIR; . /etc/profile.d/qt.sh +export PATH="%{tde_bindir}:${PATH}" +export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}" +export CMAKE_INCLUDE_PATH="%{tde_includedir}:%{tde_includedir}/tqt:%{tde_tdeincludedir}" + +# Enables "messages" (debug) +%__sed -i CMakeLists.txt -e "s|#MESSAGE|MESSAGE|g" + +%if 0%{?rhel} || 0%{?fedora} +%__mkdir_p build +cd build +%endif + +%cmake \ + -DCMAKE_INSTALL_PREFIX=%{tde_prefix} \ + -DBIN_INSTALL_DIR=%{tde_bindir} \ + -DINCLUDE_INSTALL_DIR=%{tde_tdeincludedir} \ + -DLIB_INSTALL_DIR=%{tde_libdir} \ + -DSHARE_INSTALL_PREFIX=%{tde_datadir} \ + -DCMAKE_SKIP_RPATH="OFF" \ + -DWANT_DEBUG=OFF \ + -DWANT_FULLDBG=OFF \ + -DWANT_SOUND=ON \ + -DWANT_JACK=ON \ + -DWANT_DSSI=ON \ +%if 0%{?fedora} || 0%{?mgaversion} || 0%{?mdkversion} + -DWANT_LIRC=ON \ +%else + -DWANT_LIRC=OFF \ +%endif + -DWANT_PCH=OFF \ + -DWANT_TEST=OFF \ + -DBUILD_ALL=ON \ + .. + +%__make %{?_smp_mflags} || %__make VERBOSE=1 + + +%install +export PATH="%{tde_bindir}:${PATH}" +%__rm -rf %{buildroot} +%__make install DESTDIR=%{buildroot} -C build + + +%find_lang %{kdecomp} + +%clean +%__rm -rf %{buildroot} + + +%post +update-desktop-database %{tde_appdir} > /dev/null +for f in hicolor locolor; do + touch --no-create %{tde_datadir}/icons/${f} || : + gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} || : +done + +%postun +update-desktop-database %{tde_appdir} > /dev/null +for f in hicolor locolor; do + touch --no-create %{tde_datadir}/icons/${f} || : + gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} || : +done + + +%files +%defattr(-,root,root,-) +%{tde_bindir}/rosegarden +%{tde_bindir}/rosegarden-audiofile-importer +%{tde_bindir}/rosegarden-lilypondview +%{tde_bindir}/rosegarden-project-package +%{tde_bindir}/rosegardensequencer + +%files data -f %{kdecomp}.lang +%defattr(-,root,root,-) +%{tde_tdeappdir}/rosegarden.desktop +%{tde_datadir}/apps/profiles/rosegarden.profile.xml +%lang(en) %{tde_tdedocdir}/HTML/en/rosegarden +%lang(es) %{tde_tdedocdir}/HTML/es/rosegarden +%lang(ja) %{tde_tdedocdir}/HTML/ja/rosegarden +%lang(sv) %{tde_tdedocdir}/HTML/sv/rosegarden +%{tde_datadir}/apps/rosegarden +%{tde_datadir}/icons/hicolor/*/*/* +%{tde_datadir}/icons/locolor/*/*/* +%{tde_datadir}/mimelnk/audio/x-rosegarden-device.desktop +%{tde_datadir}/mimelnk/audio/x-rosegarden.desktop +%{tde_datadir}/mimelnk/audio/x-rosegarden21.desktop +%{tde_datadir}/mimelnk/audio/x-soundfont.desktop + + +%Changelog +* Mon Aug 06 2012 Francois Andriot <francois.andriot@free.fr> - 1.7.0-3 +- Switch to branch 3.5.13-sru + +* Sun Apr 06 2012 Francois Andriot <francois.andriot@free.fr> - 1.7.0-2 +- Updated to build with gcc 4.7. [Commit #15276f36] +- Enables JACK support + +* Sat Nov 26 2011 Francois Andriot <francois.andriot@free.fr> - 1.7.0-1 +- Initial build for RHEL 5, RHEL 6, Fedora 15, Fedora 16 diff --git a/redhat/applications/rosegarden/trinity-rosegarden-3.5.13.spec b/redhat/applications/rosegarden/trinity-rosegarden-3.5.13.spec new file mode 100644 index 000000000..9ef78c80a --- /dev/null +++ b/redhat/applications/rosegarden/trinity-rosegarden-3.5.13.spec @@ -0,0 +1,221 @@ +# Default version for this component +%define kdecomp rosegarden + +# Required for Mageia 2: removes the ldflag '--no-undefined' +%define _disable_ld_no_undefined 1 + +# 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 building 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_mandir %{tde_datadir}/man +%define tde_appdir %{tde_datadir}/applications + +%define tde_tdeappdir %{tde_appdir}/kde +%define tde_tdedocdir %{tde_docdir}/kde +%define tde_tdeincludedir %{tde_includedir}/kde +%define tde_tdelibdir %{tde_libdir}/trinity + +%define _docdir %{tde_tdedocdir} + + +Name: trinity-%{kdecomp} +Summary: music editor and MIDI/audio sequencer [Trinity] +Version: 1.7.0 +Release: 2%{?dist}%{?_variant} + +License: GPLv2+ +Group: Applications/Multimedia + +Vendor: Trinity Project +Packager: Francois Andriot <francois.andriot@free.fr> +URL: http://www.rosegardenmusic.com/ + +Prefix: %{tde_prefix} +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +Source0: %{kdecomp}-3.5.13.tar.gz + +Patch0: rosegarden-3.5.13-ftbfs.patch + +# [rosegarden] Updated to build with gcc 4.7. [Commit #15276f36] +Patch1: rosegarden-3.5.13-fix_gcc47_compilation.patch + +# [rosegarden] Updated to build with gcc 4.7. [Bug #958] +Patch2: rosegarden-3.5.13-fix_gcc47_compilation_2.patch + +BuildRequires: tqtinterface-devel +BuildRequires: trinity-tdelibs-devel +BuildRequires: trinity-tdebase-devel +BuildRequires: desktop-file-utils +BuildRequires: gettext + +BuildRequires: fftw-devel +BuildRequires: dssi-devel +BuildRequires: liblo-devel +BuildRequires: liblrdf-devel +BuildRequires: fontconfig-devel + +%if 0%{?mgaversion} || 0%{?mdkversion} +BuildRequires: %{_lib}jack-devel +%else +BuildRequires: jack-audio-connection-kit-devel +%endif + +Requires: lilypond +Requires: perl-XML-Twig + +%if 0%{?mgaversion} || 0%{?mdkversion} +Requires: libsndfile-progs +%else +%if 0%{?rhel} +Requires: libsndfile +%else +Requires: libsndfile-utils +%endif +%endif + +# LIRC does not exist on RHEL. +%if 0%{?fedora} > 0 +BuildRequires: lirc-devel +%endif + +Requires: %{name}-data == %{version}-%{release} + +%description +Rosegarden is a KDE application which provides a mixed Audio/MIDI +sequencer (for playback and recording), a multi-track editor, music +editing using both piano-roll and score notation, MIDI file IO, +lilypond and Csound files export, etc. + +%package data +Group: Applications/Multimedia +Requires: %{name} == %{version}-%{release} +Summary: music editor and MIDI/audio sequencer data files [Trinity] + +%description data +Rosegarden is a KDE application which provides a mixed Audio/MIDI +sequencer (for playback and recording), a multi-track editor, music +editing using both piano-roll and score notation, MIDI file IO, +lilypond and Csound files export, etc. + +This package provides the data files necessary for running Rosegarden + + +%prep +%setup -q -n applications/%{kdecomp} +%patch0 -p1 +%patch1 -p1 +%patch2 -p1 + +# Hard-coded path to TQT binaries spotted !!! +%__sed -i CMakeLists.txt \ + -e "s|/usr/bin/uic-tqt|%{tde_bindir}/uic-tqt|g" \ + -e "s|/usr/bin/tmoc|%{tde_bindir}/tmoc|g" \ + -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" + +%build +unset QTDIR && . %{_sysconfdir}/profile.d/qt.sh +export PATH="%{tde_bindir}:${PATH}" +export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}" +export CMAKE_INCLUDE_PATH="%{tde_includedir}:%{tde_includedir}/tqt:%{tde_tdeincludedir}" + +%if 0%{?rhel} || 0%{?fedora} +%__mkdir_p build +cd build +%endif + +### FIXME FIXME FIXME !!! FTBFS on Mageia 2 / Mandriva 2011 +export LDFLAGS="${LDFLAGS} -lXft -lfontconfig -lkio -lkdeprint -llrdf -lfftw3f -llirc_client -ljack" + +%cmake \ + -DCMAKE_INSTALL_PREFIX=%{tde_prefix} \ + -DBIN_INSTALL_DIR=%{tde_bindir} \ + -DINCLUDE_INSTALL_DIR=%{tde_tdeincludedir} \ + -DLIB_INSTALL_DIR=%{tde_libdir} \ + -DSHARE_INSTALL_PREFIX=%{tde_datadir} \ + -DCMAKE_SKIP_RPATH="OFF" \ + -DWANT_DEBUG=OFF \ + -DWANT_FULLDBG=OFF \ + -DWANT_SOUND=ON \ + -DWANT_JACK=ON \ + -DWANT_DSSI=ON \ +%if 0%{?fedora} || 0%{?mgaversion} || 0%{?mdkversion} + -DWANT_LIRC=ON \ +%else + -DWANT_LIRC=OFF \ +%endif + -DWANT_PCH=OFF \ + -DWANT_TEST=OFF \ + -DBUILD_ALL=ON \ + .. + +%__make %{?_smp_mflags} + + +%install +export PATH="%{tde_bindir}:${PATH}" +%__rm -rf %{buildroot} +%__make install DESTDIR=%{buildroot} -C build + + +%find_lang %{kdecomp} + +%clean +%__rm -rf %{buildroot} + + +%post +update-desktop-database %{tde_appdir} > /dev/null +for f in hicolor locolor; do + touch --no-create %{tde_datadir}/icons/${f} || : + gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} || : +done + +%postun +update-desktop-database %{tde_appdir} > /dev/null +for f in hicolor locolor; do + touch --no-create %{tde_datadir}/icons/${f} || : + gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} || : +done + + +%files +%defattr(-,root,root,-) +%{tde_bindir}/rosegarden +%{tde_bindir}/rosegarden-audiofile-importer +%{tde_bindir}/rosegarden-lilypondview +%{tde_bindir}/rosegarden-project-package +%{tde_bindir}/rosegardensequencer + +%files data -f %{kdecomp}.lang +%defattr(-,root,root,-) +%{tde_tdeappdir}/rosegarden.desktop +%{tde_datadir}/apps/profiles/rosegarden.profile.xml +%lang(en) %{tde_tdedocdir}/HTML/en/rosegarden +%lang(es) %{tde_tdedocdir}/HTML/es/rosegarden +%lang(ja) %{tde_tdedocdir}/HTML/ja/rosegarden +%lang(sv) %{tde_tdedocdir}/HTML/sv/rosegarden +%{tde_datadir}/apps/rosegarden +%{tde_datadir}/icons/hicolor/*/*/* +%{tde_datadir}/icons/locolor/*/*/* +%{tde_datadir}/mimelnk/audio/x-rosegarden-device.desktop +%{tde_datadir}/mimelnk/audio/x-rosegarden.desktop +%{tde_datadir}/mimelnk/audio/x-rosegarden21.desktop +%{tde_datadir}/mimelnk/audio/x-soundfont.desktop + + +%Changelog +* Sun Apr 06 2012 Francois Andriot <francois.andriot@free.fr> - 1.7.0-2 +- Updated to build with gcc 4.7. [Commit #15276f36] +- Enables JACK support + +* Sat Nov 26 2011 Francois Andriot <francois.andriot@free.fr> - 1.7.0-1 +- Initial build for RHEL 5, RHEL 6, Fedora 15, Fedora 16 diff --git a/redhat/applications/rosegarden/trinity-rosegarden.spec b/redhat/applications/rosegarden/trinity-rosegarden.spec deleted file mode 100644 index e7c45d260..000000000 --- a/redhat/applications/rosegarden/trinity-rosegarden.spec +++ /dev/null @@ -1,183 +0,0 @@ -# Default version for this component -%define kdecomp rosegarden -%define version 1.7.0 -%define release 2 - -# 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 %{_datadir}/doc -%endif - -# TDE 3.5.13 specific building variables -BuildRequires: autoconf automake libtool m4 -%define tde_docdir %{_docdir}/kde -%define tde_includedir %{_includedir}/kde -%define tde_libdir %{_libdir}/trinity - - -Name: trinity-%{kdecomp} -Summary: music editor and MIDI/audio sequencer [Trinity] -Version: %{?version} -Release: %{?release}%{?dist}%{?_variant} - -License: GPLv2+ -Group: Applications/Multimedia - -Vendor: Trinity Project -Packager: Francois Andriot <francois.andriot@free.fr> -URL: http://www.rosegardenmusic.com/ - -Prefix: %{_prefix} -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) - -Source0: %{kdecomp}-3.5.13.tar.gz - -Patch0: rosegarden-3.5.13-ftbfs.patch - -# [rosegarden] Updated to build with gcc 4.7. [Commit #15276f36] -Patch1: rosegarden-3.5.13-fix_gcc47_compilation.patch - -# [rosegarden] Updated to build with gcc 4.7. [Bug #958] -Patch2: rosegarden-3.5.13-fix_gcc47_compilation_2.patch - -BuildRequires: tqtinterface-devel -BuildRequires: trinity-kdelibs-devel -BuildRequires: trinity-kdebase-devel -BuildRequires: desktop-file-utils -BuildRequires: gettext - -BuildRequires: fftw-devel -BuildRequires: dssi-devel -BuildRequires: liblo-devel -BuildRequires: liblrdf-devel -BuildRequires: fontconfig-devel -BuildRequires: jack-audio-connection-kit-devel - -Requires: lilypond -Requires: perl-XML-Twig -Requires: libsndfile-utils - -# LIRC does not exist on RHEL. -%if 0%{?fedora} > 0 -BuildRequires: lirc-devel -%endif - -Requires: %{name}-data == %{version}-%{release} - -%description -Rosegarden is a KDE application which provides a mixed Audio/MIDI -sequencer (for playback and recording), a multi-track editor, music -editing using both piano-roll and score notation, MIDI file IO, -lilypond and Csound files export, etc. - -%package data -Group: Applications/Multimedia -Requires: %{name} == %{version}-%{release} -Summary: music editor and MIDI/audio sequencer data files [Trinity] - -%description data -Rosegarden is a KDE application which provides a mixed Audio/MIDI -sequencer (for playback and recording), a multi-track editor, music -editing using both piano-roll and score notation, MIDI file IO, -lilypond and Csound files export, etc. - -This package provides the data files necessary for running Rosegarden - - -%prep -%setup -q -n applications/%{kdecomp} -%patch0 -p1 -%patch1 -p1 -%patch2 -p1 - -# Hard-coded path to TQT binaries spotted !!! -%__sed -i CMakeLists.txt \ - -e "s|/usr/bin/uic-tqt|%{_bindir}/uic-tqt|g" \ - -e "s|/usr/bin/tmoc|%{_bindir}/tmoc|g" \ - -e "s|/usr/include/tqt|%{_includedir}/tqt|g" - -%build -unset QTDIR && . %{_sysconfdir}/profile.d/qt.sh -export PATH="%{_bindir}:${PATH}" -export LDFLAGS="-L%{_libdir} -I%{_includedir}" -export CMAKE_INCLUDE_PATH="%{_includedir}:%{_includedir}/tqt" - -%__mkdir_p build -cd build -%cmake \ - -DWANT_DEBUG=OFF \ - -DWANT_FULLDBG=OFF \ - -DWANT_SOUND=ON \ - -DWANT_JACK=ON \ - -DWANT_DSSI=ON \ -%if 0%{?fedora} > 0 - -DWANT_LIRC=ON \ -%else - -DWANT_LIRC=OFF \ -%endif - -DWANT_PCH=OFF \ - -DWANT_TEST=OFF \ - -DBUILD_ALL=ON \ - .. - -%__make %{?_smp_mflags} - - -%install -export PATH="%{_bindir}:${PATH}" -%__rm -rf %{buildroot} -%__make install DESTDIR=%{buildroot} -C build - - -%find_lang %{kdecomp} - -%clean -%__rm -rf %{buildroot} - - -%post -for f in hicolor locolor; do - touch --no-create %{_datadir}/icons/${f} || : - gtk-update-icon-cache --quiet %{_datadir}/icons/${f} || : -done - -%postun -for f in hicolor locolor; do - touch --no-create %{_datadir}/icons/${f} || : - gtk-update-icon-cache --quiet %{_datadir}/icons/${f} || : -done - - -%files -%defattr(-,root,root,-) -%{_bindir}/rosegarden -%{_bindir}/rosegarden-audiofile-importer -%{_bindir}/rosegarden-lilypondview -%{_bindir}/rosegarden-project-package -%{_bindir}/rosegardensequencer - -%files data -f %{kdecomp}.lang -%defattr(-,root,root,-) -%{_datadir}/applications/kde/rosegarden.desktop -%{_datadir}/apps/profiles/rosegarden.profile.xml -%lang(en) %{tde_docdir}/HTML/en/rosegarden -%lang(es) %{tde_docdir}/HTML/es/rosegarden -%lang(ja) %{tde_docdir}/HTML/ja/rosegarden -%lang(sv) %{tde_docdir}/HTML/sv/rosegarden -%{_datadir}/apps/rosegarden -%{_datadir}/icons/hicolor/*/*/* -%{_datadir}/icons/locolor/*/*/* -%{_datadir}/mimelnk/audio/x-rosegarden-device.desktop -%{_datadir}/mimelnk/audio/x-rosegarden.desktop -%{_datadir}/mimelnk/audio/x-rosegarden21.desktop -%{_datadir}/mimelnk/audio/x-soundfont.desktop - - -%Changelog -* Sun Apr 06 2012 Francois Andriot <francois.andriot@free.fr> - 1.7.0-2 -- Updated to build with gcc 4.7. [Commit #15276f36] -- Enables JACK support - -* Sat Nov 26 2011 Francois Andriot <francois.andriot@free.fr> - 1.7.0-1 -- Initial build for RHEL 5, RHEL 6, Fedora 15, Fedora 16 diff --git a/redhat/applications/smartcardauth/trinity-smartcardauth.spec b/redhat/applications/smartcardauth/trinity-smartcardauth.spec index c4416109b..9cbfc6941 100644 --- a/redhat/applications/smartcardauth/trinity-smartcardauth.spec +++ b/redhat/applications/smartcardauth/trinity-smartcardauth.spec @@ -1,25 +1,32 @@ # Default version for this component %define kdecomp smartcardauth -%define version 1.0 -%define release 1 # If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". -%if "%{?_prefix}" != "/usr" +%if "%{?tde_prefix}" != "/usr" %define _variant .opt -%define _docdir %{_datadir}/doc %endif # TDE 3.5.13 specific building variables -BuildRequires: autoconf automake libtool m4 -%define tde_docdir %{_docdir}/kde -%define tde_includedir %{_includedir}/kde -%define tde_libdir %{_libdir}/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_mandir %{tde_datadir}/man +%define tde_appdir %{tde_datadir}/applications + +%define tde_tdeappdir %{tde_appdir}/kde +%define tde_tdedocdir %{tde_docdir}/kde +%define tde_tdeincludedir %{tde_includedir}/kde +%define tde_tdelibdir %{tde_libdir}/trinity + +%define _docdir %{tde_tdedocdir} Name: trinity-%{kdecomp} Summary: SmartCard Login and LUKS Decrypt, Setup Utility -Version: %{?version} -Release: %{?release}%{?dist}%{?_variant} +Version: 1.0 +Release: 1%{?dist}%{?_variant} License: GPLv2+ Group: Applications/System @@ -28,19 +35,23 @@ Vendor: Trinity Project Packager: Francois Andriot <francois.andriot@free.fr> URL: http://www.trinitydesktop.org/ -Prefix: %{_prefix} +Prefix: %{tde_prefix} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source0: %{kdecomp}-3.5.13.tar.gz Patch0: smartcardauth-3.5.13-ftbfs.patch BuildRequires: tqtinterface-devel -BuildRequires: trinity-kdelibs-devel -BuildRequires: trinity-kdebase-devel +BuildRequires: trinity-tdelibs-devel +BuildRequires: trinity-tdebase-devel BuildRequires: desktop-file-utils #BuildRequires: perl-PAR-Packer +%if 0%{?mgaversion} || 0%{?mdkversion} +Requires: perl-pcsc-perl +%else Requires: pcsc-perl +%endif %description This utility will allow you to set up your computer to accept a SmartCard as an authentication source for: @@ -65,28 +76,28 @@ unset QTDIR; . /etc/profile.d/qt.sh # Ugly hack to modify TQT include directory inside autoconf files. # If TQT detection fails, it fallbacks to TQT4 instead of TQT3 ! %__sed -i "src/Makefile" \ - -e "s|/usr/include/tqt|%{_includedir}/tqt|g" \ + -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \ -e "s|/usr/include/qt3|${QTINC}|g" %__sed -i "Makefile" \ -e "s|/usr/lib/perl5/Chipcard|/usr/lib64/perl5/vendor_perl/Chipcard|g" %build -export PATH="%{_bindir}:${PATH}" -export LDFLAGS="-L%{_libdir} -I%{_includedir}" +export PATH="%{tde_bindir}:${PATH}" +export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}" ./build_ckpasswd %install -export PATH="%{_bindir}:${PATH}" +export PATH="%{tde_bindir}:${PATH}" %__rm -rf %{buildroot} -%__install -D -m 755 scriptor_standalone.pl %{buildroot}%{_bindir}/scriptor.pl -%__install -D -m 755 src/ckpasswd %{buildroot}%{_bindir}/smartauthckpasswd -#%__install -D -m 755 src/ckpasswd %{buildroot}%{_bindir}/smartauthmon -%__ln_s smartauthckpasswd %{buildroot}%{_bindir}/smartauthmon -%__cp -Rp usr/* %{buildroot}%{_prefix} +%__install -D -m 755 scriptor_standalone.pl %{buildroot}%{tde_bindir}/scriptor.pl +%__install -D -m 755 src/ckpasswd %{buildroot}%{tde_bindir}/smartauthckpasswd +#%__install -D -m 755 src/ckpasswd %{buildroot}%{tde_bindir}/smartauthmon +%__ln_s smartauthckpasswd %{buildroot}%{tde_bindir}/smartauthmon +%__cp -Rp usr/* %{buildroot}%{tde_prefix} %__mkdir_p %{buildroot}%{_sysconfdir} %__cp -Rp etc/* %{buildroot}%{_sysconfdir} @@ -97,12 +108,14 @@ export PATH="%{_bindir}:${PATH}" %post -touch --no-create %{_datadir}/icons/hicolor || : -gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +update-desktop-database %{tde_appdir} > /dev/null +touch --no-create %{tde_datadir}/icons/hicolor || : +gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || : %postun -touch --no-create %{_datadir}/icons/hicolor || : -gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +update-desktop-database %{tde_appdir} > /dev/null +touch --no-create %{tde_datadir}/icons/hicolor || : +gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || : %files @@ -111,18 +124,18 @@ gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : %{_sysconfdir}/init/smartauthlogin.conf %{_sysconfdir}/smartauth/smartauth.sh.in %{_sysconfdir}/smartauth/smartauthmon.sh.in -%{_bindir}/cryptosmartcard.sh -%{_bindir}/scriptor.pl -%{_bindir}/setupcard.sh -%{_bindir}/setupslavecard.sh -%{_bindir}/smartauth.sh -%{_bindir}/smartauthckpasswd -%{_bindir}/smartauthmon -%{_datadir}/applications/smartcardauth.desktop -%{_datadir}/applications/smartcardrestrict.desktop -%{_datadir}/icons/hicolor/16x16/apps/smartcardauth.png -%{_datadir}/icons/hicolor/32x32/apps/smartcardauth.png -%{_datadir}/initramfs-tools/hooks/cryptlukssc +%{tde_bindir}/cryptosmartcard.sh +%{tde_bindir}/scriptor.pl +%{tde_bindir}/setupcard.sh +%{tde_bindir}/setupslavecard.sh +%{tde_bindir}/smartauth.sh +%{tde_bindir}/smartauthckpasswd +%{tde_bindir}/smartauthmon +%{tde_datadir}/applications/smartcardauth.desktop +%{tde_datadir}/applications/smartcardrestrict.desktop +%{tde_datadir}/icons/hicolor/16x16/apps/smartcardauth.png +%{tde_datadir}/icons/hicolor/32x32/apps/smartcardauth.png +%{tde_datadir}/initramfs-tools/hooks/cryptlukssc %Changelog diff --git a/redhat/applications/smb4k/trinity-smb4k.spec b/redhat/applications/smb4k/trinity-smb4k.spec index dc355edfe..23ba5ba87 100644 --- a/redhat/applications/smb4k/trinity-smb4k.spec +++ b/redhat/applications/smb4k/trinity-smb4k.spec @@ -1,25 +1,32 @@ # Default version for this component %define kdecomp smb4k -%define version 0.9.4 -%define release 2 # If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". -%if "%{?_prefix}" != "/usr" +%if "%{?tde_prefix}" != "/usr" %define _variant .opt -%define _docdir %{_datadir}/doc %endif # TDE 3.5.13 specific building variables -BuildRequires: autoconf automake libtool m4 -%define tde_docdir %{_docdir}/kde -%define tde_includedir %{_includedir}/kde -%define tde_libdir %{_libdir}/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_mandir %{tde_datadir}/man +%define tde_appdir %{tde_datadir}/applications + +%define tde_tdeappdir %{tde_appdir}/kde +%define tde_tdedocdir %{tde_docdir}/kde +%define tde_tdeincludedir %{tde_includedir}/kde +%define tde_tdelibdir %{tde_libdir}/trinity + +%define _docdir %{tde_tdedocdir} Name: trinity-%{kdecomp} Summary: A Samba (SMB) share advanced browser for Trinity -Version: %{?version} -Release: %{?release}%{?dist}%{?_variant} +Version: 0.9.4 +Release: 2%{?dist}%{?_variant} License: GPLv2+ Group: Applications/Utilities @@ -28,7 +35,7 @@ Vendor: Trinity Project Packager: Francois Andriot <francois.andriot@free.fr> URL: http://www.trinitydesktop.org -Prefix: %{_prefix} +Prefix: %{tde_prefix} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source0: %{kdecomp}-3.5.13.tar.gz @@ -38,8 +45,8 @@ Patch1: smb4k-3.5.13-fix_gcc47_compilation.patch BuildRequires: tqtinterface-devel BuildRequires: trinity-arts-devel -BuildRequires: trinity-kdelibs-devel -BuildRequires: trinity-kdebase-devel +BuildRequires: trinity-tdelibs-devel +BuildRequires: trinity-tdebase-devel BuildRequires: desktop-file-utils BuildRequires: gettext @@ -50,6 +57,74 @@ suite to access the SMB shares of the local network neighborhood. Its purpose is to provide a program that's easy to use and has as many features as possible. +%files -f %{kdecomp}.lang +%defattr(-,root,root,-) +%{tde_bindir}/smb4k +%{tde_bindir}/smb4k_cat +%{tde_bindir}/smb4k_kill +%{tde_bindir}/smb4k_mount +%{tde_bindir}/smb4k_mv +%{tde_bindir}/smb4k_umount +%{tde_libdir}/libsmb4kcore.so.2 +%{tde_libdir}/libsmb4kcore.so.2.0.0 +%{tde_libdir}/libsmb4kdialogs.la +%{tde_libdir}/libsmb4kdialogs.so +%{tde_tdelibdir}/konqsidebar_smb4k.la +%{tde_tdelibdir}/konqsidebar_smb4k.so +%{tde_tdelibdir}/libsmb4kconfigdialog.la +%{tde_tdelibdir}/libsmb4kconfigdialog.so +%{tde_tdelibdir}/libsmb4knetworkbrowser.la +%{tde_tdelibdir}/libsmb4knetworkbrowser.so +%{tde_tdelibdir}/libsmb4ksearchdialog.la +%{tde_tdelibdir}/libsmb4ksearchdialog.so +%{tde_tdelibdir}/libsmb4ksharesiconview.la +%{tde_tdelibdir}/libsmb4ksharesiconview.so +%{tde_tdelibdir}/libsmb4kshareslistview.la +%{tde_tdelibdir}/libsmb4kshareslistview.so +%{tde_tdeappdir}/smb4k.desktop +%{tde_datadir}/apps/konqsidebartng/add/smb4k_add.desktop +%{tde_datadir}/apps/smb4k/smb4k_shell.rc +%{tde_datadir}/apps/smb4knetworkbrowserpart/smb4knetworkbrowser_part.rc +%{tde_datadir}/apps/smb4ksharesiconviewpart/smb4ksharesiconview_part.rc +%{tde_datadir}/apps/smb4kshareslistviewpart/smb4kshareslistview_part.rc +%{tde_datadir}/config.kcfg/smb4k.kcfg +%{tde_datadir}/icons/crystalsvg/*/apps/smb4k.png +%{tde_tdedocdir}/HTML/en/smb4k/ + +%post +update-desktop-database %{tde_appdir} > /dev/null +touch --no-create %{tde_datadir}/icons/crystalsvg || : +gtk-update-icon-cache --quiet %{tde_datadir}/icons/crystalsvg || : +/sbin/ldconfig || : + +%postun +update-desktop-database %{tde_appdir} > /dev/null +touch --no-create %{tde_datadir}/icons/crystalsvg || : +gtk-update-icon-cache --quiet %{tde_datadir}/icons/crystalsvg || : +/sbin/ldconfig || : + +########## + +%package devel +Summary: Development files for %{name} +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} + +%description devel +%{summary} + +%files devel +%{tde_tdeincludedir}/*.h +%{tde_libdir}/libsmb4kcore.la +%{tde_libdir}/libsmb4kcore.so + +%post devel +/sbin/ldconfig || : + +%postun devel +/sbin/ldconfig || : + +########## %prep %setup -q -n applications/%{kdecomp} @@ -58,8 +133,8 @@ possible. # Ugly hack to modify TQT include directory inside autoconf files. # If TQT detection fails, it fallbacks to TQT4 instead of TQT3 ! %__sed -i admin/acinclude.m4.in \ - -e "s|/usr/include/tqt|%{_includedir}/tqt|g" \ - -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_docdir}/HTML'|g" + -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \ + -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g" %__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in" %__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh" @@ -67,82 +142,37 @@ possible. %build -export PATH="%{_bindir}:${PATH}" -export LDFLAGS="-L%{_libdir} -I%{_includedir}" +unset QTDIR; . /etc/profile.d/qt.sh +export PATH="%{tde_bindir}:${PATH}" +export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}" %configure \ - --disable-rpath \ - --with-extra-includes=%{_includedir}/tqt + --prefix=%{tde_prefix} \ + --exec-prefix=%{tde_prefix} \ + --bindir=%{tde_bindir} \ + --datadir=%{tde_datadir} \ + --libdir=%{tde_libdir} \ + --mandir=%{tde_mandir} \ + --includedir=%{tde_tdeincludedir} \ + --disable-rpath \ + --with-extra-includes=%{tde_includedir}/tqt # SMP safe ! %__make %{?_smp_mflags} %install -export PATH="%{_bindir}:${PATH}" +export PATH="%{tde_bindir}:${PATH}" %__rm -rf %{buildroot} %__make install DESTDIR=%{buildroot} - +%find_lang %{kdecomp} %clean %__rm -rf %{buildroot} -%post -touch --no-create %{_datadir}/icons/crystalsvg || : -gtk-update-icon-cache --quiet %{_datadir}/icons/crystalsvg || : -/sbin/ldconfig || : - -%postun -touch --no-create %{_datadir}/icons/crystalsvg || : -gtk-update-icon-cache --quiet %{_datadir}/icons/crystalsvg || : -/sbin/ldconfig || : - - -%files -%defattr(-,root,root,-) -%{_bindir}/smb4k -%{_bindir}/smb4k_cat -%{_bindir}/smb4k_kill -%{_bindir}/smb4k_mount -%{_bindir}/smb4k_mv -%{_bindir}/smb4k_umount -%{_includedir}/*.h -%{_libdir}/libsmb4kcore.la -%{_libdir}/libsmb4kcore.so -%{_libdir}/libsmb4kcore.so.2 -%{_libdir}/libsmb4kcore.so.2.0.0 -%{_libdir}/libsmb4kdialogs.la -%{_libdir}/libsmb4kdialogs.so -%{tde_libdir}/konqsidebar_smb4k.la -%{tde_libdir}/konqsidebar_smb4k.so -%{tde_libdir}/libsmb4kconfigdialog.la -%{tde_libdir}/libsmb4kconfigdialog.so -%{tde_libdir}/libsmb4knetworkbrowser.la -%{tde_libdir}/libsmb4knetworkbrowser.so -%{tde_libdir}/libsmb4ksearchdialog.la -%{tde_libdir}/libsmb4ksearchdialog.so -%{tde_libdir}/libsmb4ksharesiconview.la -%{tde_libdir}/libsmb4ksharesiconview.so -%{tde_libdir}/libsmb4kshareslistview.la -%{tde_libdir}/libsmb4kshareslistview.so -%{_datadir}/applications/kde/smb4k.desktop -%{_datadir}/apps/konqsidebartng/add/smb4k_add.desktop -%{_datadir}/apps/smb4k/smb4k_shell.rc -%{_datadir}/apps/smb4knetworkbrowserpart/smb4knetworkbrowser_part.rc -%{_datadir}/apps/smb4ksharesiconviewpart/smb4ksharesiconview_part.rc -%{_datadir}/apps/smb4kshareslistviewpart/smb4kshareslistview_part.rc -%{_datadir}/config.kcfg/smb4k.kcfg -%{tde_docdir}/HTML/en/smb4k -%{_datadir}/icons/crystalsvg/*/apps/smb4k.png -%lang(de) %{_datadir}/locale/de/LC_MESSAGES/smb4k.mo -%lang(es) %{_datadir}/locale/es/LC_MESSAGES/smb4k.mo -%lang(it) %{_datadir}/locale/it/LC_MESSAGES/smb4k.mo -%lang(ja) %{_datadir}/locale/ja/LC_MESSAGES/smb4k.mo -%lang(sv) %{_datadir}/locale/sv/LC_MESSAGES/smb4k.mo -%lang(uk) %{_datadir}/locale/uk/LC_MESSAGES/smb4k.mo %Changelog diff --git a/redhat/applications/soundkonverter/trinity-soundkonverter.spec b/redhat/applications/soundkonverter/trinity-soundkonverter.spec index 28817fc21..5cfc41054 100644 --- a/redhat/applications/soundkonverter/trinity-soundkonverter.spec +++ b/redhat/applications/soundkonverter/trinity-soundkonverter.spec @@ -1,25 +1,32 @@ # Default version for this component %define kdecomp soundkonverter -%define version 0.3.8 -%define release 1 # If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". -%if "%{?_prefix}" != "/usr" +%if "%{?tde_prefix}" != "/usr" %define _variant .opt -%define _docdir %{_datadir}/doc %endif # TDE 3.5.13 specific building variables -BuildRequires: autoconf automake libtool m4 -%define tde_docdir %{_docdir}/kde -%define tde_includedir %{_includedir}/kde -%define tde_libdir %{_libdir}/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_mandir %{tde_datadir}/man +%define tde_appdir %{tde_datadir}/applications + +%define tde_tdeappdir %{tde_appdir}/kde +%define tde_tdedocdir %{tde_docdir}/kde +%define tde_tdeincludedir %{tde_includedir}/kde +%define tde_tdelibdir %{tde_libdir}/trinity + +%define _docdir %{tde_tdedocdir} Name: trinity-%{kdecomp} Summary: audio converter frontend for Trinity -Version: %{?version} -Release: %{?release}%{?dist}%{?_variant} +Version: 0.3.8 +Release: 1%{?dist}%{?_variant} License: GPLv2+ Group: Application/Multimedia @@ -28,14 +35,14 @@ Vendor: Trinity Project Packager: Francois Andriot <francois.andriot@free.fr> URL: http://potracegui.sourceforge.net -Prefix: %{_prefix} +Prefix: %{tde_prefix} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source0: %{kdecomp}-3.5.13.tar.gz BuildRequires: tqtinterface-devel -BuildRequires: trinity-kdelibs-devel -BuildRequires: trinity-kdebase-devel +BuildRequires: trinity-tdelibs-devel +BuildRequires: trinity-tdebase-devel BuildRequires: desktop-file-utils @@ -71,14 +78,13 @@ See the 'soundkonverter-trinity' package for more information. %prep -unset QTDIR; . /etc/profile.d/qt.sh %setup -q -n applications/%{kdecomp} # Ugly hack to modify TQT include directory inside autoconf files. # If TQT detection fails, it fallbacks to TQT4 instead of TQT3 ! %__sed -i admin/acinclude.m4.in \ - -e "s|/usr/include/tqt|%{_includedir}/tqt|g" \ - -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_docdir}/HTML'|g" + -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \ + -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g" %__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in" %__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh" @@ -86,19 +92,27 @@ unset QTDIR; . /etc/profile.d/qt.sh %build -export PATH="%{_bindir}:${PATH}" -export LDFLAGS="-L%{_libdir} -I%{_includedir}" +unset QTDIR; . /etc/profile.d/qt.sh +export PATH="%{tde_bindir}:${PATH}" +export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}" %configure \ - --disable-rpath \ - --with-extra-includes=%{_includedir}/tqt:/usr/include/cdda \ - --enable-closure + --prefix=%{tde_prefix} \ + --exec-prefix=%{tde_prefix} \ + --bindir=%{tde_bindir} \ + --datadir=%{tde_datadir} \ + --libdir=%{tde_libdir} \ + --mandir=%{tde_mandir} \ + --includedir=%{tde_includedir} \ + --disable-rpath \ + --with-extra-includes=%{tde_includedir}/tqt:/usr/include/cdda \ + --enable-closure %__make %{?_smp_mflags} %install -export PATH="%{_bindir}:${PATH}" +export PATH="%{tde_bindir}:${PATH}" %__rm -rf %{buildroot} %__make install DESTDIR=%{buildroot} @@ -109,46 +123,48 @@ export PATH="%{_bindir}:${PATH}" %post -touch --no-create %{_datadir}/icons/hicolor || : -gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +update-desktop-database %{tde_appdir} > /dev/null +touch --no-create %{tde_datadir}/icons/hicolor || : +gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || : %postun -touch --no-create %{_datadir}/icons/hicolor || : -gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +update-desktop-database %{tde_appdir} > /dev/null +touch --no-create %{tde_datadir}/icons/hicolor || : +gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || : %files -f %{kdecomp}.lang %defattr(-,root,root,-) %doc AUTHORS ChangeLog COPYING NEWS README TODO -%{_bindir}/soundkonverter -%{_bindir}/userscript.sh -%{_datadir}/applications/kde/soundkonverter.desktop -%{_datadir}/apps/konqueror/servicemenus/audiocd_extract_with_soundkonverter.desktop -%{_datadir}/apps/soundkonverter -%exclude %{_datadir}/apps/soundkonverter/amarokscript/README -%exclude %{_datadir}/apps/soundkonverter/amarokscript/soundKonverter.rb -%{tde_docdir}/HTML/en/soundkonverter/common -%{tde_docdir}/HTML/en/soundkonverter/index.cache.bz2 -%{tde_docdir}/HTML/en/soundkonverter/index.docbook -%{_datadir}/icons/hicolor/*/apps/soundkonverter*.png -%{_datadir}/mimelnk/application/x-la.soundkonverter.desktop -%{_datadir}/mimelnk/application/x-ofc.soundkonverter.desktop -%{_datadir}/mimelnk/application/x-ofr.soundkonverter.desktop -%{_datadir}/mimelnk/application/x-ofs.soundkonverter.desktop -%{_datadir}/mimelnk/application/x-shorten.soundkonverter.desktop -%{_datadir}/mimelnk/audio/amr.soundkonverter.desktop -%{_datadir}/mimelnk/audio/x-ape.soundkonverter.desktop -%{_datadir}/mimelnk/audio/x-bonk.soundkonverter.desktop -%{_datadir}/mimelnk/audio/x-pac.soundkonverter.desktop -%{_datadir}/mimelnk/audio/x-tta.soundkonverter.desktop -%{_datadir}/mimelnk/audio/x-wavpack-correction.soundkonverter.desktop -%{_datadir}/mimelnk/audio/x-wavpack.soundkonverter.desktop -%{_datadir}/mimelnk/video/x-flv.soundkonverter.desktop +%{tde_bindir}/soundkonverter +%{tde_bindir}/userscript.sh +%{tde_tdeappdir}/soundkonverter.desktop +%{tde_datadir}/apps/konqueror/servicemenus/audiocd_extract_with_soundkonverter.desktop +%{tde_datadir}/apps/soundkonverter +%exclude %{tde_datadir}/apps/soundkonverter/amarokscript/README +%exclude %{tde_datadir}/apps/soundkonverter/amarokscript/soundKonverter.rb +%{tde_tdedocdir}/HTML/en/soundkonverter/common +%{tde_tdedocdir}/HTML/en/soundkonverter/index.cache.bz2 +%{tde_tdedocdir}/HTML/en/soundkonverter/index.docbook +%{tde_datadir}/icons/hicolor/*/apps/soundkonverter*.png +%{tde_datadir}/mimelnk/application/x-la.soundkonverter.desktop +%{tde_datadir}/mimelnk/application/x-ofc.soundkonverter.desktop +%{tde_datadir}/mimelnk/application/x-ofr.soundkonverter.desktop +%{tde_datadir}/mimelnk/application/x-ofs.soundkonverter.desktop +%{tde_datadir}/mimelnk/application/x-shorten.soundkonverter.desktop +%{tde_datadir}/mimelnk/audio/amr.soundkonverter.desktop +%{tde_datadir}/mimelnk/audio/x-ape.soundkonverter.desktop +%{tde_datadir}/mimelnk/audio/x-bonk.soundkonverter.desktop +%{tde_datadir}/mimelnk/audio/x-pac.soundkonverter.desktop +%{tde_datadir}/mimelnk/audio/x-tta.soundkonverter.desktop +%{tde_datadir}/mimelnk/audio/x-wavpack-correction.soundkonverter.desktop +%{tde_datadir}/mimelnk/audio/x-wavpack.soundkonverter.desktop +%{tde_datadir}/mimelnk/video/x-flv.soundkonverter.desktop %files amarok %defattr(-,root,root,-) -%{_datadir}/apps/soundkonverter/amarokscript/README -%{_datadir}/apps/soundkonverter/amarokscript/soundKonverter.rb +%{tde_datadir}/apps/soundkonverter/amarokscript/README +%{tde_datadir}/apps/soundkonverter/amarokscript/soundKonverter.rb %Changelog diff --git a/redhat/applications/tellico/tellico-3.5.13-fix_not_a_string_literal_error.patch b/redhat/applications/tellico/tellico-3.5.13-fix_not_a_string_literal_error.patch new file mode 100644 index 000000000..5e93fd7d8 --- /dev/null +++ b/redhat/applications/tellico/tellico-3.5.13-fix_not_a_string_literal_error.patch @@ -0,0 +1,31 @@ +--- tellico/src/translators/btparse/bibtex_ast.c.ORI 2012-08-06 15:44:03.978791275 +0200 ++++ tellico/src/translators/btparse/bibtex_ast.c 2012-08-06 15:44:23.449376138 +0200 +@@ -57,7 +57,7 @@ + void dump_ast (char *msg, AST *root) + { + if (msg != NULL) +- printf (msg); ++ printf ("%s", msg); + dump (root, 0); + printf ("\n"); + } +--- tellico/src/translators/btparse/error.c.ORI 2012-08-06 15:44:38.954046066 +0200 ++++ tellico/src/translators/btparse/error.c 2012-08-06 15:45:08.152425553 +0200 +@@ -88,7 +88,7 @@ + + if (err->filename) + { +- fprintf (stderr, err->filename); ++ fprintf (stderr, "%s", err->filename); + something_printed = TRUE; + } + if (err->line > 0) /* going to print a line number? */ +@@ -111,7 +111,7 @@ + { + if (something_printed) + fprintf (stderr, ", "); +- fprintf (stderr, name); ++ fprintf (stderr, "%s", name); + something_printed = TRUE; + } + diff --git a/redhat/applications/tellico/tellico.xpm b/redhat/applications/tellico/tellico.xpm deleted file mode 100644 index 589d66eeb..000000000 --- a/redhat/applications/tellico/tellico.xpm +++ /dev/null @@ -1,62 +0,0 @@ -/* XPM */ -static char *tellico[] = { -/* columns rows colors chars-per-pixel */ -"32 32 24 1", -" c #000404", -". c #062625", -"X c #01354A", -"o c #165536", -"O c #1C6056", -"+ c #5E0507", -"@ c #52545F", -"# c #1E5F9D", -"$ c #2B7ACF", -"% c #57B35E", -"& c #288FF2", -"* c #3486D1", -"= c #67ADB3", -"- c #A12223", -"; c #FD7070", -": c #E35555", -"> c #B84A4A", -", c #90F592", -"< c #FA8B8C", -"1 c #DC9F9F", -"2 c #FEFEFE", -"3 c #D6D8D4", -"4 c #ABB5B7", -"5 c None", -/* pixels */ -"55555555555555555555555555555555", -"55555555555555555++5555555555555", -"55555555555555+++:>+++5555555555", -"55555555555+++><<;;<<>+++5555555", -"55555555+++><<<<<;;;;;;;>+++5555", -"55555+++>1<<<<;;;<;;;;:;:;;>+++5", -"5555 +>1<<<<<<<;;;;;;;:;;;;:;>+ ", -"5555+-:>><<<<;<;<;;;:;;::;;>>>+ ", -"5555+>;;:--:;<;<;;;;;;;::><22> ", -"5555+:<;;;;:>-><<;;:::><222221 ", -"5555+><<<<;;;::->>::;32222222>+5", -"55XXX-;;<<<<<;;;:-322222222221+ ", -"XX*==-::;;;<<<<<;>22222222231-+ ", -"XO##*&@+->::;<;<<>2222222;>++ ", -"X#&&$##*#@--::;;<>2223<--++ 5", -"X&&&&&$$##*#@+-:;-21>-+@4@ 5555", -"X$&&&&&&&$###$#.+--+@1432@ 55555", -"X#&&&&&&&&&&$#32214432222=. 5555", -"XX$&&&&&&&&&�#X.. 55", -"5XXX#&$&&&&&&422222224=OXo@%O. 5", -"555.XXO$$$&&&=22223*#Xooo%%=O. 5", -"555X,,%OX##$=#ooo@o%%322% 5", -"555.,,,,%%OXO##OXo%%%%322222@ 55", -"555.%,,,,,,,%Ooo%O%322222222@ 55", -"555.%,,,,,,,,,,%O22222222222%. 5", -"555.o%%,,,,,,,,%%2222222224%X. 5", -"5555..oO%,,,,,,,3222222,%oX.. 5", -"555555 ..oO%,,,,=2223%O... 55", -"555555555 ..oO%,%3%Oo.. 55555", -"555555555555 ..ooXo. 55555555", -"555555555555555.. 55555555555", -"55555555555555555555555555555555" -}; diff --git a/redhat/applications/tellico/trinity-tellico.spec b/redhat/applications/tellico/trinity-tellico.spec index 5eec6996b..575a0b426 100644 --- a/redhat/applications/tellico/trinity-tellico.spec +++ b/redhat/applications/tellico/trinity-tellico.spec @@ -1,25 +1,32 @@ # Default version for this component %define kdecomp tellico -%define version 1.3.2.1 -%define release 3 # If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". -%if "%{?_prefix}" != "/usr" +%if "%{?tde_prefix}" != "/usr" %define _variant .opt -%define _docdir %{_datadir}/doc %endif # TDE 3.5.13 specific building variables -BuildRequires: autoconf automake libtool m4 -%define tde_docdir %{_docdir}/kde -%define tde_includedir %{_includedir}/kde -%define tde_libdir %{_libdir}/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_mandir %{tde_datadir}/man +%define tde_appdir %{tde_datadir}/applications + +%define tde_tdeappdir %{tde_appdir}/kde +%define tde_tdedocdir %{tde_docdir}/kde +%define tde_tdeincludedir %{tde_includedir}/kde +%define tde_tdelibdir %{tde_libdir}/trinity + +%define _docdir %{tde_tdedocdir} Name: trinity-%{kdecomp} Summary: Icollection manager for books, videos, music [Trinity] -Version: %{?version} -Release: %{?release}%{?dist}%{?_variant} +Version: 1.3.2.1 +Release: 3%{?dist}%{?_variant} License: GPLv2+ Group: Applications/Utilities @@ -28,7 +35,7 @@ Vendor: Trinity Project Packager: Francois Andriot <francois.andriot@free.fr> URL: http://periapsis.org/tellico/ -Prefix: %{_prefix} +Prefix: %{tde_prefix} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source0: %{kdecomp}-3.5.13.tar.gz @@ -36,10 +43,13 @@ Source0: %{kdecomp}-3.5.13.tar.gz # [tellico] Fix compilation with GCC 4.7 [Bug #958] Patch1: tellico-3.5.13-fix_gcc47_compilation.patch +# [tellico] Fix "not a string literal" error +Patch2: tellico-3.5.13-fix_not_a_string_literal_error.patch + BuildRequires: tqtinterface-devel -BuildRequires: trinity-kdelibs-devel -BuildRequires: trinity-kdebase-devel +BuildRequires: trinity-tdelibs-devel +BuildRequires: trinity-tdebase-devel BuildRequires: desktop-file-utils BuildRequires: gettext @@ -108,12 +118,13 @@ as a separate package which can be updated through debian-volatile. %prep %setup -q -n applications/%{kdecomp} %patch1 -p1 +%patch2 -p1 # Ugly hack to modify TQT include directory inside autoconf files. # If TQT detection fails, it fallbacks to TQT4 instead of TQT3 ! %__sed -i admin/acinclude.m4.in \ - -e "s|/usr/include/tqt|%{_includedir}/tqt|g" \ - -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_docdir}/HTML'|g" + -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \ + -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g" %__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in" %__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh" @@ -121,27 +132,35 @@ as a separate package which can be updated through debian-volatile. %build -export PATH="%{_bindir}:${PATH}" -export LDFLAGS="-L%{_libdir} -I%{_includedir}" +unset QTDIR; . /etc/profile.d/qt.sh +export PATH="%{tde_bindir}:${PATH}" +export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}" %configure \ - --disable-rpath \ - --with-extra-includes=%{_includedir}/tqt + --prefix=%{tde_prefix} \ + --exec-prefix=%{tde_prefix} \ + --bindir=%{tde_bindir} \ + --datadir=%{tde_datadir} \ + --libdir=%{tde_libdir} \ + --mandir=%{tde_mandir} \ + --includedir=%{tde_includedir} \ + --disable-rpath \ + --with-extra-includes=%{tde_includedir}/tqt %__make %{?_smp_mflags} %install -export PATH="%{_bindir}:${PATH}" +export PATH="%{tde_bindir}:${PATH}" %__rm -rf %{buildroot} %__make install DESTDIR=%{buildroot} # Add svg icons to xdg directories -%__install -D -c -p -m 644 -T icons/tellico.svg %{?buildroot}%{_datadir}/icons/hicolor/scalable/apps/tellico.svg -%__install -D -c -p -m 644 -T icons/tellico_mime.svg %{?buildroot}%{_datadir}/icons/hicolor/scalable/mimetypes/application-x-tellico.svg +%__install -D -c -p -m 644 -T icons/tellico.svg %{?buildroot}%{tde_datadir}/icons/hicolor/scalable/apps/tellico.svg +%__install -D -c -p -m 644 -T icons/tellico_mime.svg %{?buildroot}%{tde_datadir}/icons/hicolor/scalable/mimetypes/application-x-tellico.svg # Remove dead symlink from French translation -%__rm %{?buildroot}%{tde_docdir}/HTML/fr/tellico/common +%__rm %{?buildroot}%{tde_tdedocdir}/HTML/fr/tellico/common %find_lang %{kdecomp} @@ -152,48 +171,48 @@ export PATH="%{_bindir}:${PATH}" %post -touch --no-create %{_datadir}/icons/hicolor || : -gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +touch --no-create %{tde_datadir}/icons/hicolor || : +gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || : %postun -touch --no-create %{_datadir}/icons/hicolor || : -gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +touch --no-create %{tde_datadir}/icons/hicolor || : +gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || : %files -f %{kdecomp}.lang %defattr(-,root,root,-) -%{_bindir}/tellico -#%{_datadir}/pixmaps -%{_datadir}/applications -%{_datadir}/config/tellicorc +%{tde_bindir}/tellico +#%{tde_datadir}/pixmaps +%{tde_datadir}/applications +%{tde_datadir}/config/tellicorc %files data %defattr(-,root,root,-) -%{_datadir}/apps/tellico/*.xsl -%{_datadir}/apps/tellico/*.xml -%{_datadir}/apps/tellico/*.png -%{_datadir}/apps/tellico/entry-templates -%{_datadir}/apps/tellico/*.py* -%{_datadir}/apps/tellico/pics -%{_datadir}/apps/tellico/report-templates -%{_datadir}/apps/tellico/tellico.dtd -%{_datadir}/apps/tellico/tellico.tips -%{_datadir}/apps/tellico/tellico2html.js -%{_datadir}/apps/tellico/tellicoui.rc -%{_datadir}/apps/tellico/welcome.html -%{_datadir}/config.kcfg -%{tde_docdir}/HTML/*/tellico/ -%{_datadir}/icons -%{_datadir}/apps/mime -%{_datadir}/mimelnk -%{_datadir}/apps/kconf_update/tellico-1-3-update.pl -%{_datadir}/apps/kconf_update/tellico-rename.upd -%{_datadir}/apps/kconf_update/tellico.upd +%{tde_datadir}/apps/tellico/*.xsl +%{tde_datadir}/apps/tellico/*.xml +%{tde_datadir}/apps/tellico/*.png +%{tde_datadir}/apps/tellico/entry-templates +%{tde_datadir}/apps/tellico/*.py* +%{tde_datadir}/apps/tellico/pics +%{tde_datadir}/apps/tellico/report-templates +%{tde_datadir}/apps/tellico/tellico.dtd +%{tde_datadir}/apps/tellico/tellico.tips +%{tde_datadir}/apps/tellico/tellico2html.js +%{tde_datadir}/apps/tellico/tellicoui.rc +%{tde_datadir}/apps/tellico/welcome.html +%{tde_datadir}/config.kcfg +%{tde_tdedocdir}/HTML/*/tellico/ +%{tde_datadir}/icons +%{tde_datadir}/apps/mime +%{tde_datadir}/mimelnk +%{tde_datadir}/apps/kconf_update/tellico-1-3-update.pl +%{tde_datadir}/apps/kconf_update/tellico-rename.upd +%{tde_datadir}/apps/kconf_update/tellico.upd %files scripts %defattr(-,root,root,-) -%{_datadir}/apps/tellico/data-sources -%{_datadir}/apps/tellico/z3950-servers.cfg +%{tde_datadir}/apps/tellico/data-sources +%{tde_datadir}/apps/tellico/z3950-servers.cfg %Changelog diff --git a/redhat/applications/wlassistant/trinity-wlassistant.spec b/redhat/applications/wlassistant/trinity-wlassistant.spec index 71fc95bce..7c8130a21 100644 --- a/redhat/applications/wlassistant/trinity-wlassistant.spec +++ b/redhat/applications/wlassistant/trinity-wlassistant.spec @@ -1,25 +1,32 @@ # Default version for this component %define kdecomp wlassistant -%define version 0.5.7 -%define release 1 # If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". -%if "%{?_prefix}" != "/usr" +%if "%{?tde_prefix}" != "/usr" %define _variant .opt -%define _docdir %{_datadir}/doc %endif # TDE 3.5.13 specific building variables -BuildRequires: autoconf automake libtool m4 -%define tde_docdir %{_docdir}/kde -%define tde_includedir %{_includedir}/kde -%define tde_libdir %{_libdir}/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_mandir %{tde_datadir}/man +%define tde_appdir %{tde_datadir}/applications + +%define tde_tdeappdir %{tde_appdir}/kde +%define tde_tdedocdir %{tde_docdir}/kde +%define tde_tdeincludedir %{tde_includedir}/kde +%define tde_tdelibdir %{tde_libdir}/trinity + +%define _docdir %{tde_tdedocdir} Name: trinity-%{kdecomp} Summary: User friendly KDE frontend for wireless network connection [Trinity] -Version: %{?version} -Release: %{?release}%{?dist}%{?_variant} +Version: 0.5.7 +Release: 1%{?dist}%{?_variant} License: GPLv2+ Group: Applications/Utilities @@ -28,14 +35,14 @@ Vendor: Trinity Project Packager: Francois Andriot <francois.andriot@free.fr> URL: http://wlassistant.sourceforge.net/ -Prefix: %{_prefix} +Prefix: %{tde_prefix} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source0: %{kdecomp}-3.5.13.tar.gz BuildRequires: tqtinterface-devel -BuildRequires: trinity-kdelibs-devel -BuildRequires: trinity-kdebase-devel +BuildRequires: trinity-tdelibs-devel +BuildRequires: trinity-tdebase-devel BuildRequires: desktop-file-utils BuildRequires: gettext @@ -56,31 +63,31 @@ remembered so next time the user won't have to enter them again. # Ugly hack to modify TQT include directory inside SCONS files. # If TQT detection fails, it fallbacks to TQT4 instead of TQT3 ! %__sed -i bksys/kde.py \ - -e "s|/usr/include/tqt|%{_includedir}/tqt|g" + -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" %build unset QTDIR; . /etc/profile.d/qt.sh -export PATH="%{_bindir}:${PATH}" -export LDFLAGS="-L%{_libdir} -I%{_includedir}" +export PATH="%{tde_bindir}:${PATH}" +export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}" scons configure \ - prefix=%{_prefix} \ - execprefix=%{_bindir} \ - libdir=%{_libdir} \ + prefix=%{tde_prefix} \ + execprefix=%{tde_bindir} \ + libdir=%{tde_libdir} \ qtdir=${QTDIR} \ - kdedir=%{_prefix} \ - kdeincludes=%{_includedir} \ + kdedir=%{tde_prefix} \ + kdeincludes=%{tde_tdeincludedir} \ qtincludes=${QTINC} \ - kdelibs=%{_libdir} \ + kdelibs=%{tde_libdir} \ qtlibs=${QTLIB} \ - extraincludes=%{_includedir}:%{_includedir}/tqt:${QTINC} + extraincludes=%{tde_includedir}:%{tde_includedir}/tqt:${QTINC} scons -j4 %install -export PATH="%{_bindir}:${PATH}" +export PATH="%{tde_bindir}:${PATH}" %__rm -rf %{buildroot} scons install DESTDIR=%{buildroot} @@ -89,31 +96,31 @@ scons install DESTDIR=%{buildroot} %post -touch --no-create %{_datadir}/icons/hicolor || : -gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +touch --no-create %{tde_datadir}/icons/hicolor || : +gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || : %postun -touch --no-create %{_datadir}/icons/hicolor || : -gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +touch --no-create %{tde_datadir}/icons/hicolor || : +gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || : %files %defattr(-,root,root,-) %doc ChangeLog VERSION -%{_bindir}/wlassistant -%{_datadir}/applnk/Utilities/wlassistant.desktop -%{_datadir}/icons/hicolor/16x16/apps/wlassistant.png -%{_datadir}/icons/hicolor/32x32/apps/wlassistant.png -%lang(ar) %{_datadir}/locale/ar/LC_MESSAGES/wlassistant.mo -%lang(ca) %{_datadir}/locale/ca/LC_MESSAGES/wlassistant.mo -%lang(es) %{_datadir}/locale/es/LC_MESSAGES/wlassistant.mo -%lang(fr) %{_datadir}/locale/fr/LC_MESSAGES/wlassistant.mo -%lang(nb) %{_datadir}/locale/nb/LC_MESSAGES/wlassistant.mo -%lang(pl) %{_datadir}/locale/pl/LC_MESSAGES/wlassistant.mo -%lang(pt) %{_datadir}/locale/pt_BR/LC_MESSAGES/wlassistant.mo -%lang(sv) %{_datadir}/locale/sv/LC_MESSAGES/wlassistant.mo -%lang(zh_CN) %{_datadir}/locale/zh_CN/LC_MESSAGES/wlassistant.mo -%lang(zh_TW) %{_datadir}/locale/zh_TW/LC_MESSAGES/wlassistant.mo +%{tde_bindir}/wlassistant +%{tde_datadir}/applnk/Utilities/wlassistant.desktop +%{tde_datadir}/icons/hicolor/16x16/apps/wlassistant.png +%{tde_datadir}/icons/hicolor/32x32/apps/wlassistant.png +%lang(ar) %{tde_datadir}/locale/ar/LC_MESSAGES/wlassistant.mo +%lang(ca) %{tde_datadir}/locale/ca/LC_MESSAGES/wlassistant.mo +%lang(es) %{tde_datadir}/locale/es/LC_MESSAGES/wlassistant.mo +%lang(fr) %{tde_datadir}/locale/fr/LC_MESSAGES/wlassistant.mo +%lang(nb) %{tde_datadir}/locale/nb/LC_MESSAGES/wlassistant.mo +%lang(pl) %{tde_datadir}/locale/pl/LC_MESSAGES/wlassistant.mo +%lang(pt) %{tde_datadir}/locale/pt_BR/LC_MESSAGES/wlassistant.mo +%lang(sv) %{tde_datadir}/locale/sv/LC_MESSAGES/wlassistant.mo +%lang(zh_CN) %{tde_datadir}/locale/zh_CN/LC_MESSAGES/wlassistant.mo +%lang(zh_TW) %{tde_datadir}/locale/zh_TW/LC_MESSAGES/wlassistant.mo %Changelog diff --git a/redhat/applications/yakuake/trinity-yakuake-3.5.13.spec b/redhat/applications/yakuake/trinity-yakuake-3.5.13.spec index 342e61c9d..dd311853e 100644 --- a/redhat/applications/yakuake/trinity-yakuake-3.5.13.spec +++ b/redhat/applications/yakuake/trinity-yakuake-3.5.13.spec @@ -1,25 +1,32 @@ # Default version for this component %define kdecomp yakuake -%define version 2.8.1 -%define release 3 # If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". -%if "%{?_prefix}" != "/usr" +%if "%{?tde_prefix}" != "/usr" %define _variant .opt -%define _docdir %{_datadir}/doc %endif -# TDE 3.5.12 specific building variables -BuildRequires: autoconf automake libtool m4 -%define tde_docdir %{_docdir}/kde -%define tde_includedir %{_includedir}/kde -%define tde_libdir %{_libdir}/trinity +# TDE 3.5.13 specific building 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_mandir %{tde_datadir}/man +%define tde_appdir %{tde_datadir}/applications + +%define tde_tdeappdir %{tde_appdir}/kde +%define tde_tdedocdir %{tde_docdir}/kde +%define tde_tdeincludedir %{tde_includedir}/kde +%define tde_tdelibdir %{tde_libdir}/trinity + +%define _docdir %{tde_tdedocdir} Name: trinity-%{kdecomp} Summary: Yakuake is a Quake-style terminal emulator based on KDE Konsole technology. -Version: %{?version} -Release: %{?release}%{?dist}%{?_variant} +Version: 2.8.1 +Release: 3%{?dist}%{?_variant} License: GPLv2+ Group: Applications/Utilities @@ -28,14 +35,14 @@ Vendor: Trinity Project Packager: Francois Andriot <francois.andriot@free.fr> URL: http://www.trinitydesktop.org/ -Prefix: %{_prefix} +Prefix: %{tde_prefix} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source0: %{kdecomp}-3.5.13.tar.gz BuildRequires: tqtinterface-devel -BuildRequires: trinity-kdelibs-devel -BuildRequires: trinity-kdebase-devel +BuildRequires: trinity-tdelibs-devel +BuildRequires: trinity-tdebase-devel BuildRequires: desktop-file-utils %description @@ -47,8 +54,8 @@ Yakuake is a Quake-style terminal emulator based on KDE Konsole technology. # Ugly hack to modify TQT include directory inside autoconf files. # If TQT detection fails, it fallbacks to TQT4 instead of TQT3 ! %__sed -i admin/acinclude.m4.in \ - -e "s|/usr/include/tqt|%{_includedir}/tqt|g" \ - -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_docdir}/HTML'|g" + -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \ + -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g" %__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in" %__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh" @@ -56,19 +63,27 @@ Yakuake is a Quake-style terminal emulator based on KDE Konsole technology. %build -export PATH="%{_bindir}:${PATH}" -export LDFLAGS="-L%{_libdir} -I%{_includedir}" +unset QTDIR; . /etc/profile.d/qt.sh +export PATH="%{tde_bindir}:${PATH}" +export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}" %configure \ - --disable-rpath \ - --with-extra-includes=%{_includedir}/tqt \ - --enable-closure + --prefix=%{tde_prefix} \ + --exec-prefix=%{tde_prefix} \ + --bindir=%{tde_bindir} \ + --datadir=%{tde_datadir} \ + --libdir=%{tde_libdir} \ + --mandir=%{tde_mandir} \ + --includedir=%{tde_includedir} \ + --disable-rpath \ + --with-extra-includes=%{tde_includedir}/tqt \ + --enable-closure %__make %{?_smp_mflags} %install -export PATH="%{_bindir}:${PATH}" +export PATH="%{tde_bindir}:${PATH}" %__rm -rf %{buildroot} %__make install DESTDIR=%{buildroot} @@ -78,23 +93,23 @@ export PATH="%{_bindir}:${PATH}" %post -touch --no-create %{_datadir}/icons/hicolor || : -gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +touch --no-create %{tde_datadir}/icons/hicolor || : +gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || : %postun -touch --no-create %{_datadir}/icons/hicolor || : -gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +touch --no-create %{tde_datadir}/icons/hicolor || : +gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || : %files %defattr(-,root,root,-) %doc AUTHORS COPYING -%{_bindir}/* -%{_datadir}/applications/*/*.desktop -%{_datadir}/apps/*/ -%{_datadir}/icons/hicolor/*/*/* -%{_datadir}/locale/*/*/*.mo -%{_datadir}/config.kcfg/*.kcfg +%{tde_bindir}/* +%{tde_datadir}/applications/*/*.desktop +%{tde_datadir}/apps/*/ +%{tde_datadir}/icons/hicolor/*/*/* +%{tde_datadir}/locale/*/*/*.mo +%{tde_datadir}/config.kcfg/*.kcfg %Changelog * Sun Oct 30 2011 Francois Andriot <francois.andriot@free.fr> - 2.8.1-3 diff --git a/redhat/dependencies/arts/trinity-arts-3.5.13.spec b/redhat/dependencies/arts/trinity-arts-3.5.13.spec index 9b42341fe..e497cafb2 100755 --- a/redhat/dependencies/arts/trinity-arts-3.5.13.spec +++ b/redhat/dependencies/arts/trinity-arts-3.5.13.spec @@ -122,6 +122,19 @@ cd build %clean %__rm -rf %{?buildroot} +%post +/sbin/ldconfig || : + +%postun +/sbin/ldconfig || : + +%post devel +/sbin/ldconfig || : + +%postun devel +/sbin/ldconfig || : + + %files %defattr(-,root,root,-) %doc COPYING.LIB diff --git a/redhat/dependencies/avahi-tqt/avahi-tqt-3.5.13.spec b/redhat/dependencies/avahi-tqt/avahi-tqt-3.5.13.spec index 2c9c763cf..a79c06e55 100644 --- a/redhat/dependencies/avahi-tqt/avahi-tqt-3.5.13.spec +++ b/redhat/dependencies/avahi-tqt/avahi-tqt-3.5.13.spec @@ -112,6 +112,17 @@ export CXXFLAGS="${CXXFLAGS} ${LDFLAGS}" %clean %__rm -rf %{?buildroot} +%post +/sbin/ldconfig || : + +%postun +/sbin/ldconfig || : + +%post devel +/sbin/ldconfig || : + +%postun devel +/sbin/ldconfig || : %files %{tde_libdir}/*.so.* diff --git a/redhat/dependencies/dbus-1-tqt/dbus-1-tqt-3.5.13.spec b/redhat/dependencies/dbus-1-tqt/dbus-1-tqt-3.5.13.spec index 38fff184a..3e1bd40fb 100644 --- a/redhat/dependencies/dbus-1-tqt/dbus-1-tqt-3.5.13.spec +++ b/redhat/dependencies/dbus-1-tqt/dbus-1-tqt-3.5.13.spec @@ -73,6 +73,18 @@ cd build %clean %__rm -rf %{?buildroot} +%post +/sbin/ldconfig || : + +%postun +/sbin/ldconfig || : + +%post devel +/sbin/ldconfig || : + +%postun devel +/sbin/ldconfig || : + %files %{tde_bindir}/dbusxml2qt3 %{tde_libdir}/*.so.* diff --git a/redhat/dependencies/dbus-tqt/dbus-tqt-3.5.13.spec b/redhat/dependencies/dbus-tqt/dbus-tqt-3.5.13.spec index 20f0ad55b..fbeb990ed 100644 --- a/redhat/dependencies/dbus-tqt/dbus-tqt-3.5.13.spec +++ b/redhat/dependencies/dbus-tqt/dbus-tqt-3.5.13.spec @@ -73,6 +73,18 @@ cd build %clean %__rm -rf %{?buildroot} +%post +/sbin/ldconfig || : + +%postun +/sbin/ldconfig || : + +%post devel +/sbin/ldconfig || : + +%postun devel +/sbin/ldconfig || : + %files %{tde_libdir}/*.so.* diff --git a/redhat/dependencies/qt3/qt3-3.3.8.d.spec b/redhat/dependencies/qt3/qt3-3.3.8.d.spec index afb20801a..53f53e976 100644 --- a/redhat/dependencies/qt3/qt3-3.3.8.d.spec +++ b/redhat/dependencies/qt3/qt3-3.3.8.d.spec @@ -548,9 +548,11 @@ mkdir -p %{buildroot}%{qtdir}/plugins/styles %clean rm -rf %{buildroot} -%post -p /sbin/ldconfig +%post +/sbin/ldconfig -%postun -p /sbin/ldconfig +%postun +/sbin/ldconfig %files %defattr(-,root,root,-) diff --git a/redhat/dependencies/tqca/tqca.spec b/redhat/dependencies/tqca/tqca.spec index 77505c221..5d5f57670 100644 --- a/redhat/dependencies/tqca/tqca.spec +++ b/redhat/dependencies/tqca/tqca.spec @@ -60,8 +60,11 @@ make install INSTALL_ROOT=$RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT -%post -p /sbin/ldconfig -%postun -p /sbin/ldconfig +%post +/sbin/ldconfig + +%postun +/sbin/ldconfig %files diff --git a/redhat/dependencies/tqscintilla/trinity-tqscintilla.spec b/redhat/dependencies/tqscintilla/trinity-tqscintilla.spec index 3742b868f..1c23e0bee 100644 --- a/redhat/dependencies/tqscintilla/trinity-tqscintilla.spec +++ b/redhat/dependencies/tqscintilla/trinity-tqscintilla.spec @@ -130,9 +130,11 @@ done %__rm -rf $RPM_BUILD_ROOT -%post -p /sbin/ldconfig +%post +/sbin/ldconfig -%postun -p /sbin/ldconfig +%postun +/sbin/ldconfig %files diff --git a/redhat/dependencies/tqt3/tqt3-3.4.0.spec b/redhat/dependencies/tqt3/tqt3-3.4.0.spec index 2a9beed91..4353bb06e 100644 --- a/redhat/dependencies/tqt3/tqt3-3.4.0.spec +++ b/redhat/dependencies/tqt3/tqt3-3.4.0.spec @@ -507,9 +507,11 @@ done %clean %__rm -rf %{buildroot} -%post -p /sbin/ldconfig +%post +/sbin/ldconfig -%postun -p /sbin/ldconfig +%postun +/sbin/ldconfig %files %defattr(-,root,root,-) diff --git a/redhat/dependencies/tqtinterface/tqtinterface-3.5.13.spec b/redhat/dependencies/tqtinterface/tqtinterface-3.5.13.spec index bcbf1ed2a..598e2d874 100755 --- a/redhat/dependencies/tqtinterface/tqtinterface-3.5.13.spec +++ b/redhat/dependencies/tqtinterface/tqtinterface-3.5.13.spec @@ -92,7 +92,7 @@ cd build # RHEL 5: add newline at end of include files to avoid warnings %if 0%{?rhel} && 0%{?rhel} <= 5 -for i in %{?buildroot}%{_includedir}/*.h; do +for i in %{?buildroot}%{tde_includedir}/tqt/*.h; do echo "" >>${i} done %endif @@ -106,6 +106,18 @@ done %clean %__rm -rf %{?buildroot} +%post +/sbin/ldconfig || : + +%postun +/sbin/ldconfig || : + +%post devel +/sbin/ldconfig || : + +%postun devel +/sbin/ldconfig || : + %files %{tde_bindir}/* %{tde_libdir}/*.so.* diff --git a/redhat/extras/akode/akode-2.0.2-fix_ffmpeg_include.patch b/redhat/extras/akode/akode-2.0.2-fix_ffmpeg_include.patch new file mode 100644 index 000000000..d16411ed7 --- /dev/null +++ b/redhat/extras/akode/akode-2.0.2-fix_ffmpeg_include.patch @@ -0,0 +1,15 @@ +--- a/akode/plugins/ffmpeg_decoder/ffmpeg_decoder.cpp.ORI 2012-08-04 22:36:12.435734576 +0200 ++++ a/akode/plugins/ffmpeg_decoder/ffmpeg_decoder.cpp 2012-08-04 22:37:20.153030459 +0200 +@@ -26,9 +26,9 @@ + #include "decoder.h" + + #include <assert.h> +-#include <ffmpeg/avcodec.h> +-#include <ffmpeg/avformat.h> +-#include <ffmpeg/avio.h> ++#include <libavcodec/avcodec.h> ++#include <libavformat/avformat.h> ++#include <libavformat/avio.h> + + #include "ffmpeg_decoder.h" + #include <iostream> diff --git a/redhat/extras/akode/trinity-akode.spec b/redhat/extras/akode/trinity-akode.spec index 6579f7bef..88875ec99 100644 --- a/redhat/extras/akode/trinity-akode.spec +++ b/redhat/extras/akode/trinity-akode.spec @@ -41,6 +41,7 @@ Patch4: akode-2.0.2-gcc43.patch # New patch for Fedora 16 / TDE 3.5.13 Patch10: akode-autotools.patch +Patch11: akode-2.0.2-fix_ffmpeg_include.patch # Optional features that are always enabled :-) %define _with_flac --with-flac @@ -122,6 +123,7 @@ Requires: %{name} = %{version}-%{release} %patch4 -p1 -b .gcc43 %patch10 -p1 +%patch11 -p1 -b .ffmpeg # Ugly hack to modify TQT include directory inside autoconf files. # If TQT detection fails, it fallbacks to TQT4 instead of TQT3 ! @@ -142,7 +144,7 @@ Requires: %{name} = %{version}-%{release} --disable-static \ --enable-shared \ --disable-debug --disable-warnings --disable-dependency-tracking \ - --with-libltdl \ + --without-libltdl \ --with-alsa \ --with-oss \ %{?_with_flac} %{!?_with_flac:--without-flac} \ @@ -204,6 +206,11 @@ done %{tde_libdir}/libakode_xiph_decoder.la %{tde_libdir}/libakode_xiph_decoder.so +#files -libmad +# /opt/trinity/lib64/libakode_mpeg_decoder.la +# /opt/trinity/lib64/libakode_mpeg_decoder.so + + %files devel %defattr(-,root,root,-) %{tde_bindir}/akode-config diff --git a/redhat/extras/kasablanca/kasablanca-autotools.patch b/redhat/extras/kasablanca/kasablanca-0.4.0.2-fix_autotools_detection.patch index 0eae8f419..0eae8f419 100644 --- a/redhat/extras/kasablanca/kasablanca-autotools.patch +++ b/redhat/extras/kasablanca/kasablanca-0.4.0.2-fix_autotools_detection.patch diff --git a/redhat/extras/kasablanca/kasablanca-0.4.0.2-ftbfs.patch b/redhat/extras/kasablanca/kasablanca-0.4.0.2-missing_ldflags.patch index 6596d894a..24330fa2d 100644 --- a/redhat/extras/kasablanca/kasablanca-0.4.0.2-ftbfs.patch +++ b/redhat/extras/kasablanca/kasablanca-0.4.0.2-missing_ldflags.patch @@ -1,11 +1,11 @@ ---- kasablanca-0.4.0.2/src/Makefile.am.ORI 2011-12-04 15:42:39.245402912 +0100 -+++ kasablanca-0.4.0.2/src/Makefile.am 2011-12-04 15:42:45.744265760 +0100 +--- kasablanca-0.4.0.2/src/Makefile.am.ORI 2012-08-07 15:52:01.549962016 +0200 ++++ kasablanca-0.4.0.2/src/Makefile.am 2012-08-07 15:52:11.265930503 +0200 @@ -22,7 +22,7 @@ # the application source, library search path, and link libraries kasablanca_SOURCES = main.cpp kasablanca.cpp bookmarkdialog.cpp customconnectdialog.cpp fileexistsdialog.cpp kbitem.cpp Q_bookmarkdialog.ui Q_fileexistsdialog.ui Q_mainwindow.ui eventhandler.cpp ftpthread.cpp ftplib.cpp ftpsession.cpp kbfileinfo.cpp kbdirinfo.cpp kbdir.cpp kbfile.cpp kbtransferitem.cpp kbtransferdir.cpp kbtransferfile.cpp kbconfig.kcfgc Q_colorspreferencesdialog.ui Q_generalpreferencesdialog.ui kbtaskview.cpp Q_userinterfacepreferencesdialog.ui kbbookmarkitem.cpp kbsiteinfo.cpp Q_customconnectdialog.ui Q_importdialog.ui importdialog.cpp kbstatustip.cpp kasablanca_LDFLAGS = $(KDE_RPATH) $(all_libraries) -kasablanca_LDADD = -lssl $(LIB_KDEUI) -+kasablanca_LDADD = -lssl $(LIB_KDEUI) -lcrypto ++kasablanca_LDADD = -lssl $(LIB_KDEUI) -lcrypto $(LIB_KDECORE) -lDCOP $(LIB_QT) # this is where the desktop file will go shelldesktopdir = $(kde_appsdir)/Utilities diff --git a/redhat/extras/kasablanca/trinity-kasablanca.spec b/redhat/extras/kasablanca/trinity-kasablanca.spec index 4604d7491..16c5f61ce 100644 --- a/redhat/extras/kasablanca/trinity-kasablanca.spec +++ b/redhat/extras/kasablanca/trinity-kasablanca.spec @@ -1,16 +1,30 @@ +%define kdecomp kasablanca + # If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". -%if "%{?_prefix}" != "/usr" +%if "%{?tde_prefix}" != "/usr" %define _variant .opt -%define _docdir %{_datadir}/doc %endif -%define kdecomp kasablanca -%define tde_docdir %{_docdir}/kde +# TDE 3.5.13 specific building 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_mandir %{tde_datadir}/man + +%define tde_tdeappdir %{tde_datadir}/applications/kde +%define tde_tdedocdir %{tde_docdir}/kde +%define tde_tdeincludedir %{tde_includedir}/kde +%define tde_tdelibdir %{tde_libdir}/trinity + +%define _docdir %{tde_docdir} + Name: trinity-%{kdecomp} Summary: Graphical FTP client Version: 0.4.0.2 -Release: 1%{?dist} +Release: 1%{?dist}%{?_variant} License: GPLv2+ Url: http://kasablanca.berlios.de/ @@ -18,13 +32,16 @@ Source: http://download.berlios.de/kasablanca/kasablanca-%{version}.tar.gz Group: Applications/Internet BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +# [kasablanca] Fix bad content in icon (?) Patch1: kasablanca-0.4.0.2-dt.patch -Patch2: kasablanca-autotools.patch -Patch3: kasablanca-0.4.0.2-ftbfs.patch +# [kasablanca] Fix detection of newer autotools +Patch2: kasablanca-0.4.0.2-fix_autotools_detection.patch +# [kasablanca] Missing LDFLAGS cause FTBFS +Patch3: kasablanca-0.4.0.2-missing_ldflags.patch BuildRequires: desktop-file-utils BuildRequires: gettext -BuildRequires: trinity-kdelibs-devel +BuildRequires: trinity-tdelibs-devel BuildRequires: openssl-devel BuildRequires: libutempter-devel @@ -43,13 +60,13 @@ Kasablanca is an ftp client, among its features are currently: %setup -q -n %{kdecomp}-%{version} %patch1 -p1 -b .dt %patch2 -p1 -%patch3 -p1 +%patch3 -p1 -b .ldflags # Ugly hack to modify TQT include directory inside autoconf files. # If TQT detection fails, it fallbacks to TQT4 instead of TQT3 ! -%__sed -i admin/acinclude.m4.in \ - -e "s|/usr/include/tqt|%{_includedir}/tqt|g" \ - -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_docdir}/HTML'|g" +%__sed -i "admin/acinclude.m4.in" \ + -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \ + -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g" %__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in" %__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh" @@ -58,8 +75,10 @@ Kasablanca is an ftp client, among its features are currently: %build unset QTDIR || : ; . /etc/profile.d/qt.sh -export PATH="%{_bindir}:${PATH}" -export LDFLAGS="-L%{_libdir} -I%{_includedir}" +export PATH="%{tde_bindir}:${PATH}" +export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}" + +export KDEDIR=%{tde_prefix} ## Needed(?) for older/legacy setups, harmless otherwise if pkg-config openssl ; then @@ -67,31 +86,36 @@ if pkg-config openssl ; then fi %configure \ - --disable-rpath \ - --disable-debug --disable-warnings \ - --disable-dependency-tracking --enable-final \ - --with-extra-includes=%{_includedir}/tqt + --prefix=%{tde_prefix} \ + --exec-prefix=%{tde_prefix} \ + --bindir=%{tde_bindir} \ + --libdir=%{tde_libdir} \ + --includedir=%{tde_includedir} \ + --datadir=%{tde_datadir} \ + --disable-static \ + --disable-rpath \ + --disable-debug --disable-warnings \ + --disable-dependency-tracking --enable-final \ + --with-extra-includes=%{tde_includedir}/tqt -%__make %{?_smp_mflags} +%__make %{?_smp_mflags} LIBTOOL=$(which libtool) %install -export PATH="%{_bindir}:${PATH}" +export PATH="%{tde_bindir}:${PATH}" %__rm -rf $RPM_BUILD_ROOT %__make install DESTDIR=$RPM_BUILD_ROOT desktop-file-install \ - --dir $RPM_BUILD_ROOT%{_datadir}/applications/kde \ + --dir $RPM_BUILD_ROOT%{tde_datadir}/applications/kde \ --vendor="" \ --add-category="Network" \ --add-category="KDE" \ --delete-original \ - $RPM_BUILD_ROOT%{_datadir}/applnk/*/*.desktop + $RPM_BUILD_ROOT%{tde_datadir}/applnk/*/*.desktop ## File lists -# locale's -%find_lang %{kdecomp} || touch %{kdecomp}.lang # HTML (1.0) HTML_DIR=$(kde-config --expandvars --install html) if [ -d $RPM_BUILD_ROOT$HTML_DIR ]; then @@ -109,33 +133,35 @@ for lang_dir in $RPM_BUILD_ROOT$HTML_DIR/* ; do done fi +# locale's +%find_lang %{kdecomp} %clean %__rm -rf $RPM_BUILD_ROOT %post -touch --no-create %{_datadir}/icons/hicolor &> /dev/null || : +touch --no-create %{tde_datadir}/icons/hicolor &> /dev/null || : %postun if [ $1 -eq 0 ] ; then touch --no-create %{_datadir}/icons/hicolor &> /dev/null - gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || : + gtk-update-icon-cache %{tde_datadir}/icons/hicolor &> /dev/null || : fi %posttrans -gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || : +gtk-update-icon-cache %{tde_datadir}/icons/hicolor &> /dev/null || : %files -f %{kdecomp}.lang %defattr(-,root,root,-) %doc AUTHORS ChangeLog COPYING NEWS README -%{_bindir}/* -%{_datadir}/applications/kde/*.desktop -%{_datadir}/apps/kasablanca/ -%{_datadir}/config*/* -%{_datadir}/icons/hicolor/*/*/* -%{tde_docdir}/HTML/en/kasablanca +%{tde_bindir}/kasablanca +%{tde_tdeappdir}/kasablanca.desktop +%{tde_datadir}/apps/kasablanca/ +%{tde_datadir}/config.kcfg/kbconfig.kcfg +%{tde_datadir}/icons/hicolor/*/apps/kasablanca.png +%{tde_tdedocdir}/HTML/en/kasablanca/ %changelog * Sun Dec 04 2011 Francois Andriot <francois.andriot@free.fr> - 0.4.0.2-1 diff --git a/redhat/extras/kdebluetooth/trinity-kdebluetooth.spec b/redhat/extras/kdebluetooth/trinity-kdebluetooth.spec index 1a9790e46..a3c4e04c3 100644 --- a/redhat/extras/kdebluetooth/trinity-kdebluetooth.spec +++ b/redhat/extras/kdebluetooth/trinity-kdebluetooth.spec @@ -1,10 +1,22 @@ # If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". -%if "%{?_prefix}" != "/usr" +%if "%{?tde_prefix}" != "/usr" %define _variant .opt -%define _docdir %{_datadir}/doc %endif -%define tde_docdir %{_docdir}/kde +# TDE 3.5.13 specific building 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_mandir %{tde_datadir}/man + +%define tde_tdeappdir %{tde_datadir}/applications/kde +%define tde_tdedocdir %{tde_docdir}/kde +%define tde_tdeincludedir %{tde_includedir}/kde +%define tde_tdelibdir %{tde_libdir}/trinity + +%define _docdir %{tde_docdir} Name: trinity-kdebluetooth @@ -27,20 +39,26 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: gettext BuildRequires: desktop-file-utils BuildRequires: lockdev-devel -BuildRequires: xmms-devel -BuildRequires: bluez-libs-devel -BuildRequires: trinity-kdelibs-devel -BuildRequires: trinity-kdepim-devel +#BuildRequires: xmms-devel +BuildRequires: trinity-tdelibs-devel +BuildRequires: trinity-tdepim-devel BuildRequires: openobex-devel >= 1.1 BuildRequires: libusb-devel BuildRequires: pkgconfig Buildrequires: libidn-devel Buildrequires: dbus-tqt-devel -BuildRequires: obexftp-devel BuildRequires: automake >= 1.6.1 BuildRequires: autoconf >= 2.52 + +%if 0%{?mgaversion} || 0%{?mdkversion} +BuildRequires: %{_lib}bluez-devel +%else +BuildRequires: bluez-libs-devel +BuildRequires: obexftp-devel +%endif + Requires: %{name}-libs = %{version}-%{release} -Requires: %{_bindir}/kdesu +Requires: trinity-kdesu @@ -54,7 +72,6 @@ enabled devices as straightforward as possible. %package libs Summary: Base libraries for %{name} Group: System Environment/Libraries -Obsoletes: %{name} < %{version}-%{release} %if 0%{?fedora} >= 8 Provides: dbus-bluez-pin-helper @@ -86,9 +103,9 @@ KDE Bluetooth framework development libraries and headers. # Ugly hack to modify TQT include directory inside autoconf files. # If TQT detection fails, it fallbacks to TQT4 instead of TQT3 ! -%__sed -i admin/acinclude.m4.in \ - -e "s|/usr/include/tqt|%{_includedir}/tqt|g" \ - -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_docdir}/HTML'|g" +%__sed -i "admin/acinclude.m4.in" \ + -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \ + -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g" %__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in" %__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh" @@ -96,21 +113,31 @@ KDE Bluetooth framework development libraries and headers. %build -export PATH="%{_bindir}:${PATH}" -export LDFLAGS="-L%{_libdir} -I%{_includedir}" -export CXXFLAGS="${CXXFLAGS} -I%{_includedir}/dbus-1.0" - unset QTDIR || : ; . /etc/profile.d/qt.sh -%configure \ - --disable-rpath \ - --enable-new-ldflags \ - --disable-debug \ - --disable-dependency-tracking \ - --enable-final \ - --enable-closure \ - --with-extra-includes=%{_includedir}/tqt +export PATH="%{tde_bindir}:${PATH}" +export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}" -%__make %{?_smp_mflags} LIBTOOL=/usr/bin/libtool +export KDEDIR=%{tde_prefix} + +# FIXME: dbus-tqt headers are not found without this ... +export CXXFLAGS="${CXXFLAGS} -I%{tde_includedir}/dbus-1.0" + +%configure \ + --prefix=%{tde_prefix} \ + --exec-prefix=%{tde_prefix} \ + --bindir=%{tde_bindir} \ + --libdir=%{tde_libdir} \ + --includedir=%{tde_tdeincludedir} \ + --datadir=%{tde_datadir} \ + --disable-rpath \ + --enable-new-ldflags \ + --disable-debug \ + --disable-dependency-tracking \ + --enable-final \ + --enable-closure \ + --with-extra-includes=%{tde_includedir}/tqt: + +%__make %{?_smp_mflags} LIBTOOL=$(which libtool) %install @@ -122,14 +149,13 @@ for DESK_PATH in applications/kde applnk/Utilities ; do desktop-file-install \ --mode=644 \ --vendor="" \ - --dir=$RPM_BUILD_ROOT%{_datadir}/applications/kde \ + --dir=$RPM_BUILD_ROOT%{tde_datadir}/applications/kde \ --remove-category="Network" \ --add-category="System" \ --delete-original \ - $RPM_BUILD_ROOT%{_datadir}/$DESK_PATH/*.desktop ||: + $RPM_BUILD_ROOT%{tde_datadir}/$DESK_PATH/*.desktop ||: done -touch %{name}.lang PROG_LIST="kbluelock kbluemon kbluetooth kinputwizard kcm_btpaired kio_bluetooth kio_obex2 kio_sdp libkbluetooth kdebluetooth" @@ -139,8 +165,8 @@ done rm -f $RPM_BUILD_ROOT/%{_datadir}/applnk/Settings/Network/Bluetooth/.directory -rm -f ${RPM_BUILD_ROOT}%{_libdir}/*.a -rm -f ${RPM_BUILD_ROOT}%{_libdir}/kde3/*.a +rm -f ${RPM_BUILD_ROOT}%{tde_libdir}/*.a +rm -f ${RPM_BUILD_ROOT}%{tde_libdir}/kde3/*.a %clean rm -rf $RPM_BUILD_ROOT @@ -158,48 +184,48 @@ touch --no-create %{_datadir}/icons/hicolor ||: gtk-update-icon-cache -qf %{_datadir}/icons/hicolor 2> /dev/null ||: -%files -f %{name}.lang +%files %defattr(-,root,root,-) %doc AUTHORS ChangeLog COPYING INSTALL README -%{_bindir}/kblue* -%{_bindir}/kbtobexclient -%{_bindir}/kioobex_start -%{_bindir}/kinputwizard -%{_datadir}/applications/kde/*.desktop -%{_datadir}/applnk/.hidden/*.desktop -%{_datadir}/apps/konqsidebartng/virtual_folders/services/*.desktop -%{_datadir}/apps/*/* -%{_datadir}/autostart/* -%{_datadir}/desktop-directories/* -%{_datadir}/icons/hicolor/*/*/* -%{_datadir}/mimelnk/bluetooth/ -%{_datadir}/service*/* -%lang(ca) %{tde_docdir}/HTML/ca/kdebluetooth/ -%lang(da) %{tde_docdir}/HTML/da/kdebluetooth/ -%lang(en) %{tde_docdir}/HTML/en/kdebluetooth/ -%lang(es) %{tde_docdir}/HTML/es/kdebluetooth/ -%lang(et) %{tde_docdir}/HTML/et/kdebluetooth/ -%lang(fr) %{tde_docdir}/HTML/fr/kdebluetooth/ -%lang(it) %{tde_docdir}/HTML/it/kdebluetooth/ -%lang(nl) %{tde_docdir}/HTML/nl/kdebluetooth/ -%lang(pt) %{tde_docdir}/HTML/pt/kdebluetooth/ -%lang(ru) %{tde_docdir}/HTML/ru/kdebluetooth/ -%lang(sv) %{tde_docdir}/HTML/sv/kdebluetooth/ +%{tde_bindir}/kblue* +%{tde_bindir}/kbtobexclient +%{tde_bindir}/kioobex_start +%{tde_bindir}/kinputwizard +%{tde_tdeappdir}/*.desktop +%{tde_datadir}/applnk/.hidden/*.desktop +%{tde_datadir}/apps/konqsidebartng/virtual_folders/services/*.desktop +%{tde_datadir}/apps/*/* +%{tde_datadir}/autostart/* +%{tde_datadir}/desktop-directories/* +%{tde_datadir}/icons/hicolor/*/*/* +%{tde_datadir}/mimelnk/bluetooth/ +%{tde_datadir}/service*/* +%lang(ca) %{tde_tdedocdir}/HTML/ca/kdebluetooth/ +%lang(da) %{tde_tdedocdir}/HTML/da/kdebluetooth/ +%lang(en) %{tde_tdedocdir}/HTML/en/kdebluetooth/ +%lang(es) %{tde_tdedocdir}/HTML/es/kdebluetooth/ +%lang(et) %{tde_tdedocdir}/HTML/et/kdebluetooth/ +%lang(fr) %{tde_tdedocdir}/HTML/fr/kdebluetooth/ +%lang(it) %{tde_tdedocdir}/HTML/it/kdebluetooth/ +%lang(nl) %{tde_tdedocdir}/HTML/nl/kdebluetooth/ +%lang(pt) %{tde_tdedocdir}/HTML/pt/kdebluetooth/ +%lang(ru) %{tde_tdedocdir}/HTML/ru/kdebluetooth/ +%lang(sv) %{tde_tdedocdir}/HTML/sv/kdebluetooth/ %files libs %defattr(-,root,root,-) -%{_libdir}/*.la -%{_libdir}/*.so.* -%{_libdir}/kde3/*.so -%{_libdir}/kde3/*.la -%{_libdir}/kdebluetooth/ +%{tde_libdir}/*.la +%{tde_libdir}/*.so.* +%{tde_tdelibdir}/*.so +%{tde_tdelibdir}/*.la +%{tde_libdir}/kdebluetooth/ %files devel %defattr(-,root,root,-) -%{_includedir}/* -%{_libdir}/*.so +%{tde_includedir}/* +%{tde_libdir}/*.so %changelog diff --git a/redhat/extras/trinity-desktop/trinity-desktop.spec b/redhat/extras/trinity-desktop/trinity-desktop.spec index faf09237e..53fdbdf15 100644 --- a/redhat/extras/trinity-desktop/trinity-desktop.spec +++ b/redhat/extras/trinity-desktop/trinity-desktop.spec @@ -6,7 +6,7 @@ Name: trinity-desktop Version: 3.5.13 -Release: 5%{?dist}%{?_variant} +Release: 6%{?dist}%{?_variant} License: GPL Summary: Meta-package to install TDE Group: User Interface/Desktops @@ -76,12 +76,141 @@ Requires: trinity-tdewebdev >= %{version} ########## +%package applications +Group: User Interface/Desktops +Summary: Meta-package to install all TDE applications + +Requires: trinity-abakus +Requires: trinity-amarok +Requires: trinity-basket +Requires: trinity-bibletime +#Requires: trinity-compizconfig-backend-kconfig +#Requires: trinity-desktop-effects-kde +Requires: trinity-digikam +Requires: trinity-dolphin +Requires: trinity-filelight +#Requires: trinity-filelight-l10n +# Fusion-icon requires 'trinity-compizconfig-backend-kconfig' +#Requires: trinity-fusion-icon +Requires: trinity-gwenview +Requires: trinity-k3b +# Warning, k9copy requires ffmpeg +Requires: trinity-k9copy +Requires: trinity-kaffeine +Requires: trinity-kaffeine-mozilla +Requires: trinity-katapult +Requires: trinity-kbarcode +Requires: trinity-kbfx +Requires: trinity-kbookreader +Requires: trinity-kchmviewer +Requires: trinity-kcmautostart +Requires: trinity-kcpuload +Requires: trinity-kdbusnotification +Requires: trinity-guidance +Requires: trinity-style-lipstik +Requires: trinity-style-qtcurve +Requires: trinity-systemsettings +Requires: trinity-kdesudo +Requires: trinity-kdesvn +Requires: trinity-kdiff3 +Requires: trinity-kdirstat +Requires: trinity-kdmtheme +Requires: trinity-keep +Requires: trinity-kerry +Requires: trinity-kgtk-qt3 +Requires: trinity-kile +Requires: trinity-kima +Requires: trinity-kio-locate +Requires: trinity-kio-umountwrapper +Requires: trinity-kiosktool +Requires: trinity-kmplayer +Requires: trinity-kmyfirewall +Requires: trinity-kmymoney +Requires: trinity-knemo +Requires: trinity-knetload +Requires: trinity-knetstats +Requires: trinity-knetworkmanager +Requires: trinity-knights +Requires: trinity-knowit +Requires: trinity-knutclient +Requires: trinity-koffice-suite +#Requires: trinity-konstruct +Requires: trinity-konversation +Requires: trinity-kopete-otr +Requires: trinity-kpicosim +Requires: trinity-kpilot +# Warning, kradio requires libmp3lame +Requires: trinity-kradio +Requires: trinity-krename +Requires: trinity-krusader +Requires: trinity-ksplash-engine-moodin +Requires: trinity-ksquirrel +Requires: trinity-kstreamripper +Requires: trinity-ksystemlog +Requires: trinity-ktechlab +Requires: trinity-ktorrent +Requires: trinity-kuickshow +Requires: trinity-kvirc +Requires: trinity-kvkbd +#Requires: trinity-kvpnc # R14 only +Requires: trinity-kwin-style-crystal +Requires: trinity-piklab +Requires: trinity-potracegui +#Requires: trinity-qt4-tqt-theme-engine +Requires: trinity-smartcardauth +Requires: trinity-smb4k +Requires: trinity-soundkonverter +Requires: trinity-tellico +Requires: trinity-wlassistant +Requires: trinity-yakuake + +# On RHEL 5, HAL version is too old for kpowersave . +%if 0%{?rhel} >= 6 || 0%{?fedora} >= 15 || 0%{?mgaversion} || 0%{?mdkversion} +Requires: trinity-kpowersave +%endif + +# On RHEL 5, GTK2 version is too old for gtk-qt-engine. +%if 0%{?rhel} >= 6 || 0%{?fedora} >= 15 || 0%{?mgaversion} || 0%{?mdkversion} +Requires: trinity-gtk-qt-engine +%endif + +# On RHEL 5, lilypond is not available, so no rosegarden :'-( +%if 0%{?rhel} >= 6 || 0%{?fedora} >= 15 || 0%{?mgaversion} || 0%{?mdkversion} +Requires: trinity-rosegarden +%endif + +%description applications +%{summary} + +%files applications + +########## + +%package extras +Group: User Interface/Desktops +Summary: Meta-package to install all extras (unofficial) TDE packages + +Requires: trinity-akode +Requires: trinity-kasablanca +Requires: trinity-kdebluetooth +Requires: trinity-ksensors +Requires: trinity-style-ia-oa + +%description extras +%{summary} + +%files extras + +########## + %package all Group: User Interface/Desktops Summary: Meta-package to install all TDE packages Requires: %{name} = %{version} +Requires: %{name}-applications = %{version} Requires: %{name}-devel = %{version} +#Requires: %{name}-extras = %{version} %description all %{summary} @@ -133,6 +262,9 @@ Summary: Yum configuration files for Trinity %endif %changelog +* Mon Aug 06 2012 Francois Andriot <francois.andriot@free.fr> - 3.5.13-6 +- Add 'applications' subpackage + * Wed Aug 01 2012 Francois Andriot <francois.andriot@free.fr> - 3.5.13-5 - Updates to reflect new packages names - Add Mageia 2 support diff --git a/redhat/genrpm.sh b/redhat/genrpm.sh index 8aeee8f7b..9decbeb12 100755 --- a/redhat/genrpm.sh +++ b/redhat/genrpm.sh @@ -57,7 +57,7 @@ VERSION=$( awk '{ if ($1 == "'${COMP}'") { print $2; } }' components.txt ) # If no version is set in text file, get version number from source tarball name if [ -z "${VERSION}" ]; then if [ -n "${REQVERSION}" ]; then - set $( cd "${COMP}"; echo ${COMP##*/}*-${REQVERSION}.tar.gz) + set $( cd "${COMP}"; echo ${COMP##*/}*-${REQVERSION%-sru}*.tar.gz) else set $( cd "${COMP}"; echo ${COMP##*/}*.tar.* ) fi diff --git a/redhat/kdeadmin/trinity-kdeadmin-3.5.13.spec b/redhat/kdeadmin/trinity-kdeadmin-3.5.13.spec index 8f74f748d..56ea21eaf 100644 --- a/redhat/kdeadmin/trinity-kdeadmin-3.5.13.spec +++ b/redhat/kdeadmin/trinity-kdeadmin-3.5.13.spec @@ -1,3 +1,6 @@ +# Avoids relinking, which breaks consolehelper +%define dont_relink 1 + # 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 @@ -6,7 +9,7 @@ # TDE 3.5.13 specific building variables %define tde_bindir %{tde_prefix}/bin %define tde_sbindir %{tde_prefix}/sbin -%define tde_datadir %{_prefix}/share +%define tde_datadir %{tde_prefix}/share %define tde_docdir %{tde_datadir}/doc %define tde_includedir %{tde_prefix}/include %define tde_libdir %{tde_prefix}/%{_lib} @@ -52,7 +55,9 @@ Patch2: bp004-1f719050.diff Patch3: kdeadmin-3.5.13-remove_more_applications_in_menu.patch BuildRequires: autoconf automake libtool m4 -BuildRequires: trinity-kdelibs-devel +BuildRequires: tqtinterface-devel +BuildRequires: trinity-arts-devel +BuildRequires: trinity-tdelibs-devel BuildRequires: rpm-devel BuildRequires: pam-devel %if 0%{?mgaversion} || 0%{?mdkversion} @@ -79,6 +84,10 @@ kcron, kdat, knetworkconf, kpackage, ksysv, kuser. %files %defattr(-,root,root,-) +# LILO is not provided in RHEL or Fedora +%if 0%{?rhel} || 0%{?fedora} +%exclude %{tde_tdedocdir}/HTML/en/lilo-config/ +%endif ########## @@ -284,6 +293,7 @@ update-desktop-database %{tde_datadir}/applications > /dev/null 2>&1 || : %package -n trinity-kuser Summary: Trinity user/group administration tool Group: Applications/Utilities +# package 'usermode' provides '/usr/bin/consolehelper-gtk' %if 0%{?rhel} || 0%{?fedora} Requires: usermode-gtk %else @@ -296,6 +306,7 @@ A user/group administration tool for TDE. %files -n trinity-kuser %defattr(-,root,root,-) %doc rpmdocs/kuser/* +%{_sbindir}/kuser %{tde_bindir}/kuser %{tde_sbindir}/kuser %{tde_tdeappdir}/kuser.desktop @@ -329,7 +340,7 @@ Summary: Trinity frontend for lilo configuration Group: Applications/Utilities Requires: trinity-kcontrol Requires: trinity-tdebase-bin -Requires: lilo +#Requires: lilo %description -n trinity-lilo-config lilo-config is a TDE based frontend to the lilo boot manager configuration. @@ -344,6 +355,9 @@ tdebase-bin since it uses the tdesu command to gain root privileges. %{tde_tdelibdir}/kcm_lilo.so %{tde_tdeappdir}/lilo.desktop %{tde_tdedocdir}/HTML/en/lilo-config/ + +%post -n trinity-lilo-config +touch /etc/lilo.conf %endif ########## @@ -375,11 +389,13 @@ export PATH="%{tde_bindir}:${PATH}" export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}" %configure \ + --prefix=%{tde_prefix} \ --exec-prefix=%{tde_prefix} \ --bindir=%{tde_bindir} \ --sbindir=%{tde_sbindir} \ --libdir=%{tde_libdir} \ --datadir=%{tde_datadir} \ + --docdir=%{tde_docdir} \ --includedir=%{tde_tdeincludedir} \ --enable-new-ldflags \ --disable-dependency-tracking \ @@ -402,17 +418,21 @@ export PATH="%{tde_bindir}:${PATH}" comps="kcron kdat knetworkconf kpackage ksysv kuser" %__mkdir_p %{buildroot}%{tde_datadir}/config \ - %{buildroot}/etc/security/console.apps \ - %{buildroot}/etc/pam.d \ - %{buildroot}%{tde_sbindir} + %{buildroot}%{_sysconfdir}/security/console.apps \ + %{buildroot}%{_sysconfdir}/pam.d \ + %{buildroot}%{tde_sbindir} \ + %{buildroot}%{_sbindir} %__install -p -m644 %{SOURCE5} %{SOURCE6} %{SOURCE7} %{buildroot}%{tde_datadir}/config/ # Run kuser through consolehelper -%__install -p -m644 %{SOURCE1} %{buildroot}/etc/security/console.apps/kuser -%__install -p -m644 %{SOURCE2} %{buildroot}/etc/pam.d/kuser +%__install -p -m644 %{SOURCE1} %{buildroot}%{_sysconfdir}/security/console.apps/kuser +%__install -p -m644 %{SOURCE2} %{buildroot}%{_sysconfdir}/pam.d/kuser %__mv %{buildroot}%{tde_bindir}/kuser %{buildroot}%{tde_sbindir} -%__ln_s consolehelper %{buildroot}%{tde_bindir}/kuser +%__ln_s %{_bindir}/consolehelper %{buildroot}%{tde_bindir}/kuser +%if "%{tde_prefix}" != "/usr" +%__ln_s %{tde_sbindir}/kuser %{?buildroot}%{_sbindir}/kuser +%endif # locale's HTML_DIR=$(kde-config --expandvars --install html) @@ -451,10 +471,6 @@ done # * Removed useless program secpolicy. (Closes: #399426) %__rm -f %{?buildroot}%{tde_bindir}/secpolicy -# LILO is not provided in RHEL or Fedora -%if 0%{?rhel} || 0%{?fedora} -%exclude %{tde_tdedocdir}/HTML/en/lilo-config/ -%endif %clean diff --git a/redhat/kdebase/kdebase-3.5.13.1-startkde_icon.patch b/redhat/kdebase/kdebase-3.5.13.1-startkde_icon.patch new file mode 100644 index 000000000..8b9052e09 --- /dev/null +++ b/redhat/kdebase/kdebase-3.5.13.1-startkde_icon.patch @@ -0,0 +1,19 @@ +--- kdebase/startkde.tdeicon 2012-08-09 10:33:24.000000000 +0200 ++++ kdebase/startkde 2012-08-09 10:34:11.484608675 +0200 +@@ -302,6 +302,16 @@ + fi + fi + ++# Default Start Button icon for TDE ++if [ ! -e $kdehome/share/config/kickerrc ]; then ++ if [ -r "%{tde_starticon}" ]; then ++ cat <<EOF >$kdehome/share/config/kickerrc ++[KMenu] ++CustomIcon=%{tde_starticon} ++EOF ++ fi ++fi ++ + # XCursor mouse theme needs to be applied here to work even for kded or ksmserver. + if test -n "$kcminputrc_mouse_cursortheme" -o -n "$kcminputrc_mouse_cursorsize" ; then + kapplymousetheme "$kcminputrc_mouse_cursortheme" "$kcminputrc_mouse_cursorsize" diff --git a/redhat/kdebase/tdebase-3.5.13.1-missing_ldflags.patch b/redhat/kdebase/tdebase-3.5.13.1-missing_ldflags.patch new file mode 100644 index 000000000..6f6173ef0 --- /dev/null +++ b/redhat/kdebase/tdebase-3.5.13.1-missing_ldflags.patch @@ -0,0 +1,10 @@ +--- kdebase/khotkeys/arts/CMakeLists.txt.ORI 2012-08-07 21:21:45.840401244 +0200 ++++ kdebase/khotkeys/arts/CMakeLists.txt 2012-08-07 21:22:06.260974727 +0200 +@@ -25,6 +25,7 @@ + ${CMAKE_SOURCE_DIR}/khotkeys/kcontrol + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} ++ ${ARTS_INCLUDE_DIRS} + ) + + link_directories( diff --git a/redhat/kdebase/tdebase-r14.spec b/redhat/kdebase/tdebase-r14.spec index e1eee6c5b..249b7f4a9 100644 --- a/redhat/kdebase/tdebase-r14.spec +++ b/redhat/kdebase/tdebase-r14.spec @@ -384,9 +384,11 @@ gtk-update-icon-cache --quiet %{_datadir}/icons/crystalsvg 2> /dev/null || : update-desktop-database 2> /dev/null || : -%post libs -p /sbin/ldconfig +%post libs +/sbin/ldconfig -%postun libs -p /sbin/ldconfig +%postun libs +/sbin/ldconfig %post extras for f in crystalsvg hicolor ; do diff --git a/redhat/kdebase/trinity-kdebase-3.5.12.spec b/redhat/kdebase/trinity-kdebase-3.5.12.spec index 04070969d..9982abd3a 100644 --- a/redhat/kdebase/trinity-kdebase-3.5.12.spec +++ b/redhat/kdebase/trinity-kdebase-3.5.12.spec @@ -431,9 +431,11 @@ gtk-update-icon-cache --quiet %{_datadir}/icons/crystalsvg 2> /dev/null || : update-desktop-database 2> /dev/null || : -%post libs -p /sbin/ldconfig +%post libs +/sbin/ldconfig -%postun libs -p /sbin/ldconfig +%postun libs +/sbin/ldconfig %post extras for f in crystalsvg hicolor ; do diff --git a/redhat/kdebase/trinity-kdebase-3.5.13-sru.spec b/redhat/kdebase/trinity-kdebase-3.5.13-sru.spec new file mode 100644 index 000000000..df7b387e8 --- /dev/null +++ b/redhat/kdebase/trinity-kdebase-3.5.13-sru.spec @@ -0,0 +1,3009 @@ +# 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 building 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_tdeappdir %{tde_datadir}/applications/kde +%define tde_tdedocdir %{tde_docdir}/kde +%define tde_tdeincludedir %{tde_includedir}/kde +%define tde_tdelibdir %{tde_libdir}/trinity + +# Older RHEL/Fedora versions use packages named "qt", "qt-devel", .. +# whereas newer versions use "qt3", "qt3-devel" ... +%if 0%{?rhel} >= 6 || 0%{?fedora} >= 8 || 0%{?mgaversion} || 0%{?mdkversion} +%define _qt_suffix 3 +%endif + + +Name: trinity-tdebase +Version: 3.5.13.1 +Release: 0%{?dist}%{?_variant} +License: GPL +Summary: Trinity Base Programs +Group: User Interface/Desktops + +Obsoletes: trinity-kdebase < %{version}-%{release} +Provides: trinity-kdebase = %{version}-%{release} +Obsoletes: trinity-kdebase-libs < %{version}-%{release} +Obsoletes: trinity-kdebase-extras < %{version}-%{release} +Provides: trinity-kdebase-extras = %{version}-%{release} +Obsoletes: tdebase < %{version}-%{release} +Provides: tdebase = %{version}-%{release} + + +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: kdebase-3.5.13.tar.gz + +# Wrapper script to prevent Plasma launch at Trinity Startup +Source1: plasma-desktop + +# Pam configuration files for RHEL / Fedora +Source2: pamd.kdm-trinity%{?dist} +Source3: pamd.kdm-trinity-np%{?dist} +Source4: pamd.kcheckpass-trinity%{?dist} +Source5: pamd.kscreensaver-trinity%{?dist} + +# [kdebase] Switch to v3.5.13-sru +Patch0: kdebase-3.5.13-sru-20120806.patch +Patch1: cmake-3.5.13-sru-20120807.patch +Patch2: tdebase-3.5.13.1-missing_ldflags.patch + +# TDE 3.5.13 patches +## [kdebase/kdesktop] Modifies 'open terminal here' on desktop [RHEL/Fedora] +Patch11: kdebase-3.5.12-desktop-openterminalhere.patch +## [kdebase/kdm/kfrontend] Global Xsession file is '/etc/X11/xinit/Xsession' [RHEL/Fedora] +Patch13: kdebase-3.5.13-genkdmconf_Xsession_location.patch +## [kdebase/startkde] Sets default Start Icon in 'kickerrc' [RHEL/Fedora] +Patch15: kdebase-3.5.13.1-startkde_icon.patch +## [kdebase/kioslave/man] Fix kio_man for older distros without 'man-db' [Bug #714] +Patch21: kdebase-3.5.13-kio_man_utf8.patch +## [kdebase/kpersonalizer] Repair KPersonalizer settings to match system defaults [Bug #759] +Patch26: kdebase-3.5.13-kpersonalizer_default_doubleclick.patch +## [kdebase/kdm/kfrontend] Allows to hide KDM menu button [RHEL/Fedora] +Patch30: kdebase-3.5.12-kdm_hide_menu_button.patch +## [kdebase/kicker/applets] Adds option to disable desktop switch on mouse wheel cycling [Bug #908] +Patch36: kdebase-3.5.13-option_to_disable_scroll_desktop.patch +## [kdebase/kicker] Ensures that 'pagersettings.kcfg' is installed [Bug #908, Commit bd9c1479] +Patch44: kdebase-3.5.13-ensure_pagersettings_is_installed.patch +## [tdebase] Add the ability to reorder documents in kate [Commit #46a657f7] +Patch55: kdebase-3.5.13-add_reorder_documents_in_kate.patch +## [tdebase] Add drag and drop to kate file list in manual mode [Commit #b0fa10df] +Patch56: kdebase-3.5.13-add_drag_drop_to_kate_file_list.patch +## [tdebase] Disable keyboard shortcuts for file location moving, as they did not work properly +## and have very little practical use [Commit #9a948c1a] +Patch57: kdebase-3.5.13-disable_keyboard_shortcuts_for_file_location_moving.patch +## [tdebase] Update default konqueror maximum image preview size to 10MB. [Commit #03e19305] +Patch60: kdebase-3.5.13-update_default_konq_max_image_prev_size.patch + +### FEDORA / RHEL distribution-specific settings ### + +# Fedora 15 Theme: "Lovelock" +%if 0%{?fedora} == 15 +Requires: lovelock-backgrounds-single +%define tde_bg /usr/share/backgrounds/lovelock/default/standard/lovelock.png +%define tde_starticon /usr/share/icons/hicolor/96x96/apps/fedora-logo-icon.png + +Requires: fedora-release-notes +%define tde_aboutlabel Fedora 15 +%define tde_aboutpage /usr/share/doc/HTML/fedora-release-notes/index.html +%endif + +# Fedora 16 Theme: "Verne" +%if 0%{?fedora} == 16 +Requires: verne-backgrounds-single +%define tde_bg /usr/share/backgrounds/verne/default/standard/verne.png +%define tde_starticon /usr/share/icons/hicolor/96x96/apps/fedora-logo-icon.png + +Requires: fedora-release-notes +%define tde_aboutlabel Fedora 16 +%define tde_aboutpage /usr/share/doc/HTML/fedora-release-notes/index.html +%endif + +# Fedora 17 Theme: "Beefy Miracle" +%if 0%{?fedora} == 17 +Requires: beefy-miracle-backgrounds-single +%define tde_bg /usr/share/backgrounds/beefy-miracle/default/standard/beefy-miracle.png +%define tde_starticon /usr/share/icons/hicolor/96x96/apps/fedora-logo-icon.png + +Requires: fedora-release-notes +%define tde_aboutlabel Fedora 17 +%define tde_aboutpage /usr/share/doc/HTML/fedora-release-notes/index.html +%endif + +# RHEL 5 Theme +%if 0%{?rhel} == 5 +Requires: desktop-backgrounds-basic +%define tde_bg /usr/share/backgrounds/images/default.jpg +%define tde_starticon /usr/share/pixmaps/redhat-starthere.png + +Requires: indexhtml +%define tde_aboutlabel Enterprise Linux 5 +%define tde_aboutpage /usr/share/doc/HTML/index.html +%endif + +# RHEL 6 Theme +%if 0%{?rhel} == 6 +Requires: redhat-logos +%define tde_bg /usr/share/backgrounds/default.png +%define tde_starticon /usr/share/icons/hicolor/96x96/apps/system-logo-icon.png + +Requires: redhat-indexhtml +%define tde_aboutlabel Enterprise Linux 6 +%define tde_aboutpage /usr/share/doc/HTML/index.html +%endif + +# Mageia 2 Theme +%if 0%{?mgaversion} == 2 +Requires: mageia-theme-Default +%define tde_bg /usr/share/mga/backgrounds/default.jpg +%define tde_starticon /usr/share/icons/hicolor/scalable/apps/mageia-menu.svg + +Requires: indexhtml +%define tde_aboutlabel Mageia 2 +%define tde_aboutpage /usr/share/mga/about/index.html +%endif + +# Mandriva 2011 Theme: "rosa" +%if "%{?mdkversion}" == "201100" +Requires: mandriva-theme +%define tde_bg /usr/share/mdk/backgrounds/default.jpg +%define tde_starticon /usr/share/icons/mandriva.png + +Requires: indexhtml +%define tde_aboutlabel Mandriva 2011 +%define tde_aboutpage /usr/share/mdk/about/index.html +%endif + +BuildRequires: cmake >= 2.8 +BuildRequires: tqtinterface-devel +BuildRequires: trinity-arts-devel +BuildRequires: trinity-kdelibs-devel +BuildRequires: gcc-c++ make +BuildRequires: qt%{?_qt_suffix}-devel +BuildRequires: openssl-devel +BuildRequires: imake +BuildRequires: OpenEXR-devel +BuildRequires: libsmbclient-devel +BuildRequires: dbus-devel +BuildRequires: dbus-tqt-devel +BuildRequires: lm_sensors-devel +BuildRequires: libfontenc-devel +BuildRequires: hal-devel +BuildRequires: audiofile-devel alsa-lib-devel +BuildRequires: libraw1394-devel +BuildRequires: openldap-devel +BuildRequires: libvorbis-devel +BuildRequires: pam-devel +BuildRequires: libxkbfile-devel +BuildRequires: libusb-devel +BuildRequires: esound-devel +BuildRequires: glib2-devel +BuildRequires: nas-devel +BuildRequires: pcre-devel +BuildRequires: avahi-tqt-devel + +%if 0%{?rhel} >= 6 || 0%{?fedora} >= 15 || 0%{?mgaversion} || 0%{?mdkversion} +BuildRequires: libudev-devel +%endif + +%if 0%{?fedora} >= 17 +BuildRequires: perl-Digest-MD5 +%endif + +%if 0%{?mgaversion} || 0%{?mdkversion} +BuildRequires: %{_lib}avahi-client-devel +BuildRequires: %{_lib}jack-devel +BuildRequires: %{_lib}xcomposite%{?mgaversion:1}-devel +BuildRequires: %{_lib}xdamage-devel +BuildRequires: %{_lib}xdmcp%{?mgaversion:6}-devel +BuildRequires: %{_lib}xtst-devel +BuildRequires: x11-font-util +BuildRequires: x11-proto-devel +BuildRequires: %{_lib}xscrnsaver%{?mgaversion:1}-devel +Requires: %{_lib}avahi-client3 +%else +BuildRequires: avahi-devel +BuildRequires: jack-audio-connection-kit-devel +BuildRequires: libXcomposite-devel +BuildRequires: libXdamage-devel +BuildRequires: libXdmcp-devel +BuildRequires: libXtst-devel +BuildRequires: xorg-x11-font-utils +BuildRequires: xorg-x11-proto-devel +%if 0%{?rhel} == 5 +BuildRequires: gnome-screensaver +%else +BuildRequires: xscreensaver +%endif +Requires: avahi-qt3 +%endif + +# tdebase is a metapackage that installs all sub-packages +Requires: %{name}-runtime-data-common = %{version}-%{release} +Requires: %{name}-data = %{version}-%{release} +Requires: %{name}-bin = %{version}-%{release} +Requires: %{name}-kio-plugins = %{version}-%{release} +Requires: %{name}-kio-pim-plugins = %{version}-%{release} +Requires: trinity-kappfinder = %{version}-%{release} +Requires: trinity-kate = %{version}-%{release} +Requires: trinity-kwrite = %{version}-%{release} +Requires: trinity-kcontrol = %{version}-%{release} +Requires: trinity-kdepasswd = %{version}-%{release} +Requires: trinity-tdeprint = %{version}-%{release} +Requires: trinity-kdesktop = %{version}-%{release} +Requires: trinity-tdm = %{version}-%{release} +Requires: trinity-kfind = %{version}-%{release} +Requires: trinity-khelpcenter = %{version}-%{release} +Requires: trinity-kicker = %{version}-%{release} +Requires: trinity-klipper = %{version}-%{release} +Requires: trinity-kmenuedit = %{version}-%{release} +Requires: trinity-konqueror = %{version}-%{release} +Requires: trinity-konqueror-nsplugins = %{version}-%{release} +Requires: trinity-konsole = %{version}-%{release} +Requires: trinity-kpager = %{version}-%{release} +Requires: trinity-kpersonalizer = %{version}-%{release} +Requires: trinity-ksmserver = %{version}-%{release} +Requires: trinity-ksplash = %{version}-%{release} +Requires: trinity-ksysguard = %{version}-%{release} +Requires: trinity-ksysguardd = %{version}-%{release} +Requires: trinity-ktip = %{version}-%{release} +Requires: trinity-twin = %{version}-%{release} +Requires: trinity-libkonq = %{version}-%{release} +Requires: %{name}-libtqt3-integration = %{version}-%{release} + +Requires: tqtinterface +Requires: trinity-arts +Requires: trinity-kdelibs +Requires: qt%{?_qt_suffix} +Requires: openssl +Requires: avahi +Requires: dbus-tqt + +# RHEL 6 Configuration files are provided in separate packages +%if 0%{?rhel} || 0%{?fedora} +%if "%{?tde_prefix}" == "/usr" +Requires: kde-settings-kdm +%endif +Requires: redhat-menus +%endif + +%description +TDE (the Trinity Desktop Environment) is a powerful Open Source graphical +desktop environment for Unix workstations. It combines ease of use, +contemporary functionality, and outstanding graphical design with the +technological superiority of the Unix operating system. + +This metapackage includes the nucleus of TDE, namely the minimal package +set necessary to run TDE as a desktop environment. This includes the +window manager, taskbar, control center, a text editor, file manager, +web browser, X terminal emulator, and many other programs and components. + +%files +%defattr(-,root,root,-) +%doc AUTHORS COPYING COPYING-DOCS README README.pam + +########## + +%package devel +Summary: %{summary} - Development files +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} +Requires: trinity-kdelibs-devel + +Requires: %{name}-bin-devel = %{version}-%{release} +Requires: trinity-kate-devel = %{version}-%{release} +Requires: trinity-kcontrol-devel = %{version}-%{release} +Requires: trinity-kdesktop-devel = %{version}-%{release} +Requires: trinity-kicker-devel = %{version}-%{release} +Requires: trinity-konqueror-devel = %{version}-%{release} +Requires: trinity-ksplash-devel = %{version}-%{release} +Requires: trinity-ksysguard-devel = %{version}-%{release} +Requires: trinity-libkonq-devel = %{version}-%{release} +Requires: trinity-tdm-devel = %{version}-%{release} +Requires: trinity-twin-devel = %{version}-%{release} + +Provides: trinity-kdebase-devel = %{version}-%{release} +Obsoletes: trinity-kdebase-devel < %{version}-%{release} +Provides: tdebase-devel = %{version}-%{release} +Obsoletes: tdebase-devel < %{version}-%{release} + +Obsoletes: trinity-kdebase-cmake < %{version}-%{release} +Obsoletes: tdebase-cmake < %{version}-%{release} + +%description devel +This is a meta-package that installs all tdebase development packages. + +Header files for developing applications using %{name}. +Install tdebase-devel if you want to develop or compile Konqueror, +Kate plugins or KWin styles. + +%files devel +%{tde_datadir}/cmake/*.cmake + +########## + +%package kio-pim-plugins +Summary: PIM KIOslaves from %{name} +Group: Environment/Libraries + +Provides: trinity-kdebase-pim-ioslaves = %{version}-%{release} +Obsoletes: trinity-kdebase-pim-ioslaves < %{version}-%{release} +Provides: tdebase-kio-pim-plugins = %{version}-%{release} +Obsoletes: tdebase-kio-pim-plugins < %{version}-%{release} + +%description kio-pim-plugins +Protocol handlers (KIOslaves) for personal information management, including: + * kio_ldap + * kio_nntp + * kio_pop3 + * kio_smtp + +%files kio-pim-plugins +%defattr(-,root,root,-) +%{tde_tdelibdir}/kio_ldap.la +%{tde_tdelibdir}/kio_ldap.so +%{tde_tdelibdir}/kio_nntp.la +%{tde_tdelibdir}/kio_nntp.so +%{tde_tdelibdir}/kio_pop3.la +%{tde_tdelibdir}/kio_pop3.so +%{tde_tdelibdir}/kio_smtp.la +%{tde_tdelibdir}/kio_smtp.so +%{tde_datadir}/services/ldap.protocol +%{tde_datadir}/services/ldaps.protocol +%{tde_datadir}/services/nntp.protocol +%{tde_datadir}/services/nntps.protocol +%{tde_datadir}/services/pop3.protocol +%{tde_datadir}/services/pop3s.protocol +%{tde_datadir}/services/smtp.protocol +%{tde_datadir}/services/smtps.protocol + +########## + +%package runtime-data-common +Summary: Shared common files for Trinity and KDE4 +Group: Environment/Libraries + +Provides: tdebase-runtime-data-common = %{version}-%{release} +Obsoletes: tdebase-runtime-data-common < %{version}-%{release} + +%description runtime-data-common +Shared common files for both Trinity and KDE4 +Such as the desktop right-click-"Create New" list + +%files runtime-data-common +%defattr(-,root,root,-) +%{tde_datadir}/autostart/khotkeys.desktop +%{tde_datadir}/desktop-directories/* +%{tde_datadir}/icons/hicolor/*/apps/kxkb.png +%{tde_datadir}/icons/hicolor/*/apps/knetattach.* +%{tde_datadir}/icons/hicolor/*/apps/khotkeys.png +%{tde_datadir}/icons/hicolor/*/apps/kmenuedit.png +%{tde_datadir}/icons/hicolor/*/apps/ksplash.png +%{tde_datadir}/locale/en_US/entry.desktop +%{tde_datadir}/locale/l10n/*.desktop +%{tde_datadir}/locale/l10n/*/entry.desktop +%{tde_datadir}/locale/l10n/*/flag.png +%{tde_datadir}/sounds/pop.wav +%{tde_datadir}/templates + +%post runtime-data-common +for f in hicolor ; do + touch --no-create %{tde_datadir}/icons/${f} 2> /dev/null || : + gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} 2> /dev/null || : +done + +%postun runtime-data-common +for f in hicolor ; do + touch --no-create %{tde_datadir}/icons/${f} 2> /dev/null || : + gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} 2> /dev/null || : +done + +########## + +%package -n trinity-kappfinder +Summary: non-KDE application finder for KDE +Group: Applications/Utilities +Requires: %{name}-data = %{version}-%{release} + +%description -n trinity-kappfinder +kappfinder searches your workstation for many common applications and +creates menu entries for them. + +%files -n trinity-kappfinder +%defattr(-,root,root,-) +%{tde_bindir}/kappfinder +%{tde_tdeappdir}/kappfinder.desktop +%{tde_datadir}/applnk/System/kappfinder.desktop +%{tde_datadir}/apps/kappfinder +%{tde_datadir}/icons/hicolor/*/apps/kappfinder.png + +%post -n trinity-kappfinder +for f in hicolor ; do + touch --no-create %{tde_datadir}/icons/${f} 2> /dev/null || : + gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} 2> /dev/null || : +done +update-desktop-database %{tde_appdir} 2> /dev/null || : + +%postun -n trinity-kappfinder +for f in hicolor ; do + touch --no-create %{tde_datadir}/icons/${f} 2> /dev/null || : + gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} 2> /dev/null || : +done +update-desktop-database %{tde_appdir} 2> /dev/null || : + +########## + +%package -n trinity-libkateinterfaces +Summary: Common libraries used by kwrite and kate +Group: Environment/Libraries + +%description -n trinity-libkateinterfaces +%{summary} + +%files -n trinity-libkateinterfaces +%{tde_libdir}/libkateinterfaces.so.* + +########## + +%package -n trinity-kate +Summary: advanced text editor for TDE +Group: Applications/Text +Requires: %{name}-data = %{version}-%{release} +Requires: trinity-kwrite = %{version}-%{release} +Requires: trinity-libkateinterfaces = %{version}-%{release} + +%description -n trinity-kate +Kate is a multi document editor, based on a rewritten version of the kwrite +editing widget of TDE. + +It is a multi-view editor that lets you view several instances of the same +document with all instances being synced, or view more files at the same +time for easy reference or simultaneous editing. The terminal emulation +and sidebar are docked windows that can be plugged out of the main window, +or replaced therein according to your preference. + +Some random features: +* Editing of big files +* Extensible syntax highlighting +* Folding +* Dynamic word wrap +* Selectable encoding +* Filter command +* Global grep dialog + +%files -n trinity-kate +%defattr(-,root,root,-) +%{tde_bindir}/kate +%{tde_tdelibdir}/kate.la +%{tde_tdelibdir}/kate.so +%{tde_libdir}/libkateutils.so.* +%{tde_libdir}/lib[kt]deinit_kate.la +%{tde_libdir}/lib[kt]deinit_kate.so +%{tde_tdeappdir}/kate.desktop +%{tde_datadir}/apps/kate/ +%{tde_datadir}/apps/kconf_update/kate-2.4.upd +%{tde_datadir}/config/katerc +%{tde_datadir}/icons/hicolor/*/apps/kate.png +%{tde_datadir}/icons/hicolor/*/apps/kate2.svgz +%{tde_datadir}/servicetypes/kateplugin.desktop +%{tde_tdedocdir}/HTML/en/kate/ + +%post -n trinity-kate +for f in hicolor ; do + touch --no-create %{tde_datadir}/icons/${f} 2> /dev/null || : + gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} 2> /dev/null || : +done +update-desktop-database %{tde_appdir} 2> /dev/null || : +/sbin/ldconfig || : + +%postun -n trinity-kate +for f in hicolor ; do + touch --no-create %{tde_datadir}/icons/${f} 2> /dev/null || : + gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} 2> /dev/null || : +done +update-desktop-database %{tde_appdir} 2> /dev/null || : +/sbin/ldconfig || : + +########## + +%package -n trinity-kate-devel +Summary: Development files for kate +Group: Development/Libraries +Requires: trinity-kate = %{version}-%{release} + +%description -n trinity-kate-devel +%{summary} + +%files -n trinity-kate-devel +%{tde_tdeincludedir}/kate/ +%{tde_libdir}/libkateutils.so +%{tde_libdir}/libkateutils.la +%{tde_libdir}/libkateinterfaces.so +%{tde_libdir}/libkateinterfaces.la + +%post -n trinity-kate-devel +/sbin/ldconfig || : + +%postun -n trinity-kate-devel +/sbin/ldconfig || : + +########## + +%package -n trinity-kwrite +Summary: advanced text editor for TDE +Group: Applications/Utilities +Requires: %{name}-data = %{version}-%{release} +Requires: trinity-libkateinterfaces = %{version}-%{release} + +%description -n trinity-kwrite +Kwrite is a text editor for TDE. + +%files -n trinity-kwrite +%defattr(-,root,root,-) +%{tde_bindir}/kwrite +%{tde_tdelibdir}/kwrite.la +%{tde_tdelibdir}/kwrite.so +%{tde_libdir}/lib[kt]deinit_kwrite.la +%{tde_libdir}/lib[kt]deinit_kwrite.so +%{tde_tdeappdir}/kwrite.desktop +%{tde_datadir}/apps/kwrite/kwriteui.rc +%{tde_datadir}/icons/hicolor/*/apps/kwrite.png +%{tde_datadir}/icons/hicolor/*/apps/kwrite2.svgz +%{tde_tdedocdir}/HTML/en/kwrite/ + + +%post -n trinity-kwrite +for f in hicolor ; do + touch --no-create %{tde_datadir}/icons/${f} 2> /dev/null || : + gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} 2> /dev/null || : +done +update-desktop-database %{tde_appdir} 2> /dev/null || : + +%postun -n trinity-kwrite +for f in hicolor ; do + touch --no-create %{tde_datadir}/icons/${f} 2> /dev/null || : + gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} 2> /dev/null || : +done +update-desktop-database %{tde_appdir} 2> /dev/null || : + +########## + +%package -n trinity-kcontrol +Summary: control center for TDE +Group: Applications/Utilities +Requires: %{name}-data = %{version}-%{release} +Requires: hwdata +Requires: usbutils + +%description -n trinity-kcontrol +The TDE Control Center provides you with a centralized and convenient +way to configure all of your TDE settings. + +It is made up of multiple modules. Each module is a separate application, +but the control center organizes all of these programs into a convenient +location. + +In combination with udev KControl supports the advanced +configuration of Logitech mice, though the user must be a member of the +plugdev group. + +%files -n trinity-kcontrol +%defattr(-,root,root,-) +%{tde_bindir}/kaccess +%{tde_bindir}/kcontrol +%{tde_bindir}/kdeinstallktheme +%{tde_bindir}/keditfiletype +%{tde_bindir}/kfontinst +%{tde_bindir}/kfontview +%{tde_bindir}/kinfocenter +%{tde_bindir}/klocaldomainurifilterhelper +%{tde_bindir}/krdb +%{tde_tdelibdir}/fontthumbnail.la +%{tde_tdelibdir}/fontthumbnail.so +%{tde_tdelibdir}/kaccess.la +%{tde_tdelibdir}/kaccess.so +%{tde_tdelibdir}/kcm_access.la +%{tde_tdelibdir}/kcm_access.so +%{tde_tdelibdir}/kcm_arts.la +%{tde_tdelibdir}/kcm_arts.so +%{tde_tdelibdir}/kcm_background.la +%{tde_tdelibdir}/kcm_background.so +%{tde_tdelibdir}/kcm_bell.la +%{tde_tdelibdir}/kcm_bell.so +%{tde_tdelibdir}/kcm_clock.la +%{tde_tdelibdir}/kcm_clock.so +%{tde_tdelibdir}/kcm_colors.la +%{tde_tdelibdir}/kcm_colors.so +%{tde_tdelibdir}/kcm_componentchooser.la +%{tde_tdelibdir}/kcm_componentchooser.so +%{tde_tdelibdir}/kcm_crypto.la +%{tde_tdelibdir}/kcm_crypto.so +%{tde_tdelibdir}/kcm_css.la +%{tde_tdelibdir}/kcm_css.so +%{tde_tdelibdir}/kcm_display.la +%{tde_tdelibdir}/kcm_display.so +%{tde_tdelibdir}/kcm_energy.la +%{tde_tdelibdir}/kcm_energy.so +%{tde_tdelibdir}/kcm_filetypes.la +%{tde_tdelibdir}/kcm_filetypes.so +%{tde_tdelibdir}/kcm_fontinst.la +%{tde_tdelibdir}/kcm_fontinst.so +%{tde_tdelibdir}/kcm_fonts.la +%{tde_tdelibdir}/kcm_fonts.so +#%{tde_tdelibdir}/kcm_hwmanager.la +#%{tde_tdelibdir}/kcm_hwmanager.so +%{tde_tdelibdir}/kcm_icons.la +%{tde_tdelibdir}/kcm_icons.so +%{tde_tdelibdir}/kcm_info.la +%{tde_tdelibdir}/kcm_info.so +%{tde_tdelibdir}/kcm_input.la +%{tde_tdelibdir}/kcm_input.so +%{tde_tdelibdir}/kcm_ioslaveinfo.la +%{tde_tdelibdir}/kcm_ioslaveinfo.so +%{tde_tdelibdir}/kcm_joystick.la +%{tde_tdelibdir}/kcm_joystick.so +%{tde_tdelibdir}/kcm_kded.la +%{tde_tdelibdir}/kcm_kded.so +%{tde_tdelibdir}/kcm_[kt]dm.la +%{tde_tdelibdir}/kcm_[kt]dm.so +%{tde_tdelibdir}/kcm_kdnssd.so +%{tde_tdelibdir}/kcm_kdnssd.la +%{tde_tdelibdir}/kcm_keys.la +%{tde_tdelibdir}/kcm_keys.so +%{tde_tdelibdir}/kcm_kicker.la +%{tde_tdelibdir}/kcm_kicker.so +%{tde_tdelibdir}/kcm_kio.la +%{tde_tdelibdir}/kcm_kio.so +%{tde_tdelibdir}/kcm_knotify.la +%{tde_tdelibdir}/kcm_knotify.so +%{tde_tdelibdir}/kcm_konqhtml.la +%{tde_tdelibdir}/kcm_konqhtml.so +%{tde_tdelibdir}/kcm_konq.la +%{tde_tdelibdir}/kcm_konq.so +%{tde_tdelibdir}/kcm_kthememanager.la +%{tde_tdelibdir}/kcm_kthememanager.so +%{tde_tdelibdir}/kcm_kurifilt.la +%{tde_tdelibdir}/kcm_kurifilt.so +%{tde_tdelibdir}/kcm_launch.la +%{tde_tdelibdir}/kcm_launch.so +%{tde_tdelibdir}/kcm_locale.la +%{tde_tdelibdir}/kcm_locale.so +%{tde_tdelibdir}/kcm_nic.la +%{tde_tdelibdir}/kcm_nic.so +%{tde_tdelibdir}/kcm_performance.la +%{tde_tdelibdir}/kcm_performance.so +%{tde_tdelibdir}/kcm_privacy.la +%{tde_tdelibdir}/kcm_privacy.so +%{tde_tdelibdir}/kcm_samba.la +%{tde_tdelibdir}/kcm_samba.so +%{tde_tdelibdir}/kcm_screensaver.la +%{tde_tdelibdir}/kcm_screensaver.so +%{tde_tdelibdir}/kcm_smserver.la +%{tde_tdelibdir}/kcm_smserver.so +%{tde_tdelibdir}/kcm_spellchecking.la +%{tde_tdelibdir}/kcm_spellchecking.so +%{tde_tdelibdir}/kcm_style.la +%{tde_tdelibdir}/kcm_style.so +%{tde_tdelibdir}/kcm_taskbar.la +%{tde_tdelibdir}/kcm_taskbar.so +%{tde_tdelibdir}/kcm_usb.la +%{tde_tdelibdir}/kcm_usb.so +%{tde_tdelibdir}/kcm_view1394.la +%{tde_tdelibdir}/kcm_view1394.so +%{tde_tdelibdir}/kcm_xinerama.la +%{tde_tdelibdir}/kcm_xinerama.so +%{tde_tdelibdir}/kcontrol.la +%{tde_tdelibdir}/kcontrol.so +%{tde_tdelibdir}/kfile_font.la +%{tde_tdelibdir}/kfile_font.so +%{tde_tdelibdir}/kio_fonts.la +%{tde_tdelibdir}/kio_fonts.so +%{tde_tdelibdir}/kstyle_keramik_config.la +%{tde_tdelibdir}/kstyle_keramik_config.so +%{tde_tdelibdir}/libkfontviewpart.la +%{tde_tdelibdir}/libkfontviewpart.so +%{tde_tdelibdir}/libkshorturifilter.la +%{tde_tdelibdir}/libkshorturifilter.so +%{tde_tdelibdir}/libkuriikwsfilter.la +%{tde_tdelibdir}/libkuriikwsfilter.so +%{tde_tdelibdir}/libkurisearchfilter.la +%{tde_tdelibdir}/libkurisearchfilter.so +%{tde_tdelibdir}/liblocaldomainurifilter.la +%{tde_tdelibdir}/liblocaldomainurifilter.so +%{tde_libdir}/lib[kt]deinit_kaccess.la +%{tde_libdir}/lib[kt]deinit_kaccess.so +%{tde_libdir}/lib[kt]deinit_kcontrol.la +%{tde_libdir}/lib[kt]deinit_kcontrol.so +%{tde_libdir}/libkfontinst.so.* +%{tde_tdeappdir}/arts.desktop +%{tde_tdeappdir}/background.desktop +%{tde_tdeappdir}/bell.desktop +%{tde_tdeappdir}/cache.desktop +%{tde_tdeappdir}/cdinfo.desktop +%{tde_tdeappdir}/clock.desktop +%{tde_tdeappdir}/colors.desktop +%{tde_tdeappdir}/componentchooser.desktop +%{tde_tdeappdir}/cookies.desktop +%{tde_tdeappdir}/crypto.desktop +%{tde_tdeappdir}/desktopbehavior.desktop +%{tde_tdeappdir}/desktop.desktop +%{tde_tdeappdir}/desktoppath.desktop +%{tde_tdeappdir}/devices.desktop +%{tde_tdeappdir}/display.desktop +%{tde_tdeappdir}/dma.desktop +%{tde_tdeappdir}/ebrowsing.desktop +%{tde_tdeappdir}/filebrowser.desktop +%{tde_tdeappdir}/filetypes.desktop +%{tde_tdeappdir}/fonts.desktop +#%{tde_tdeappdir}/hwmanager.desktop +%{tde_tdeappdir}/icons.desktop +%{tde_tdeappdir}/installktheme.desktop +%{tde_tdeappdir}/interrupts.desktop +%{tde_tdeappdir}/ioports.desktop +%{tde_tdeappdir}/ioslaveinfo.desktop +%{tde_tdeappdir}/joystick.desktop +%{tde_tdeappdir}/kcm_kdnssd.desktop +%{tde_tdeappdir}/kcmaccess.desktop +%{tde_tdeappdir}/kcmcss.desktop +%{tde_tdeappdir}/kcmfontinst.desktop +%{tde_tdeappdir}/kcmkded.desktop +%{tde_tdeappdir}/kcmlaunch.desktop +%{tde_tdeappdir}/kcmnotify.desktop +%{tde_tdeappdir}/kcmperformance.desktop +%{tde_tdeappdir}/kcmsmserver.desktop +%{tde_tdeappdir}/kcmtaskbar.desktop +%{tde_tdeappdir}/kcmusb.desktop +%{tde_tdeappdir}/kcmview1394.desktop +%{tde_tdeappdir}/KControl.desktop +%{tde_tdeappdir}/[kt]dm.desktop +%{tde_tdeappdir}/keys.desktop +%{tde_tdeappdir}/kfontview.desktop +%{tde_tdeappdir}/khtml_behavior.desktop +%{tde_tdeappdir}/khtml_fonts.desktop +%{tde_tdeappdir}/khtml_java_js.desktop +%{tde_tdeappdir}/kinfocenter.desktop +%{tde_tdeappdir}/kthememanager.desktop +%{tde_tdeappdir}/lanbrowser.desktop +%{tde_tdeappdir}/language.desktop +%{tde_tdeappdir}/media.desktop +%{tde_tdeappdir}/memory.desktop +%{tde_tdeappdir}/mouse.desktop +%{tde_tdeappdir}/netpref.desktop +%{tde_tdeappdir}/nic.desktop +%{tde_tdeappdir}/opengl.desktop +%{tde_tdeappdir}/panel_appearance.desktop +%{tde_tdeappdir}/panel.desktop +%{tde_tdeappdir}/partitions.desktop +%{tde_tdeappdir}/pci.desktop +%{tde_tdeappdir}/privacy.desktop +%{tde_tdeappdir}/processor.desktop +%{tde_tdeappdir}/proxy.desktop +%{tde_tdeappdir}/screensaver.desktop +%{tde_tdeappdir}/scsi.desktop +%{tde_tdeappdir}/smbstatus.desktop +%{tde_tdeappdir}/sound.desktop +%{tde_tdeappdir}/spellchecking.desktop +%{tde_tdeappdir}/style.desktop +%{tde_tdeappdir}/useragent.desktop +%{tde_tdeappdir}/xserver.desktop +%{tde_datadir}/applnk/.hidden/energy.desktop +%{tde_datadir}/applnk/.hidden/fileappearance.desktop +%{tde_datadir}/applnk/.hidden/filebehavior.desktop +%{tde_datadir}/applnk/.hidden/filepreviews.desktop +%{tde_datadir}/applnk/.hidden/kcmkonqyperformance.desktop +%{tde_datadir}/applnk/.hidden/kicker_config_appearance.desktop +%{tde_datadir}/applnk/.hidden/kicker_config.desktop +%{tde_datadir}/applnk/.hidden/smb.desktop +%{tde_datadir}/applnk/.hidden/xinerama.desktop +%{tde_datadir}/applnk/Settings/LookNFeel/ +%{tde_datadir}/applnk/Settings/WebBrowsing/khtml_appearance.desktop +%{tde_datadir}/applnk/Settings/WebBrowsing/nsplugin.desktop +%{tde_datadir}/applnk/Settings/WebBrowsing/smb.desktop +%{tde_datadir}/apps/kcm_componentchooser/kcm_browser.desktop +%{tde_datadir}/apps/kcm_componentchooser/kcm_kemail.desktop +%{tde_datadir}/apps/kcm_componentchooser/kcm_terminal.desktop +%{tde_datadir}/apps/konqsidebartng/virtual_folders/services/fonts.desktop +%{tde_datadir}/apps/konqueror/servicemenus/installfont.desktop +%{tde_datadir}/mimelnk/application/x-ktheme.desktop +%{tde_datadir}/mimelnk/fonts/folder.desktop +%{tde_datadir}/mimelnk/fonts/package.desktop +%{tde_datadir}/mimelnk/fonts/system-folder.desktop +%{tde_datadir}/services/fonts.protocol +%{tde_datadir}/services/fontthumbnail.desktop +%{tde_datadir}/services/kaccess.desktop +%{tde_datadir}/services/kfile_font.desktop +%{tde_datadir}/services/kfontviewpart.desktop +%{tde_datadir}/services/kshorturifilter.desktop +%{tde_datadir}/services/kuriikwsfilter.desktop +%{tde_datadir}/services/kurisearchfilter.desktop +%{tde_datadir}/services/localdomainurifilter.desktop + +%{tde_datadir}/apps/usb.ids +%{tde_datadir}/apps/kcmview1394/oui.db + +# The following features are not compiled under RHEL 5 +%if 0%{?rhel} >= 6 || 0%{?fedora} >= 15 +%{tde_bindir}/krandrtray +%{tde_tdelibdir}/kcm_displayconfig.la +%{tde_tdelibdir}/kcm_displayconfig.so +%{tde_tdelibdir}/kcm_iccconfig.la +%{tde_tdelibdir}/kcm_iccconfig.so +%{tde_tdelibdir}/kcm_randr.la +%{tde_tdelibdir}/kcm_randr.so +%{tde_tdeappdir}/displayconfig.desktop +%{tde_tdeappdir}/iccconfig.desktop +%{tde_tdeappdir}/krandrtray.desktop +%{tde_datadir}/applnk/.hidden/randr.desktop +%{tde_datadir}/autostart/krandrtray-autostart.desktop +%endif + +%post -n trinity-kcontrol +/sbin/ldconfig || : +update-desktop-database %{tde_appdir} 2> /dev/null || : + +%postun -n trinity-kcontrol +/sbin/ldconfig || : +update-desktop-database %{tde_appdir} 2> /dev/null || : + +########## + +%package -n trinity-kcontrol-devel +Summary: Development files for kcontrol +Group: Development/Libraries +Requires: trinity-kcontrol = %{version}-%{release} + +%description -n trinity-kcontrol-devel +%{summary} + +%files -n trinity-kcontrol-devel +%{tde_libdir}/libkfontinst.la +%{tde_libdir}/libkfontinst.so + +%post -n trinity-kcontrol-devel +/sbin/ldconfig || : + +%postun -n trinity-kcontrol-devel +/sbin/ldconfig || : + +########## + +%package bin +Summary: core binaries for the TDE base module +Group: Applications/Utilities +Requires: %{name}-data = %{version}-%{release} +Requires: pam + +Provides: tdebase-bin = %{version}-%{release} +Obsoletes: tdebase-bin < %{version}-%{release} + +%description bin +This package contains miscellaneous programs needed by other +TDE applications, particularly those in the TDE base module. + +%files bin +%defattr(-,root,root,-) +%{tde_bindir}/krootbacking +#%{tde_bindir}/tdeinit_phase1 +%attr(4511,root,root) %{tde_bindir}/[kt]dmtsak +%{tde_bindir}/tsak +%{tde_bindir}/kdebugdialog +%{tde_bindir}/kreadconfig +%{tde_bindir}/kwriteconfig +%{tde_bindir}/kstart +%{tde_datadir}/config/kxkb_groups +%{tde_bindir}/drkonqi +%{tde_bindir}/kapplymousetheme +%{tde_bindir}/kblankscrn.kss +%attr(4755,root,root) %{tde_bindir}/kcheckpass +%{tde_bindir}/kcminit +%{tde_bindir}/kcminit_startup +%{tde_bindir}/kdcop +%{tde_bindir}/[kt]desu +%attr(0755,root,root) %{tde_bindir}/[kt]desud +%{tde_bindir}/kdialog +%{tde_bindir}/khotkeys +%{tde_bindir}/knetattach +%{tde_bindir}/krandom.kss +%{tde_bindir}/ksystraycmd +%{tde_bindir}/kxkb +%{tde_libdir}/kconf_update_bin/khotkeys_update +%{tde_tdelibdir}/kcminit.la +%{tde_tdelibdir}/kcminit.so +%{tde_tdelibdir}/kcminit_startup.la +%{tde_tdelibdir}/kcminit_startup.so +%{tde_tdelibdir}/kcm_keyboard.la +%{tde_tdelibdir}/kcm_keyboard.so +%{tde_tdelibdir}/kcm_khotkeys_init.la +%{tde_tdelibdir}/kcm_khotkeys_init.so +%{tde_tdelibdir}/kcm_khotkeys.la +%{tde_tdelibdir}/kcm_khotkeys.so +%{tde_tdelibdir}/kded_khotkeys.la +%{tde_tdelibdir}/kded_khotkeys.so +%{tde_tdelibdir}/kgreet_classic.la +%{tde_tdelibdir}/kgreet_classic.so +%{tde_tdelibdir}/kgreet_winbind.la +%{tde_tdelibdir}/kgreet_winbind.so +%{tde_tdelibdir}/khotkeys.la +%{tde_tdelibdir}/khotkeys.so +%{tde_tdelibdir}/khotkeys_arts.la +%{tde_tdelibdir}/khotkeys_arts.so +%{tde_tdelibdir}/kxkb.la +%{tde_tdelibdir}/kxkb.so +%{tde_libdir}/lib[kt]deinit_kcminit.la +%{tde_libdir}/lib[kt]deinit_kcminit.so +%{tde_libdir}/lib[kt]deinit_kcminit_startup.la +%{tde_libdir}/lib[kt]deinit_kcminit_startup.so +%{tde_libdir}/lib[kt]deinit_khotkeys.la +%{tde_libdir}/lib[kt]deinit_khotkeys.so +%{tde_libdir}/lib[kt]deinit_kxkb.la +%{tde_libdir}/lib[kt]deinit_kxkb.so +%{tde_libdir}/libkhotkeys_shared.so.* +%{tde_tdeappdir}/keyboard.desktop +%{tde_tdeappdir}/keyboard_layout.desktop +%{tde_tdeappdir}/khotkeys.desktop +%{tde_tdeappdir}/knetattach.desktop +%{tde_datadir}/applnk/System/ScreenSavers/ +%{tde_datadir}/apps/drkonqi/ +%{tde_datadir}/apps/kconf_update/khotkeys_32b1_update.upd +%{tde_datadir}/apps/kconf_update/khotkeys_printscreen.upd +%{tde_datadir}/apps/kconf_update/konqueror_gestures_trinity21_update.upd +%{tde_datadir}/apps/kdcop/kdcopui.rc +%{tde_datadir}/apps/khotkeys/ +%{tde_datadir}/services/kded/khotkeys.desktop +%{tde_datadir}/services/kxkb.desktop +%{_sysconfdir}/pam.d/kcheckpass-trinity +%{_sysconfdir}/pam.d/kscreensaver-trinity +%{tde_tdedocdir}/HTML/en/kdcop/ +%{tde_tdedocdir}/HTML/en/kdebugdialog// +%{tde_tdedocdir}/HTML/en/[kt]desu/ +%{tde_tdedocdir}/HTML/en/knetattach/ +%{tde_tdedocdir}/HTML/en/kxkb/ + +%post bin +/sbin/ldconfig || : +update-desktop-database %{tde_appdir} 2> /dev/null || : + +%postun bin +/sbin/ldconfig || : +update-desktop-database %{tde_appdir} 2> /dev/null || : + +########## + +%package bin-devel +Summary: Development files for core binaries for the TDE base module +Group: Development/Libraries +Requires: %{name}-bin = %{version}-%{release} + +Obsoletes: tdebase-bin-devel < %{version}-%{release} +Provides: tdebase-bin-devel = %{version}-%{release} + +%description bin-devel +%{summary} + +%files bin-devel +%{tde_libdir}/libkhotkeys_shared.la +%{tde_libdir}/libkhotkeys_shared.so + +%post bin-devel +/sbin/ldconfig || : + +%postun bin-devel +/sbin/ldconfig || : + +########## + +%package data +Summary: shared data files for the TDE base module +Group: Environment/Libraries +Requires: %{name}-runtime-data-common = %{version}-%{release} + +Obsoletes: tdebase-data < %{version}-%{release} +Provides: tdebase-data = %{version}-%{release} + +%description data +This package contains the architecture-independent shared data files +needed for a basic TDE desktop installation. + +%files data +%defattr(-,root,root,-) +%{tde_datadir}/config/kshorturifilterrc +%{tde_datadir}/applnk/.hidden/battery.desktop +%{tde_datadir}/applnk/.hidden/bwarning.desktop +%{tde_datadir}/applnk/.hidden/cwarning.desktop +%{tde_datadir}/applnk/.hidden/.directory +%{tde_datadir}/applnk/.hidden/email.desktop +%{tde_datadir}/applnk/.hidden/kcmkonq.desktop +%{tde_datadir}/applnk/.hidden/kcmkxmlrpcd.desktop +%{tde_datadir}/applnk/.hidden/konqhtml.desktop +%{tde_datadir}/applnk/.hidden/passwords.desktop +%{tde_datadir}/applnk/.hidden/power.desktop +%{tde_datadir}/applnk/.hidden/socks.desktop +%{tde_datadir}/applnk/.hidden/userinfo.desktop +%{tde_datadir}/applnk/.hidden/virtualdesktops.desktop +%{tde_datadir}/apps/kaccess/eventsrc +%{tde_datadir}/apps/kcmcss/template.css +%{tde_datadir}/apps/kcminput/ +%{tde_datadir}/apps/kcmkeys/ +%{tde_datadir}/apps/kcmlocale/pics/background.png +%{tde_datadir}/apps/kconf_update/convertShortcuts.pl +%{tde_datadir}/apps/kconf_update/kaccel.upd +%{tde_datadir}/apps/kconf_update/kcmdisplayrc.upd +%{tde_datadir}/apps/kconf_update/kuriikwsfilter.upd +%{tde_datadir}/apps/kconf_update/mouse_cursor_theme.upd +%{tde_datadir}/apps/kconf_update/socks.upd +%{tde_datadir}/apps/kcontrol/ +%{tde_datadir}/apps/kdisplay/ +%{tde_datadir}/apps/kfontview/ +%{tde_datadir}/apps/kinfocenter/kinfocenterui.rc +%{tde_datadir}/apps/kthememanager/themes/* +%{tde_datadir}/icons/crystalsvg/*/apps/access.png +%{tde_datadir}/icons/crystalsvg/*/apps/acroread.png +%{tde_datadir}/icons/crystalsvg/*/apps/applixware.png +%{tde_datadir}/icons/crystalsvg/*/apps/arts.png +%{tde_datadir}/icons/crystalsvg/*/apps/background.png +%{tde_datadir}/icons/crystalsvg/*/apps/bell.png +%{tde_datadir}/icons/crystalsvg/*/apps/cache.png +%{tde_datadir}/icons/crystalsvg/*/apps/clanbomber.png +%{tde_datadir}/icons/crystalsvg/*/apps/clock.png +%{tde_datadir}/icons/crystalsvg/*/apps/colors.png +%{tde_datadir}/icons/crystalsvg/*/apps/date.png +%{tde_datadir}/icons/crystalsvg/*/apps/email.png +%{tde_datadir}/icons/crystalsvg/*/apps/energy.png +%{tde_datadir}/icons/crystalsvg/*/apps/energy_star.png +%{tde_datadir}/icons/crystalsvg/*/apps/filetypes.png +%{tde_datadir}/icons/crystalsvg/*/apps/fonts.png +%{tde_datadir}/icons/crystalsvg/*/apps/gimp.png +%{tde_datadir}/icons/crystalsvg/*/apps/help_index.png +%{tde_datadir}/icons/crystalsvg/*/apps/hwinfo.png +%{tde_datadir}/icons/crystalsvg/*/apps/kcmdevices.png +%{tde_datadir}/icons/crystalsvg/*/apps/kcmdf.png +%{tde_datadir}/icons/crystalsvg/*/apps/kcmkwm.png +%{tde_datadir}/icons/crystalsvg/*/apps/kcmmemory.png +%{tde_datadir}/icons/crystalsvg/*/apps/kcmpartitions.png +%{tde_datadir}/icons/crystalsvg/*/apps/kcmpci.png +%{tde_datadir}/icons/crystalsvg/*/apps/kcontrol.png +%{tde_datadir}/icons/crystalsvg/*/apps/[kt]dmconfig.png +%{tde_datadir}/icons/crystalsvg/*/apps/key_bindings.png +%{tde_datadir}/icons/crystalsvg/*/apps/kfm_home.png +%{tde_datadir}/icons/crystalsvg/*/apps/kscreensaver.png +%{tde_datadir}/icons/crystalsvg/*/apps/kthememgr.png +%{tde_datadir}/icons/crystalsvg/*/apps/licq.png +%{tde_datadir}/icons/crystalsvg/*/apps/linuxconf.png +%{tde_datadir}/icons/crystalsvg/*/apps/locale.png +%{tde_datadir}/icons/crystalsvg/*/apps/looknfeel.png +%{tde_datadir}/icons/crystalsvg/*/apps/multimedia.png +%{tde_datadir}/icons/crystalsvg/*/apps/netscape.png +%{tde_datadir}/icons/crystalsvg/*/apps/package_applications.png +%{tde_datadir}/icons/crystalsvg/*/apps/package_development.png +%{tde_datadir}/icons/crystalsvg/*/apps/package_favourite.png +%{tde_datadir}/icons/crystalsvg/*/apps/package_games.png +%{tde_datadir}/icons/crystalsvg/*/apps/package_multimedia.png +%{tde_datadir}/icons/crystalsvg/*/apps/package_network.png +%{tde_datadir}/icons/crystalsvg/*/apps/package.png +%{tde_datadir}/icons/crystalsvg/*/apps/package_settings.png +%{tde_datadir}/icons/crystalsvg/*/apps/package_toys.png +%{tde_datadir}/icons/crystalsvg/*/apps/package_utilities.png +%{tde_datadir}/icons/crystalsvg/*/apps/penguin.png +%{tde_datadir}/icons/crystalsvg/*/apps/personal.png +%{tde_datadir}/icons/crystalsvg/*/apps/phppg.png +%{tde_datadir}/icons/crystalsvg/*/apps/proxy.png +%{tde_datadir}/icons/crystalsvg/*/apps/pysol.png +%{tde_datadir}/icons/crystalsvg/*/apps/randr.png +%{tde_datadir}/icons/crystalsvg/*/apps/samba.png +%{tde_datadir}/icons/crystalsvg/*/apps/staroffice.png +%{tde_datadir}/icons/crystalsvg/*/apps/stylesheet.png +%{tde_datadir}/icons/crystalsvg/*/apps/terminal.png +%{tde_datadir}/icons/crystalsvg/*/apps/tux.png +%{tde_datadir}/icons/crystalsvg/*/apps/wp.png +%{tde_datadir}/icons/crystalsvg/*/apps/xclock.png +%{tde_datadir}/icons/crystalsvg/*/apps/xfmail.png +%{tde_datadir}/icons/crystalsvg/*/apps/xmag.png +%{tde_datadir}/icons/crystalsvg/*/apps/xpaint.png +%{tde_datadir}/icons/crystalsvg/scalable/apps/access.svgz +%{tde_datadir}/icons/crystalsvg/scalable/apps/acroread.svgz +%{tde_datadir}/icons/crystalsvg/scalable/apps/aim.svgz +%{tde_datadir}/icons/crystalsvg/scalable/apps/aktion.svgz +%{tde_datadir}/icons/crystalsvg/scalable/apps/antivirus.svgz +%{tde_datadir}/icons/crystalsvg/scalable/apps/applixware.svgz +%{tde_datadir}/icons/crystalsvg/scalable/apps/arts.svgz +%{tde_datadir}/icons/crystalsvg/scalable/apps/background.svgz +%{tde_datadir}/icons/crystalsvg/scalable/apps/bell.svgz +%{tde_datadir}/icons/crystalsvg/scalable/apps/browser.svgz +%{tde_datadir}/icons/crystalsvg/scalable/apps/cache.svgz +%{tde_datadir}/icons/crystalsvg/scalable/apps/camera.svgz +%{tde_datadir}/icons/crystalsvg/scalable/apps/clanbomber.svgz +%{tde_datadir}/icons/crystalsvg/scalable/apps/clock.svgz +%{tde_datadir}/icons/crystalsvg/scalable/apps/colors.svgz +%{tde_datadir}/icons/crystalsvg/scalable/apps/core.svgz +%{tde_datadir}/icons/crystalsvg/scalable/apps/date.svgz +%{tde_datadir}/icons/crystalsvg/scalable/apps/display.svgz +%{tde_datadir}/icons/crystalsvg/scalable/apps/download_manager.svgz +%{tde_datadir}/icons/crystalsvg/scalable/apps/email.svgz +%{tde_datadir}/icons/crystalsvg/scalable/apps/energy.svgz +%{tde_datadir}/icons/crystalsvg/scalable/apps/error.svgz +%{tde_datadir}/icons/crystalsvg/scalable/apps/fifteenpieces.svgz +%{tde_datadir}/icons/crystalsvg/scalable/apps/filetypes.svgz +%{tde_datadir}/icons/crystalsvg/scalable/apps/fonts.svgz +%{tde_datadir}/icons/crystalsvg/scalable/apps/galeon.svgz +%{tde_datadir}/icons/crystalsvg/scalable/apps/gnome_apps.svgz +%{tde_datadir}/icons/crystalsvg/scalable/apps/hardware.svgz +%{tde_datadir}/icons/crystalsvg/scalable/apps/hwinfo.svgz +%{tde_datadir}/icons/crystalsvg/scalable/apps/ieee1394.svgz +%{tde_datadir}/icons/crystalsvg/scalable/apps/kcmdevices.svgz +%{tde_datadir}/icons/crystalsvg/scalable/apps/kcmkwm.svgz +%{tde_datadir}/icons/crystalsvg/scalable/apps/kcmx.svgz +%{tde_datadir}/icons/crystalsvg/scalable/apps/locale.svgz +%{tde_datadir}/icons/crystalsvg/scalable/apps/my_mac.svgz +%{tde_datadir}/icons/crystalsvg/scalable/apps/netscape.svgz +%{tde_datadir}/icons/crystalsvg/scalable/apps/openoffice.svgz +%{tde_datadir}/icons/crystalsvg/scalable/apps/package_development.svgz +%{tde_datadir}/icons/crystalsvg/scalable/apps/package_toys.svgz +%{tde_datadir}/icons/crystalsvg/scalable/apps/penguin.svgz +%{tde_datadir}/icons/crystalsvg/scalable/apps/personal.svgz +%{tde_datadir}/icons/crystalsvg/scalable/apps/quicktime.svgz +%{tde_datadir}/icons/crystalsvg/scalable/apps/realplayer.svgz +%{tde_datadir}/icons/crystalsvg/scalable/apps/samba.svgz +%{tde_datadir}/icons/crystalsvg/scalable/apps/shell.svgz +%{tde_datadir}/icons/crystalsvg/scalable/apps/staroffice.svgz +%{tde_datadir}/icons/crystalsvg/scalable/apps/stylesheet.svgz +%{tde_datadir}/icons/crystalsvg/scalable/apps/terminal.svgz +%{tde_datadir}/icons/crystalsvg/scalable/apps/tux.svgz +%{tde_datadir}/icons/crystalsvg/scalable/apps/wine.svgz +%{tde_datadir}/icons/crystalsvg/scalable/apps/x.svgz +%{tde_datadir}/icons/crystalsvg/scalable/apps/xapp.svgz +%{tde_datadir}/icons/crystalsvg/scalable/apps/xcalc.svgz +%{tde_datadir}/icons/crystalsvg/scalable/apps/xchat.svgz +%{tde_datadir}/icons/crystalsvg/scalable/apps/xclock.svgz +%{tde_datadir}/icons/crystalsvg/scalable/apps/xeyes.svgz +%{tde_datadir}/icons/crystalsvg/scalable/apps/xpaint.svgz +%{tde_datadir}/icons/crystalsvg/*/devices/laptop.png +%{tde_datadir}/icons/crystalsvg/*/devices/laptop.svgz +%{tde_datadir}/icons/crystalsvg/*/actions/newfont.png +%{tde_datadir}/icons/crystalsvg/*/apps/abiword.png +%{tde_datadir}/icons/crystalsvg/*/apps/agent.png +%{tde_datadir}/icons/crystalsvg/*/apps/alevt.png +%{tde_datadir}/icons/crystalsvg/*/apps/assistant.png +%{tde_datadir}/icons/crystalsvg/*/apps/blender.png +%{tde_datadir}/icons/crystalsvg/*/apps/bluefish.png +%{tde_datadir}/icons/crystalsvg/*/apps/cookie.png +%{tde_datadir}/icons/crystalsvg/*/apps/designer.png +%{tde_datadir}/icons/crystalsvg/*/apps/dia.png +%{tde_datadir}/icons/crystalsvg/*/apps/dlgedit.png +%{tde_datadir}/icons/crystalsvg/*/apps/eclipse.png +%{tde_datadir}/icons/crystalsvg/*/apps/edu_languages.png +%{tde_datadir}/icons/crystalsvg/*/apps/edu_mathematics.png +%{tde_datadir}/icons/crystalsvg/*/apps/edu_miscellaneous.png +%{tde_datadir}/icons/crystalsvg/*/apps/edu_science.png +%{tde_datadir}/icons/crystalsvg/*/apps/emacs.png +%{tde_datadir}/icons/crystalsvg/*/apps/enhanced_browsing.png +%{tde_datadir}/icons/crystalsvg/*/apps/evolution.png +%{tde_datadir}/icons/crystalsvg/*/apps/fifteenpieces.png +%{tde_datadir}/icons/crystalsvg/*/apps/gabber.png +%{tde_datadir}/icons/crystalsvg/*/apps/gaim.png +%{tde_datadir}/icons/crystalsvg/*/apps/gnome_apps.png +%{tde_datadir}/icons/crystalsvg/*/apps/gnomemeeting.png +%{tde_datadir}/icons/crystalsvg/*/apps/gnucash.png +%{tde_datadir}/icons/crystalsvg/*/apps/gnumeric.png +%{tde_datadir}/icons/crystalsvg/*/apps/gv.png +%{tde_datadir}/icons/crystalsvg/*/apps/gvim.png +%{tde_datadir}/icons/crystalsvg/*/apps/icons.png +%{tde_datadir}/icons/crystalsvg/*/apps/iconthemes.png +%{tde_datadir}/icons/crystalsvg/*/apps/ieee1394.png +%{tde_datadir}/icons/crystalsvg/*/apps/input_devices_settings.png +%{tde_datadir}/icons/crystalsvg/*/apps/kcmkicker.png +%{tde_datadir}/icons/crystalsvg/*/apps/kcmmidi.png +%{tde_datadir}/icons/crystalsvg/*/apps/kcmprocessor.png +%{tde_datadir}/icons/crystalsvg/*/apps/kcmscsi.png +%{tde_datadir}/icons/crystalsvg/*/apps/kcmsound.png +%{tde_datadir}/icons/crystalsvg/*/apps/kcmsystem.png +%{tde_datadir}/icons/crystalsvg/*/apps/kcmx.png +%{tde_datadir}/icons/crystalsvg/*/apps/keyboard.png +%{tde_datadir}/icons/crystalsvg/*/apps/keyboard_layout.png +%{tde_datadir}/icons/crystalsvg/*/apps/knotify.png +%{tde_datadir}/icons/crystalsvg/*/apps/kvirc.png +%{tde_datadir}/icons/crystalsvg/*/apps/linguist.png +%{tde_datadir}/icons/crystalsvg/*/apps/lyx.png +%{tde_datadir}/icons/crystalsvg/*/apps/mac.png +%{tde_datadir}/icons/crystalsvg/*/apps/mathematica.png +%{tde_datadir}/icons/crystalsvg/*/apps/nedit.png +%{tde_datadir}/icons/crystalsvg/*/apps/opera.png +%{tde_datadir}/icons/crystalsvg/*/apps/package_application.png +%{tde_datadir}/icons/crystalsvg/*/apps/package_editors.png +%{tde_datadir}/icons/crystalsvg/*/apps/package_edutainment.png +%{tde_datadir}/icons/crystalsvg/*/apps/package_games_arcade.png +%{tde_datadir}/icons/crystalsvg/*/apps/package_games_board.png +%{tde_datadir}/icons/crystalsvg/*/apps/package_games_card.png +%{tde_datadir}/icons/crystalsvg/*/apps/package_games_strategy.png +%{tde_datadir}/icons/crystalsvg/*/apps/package_graphics.png +%{tde_datadir}/icons/crystalsvg/*/apps/package_system.png +%{tde_datadir}/icons/crystalsvg/*/apps/package_wordprocessing.png +%{tde_datadir}/icons/crystalsvg/*/apps/pan.png +%{tde_datadir}/icons/crystalsvg/*/apps/panel_settings.png +%{tde_datadir}/icons/crystalsvg/*/apps/plan.png +%{tde_datadir}/icons/crystalsvg/*/apps/planner.png +%{tde_datadir}/icons/crystalsvg/*/apps/pybliographic.png +%{tde_datadir}/icons/crystalsvg/*/apps/realplayer.png +%{tde_datadir}/icons/crystalsvg/*/apps/remote.png +%{tde_datadir}/icons/crystalsvg/*/apps/scribus.png +%{tde_datadir}/icons/crystalsvg/*/apps/sodipodi.png +%{tde_datadir}/icons/crystalsvg/*/apps/style.png +%{tde_datadir}/icons/crystalsvg/*/apps/usb.png +%{tde_datadir}/icons/crystalsvg/*/apps/vnc.png +%{tde_datadir}/icons/crystalsvg/*/apps/wabi.png +%{tde_datadir}/icons/crystalsvg/*/apps/wine.png +%{tde_datadir}/icons/crystalsvg/*/apps/xcalc.png +%{tde_datadir}/icons/crystalsvg/*/apps/xchat.png +%{tde_datadir}/icons/crystalsvg/*/apps/xclipboard.png +%{tde_datadir}/icons/crystalsvg/*/apps/xconsole.png +%{tde_datadir}/icons/crystalsvg/*/apps/xedit.png +%{tde_datadir}/icons/crystalsvg/*/apps/xemacs.png +%{tde_datadir}/icons/crystalsvg/*/apps/xeyes.png +%{tde_datadir}/icons/crystalsvg/*/apps/xfig.png +%{tde_datadir}/icons/crystalsvg/*/apps/xload.png +%{tde_datadir}/icons/crystalsvg/*/apps/xmms.png +%{tde_datadir}/icons/crystalsvg/*/apps/xosview.png +%{tde_datadir}/icons/crystalsvg/*/apps/xv.png +%{tde_datadir}/icons/crystalsvg/*/apps/galeon.png +%{tde_datadir}/icons/crystalsvg/*/apps/kcmdrkonqi.png +%{tde_datadir}/icons/crystalsvg/*/apps/pinguin.png +%{tde_datadir}/icons/crystalsvg/*/apps/x.png +%{tde_datadir}/icons/crystalsvg/*/apps/xapp.png +%{tde_datadir}/icons/crystalsvg/*/apps/xawtv.png +%{tde_datadir}/icons/crystalsvg/*/apps/kcmopengl.png +%{tde_datadir}/icons/crystalsvg/*/apps/wmaker_apps.png +%{tde_datadir}/icons/crystalsvg/*/apps/qtella.png +%{tde_datadir}/services/searchproviders +%{tde_datadir}/services/useragentstrings/*.desktop +%{tde_datadir}/servicetypes/searchprovider.desktop +%{tde_datadir}/servicetypes/uasprovider.desktop +%exclude %{tde_datadir}/sounds/pop.wav +%{tde_datadir}/sounds/ +%{tde_datadir}/wallpapers/* + +%if "%{tde_prefix}" != "/usr" +%{tde_prefix}/etc/xdg/menus/applications-merged/kde-essential.menu +%{tde_prefix}/etc/xdg/menus/kde-information.menu +%{tde_prefix}/etc/xdg/menus/kde-screensavers.menu +%{tde_prefix}/etc/xdg/menus/kde-settings.menu +%else +%{_sysconfdir}/xdg/menus/applications-merged/kde-essential.menu +%{_sysconfdir}/xdg/menus/kde-information.menu +%{_sysconfdir}/xdg/menus/kde-screensavers.menu +%{_sysconfdir}/xdg/menus/kde-settings.menu +%endif + +%{tde_tdedocdir}/HTML/en/kcontrol/ +%exclude %{tde_tdedocdir}/HTML/en/kcontrol/kcmkonsole/ +%{tde_tdedocdir}/HTML/en/kinfocenter/ + +%post data +for f in crystalsvg ; do + touch --no-create %{tde_datadir}/icons/${f} 2> /dev/null || : + gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} 2> /dev/null || : +done + +%if 0%{?mdkversion} +# Mandriva-specific: we have to choose a background for current distribution variant +# First, we read the "product" key in /etc/product.id +eval $(tr "," ";" </etc/product.id) 2>/dev/null +# Then, we create a symbolic link to the corresponding background +%__ln -sf "/usr/share/mdk/backgrounds/Mandriva-${product:-Free}-1280x1024-1300.jpg" "%{tde_bg}" +%endif + +%postun data +for f in crystalsvg ; do + touch --no-create %{tde_datadir}/icons/${f} 2> /dev/null || : + gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} 2> /dev/null || : +done + +########## + +%package kio-plugins +Summary: core I/O slaves for TDE +Group: Applications/Utilities +Requires: trinity-kdesktop = %{version}-%{release} +Requires: cyrus-sasl +Requires: psmisc +Requires: cryptsetup-luks + +Obsoletes: tdebase-kio-plugins < %{version}-%{release} +Provides: tdebase-kio-plugins = %{version}-%{release} + +%description kio-plugins +This package includes the base kioslaves. They include, amongst many +others, file, http, and ftp. + +It also includes the media kioslave, which handles removable devices, +and which works best with hal (and therefore udev) and pmount. Media +also extends the functionality of many other kioslaves. To use this +service, please make sure that your user is a member of the plugdev +group. + +%files kio-plugins +%defattr(-,root,root,-) +%{tde_bindir}/kio_media_mounthelper +%{tde_bindir}/ktrash +%{tde_tdelibdir}/cursorthumbnail.la +%{tde_tdelibdir}/cursorthumbnail.so +%{tde_tdelibdir}/djvuthumbnail.la +%{tde_tdelibdir}/djvuthumbnail.so +%{tde_tdelibdir}/exrthumbnail.la +%{tde_tdelibdir}/exrthumbnail.so +%{tde_tdelibdir}/htmlthumbnail.la +%{tde_tdelibdir}/htmlthumbnail.so +%{tde_tdelibdir}/imagethumbnail.la +%{tde_tdelibdir}/imagethumbnail.so +%{tde_tdelibdir}/kcm_cgi.la +%{tde_tdelibdir}/kcm_cgi.so +%{tde_tdelibdir}/kcm_media.la +%{tde_tdelibdir}/kcm_media.so +%{tde_tdelibdir}/kded_homedirnotify.la +%{tde_tdelibdir}/kded_homedirnotify.so +%{tde_tdelibdir}/kded_mediamanager.la +%{tde_tdelibdir}/kded_mediamanager.so +%{tde_tdelibdir}/kded_medianotifier.la +%{tde_tdelibdir}/kded_medianotifier.so +%{tde_tdelibdir}/kded_remotedirnotify.la +%{tde_tdelibdir}/kded_remotedirnotify.so +%{tde_tdelibdir}/kded_systemdirnotify.la +%{tde_tdelibdir}/kded_systemdirnotify.so +%{tde_tdelibdir}/kfile_media.la +%{tde_tdelibdir}/kfile_media.so +%{tde_tdelibdir}/kfile_trash.la +%{tde_tdelibdir}/kfile_trash.so +%{tde_tdelibdir}/kio_about.la +%{tde_tdelibdir}/kio_about.so +%{tde_tdelibdir}/kio_cgi.la +%{tde_tdelibdir}/kio_cgi.so +%{tde_tdelibdir}/kio_filter.la +%{tde_tdelibdir}/kio_filter.so +%{tde_tdelibdir}/kio_finger.la +%{tde_tdelibdir}/kio_finger.so +%{tde_tdelibdir}/kio_fish.la +%{tde_tdelibdir}/kio_fish.so +%{tde_tdelibdir}/kio_floppy.la +%{tde_tdelibdir}/kio_floppy.so +%{tde_tdelibdir}/kio_home.la +%{tde_tdelibdir}/kio_home.so +%{tde_tdelibdir}/kio_info.la +%{tde_tdelibdir}/kio_info.so +%{tde_tdelibdir}/kio_mac.la +%{tde_tdelibdir}/kio_mac.so +%{tde_tdelibdir}/kio_man.la +%{tde_tdelibdir}/kio_man.so +%{tde_tdelibdir}/kio_media.la +%{tde_tdelibdir}/kio_media.so +%{tde_tdelibdir}/kio_nfs.la +%{tde_tdelibdir}/kio_nfs.so +%{tde_tdelibdir}/kio_remote.la +%{tde_tdelibdir}/kio_remote.so +%{tde_tdelibdir}/kio_settings.la +%{tde_tdelibdir}/kio_settings.so +%{tde_tdelibdir}/kio_sftp.la +%{tde_tdelibdir}/kio_sftp.so +%{tde_tdelibdir}/kio_smb.la +%{tde_tdelibdir}/kio_smb.so +%{tde_tdelibdir}/kio_system.la +%{tde_tdelibdir}/kio_system.so +%{tde_tdelibdir}/kio_tar.la +%{tde_tdelibdir}/kio_tar.so +%{tde_tdelibdir}/kio_thumbnail.la +%{tde_tdelibdir}/kio_thumbnail.so +%{tde_tdelibdir}/kio_trash.la +%{tde_tdelibdir}/kio_trash.so +%{tde_tdelibdir}/libkmanpart.la +%{tde_tdelibdir}/libkmanpart.so +%{tde_tdelibdir}/media_propsdlgplugin.la +%{tde_tdelibdir}/media_propsdlgplugin.so +%{tde_tdelibdir}/textthumbnail.la +%{tde_tdelibdir}/textthumbnail.so +%{tde_tdeappdir}/kcmcgi.desktop +%{tde_datadir}/apps/kio_finger/kio_finger.css +%{tde_datadir}/apps/kio_finger/kio_finger.pl +%{tde_datadir}/apps/kio_info/kde-info2html +%{tde_datadir}/apps/kio_info/kde-info2html.conf +%{tde_datadir}/apps/kio_man/kio_man.css +%{tde_datadir}/apps/konqueror/dirtree/remote/smb-network.desktop +%{tde_datadir}/apps/remoteview/smb-network.desktop +%{tde_datadir}/apps/systemview/*.desktop +%{tde_datadir}/config.kcfg/mediamanagersettings.kcfg +%{tde_datadir}/mimelnk/application/x-smb-server.desktop +%{tde_datadir}/mimelnk/application/x-smb-workgroup.desktop +%{tde_datadir}/mimelnk/inode/system_directory.desktop +%{tde_datadir}/mimelnk/media/*.desktop +%{tde_datadir}/services/about.protocol +%{tde_datadir}/services/applications.protocol +%{tde_datadir}/services/ar.protocol +%{tde_datadir}/services/bzip.protocol +%{tde_datadir}/services/bzip2.protocol +%{tde_datadir}/services/cgi.protocol +%{tde_datadir}/services/cursorthumbnail.desktop +%{tde_datadir}/services/djvuthumbnail.desktop +%{tde_datadir}/services/exrthumbnail.desktop +%{tde_datadir}/services/finger.protocol +%{tde_datadir}/services/fish.protocol +%{tde_datadir}/services/floppy.protocol +%{tde_datadir}/services/gzip.protocol +%{tde_datadir}/services/home.protocol +%{tde_datadir}/services/htmlthumbnail.desktop +%{tde_datadir}/services/imagethumbnail.desktop +%{tde_datadir}/services/info.protocol +%{tde_datadir}/services/kded/homedirnotify.desktop +%{tde_datadir}/services/kded/mediamanager.desktop +%{tde_datadir}/services/kded/medianotifier.desktop +%{tde_datadir}/services/kded/remotedirnotify.desktop +%{tde_datadir}/services/kded/systemdirnotify.desktop +%{tde_datadir}/services/kfile_media.desktop +%{tde_datadir}/services/kfile_trash_system.desktop +%{tde_datadir}/services/kmanpart.desktop +%{tde_datadir}/services/mac.protocol +%{tde_datadir}/services/man.protocol +%{tde_datadir}/services/media.protocol +%{tde_datadir}/services/media_propsdlgplugin.desktop +%{tde_datadir}/services/nfs.protocol +%{tde_datadir}/services/nxfish.protocol +%{tde_datadir}/services/programs.protocol +%{tde_datadir}/services/remote.protocol +%{tde_datadir}/services/settings.protocol +%{tde_datadir}/services/sftp.protocol +%{tde_datadir}/services/smb.protocol +%{tde_datadir}/services/system.protocol +%{tde_datadir}/services/tar.protocol +%{tde_datadir}/services/textthumbnail.desktop +%{tde_datadir}/services/thumbnail.protocol +%{tde_datadir}/services/trash.protocol +%{tde_datadir}/services/zip.protocol +%{tde_datadir}/servicetypes/thumbcreator.desktop +%{tde_datadir}/services/kfile_trash.desktop +%{tde_tdedocdir}/HTML/en/kioslave/ + +%post kio-plugins +update-desktop-database %{tde_appdir} 2> /dev/null || : + +%postun kio-plugins +update-desktop-database %{tde_appdir} 2> /dev/null || : + + +########## + +%package -n trinity-kdepasswd +Summary: password changer for TDE +Group: Applications/Utilities + +%description -n trinity-kdepasswd +This is a simple application which allows users to change their +system passwords. + +%files -n trinity-kdepasswd +%defattr(-,root,root,-) +%{tde_bindir}/kdepasswd +%{tde_tdelibdir}/kcm_useraccount.la +%{tde_tdelibdir}/kcm_useraccount.so +%{tde_tdeappdir}/kcm_useraccount.desktop +%{tde_tdeappdir}/kdepasswd.desktop +%exclude %{tde_datadir}/apps/[kt]dm/pics/users/default1.png +%exclude %{tde_datadir}/apps/[kt]dm/pics/users/default2.png +%exclude %{tde_datadir}/apps/[kt]dm/pics/users/default3.png +%exclude %{tde_datadir}/apps/[kt]dm/pics/users/root1.png +%{tde_datadir}/apps/[kt]dm/pics/users/*.png +%{tde_datadir}/config.kcfg/kcm_useraccount.kcfg +%{tde_datadir}/config.kcfg/kcm_useraccount_pass.kcfg + +%post -n trinity-kdepasswd +update-desktop-database %{tde_appdir} 2> /dev/null || : + +%postun -n trinity-kdepasswd +update-desktop-database %{tde_appdir} 2> /dev/null || : + +########## + +%package -n trinity-tdeprint +Summary: print system for TDE +Group: Applications/Utilities +Requires: %{name}-data = %{version}-%{release} +Requires: psutils + +%description -n trinity-tdeprint +This package contains the TDE printing subsystem. It can use CUPS, +lpd-ng or the traditional lpd. It also includes support for fax and +pdf printing. + +Installation of smbclient will make you able to use smb shared printers. + +%files -n trinity-tdeprint +%defattr(-,root,root,-) +%{tde_bindir}/[kt]deprintfax +%{tde_bindir}/kjobviewer +%{tde_bindir}/kprinter +%{tde_tdelibdir}/kcm_printmgr.la +%{tde_tdelibdir}/kcm_printmgr.so +%{tde_tdelibdir}/kio_print.la +%{tde_tdelibdir}/kio_print.so +%{tde_tdelibdir}/kjobviewer.la +%{tde_tdelibdir}/kjobviewer.so +%{tde_tdelibdir}/kprinter.la +%{tde_tdelibdir}/kprinter.so +%{tde_tdelibdir}/lib[kt]deprint_part.la +%{tde_tdelibdir}/lib[kt]deprint_part.so +%{tde_libdir}/lib[kt]deinit_kjobviewer.la +%{tde_libdir}/lib[kt]deinit_kjobviewer.so +%{tde_libdir}/lib[kt]deinit_kprinter.la +%{tde_libdir}/lib[kt]deinit_kprinter.so +%{tde_tdeappdir}/[kt]deprintfax.desktop +%{tde_tdeappdir}/[kt]jobviewer.desktop +%{tde_tdeappdir}/printers.desktop +%{tde_datadir}/apps/[kt]deprint/ +%{tde_datadir}/apps/[kt]deprintfax/ +%{tde_datadir}/apps/[kt]jobviewer/ +%{tde_datadir}/apps/[kt]deprint_part/kdeprint_part.rc +%{tde_datadir}/icons/hicolor/*/apps/kdeprintfax.png +%{tde_datadir}/icons/hicolor/*/apps/kjobviewer.png +%{tde_datadir}/icons/hicolor/*/apps/printmgr.png +%{tde_datadir}/icons/hicolor/scalable/apps/kdeprintfax.svgz +%{tde_datadir}/icons/hicolor/scalable/apps/kjobviewer.svgz +%{tde_datadir}/icons/hicolor/scalable/apps/printmgr.svgz +%{tde_datadir}/mimelnk/print/class.desktop +%{tde_datadir}/mimelnk/print/driver.desktop +%{tde_datadir}/mimelnk/print/folder.desktop +%{tde_datadir}/mimelnk/print/jobs.desktop +%{tde_datadir}/mimelnk/print/manager.desktop +%{tde_datadir}/mimelnk/print/printer.desktop +%{tde_datadir}/mimelnk/print/printermodel.desktop +%{tde_datadir}/services/kdeprint_part.desktop +%{tde_datadir}/services/print.protocol +%{tde_datadir}/services/printdb.protocol +%{tde_tdedocdir}/HTML/en/[kt]deprint/ + +%post -n trinity-tdeprint +/sbin/ldconfig || : +update-desktop-database %{tde_appdir} 2> /dev/null || : +for f in hicolor ; do + touch --no-create %{tde_datadir}/icons/${f} 2> /dev/null || : + gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} 2> /dev/null || : +done + +%postun -n trinity-tdeprint +/sbin/ldconfig || : +update-desktop-database %{tde_appdir} 2> /dev/null || : +for f in hicolor ; do + touch --no-create %{tde_datadir}/icons/${f} 2> /dev/null || : + gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} 2> /dev/null || : +done + +########## + +%package -n trinity-kdesktop +Summary: miscellaneous binaries and files for the TDE desktop +Group: Applications/Utilities +Requires: %{name}-bin = %{version}-%{release} +Requires: %{name}-data = %{version}-%{release} +Requires: trinity-libkonq = %{version}-%{release} +Requires: eject +Requires: xdg-utils + +%description -n trinity-kdesktop +This package contains miscellaneous binaries and files integral to +the TDE desktop. + +%files -n trinity-kdesktop +%defattr(-,root,root,-) +%{tde_datadir}/config/kdesktop_custom_menu1 +%{tde_datadir}/config/kdesktop_custom_menu2 +%{tde_bindir}/kcheckrunning +%{tde_bindir}/kxdglauncher +%{tde_bindir}/kdeeject +%{tde_bindir}/kdesktop +%{tde_bindir}/kdesktop_lock +%{tde_bindir}/kwebdesktop +%{tde_tdelibdir}/kdesktop.la +%{tde_tdelibdir}/kdesktop.so +%{tde_libdir}/lib[kt]deinit_kdesktop.la +%{tde_libdir}/lib[kt]deinit_kdesktop.so +%{tde_datadir}/apps/kdesktop/ +%{tde_datadir}/apps/konqueror/servicemenus/kdesktopSetAsBackground.desktop +%{tde_datadir}/autostart/kdesktop.desktop +%{tde_datadir}/config.kcfg/kdesktop.kcfg +%{tde_datadir}/config.kcfg/klaunch.kcfg +%{tde_datadir}/config.kcfg/kwebdesktop.kcfg +%{tde_datadir}/icons/crystalsvg/*/apps/error.png + +%post -n trinity-kdesktop +/sbin/ldconfig || : +for f in crystalsvg ; do + touch --no-create %{tde_datadir}/icons/${f} 2> /dev/null || : + gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} 2> /dev/null || : +done + +%postun -n trinity-kdesktop +/sbin/ldconfig || : +for f in crystalsvg ; do + touch --no-create %{tde_datadir}/icons/${f} 2> /dev/null || : + gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} 2> /dev/null || : +done + +########## + +%package -n trinity-kdesktop-devel +Summary: Development files for kdesktop +Group: Development/Libraries +Requires: trinity-kdesktop = %{version}-%{release} + +%description -n trinity-kdesktop-devel +%{summary} + +%files -n trinity-kdesktop-devel +%{tde_tdeincludedir}/KBackgroundIface.h +%{tde_tdeincludedir}/KDesktopIface.h +%{tde_tdeincludedir}/KScreensaverIface.h + +########## + +%package -n trinity-tdm +Summary: X Display manager for TDE +Group: Applications/Utilities +Requires: %{name}-bin = %{version}-%{release} +Requires: %{name}-data = %{version}-%{release} +Requires: pam + +# Provides the global Xsession script (/etc/X11/xinit/Xsession or /etc/X11/Xsession) +%if 0%{?mgaversion} || 0%{?mdkversion} +Requires: xinitrc +%else +Requires: xorg-x11-xinit +%endif + +# Required for Fedora LiveCD +Provides: service(graphical-login) + +%description -n trinity-tdm +tdm manages a collection of X servers, which may be on the local host or +remote machines. It provides services similar to those provided by init, +getty, and login on character-based terminals: prompting for login name and +password, authenticating the user, and running a session. tdm supports XDMCP +(X Display Manager Control Protocol) and can also be used to run a chooser +process which presents the user with a menu of possible hosts that offer +XDMCP display management. + +A collection of icons to associate with individual users is included with +TDE, but as part of the kdepasswd package. + +The menu package will help to provide TDM with a list of window managers +that can be launched, if the window manager does not register with TDM +already. Most users won't need this. + +%files -n trinity-tdm +%defattr(-,root,root,-) +%{tde_tdelibdir}/kgreet_pam.la +%{tde_tdelibdir}/kgreet_pam.so +%{tde_bindir}/gen[kt]dmconf +%{tde_bindir}/[kt]dm +%{tde_bindir}/[kt]dm_config +%{tde_bindir}/[kt]dmctl +%{tde_bindir}/[kt]dm_greet +%{tde_bindir}/krootimage +%{tde_datadir}/apps/[kt]dm/pics/kdelogo.png +%{tde_datadir}/apps/[kt]dm/pics/kdelogo-crystal.png +%{tde_datadir}/apps/[kt]dm/pics/shutdown.jpg +%{tde_datadir}/apps/[kt]dm/pics/users/default1.png +%{tde_datadir}/apps/[kt]dm/pics/users/default2.png +%{tde_datadir}/apps/[kt]dm/pics/users/default3.png +%{tde_datadir}/apps/[kt]dm/pics/users/root1.png +%{tde_datadir}/apps/[kt]dm/sessions/*.desktop +%{tde_datadir}/apps/[kt]dm/themes/ +%{tde_datadir}/config/[kt]dm/ +%{tde_tdedocdir}/HTML/en/[kt]dm/ + +# Distribution specific stuff +%if 0%{?rhel} || 0%{?fedora} +%{_usr}/share/xsessions/tde.desktop +%endif +%{_sysconfdir}/pam.d/kdm-trinity +%{_sysconfdir}/pam.d/kdm-trinity-np +%if 0%{?mgaversion} || 0%{?mdkversion} +%{_sysconfdir}/X11/wmsession.d/* + +%post -n trinity-tdm +%make_session + +%postun -n trinity-tdm +%make_session +%endif + +########## + +%package -n trinity-tdm-devel +Summary: Development files for tdm +Group: Development/Libraries +Requires: trinity-tdm = %{version}-%{release} + +%description -n trinity-tdm-devel +%{summary} + +%files -n trinity-tdm-devel +%{tde_tdeincludedir}/kgreeterplugin.h + +########## + +%package -n trinity-kfind +Summary: file-find utility for TDE +Group: Applications/Utilities +Requires: %{name}-data = %{version}-%{release} + +%description -n trinity-kfind +kfind can be used to find files and directories on your +workstations. + +%files -n trinity-kfind +%defattr(-,root,root,-) +%{tde_bindir}/kfind +%{tde_tdelibdir}/libkfindpart.la +%{tde_tdelibdir}/libkfindpart.so +%{tde_tdeappdir}/Kfind.desktop +%{tde_datadir}/apps/kfindpart/ +%{tde_datadir}/icons/hicolor/*/apps/kfind.png +%{tde_datadir}/services/kfindpart.desktop +%{tde_datadir}/servicetypes/findpart.desktop +%{tde_tdedocdir}/HTML/en/kfind/ + +%post -n trinity-kfind +update-desktop-database %{tde_appdir} 2> /dev/null || : +for f in hicolor ; do + touch --no-create %{tde_datadir}/icons/${f} 2> /dev/null || : + gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} 2> /dev/null || : +done + +%postun -n trinity-kfind +update-desktop-database %{tde_appdir} 2> /dev/null || : +for f in hicolor ; do + touch --no-create %{tde_datadir}/icons/${f} 2> /dev/null || : + gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} 2> /dev/null || : +done + +########## + +%package -n trinity-khelpcenter +Summary: help center for TDE +Group: Applications/Utilities +Requires: %{name}-data = %{version}-%{release} +Requires: htdig + +%description -n trinity-khelpcenter +The TDE Help Center provides documentation on how to use the KDE desktop. + +The htdig package is needed to build a searchable archive of TDE +documentation. + +%files -n trinity-khelpcenter +%defattr(-,root,root,-) +%{tde_bindir}/khc_beagle_index.pl +%{tde_bindir}/khc_beagle_search.pl +%{tde_bindir}/khc_docbookdig.pl +%{tde_bindir}/khc_htdig.pl +%{tde_bindir}/khc_htsearch.pl +%{tde_bindir}/khc_indexbuilder +%{tde_bindir}/khc_mansearch.pl +%{tde_bindir}/khelpcenter +%{tde_tdelibdir}/khelpcenter.la +%{tde_tdelibdir}/khelpcenter.so +%{tde_libdir}/lib[kt]deinit_khelpcenter.la +%{tde_libdir}/lib[kt]deinit_khelpcenter.so +%{tde_tdeappdir}/Help.desktop +%{tde_datadir}/apps/khelpcenter/ +%{tde_datadir}/config.kcfg/khelpcenter.kcfg +%{tde_datadir}/icons/hicolor/*/apps/khelpcenter.* +%{tde_datadir}/services/khelpcenter.desktop +%{tde_tdedocdir}/HTML/en/khelpcenter/ + +%post -n trinity-khelpcenter +update-desktop-database %{tde_appdir} 2> /dev/null || : +for f in hicolor ; do + touch --no-create %{tde_datadir}/icons/${f} 2> /dev/null || : + gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} 2> /dev/null || : +done +/sbin/ldconfig || : + +%postun -n trinity-khelpcenter +update-desktop-database %{tde_appdir} 2> /dev/null || : +for f in hicolor ; do + touch --no-create %{tde_datadir}/icons/${f} 2> /dev/null || : + gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} 2> /dev/null || : +done +/sbin/ldconfig || : + +########## + +%package -n trinity-kicker +Summary: desktop panel for TDE +Group: Applications/Utilities +Requires: %{name}-data = %{version}-%{release} + +%description -n trinity-kicker +Kicker provides the TDE panel on you desktop. It can be used as a +program launcher and can load plugins to provide additional +functionality. + +%files -n trinity-kicker +%defattr(-,root,root,-) +%{tde_bindir}/appletproxy +%{tde_bindir}/extensionproxy +%{tde_bindir}/kasbar +%{tde_bindir}/kicker +%{tde_libdir}/kconf_update_bin/kicker-3.4-reverseLayout +%{tde_tdelibdir}/appletproxy.la +%{tde_tdelibdir}/appletproxy.so +%{tde_tdelibdir}/clock_panelapplet.la +%{tde_tdelibdir}/clock_panelapplet.so +%{tde_tdelibdir}/dockbar_panelextension.la +%{tde_tdelibdir}/dockbar_panelextension.so +%{tde_tdelibdir}/extensionproxy.la +%{tde_tdelibdir}/extensionproxy.so +%{tde_tdelibdir}/kasbar_panelextension.la +%{tde_tdelibdir}/kasbar_panelextension.so +%{tde_tdelibdir}/kicker.la +%{tde_tdelibdir}/kickermenu_find.la +%{tde_tdelibdir}/kickermenu_find.so +%{tde_tdelibdir}/kickermenu_kate.so +%{tde_tdelibdir}/kickermenu_kate.la +%{tde_tdelibdir}/kickermenu_[kt]deprint.la +%{tde_tdelibdir}/kickermenu_[kt]deprint.so +%{tde_tdelibdir}/kickermenu_konqueror.la +%{tde_tdelibdir}/kickermenu_konqueror.so +%{tde_tdelibdir}/kickermenu_konsole.la +%{tde_tdelibdir}/kickermenu_konsole.so +%{tde_tdelibdir}/kickermenu_prefmenu.la +%{tde_tdelibdir}/kickermenu_prefmenu.so +%{tde_tdelibdir}/kickermenu_recentdocs.la +%{tde_tdelibdir}/kickermenu_recentdocs.so +%{tde_tdelibdir}/kickermenu_remotemenu.la +%{tde_tdelibdir}/kickermenu_remotemenu.so +%{tde_tdelibdir}/kickermenu_systemmenu.la +%{tde_tdelibdir}/kickermenu_systemmenu.so +%{tde_tdelibdir}/kicker.so +%{tde_tdelibdir}/launcher_panelapplet.la +%{tde_tdelibdir}/launcher_panelapplet.so +%{tde_tdelibdir}/lockout_panelapplet.la +%{tde_tdelibdir}/lockout_panelapplet.so +%{tde_tdelibdir}/media_panelapplet.la +%{tde_tdelibdir}/media_panelapplet.so +%{tde_tdelibdir}/menu_panelapplet.la +%{tde_tdelibdir}/menu_panelapplet.so +%{tde_tdelibdir}/minipager_panelapplet.la +%{tde_tdelibdir}/minipager_panelapplet.so +%{tde_tdelibdir}/naughty_panelapplet.la +%{tde_tdelibdir}/naughty_panelapplet.so +%{tde_tdelibdir}/run_panelapplet.la +%{tde_tdelibdir}/run_panelapplet.so +%{tde_tdelibdir}/sidebar_panelextension.la +%{tde_tdelibdir}/sidebar_panelextension.so +%{tde_tdelibdir}/systemtray_panelapplet.la +%{tde_tdelibdir}/systemtray_panelapplet.so +%{tde_tdelibdir}/taskbar_panelapplet.la +%{tde_tdelibdir}/taskbar_panelapplet.so +%{tde_tdelibdir}/taskbar_panelextension.la +%{tde_tdelibdir}/taskbar_panelextension.so +%{tde_tdelibdir}/trash_panelapplet.la +%{tde_tdelibdir}/trash_panelapplet.so +%{tde_libdir}/libkasbar.so.* +%{tde_libdir}/lib[kt]deinit_appletproxy.la +%{tde_libdir}/lib[kt]deinit_appletproxy.so +%{tde_libdir}/lib[kt]deinit_extensionproxy.la +%{tde_libdir}/lib[kt]deinit_extensionproxy.so +%{tde_libdir}/lib[kt]deinit_kicker.la +%{tde_libdir}/lib[kt]deinit_kicker.so +%{tde_libdir}/libkickermain.so.* +%{tde_libdir}/libtaskbar.so.* +%{tde_libdir}/libtaskmanager.so.* +%{tde_libdir}/libkickoffsearch_interfaces.so.* +%{tde_tdeappdir}/kcmkicker.desktop +%{tde_datadir}/applnk/.hidden/kicker_config_arrangement.desktop +%{tde_datadir}/applnk/.hidden/kicker_config_hiding.desktop +%{tde_datadir}/applnk/.hidden/kicker_config_menus.desktop +%{tde_datadir}/apps/clockapplet/pics/lcd.png +%{tde_datadir}/apps/kconf_update/kicker-3.1-properSizeSetting.pl +%{tde_datadir}/apps/kconf_update/kicker-3.5-kconfigXTize.pl +%{tde_datadir}/apps/kconf_update/kicker-3.5-taskbarEnums.pl +%{tde_datadir}/apps/kconf_update/kickerrc.upd +%{tde_datadir}/apps/kicker/ +%exclude %{tde_datadir}/apps/kicker/applets/klipper.desktop +%exclude %{tde_datadir}/apps/kicker/applets/ksysguardapplet.desktop +%{tde_datadir}/apps/naughtyapplet/pics/naughty-happy.png +%{tde_datadir}/apps/naughtyapplet/pics/naughty-sad.png +%{tde_datadir}/autostart/panel.desktop +%{tde_datadir}/config.kcfg/kickerSettings.kcfg +%{tde_datadir}/config.kcfg/launcherapplet.kcfg +#%{tde_datadir}/config.kcfg/pagersettings.kcfg +%{tde_datadir}/config.kcfg/taskbar.kcfg +%{tde_datadir}/icons/crystalsvg/*/apps/systemtray.png +%{tde_datadir}/icons/crystalsvg/*/apps/taskbar.png +%{tde_datadir}/icons/crystalsvg/*/apps/kbinaryclock.png +%{tde_datadir}/icons/crystalsvg/*/apps/kdisknav.png +%{tde_datadir}/icons/crystalsvg/*/apps/kicker.png +%{tde_datadir}/icons/crystalsvg/*/apps/panel.png +%{tde_datadir}/icons/crystalsvg/*/apps/runprocesscatcher.png +%{tde_datadir}/icons/crystalsvg/*/apps/window_list.png +%{tde_datadir}/icons/crystalsvg/*/apps/kbinaryclock.svgz +%{tde_datadir}/icons/crystalsvg/*/apps/systemtray.svgz +%{tde_datadir}/servicetypes/kickoffsearchplugin.desktop +%{tde_tdedocdir}/HTML/en/kicker/ + +%post -n trinity-kicker +update-desktop-database %{tde_appdir} 2> /dev/null || : +for f in crystalsvg ; do + touch --no-create %{tde_datadir}/icons/${f} 2> /dev/null || : + gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} 2> /dev/null || : +done +/sbin/ldconfig || : + +%postun -n trinity-kicker +update-desktop-database %{tde_appdir} 2> /dev/null || : +for f in crystalsvg ; do + touch --no-create %{tde_datadir}/icons/${f} 2> /dev/null || : + gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} 2> /dev/null || : +done +/sbin/ldconfig || : + +########## + +%package -n trinity-kicker-devel +Summary: Development files for kicker +Group: Development/Libraries +Requires: trinity-kicker = %{version}-%{release} + +%description -n trinity-kicker-devel +%{summary} + +%files -n trinity-kicker-devel +%{tde_tdeincludedir}/kickoff-search-plugin.h +%{tde_tdeincludedir}/kickoffsearchinterface.h +%{tde_libdir}/libkasbar.la +%{tde_libdir}/libkasbar.so +%{tde_libdir}/libkickermain.la +%{tde_libdir}/libkickermain.so +%{tde_libdir}/libkickoffsearch_interfaces.la +%{tde_libdir}/libkickoffsearch_interfaces.so +%{tde_libdir}/libtaskbar.la +%{tde_libdir}/libtaskbar.so +%{tde_libdir}/libtaskmanager.la +%{tde_libdir}/libtaskmanager.so + +%post -n trinity-kicker-devel +/sbin/ldconfig || : + +%postun -n trinity-kicker-devel +/sbin/ldconfig || : + +########## + +%package -n trinity-klipper +Summary: clipboard utility for Trinity +Group: Applications/Utilities +Requires: %{name}-data = %{version}-%{release} + +%description -n trinity-klipper +klipper provides standard clipboard functions (cut and paste, history +saving) plus additional features, like the ability to offer actions to +take dependent on the clipboard contents. For example, it can launch a +web browser if the clipboard contains a URL. + +%files -n trinity-klipper +%defattr(-,root,root,-) +%{tde_bindir}/klipper +%{tde_datadir}/config/klipperrc +%{tde_tdelibdir}/klipper.la +%{tde_tdelibdir}/klipper.so +%{tde_tdelibdir}/klipper_panelapplet.la +%{tde_tdelibdir}/klipper_panelapplet.so +%{tde_libdir}/lib[kt]deinit_klipper.la +%{tde_libdir}/lib[kt]deinit_klipper.so +%{tde_tdeappdir}/klipper.desktop +%{tde_datadir}/apps/kconf_update/klipper-1-2.pl +%{tde_datadir}/apps/kconf_update/klipper-trinity1.sh +%{tde_datadir}/apps/kconf_update/klipperrc.upd +%{tde_datadir}/apps/kconf_update/klippershortcuts.upd +%{tde_datadir}/apps/kicker/applets/klipper.desktop +%{tde_datadir}/autostart/klipper.desktop +%{tde_datadir}/icons/hicolor/*/apps/klipper.* +%{tde_tdedocdir}/HTML/en/klipper/ + +%post -n trinity-klipper +update-desktop-database %{tde_appdir} 2> /dev/null || : +for f in hicolor ; do + touch --no-create %{tde_datadir}/icons/${f} 2> /dev/null || : + gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} 2> /dev/null || : +done +/sbin/ldconfig || : + +%postun -n trinity-klipper +update-desktop-database %{tde_appdir} 2> /dev/null || : +for f in hicolor ; do + touch --no-create %{tde_datadir}/icons/${f} 2> /dev/null || : + gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} 2> /dev/null || : +done +/sbin/ldconfig || : + +########## + +%package -n trinity-kmenuedit +Summary: menu editor for TDE +Group: Applications/Utilities +Requires: %{name}-data = %{version}-%{release} + +%description -n trinity-kmenuedit +The TDE menu editor allows you to make customisations to the KDE menu +structure. + +%files -n trinity-kmenuedit +%defattr(-,root,root,-) +%{tde_bindir}/kcontroledit +%{tde_bindir}/kmenuedit +%{tde_tdelibdir}/kcontroledit.la +%{tde_tdelibdir}/kcontroledit.so +%{tde_tdelibdir}/kmenuedit.la +%{tde_tdelibdir}/kmenuedit.so +%{tde_libdir}/lib[kt]deinit_kcontroledit.la +%{tde_libdir}/lib[kt]deinit_kcontroledit.so +%{tde_libdir}/lib[kt]deinit_kmenuedit.la +%{tde_libdir}/lib[kt]deinit_kmenuedit.so +%{tde_tdeappdir}/kmenuedit.desktop +%{tde_datadir}/applnk/System/kmenuedit.desktop +%{tde_datadir}/apps/kcontroledit/ +%{tde_datadir}/apps/kmenuedit/ +%{tde_tdedocdir}/HTML/en/kmenuedit/ + +%post -n trinity-kmenuedit +update-desktop-database %{tde_appdir} 2> /dev/null || : +/sbin/ldconfig || : + +%postun -n trinity-kmenuedit +update-desktop-database %{tde_appdir} 2> /dev/null || : +/sbin/ldconfig || : + +########## + +%package -n trinity-konqueror +Summary: TDE's advanced file manager, web browser and document viewer +Group: Applications/Utilities +Requires: %{name}-data = %{version}-%{release} +Requires: trinity-kcontrol = %{version}-%{release} +Requires: %{name}-kio-plugins = %{version}-%{release} +Requires: trinity-kdesktop = %{version}-%{release} +Requires: trinity-kfind = %{version}-%{release} +Requires: trinity-libkonq = %{version}-%{release} + +%description -n trinity-konqueror +Konqueror is the file manager for the Trinity Desktop Environment. +It supports basic file management on local UNIX filesystems, +from simple cut/copy and paste operations to advanced remote +and local network file browsing. + +It is also the canvas for all the latest TDE technology, +from KIO slaves (which provide mechanisms for file access) to +component embedding via the KParts object interface, and it +is one of the most customizable applications available. + +Konqueror is an Open Source web browser with HTML4.0 compliance, +supporting Java applets, JavaScript, CSS1 and (partially) CSS2, +as well as Netscape plugins (for example, Flash or RealVideo plugins). + +It is a universal viewing application, capable of embedding +read-only viewing components in itself to view documents without +ever launching another application. + +%files -n trinity-konqueror +%defattr(-,root,root,-) +%{tde_datadir}/config/konqsidebartng.rc +%{tde_bindir}/kbookmarkmerger +%{tde_bindir}/keditbookmarks +%{tde_bindir}/kfmclient +%{tde_bindir}/konqueror +%{tde_tdelibdir}/kcm_history.la +%{tde_tdelibdir}/kcm_history.so +%{tde_tdelibdir}/kded_konqy_preloader.la +%{tde_tdelibdir}/kded_konqy_preloader.so +%{tde_tdelibdir}/keditbookmarks.la +%{tde_tdelibdir}/keditbookmarks.so +%{tde_tdelibdir}/kfmclient.la +%{tde_tdelibdir}/kfmclient.so +%{tde_tdelibdir}/konq_aboutpage.la +%{tde_tdelibdir}/konq_aboutpage.so +%{tde_tdelibdir}/konq_iconview.la +%{tde_tdelibdir}/konq_iconview.so +%{tde_tdelibdir}/konq_listview.la +%{tde_tdelibdir}/konq_listview.so +%{tde_tdelibdir}/konq_remoteencoding.la +%{tde_tdelibdir}/konq_remoteencoding.so +%{tde_tdelibdir}/konq_shellcmdplugin.la +%{tde_tdelibdir}/konq_shellcmdplugin.so +%{tde_tdelibdir}/konq_sidebar.la +%{tde_tdelibdir}/konq_sidebar.so +%{tde_tdelibdir}/konq_sidebartree_bookmarks.la +%{tde_tdelibdir}/konq_sidebartree_bookmarks.so +%{tde_tdelibdir}/konq_sidebartree_dirtree.la +%{tde_tdelibdir}/konq_sidebartree_dirtree.so +%{tde_tdelibdir}/konq_sidebartree_history.la +%{tde_tdelibdir}/konq_sidebartree_history.so +%{tde_tdelibdir}/konqsidebar_tree.la +%{tde_tdelibdir}/konqsidebar_tree.so +%{tde_tdelibdir}/konqsidebar_web.la +%{tde_tdelibdir}/konqsidebar_web.so +%{tde_tdelibdir}/konqueror.la +%{tde_tdelibdir}/konqueror.so +%{tde_tdelibdir}/libkhtmlkttsdplugin.la +%{tde_tdelibdir}/libkhtmlkttsdplugin.so +%{tde_libdir}/lib[kt]deinit_keditbookmarks.la +%{tde_libdir}/lib[kt]deinit_keditbookmarks.so +%{tde_libdir}/lib[kt]deinit_kfmclient.la +%{tde_libdir}/lib[kt]deinit_kfmclient.so +%{tde_libdir}/lib[kt]deinit_konqueror.la +%{tde_libdir}/lib[kt]deinit_konqueror.so +%{tde_libdir}/libkonqsidebarplugin.so.* +%{tde_tdeappdir}/Home.desktop +%{tde_tdeappdir}/kcmhistory.desktop +%{tde_tdeappdir}/kfmclient.desktop +%{tde_tdeappdir}/kfmclient_dir.desktop +%{tde_tdeappdir}/kfmclient_html.desktop +%{tde_tdeappdir}/kfmclient_war.desktop +%{tde_tdeappdir}/khtml_filter.desktop +%{tde_tdeappdir}/konqbrowser.desktop +%{tde_tdeappdir}/konquerorsu.desktop +%{tde_datadir}/applnk/.hidden/konqfilemgr.desktop +%{tde_datadir}/applnk/Internet/keditbookmarks.desktop +%{tde_datadir}/applnk/konqueror.desktop +%{tde_datadir}/apps/kconf_update/kfmclient_3_2.upd +%{tde_datadir}/apps/kconf_update/kfmclient_3_2_update.sh +%{tde_datadir}/apps/kconf_update/konqsidebartng.upd +%{tde_datadir}/apps/kconf_update/move_konqsidebartng_entries.sh +%{tde_datadir}/apps/keditbookmarks/keditbookmarks-genui.rc +%{tde_datadir}/apps/keditbookmarks/keditbookmarksui.rc +%{tde_datadir}/apps/khtml/kpartplugins/khtmlkttsd.desktop +%{tde_datadir}/apps/khtml/kpartplugins/khtmlkttsd.rc +%{tde_datadir}/apps/konqiconview/ +%{tde_datadir}/apps/konqlistview/ +%exclude %{tde_datadir}/apps/konqsidebartng/virtual_folders/services/fonts.desktop +%{tde_datadir}/apps/konqsidebartng/ +%{tde_datadir}/apps/konqueror/about/ +%{tde_datadir}/apps/konqueror/icons/ +%{tde_datadir}/apps/konqueror/konq-simplebrowser.rc +%{tde_datadir}/apps/konqueror/konqueror.rc +%{tde_datadir}/apps/konqueror/pics/indicator_connect.png +%{tde_datadir}/apps/konqueror/pics/indicator_empty.png +%{tde_datadir}/apps/konqueror/pics/indicator_noconnect.png +%{tde_datadir}/apps/konqueror/pics/indicator_viewactive.png +%{tde_datadir}/apps/konqueror/profiles/ +%exclude %{tde_datadir}/apps/konqueror/servicemenus/kdesktopSetAsBackground.desktop +%exclude %{tde_datadir}/apps/konqueror/servicemenus/konsolehere.desktop +%exclude %{tde_datadir}/apps/konqueror/servicemenus/installfont.desktop +%{tde_datadir}/apps/konqueror/servicemenus/*.desktop +%{tde_datadir}/apps/konqueror/servicemenus/media_safelyremove.desktop_tdebase +%{tde_datadir}/apps/konqueror/tiles/*.png +%{tde_datadir}/autostart/konqy_preload.desktop +%{tde_datadir}/config.kcfg/keditbookmarks.kcfg +%{tde_datadir}/config.kcfg/konq_listview.kcfg +%{tde_datadir}/config.kcfg/konqueror.kcfg +%{tde_datadir}/icons/crystalsvg/*/apps/keditbookmarks.png +%{tde_datadir}/icons/crystalsvg/*/apps/kfm_home.svgz +%{tde_datadir}/icons/hicolor/*/apps/kfm.png +%{tde_datadir}/icons/hicolor/*/apps/konqueror.* +%{tde_datadir}/services/kded/konqy_preloader.desktop +%{tde_datadir}/services/konq_*.desktop +%{tde_datadir}/servicetypes/konqaboutpage.desktop +%{tde_tdedocdir}/HTML/en/konqueror/ + +%post -n trinity-konqueror +update-desktop-database %{tde_appdir} 2> /dev/null || : +for f in crystalsvg hicolor ; do + touch --no-create %{tde_datadir}/icons/${f} 2> /dev/null || : + gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} 2> /dev/null || : +done +/sbin/ldconfig || : +alternatives --install \ + %{tde_datadir}/apps/konqueror/servicemenus/media_safelyremove.desktop \ + media_safelyremove.desktop_konqueror \ + %{tde_datadir}/apps/konqueror/servicemenus/media_safelyremove.desktop_tdebase \ + 10 + +%postun -n trinity-konqueror +update-desktop-database %{tde_appdir} 2> /dev/null || : +for f in crystalsvg hicolor ; do + touch --no-create %{tde_datadir}/icons/${f} 2> /dev/null || : + gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} 2> /dev/null || : +done +/sbin/ldconfig || : + +%preun -n trinity-konqueror +if [ $1 -eq 0 ]; then + alternatives --remove \ + media_safelyremove.desktop_konqueror \ + %{tde_datadir}/apps/konqueror/servicemenus/media_safelyremove.desktop_tdebase +fi + +########## + +%package -n trinity-konqueror-devel +Summary: Development files for konqueror +Group: Development/Libraries +Requires: trinity-konqueror = %{version}-%{release} + +%description -n trinity-konqueror-devel +%{summary} + +%files -n trinity-konqueror-devel +%{tde_tdeincludedir}/konqsidebarplugin.h +%{tde_tdeincludedir}/KonquerorIface.h +%{tde_libdir}/libkonqsidebarplugin.la +%{tde_libdir}/libkonqsidebarplugin.so + +%post -n trinity-konqueror-devel +/sbin/ldconfig || : + +%postun -n trinity-konqueror-devel +/sbin/ldconfig || : + +########## + +%package -n trinity-konqueror-nsplugins +Summary: Netscape plugin support for Konqueror +Group: Applications/Utilities +Requires: trinity-konqueror = %{version}-%{release} + +%description -n trinity-konqueror-nsplugins +This package includes support for Netscape plugins in Konqueror. + +%files -n trinity-konqueror-nsplugins +%defattr(-,root,root,-) +%{tde_bindir}/nspluginscan +%{tde_bindir}/nspluginviewer +%{tde_tdelibdir}/kcm_nsplugins.la +%{tde_tdelibdir}/kcm_nsplugins.so +%{tde_tdelibdir}/libnsplugin.la +%{tde_tdelibdir}/libnsplugin.so +%{tde_tdeappdir}/khtml_plugins.desktop +%{tde_datadir}/apps/plugin/nspluginpart.rc + +%post -n trinity-konqueror-nsplugins +update-desktop-database %{tde_appdir} 2> /dev/null || : + +%postun -n trinity-konqueror-nsplugins +update-desktop-database %{tde_appdir} 2> /dev/null || : + +########## + +%package -n trinity-konsole +Summary: X terminal emulator for TDE +Group: Applications/Utilities +Requires: %{name}-data = %{version}-%{release} + +%description -n trinity-konsole +Konsole is an X terminal emulation which provides a command-line interface +(CLI) while using the graphical K Desktop Environment. Konsole helps to +better organize user's desktop by containing multiple sessions in a single +window (a less cluttered desktop). + +Its advanced features include a simple configuration and the ability to use +multiple terminal shells in a single window + +Using Konsole, a user can open: +* Linux console sessions +* Midnight Commander file manager sessions +* Shell sessions +* Root consoles sessions + +%files -n trinity-konsole +%defattr(-,root,root,-) +%{tde_bindir}/konsole +%{tde_tdelibdir}/kcm_konsole.la +%{tde_tdelibdir}/kcm_konsole.so +%{tde_tdelibdir}/kded_kwrited.la +%{tde_tdelibdir}/kded_kwrited.so +%{tde_tdelibdir}/konsole.la +%{tde_tdelibdir}/konsole.so +%{tde_tdelibdir}/libkonsolepart.la +%{tde_tdelibdir}/libkonsolepart.so +%{tde_libdir}/lib[kt]deinit_konsole.la +%{tde_libdir}/lib[kt]deinit_konsole.so +%{tde_tdeappdir}/konsole.desktop +%{tde_tdeappdir}/konsolesu.desktop +%{tde_datadir}/applnk/.hidden/kcmkonsole.desktop +%{tde_datadir}/apps/kconf_update/konsole.upd +%{tde_datadir}/apps/kconf_update/schemaStrip.pl +%{tde_datadir}/apps/konqueror/servicemenus/konsolehere.desktop +%{tde_datadir}/apps/konsole/ +%{tde_datadir}/icons/hicolor/*/apps/konsole.* +%{tde_datadir}/mimelnk/application/x-konsole.desktop +%{tde_datadir}/services/kded/kwrited.desktop +%{tde_datadir}/services/konsolepart.desktop +%{tde_datadir}/services/konsole-script.desktop +%{tde_datadir}/services/kwrited.desktop +%{tde_datadir}/servicetypes/terminalemulator.desktop +%{tde_tdedocdir}/HTML/en/konsole/ +%{tde_tdedocdir}/HTML/en/kcontrol/kcmkonsole/ + +%post -n trinity-konsole +update-desktop-database %{tde_appdir} 2> /dev/null || : +for f in hicolor ; do + touch --no-create %{tde_datadir}/icons/${f} 2> /dev/null || : + gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} 2> /dev/null || : +done +/sbin/ldconfig || : + +%postun -n trinity-konsole +update-desktop-database %{tde_appdir} 2> /dev/null || : +for f in hicolor ; do + touch --no-create %{tde_datadir}/icons/${f} 2> /dev/null || : + gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} 2> /dev/null || : +done +/sbin/ldconfig || : + +########## + +%package -n trinity-kpager +Summary: desktop pager for TDE +Group: Applications/Utilities +Requires: %{name}-data = %{version}-%{release} + +%description -n trinity-kpager +This package contains TDE's desktop pager, which displays your virtual +desktops iconically in a window, along with icons of any running +applications. It is used to switch between applications or desktops. + +%files -n trinity-kpager +%defattr(-,root,root,-) +%{tde_bindir}/kpager +%{tde_tdeappdir}/kpager.desktop +%{tde_datadir}/applnk/Utilities/kpager.desktop +%{tde_datadir}/icons/hicolor/*/apps/kpager.png +%{tde_tdedocdir}/HTML/en/kpager/ + +%post -n trinity-kpager +update-desktop-database %{tde_appdir} 2> /dev/null || : +for f in hicolor ; do + touch --no-create %{tde_datadir}/icons/${f} 2> /dev/null || : + gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} 2> /dev/null || : +done + +%postun -n trinity-kpager +update-desktop-database %{tde_appdir} 2> /dev/null || : +for f in hicolor ; do + touch --no-create %{tde_datadir}/icons/${f} 2> /dev/null || : + gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} 2> /dev/null || : +done + +########## + +%package -n trinity-kpersonalizer +Summary: installation personalizer for TDE +Group: Applications/Utilities +Requires: %{name}-data = %{version}-%{release} + +%description -n trinity-kpersonalizer +TDE Personalizer is the application that configures the TDE desktop for you. +It's a very useful wizard that allows you to quickly change the TDE desktop to +suit your own needs. When you run TDE for the first time, KPersonalizer is +automatically started. KPersonalizer can also be called later. + +%files -n trinity-kpersonalizer +%defattr(-,root,root,-) +%{tde_bindir}/kpersonalizer +%{tde_tdeappdir}/kpersonalizer.desktop +%{tde_datadir}/applnk/System/kpersonalizer.desktop +%{tde_datadir}/apps/kpersonalizer/ +%{tde_datadir}/icons/crystalsvg/*/apps/kpersonalizer.png + +%post -n trinity-kpersonalizer +update-desktop-database %{tde_appdir} 2> /dev/null || : +for f in crystalsvg ; do + touch --no-create %{tde_datadir}/icons/${f} 2> /dev/null || : + gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} 2> /dev/null || : +done + +%postun -n trinity-kpersonalizer +update-desktop-database %{tde_appdir} 2> /dev/null || : +for f in crystalsvg ; do + touch --no-create %{tde_datadir}/icons/${f} 2> /dev/null || : + gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} 2> /dev/null || : +done + +########## + +%package -n trinity-ksmserver +Summary: session manager for TDE +Group: Applications/Utilities +Requires: %{name}-data = %{version}-%{release} +Requires: trinity-twin = %{version}-%{release} + +%description -n trinity-ksmserver +This package contains the KDE session manager. It is responsible for +restoring your TDE session on login. It is also needed to properly +start a KDE session. It registers KDE with X display managers, and +provides the 'starttde' command, for starting an X session with KDE +from the console. + +If you are running TDE for the first time for a certain user, +kpersonalizer is used to help with setup. If it is not present, +KDE will start, but many good defaults will not be set. + +%files -n trinity-ksmserver +%defattr(-,root,root,-) +%{tde_bindir}/ksmserver +%{tde_bindir}/start[kt]de +%{tde_tdelibdir}/ksmserver.la +%{tde_tdelibdir}/ksmserver.so +%{tde_libdir}/lib[kt]deinit_ksmserver.la +%{tde_libdir}/lib[kt]deinit_ksmserver.so +%{tde_datadir}/apps/kconf_update/ksmserver.upd +%{tde_datadir}/apps/kconf_update/move_session_config.sh +%{tde_datadir}/apps/ksmserver/pics/shutdownkonq.png + +# Remove conflicts with redhat-menus +%if "%{?tde_prefix}" != "/usr" +%{tde_bindir}/plasma-desktop +%endif + +########## + +%package -n trinity-ksplash +Summary: the TDE splash screen +Group: Applications/Utilities +Requires: %{name}-data = %{version}-%{release} + +%description -n trinity-ksplash +This package includes the TDE Splash screen, which is seen when +a TDE session is launched. + +%files -n trinity-ksplash +%defattr(-,root,root,-) +%{tde_bindir}/ksplash +%{tde_bindir}/ksplashsimple +%{tde_tdelibdir}/kcm_ksplashthemes.la +%{tde_tdelibdir}/kcm_ksplashthemes.so +%{tde_tdelibdir}/ksplashdefault.la +%{tde_tdelibdir}/ksplashdefault.so +%{tde_tdelibdir}/ksplashunified.la +%{tde_tdelibdir}/ksplashunified.so +%{tde_tdelibdir}/ksplashredmond.la +%{tde_tdelibdir}/ksplashredmond.so +%{tde_tdelibdir}/ksplashstandard.la +%{tde_tdelibdir}/ksplashstandard.so +%{tde_libdir}/libksplashthemes.so.* +%{tde_tdeappdir}/ksplashthememgr.desktop +%{tde_datadir}/apps/ksplash +%{tde_datadir}/services/ksplashdefault.desktop +%{tde_datadir}/services/ksplash.desktop +%{tde_datadir}/services/ksplashunified.desktop +%{tde_datadir}/services/ksplashredmond.desktop +%{tde_datadir}/services/ksplashstandard.desktop +%{tde_datadir}/servicetypes/ksplashplugins.desktop +%{tde_tdedocdir}/HTML/en/ksplashml/ + +%post -n trinity-ksplash +update-desktop-database %{tde_appdir} 2> /dev/null || : +/sbin/ldconfig || : + +%postun -n trinity-ksplash +update-desktop-database %{tde_appdir} 2> /dev/null || : +/sbin/ldconfig || : + +########## + +%package -n trinity-ksplash-devel +Summary: Development files for ksplash +Group: Development/Libraries +Requires: trinity-ksplash = %{version}-%{release} + +%description -n trinity-ksplash-devel +%{summary} + +%files -n trinity-ksplash-devel +%{tde_tdeincludedir}/ksplash/* +%{tde_libdir}/libksplashthemes.la +%{tde_libdir}/libksplashthemes.so + +%post -n trinity-ksplash-devel +/sbin/ldconfig || : + +%postun -n trinity-ksplash-devel +/sbin/ldconfig || : + +########## + +%package -n trinity-ksysguard +Summary: system guard for TDE +Group: Applications/Utilities +Requires: %{name}-data = %{version}-%{release} +Requires: trinity-ksysguardd = %{version}-%{release} + +%description -n trinity-ksysguard +TDE System Guard allows you to monitor various statistics about your +computer. + +%files -n trinity-ksysguard +%defattr(-,root,root,-) +%{tde_bindir}/kpm +%{tde_bindir}/ksysguard +%{tde_tdelibdir}/sysguard_panelapplet.la +%{tde_tdelibdir}/sysguard_panelapplet.so +%{tde_libdir}/libksgrd.so.* +%{tde_tdeappdir}/ksysguard.desktop +%{tde_datadir}/apps/kicker/applets/ksysguardapplet.desktop +%{tde_datadir}/apps/ksysguard/ +%{tde_datadir}/icons/crystalsvg/*/apps/ksysguard.png +%{tde_datadir}/mimelnk/application/x-ksysguard.desktop +%{tde_tdedocdir}/HTML/en/ksysguard/ + +%post -n trinity-ksysguard +update-desktop-database %{tde_appdir} 2> /dev/null || : +for f in crystalsvg ; do + touch --no-create %{tde_datadir}/icons/${f} 2> /dev/null || : + gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} 2> /dev/null || : +done +/sbin/ldconfig || : + +%postun -n trinity-ksysguard +update-desktop-database %{tde_appdir} 2> /dev/null || : +for f in crystalsvg ; do + touch --no-create %{tde_datadir}/icons/${f} 2> /dev/null || : + gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} 2> /dev/null || : +done +/sbin/ldconfig || : + +########## + +%package -n trinity-ksysguard-devel +Summary: Development files for ksysguard +Group: Development/Libraries +Requires: trinity-ksysguard = %{version}-%{release} + +%description -n trinity-ksysguard-devel +%{summary} + +%files -n trinity-ksysguard-devel +%{tde_tdeincludedir}/ksgrd/* +%{tde_libdir}/libksgrd.la +%{tde_libdir}/libksgrd.so + +%post -n trinity-ksysguard-devel +/sbin/ldconfig || : + +%postun -n trinity-ksysguard-devel +/sbin/ldconfig || : + +########## + +%package -n trinity-ksysguardd +Summary: system guard daemon for TDE +Group: Applications/Utilities +Requires: %{name}-data = %{version}-%{release} + +%description -n trinity-ksysguardd +TDE System Guard Daemon is the daemon part of ksysguard. The daemon can +be installed on a remote machine to enable ksysguard on another machine +to monitor it through the daemon running there. + +%files -n trinity-ksysguardd +%defattr(-,root,root,-) +%{tde_bindir}/ksysguardd +%config(noreplace) %{_sysconfdir}/ksysguarddrc.tde + +%post -n trinity-ksysguardd +# Dirty hack to install '/etc/ksysguarddrc' alongside with KDE4 +[ -r "%{_sysconfdir}/ksysguarddrc" ] || cp -f "%{_sysconfdir}/ksysguarddrc.tde" "%{_sysconfdir}/ksysguarddrc" + +########## + +%package -n trinity-ktip +Summary: useful tips for TDE +Group: Applications/Utilities +Requires: %{name}-data = %{version}-%{release} + +%description -n trinity-ktip +ktip provides many useful tips on using KDE when you log in. + +%files -n trinity-ktip +%defattr(-,root,root,-) +%{tde_bindir}/ktip +%{tde_tdeappdir}/ktip.desktop +%{tde_datadir}/applnk/Toys/ktip.desktop +%{tde_datadir}/apps/kdewizard/pics/wizard_small.png +%{tde_datadir}/apps/kdewizard/tips/ +%{tde_datadir}/autostart/ktip.desktop +%{tde_datadir}/icons/hicolor/*/apps/ktip.* + +%post -n trinity-ktip +update-desktop-database %{tde_appdir} 2> /dev/null || : +for f in hicolor ; do + touch --no-create %{tde_datadir}/icons/${f} 2> /dev/null || : + gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} 2> /dev/null || : +done + +%postun -n trinity-ktip +update-desktop-database %{tde_appdir} 2> /dev/null || : +for f in hicolor ; do + touch --no-create %{tde_datadir}/icons/${f} 2> /dev/null || : + gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} 2> /dev/null || : +done + +########## + +%package -n trinity-twin +Summary: the TDE window manager +Group: Applications/Utilities +Requires: %{name}-data = %{version}-%{release} + +%description -n trinity-twin +This package contains the default X window manager for KDE. + +%files -n trinity-twin +%defattr(-,root,root,-) +%{tde_bindir}/kompmgr +%{tde_bindir}/[kt]win +%{tde_bindir}/[kt]win_killer_helper +#%{tde_bindir}/[kt]win_resumer_helper +%{tde_bindir}/[kt]win_rules_dialog +%{tde_libdir}/kconf_update_bin/[kt]win_update_default_rules +%{tde_libdir}/kconf_update_bin/[kt]win_update_window_settings +%{tde_tdelibdir}/kcm_[kt]win*.la +%{tde_tdelibdir}/kcm_[kt]win*.so +%{tde_tdelibdir}/[kt]win*.la +%{tde_tdelibdir}/[kt]win*.so +%{tde_libdir}/lib[kt]decorations.so.* +%{tde_libdir}/lib[kt]deinit_[kt]win_rules_dialog.la +%{tde_libdir}/lib[kt]deinit_[kt]win_rules_dialog.so +%{tde_libdir}/lib[kt]deinit_[kt]win.la +%{tde_libdir}/lib[kt]deinit_[kt]win.so +%{tde_tdeappdir}/showdesktop.desktop +%{tde_tdeappdir}/[kt]windecoration.desktop +%{tde_tdeappdir}/[kt]winoptions.desktop +%{tde_tdeappdir}/[kt]winrules.desktop +%{tde_datadir}/applnk/.hidden/[kt]winactions.desktop +%{tde_datadir}/applnk/.hidden/[kt]winadvanced.desktop +%{tde_datadir}/applnk/.hidden/[kt]winfocus.desktop +%{tde_datadir}/applnk/.hidden/[kt]winmoving.desktop +%{tde_datadir}/applnk/.hidden/[kt]wintranslucency.desktop +%{tde_datadir}/apps/kconf_update/[kt]win3_plugin.pl +%{tde_datadir}/apps/kconf_update/[kt]win3_plugin.upd +%{tde_datadir}/apps/kconf_update/[kt]win_focus1.sh +%{tde_datadir}/apps/kconf_update/[kt]win_focus1.upd +%{tde_datadir}/apps/kconf_update/[kt]win_focus2.sh +%{tde_datadir}/apps/kconf_update/[kt]win_focus2.upd +%{tde_datadir}/apps/kconf_update/[kt]win_fsp_workarounds_1.upd +%{tde_datadir}/apps/kconf_update/[kt]winiconify.upd +%{tde_datadir}/apps/kconf_update/[kt]winsticky.upd +%{tde_datadir}/apps/kconf_update/[kt]win.upd +%{tde_datadir}/apps/kconf_update/[kt]winupdatewindowsettings.upd +%{tde_datadir}/apps/kconf_update/pluginlibFix.pl +%{tde_datadir}/apps/[kt]win/ +%{tde_datadir}/config.kcfg/[kt]win.kcfg +%{tde_datadir}/icons/crystalsvg/*/apps/[kt]win.png +%{tde_tdedocdir}/HTML/en/kompmgr/ + +%post -n trinity-twin +update-desktop-database %{tde_appdir} 2> /dev/null || : +for f in crystalsvg ; do + touch --no-create %{tde_datadir}/icons/${f} 2> /dev/null || : + gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} 2> /dev/null || : +done +/sbin/ldconfig || : + +%postun -n trinity-twin +update-desktop-database %{tde_appdir} 2> /dev/null || : +for f in crystalsvg ; do + touch --no-create %{tde_datadir}/icons/${f} 2> /dev/null || : + gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} 2> /dev/null || : +done +/sbin/ldconfig || : + +########## + +%package -n trinity-twin-devel +Summary: Development files for twin +Group: Development/Libraries +Requires: trinity-twin = %{version}-%{release} + +%description -n trinity-twin-devel +%{summary} + +%files -n trinity-twin-devel +%{tde_tdeincludedir}/[kt]win/ +%{tde_tdeincludedir}/kcommondecoration.h +%{tde_tdeincludedir}/kdecoration.h +%{tde_tdeincludedir}/kdecoration_p.h +%{tde_tdeincludedir}/kdecoration_plugins_p.h +%{tde_tdeincludedir}/kdecorationfactory.h +%{tde_tdeincludedir}/KWinInterface.h +%{tde_libdir}/libkdecorations.la +%{tde_libdir}/libkdecorations.so + +%post -n trinity-twin-devel +/sbin/ldconfig || : + +%postun -n trinity-twin-devel +/sbin/ldconfig || : + +########## + +%package -n trinity-libkonq +Summary: core libraries for Konqueror +Group: Environment/Libraries + +%description -n trinity-libkonq +These libraries are used by several TDE applications, most notably +Konqueror and the kdesktop package. + +%files -n trinity-libkonq +%defattr(-,root,root,-) +%{tde_tdelibdir}/kded_favicons.la +%{tde_tdelibdir}/kded_favicons.so +%{tde_tdelibdir}/konq_sound.la +%{tde_tdelibdir}/konq_sound.so +%{tde_libdir}/libkonq.so.* +%{tde_datadir}/apps/kbookmark/directory_bookmarkbar.desktop +%{tde_datadir}/apps/kconf_update/favicons.upd +%{tde_datadir}/apps/kconf_update/move_favicons.sh +%{tde_datadir}/apps/konqueror/pics/arrow_bottomleft.png +%{tde_datadir}/apps/konqueror/pics/arrow_bottomright.png +%{tde_datadir}/apps/konqueror/pics/arrow_topleft.png +%{tde_datadir}/apps/konqueror/pics/arrow_topright.png +%{tde_datadir}/apps/konqueror/pics/thumbnailfont_7x4.png +%{tde_datadir}/services/kded/favicons.desktop +%{tde_datadir}/servicetypes/konqpopupmenuplugin.desktop + +%post -n trinity-libkonq +/sbin/ldconfig || : + +%postun -n trinity-libkonq +/sbin/ldconfig || : + +########## + +%package libtqt3-integration +Summary: Integration library between TQt3 and TDE +Group: Environment/Libraries + +Obsoletes: tdebase-libtqt3-integration < %{version}-%{release} +Provides: tdebase-libtqt3-integration = %{version}-%{release} + +%description libtqt3-integration +These libraries allow you to use TDE dialogs in native TQt3 applications. + +%files libtqt3-integration +%defattr(-,root,root,-) +%{tde_tdelibdir}/plugins/integration/libqtkde.la +%{tde_tdelibdir}/plugins/integration/libqtkde.so +%{tde_tdelibdir}/plugins/integration/libqtkde.so.* +%{tde_tdelibdir}/kded_kdeintegration.la +%{tde_tdelibdir}/kded_kdeintegration.so +%{tde_datadir}/services/kded/kdeintegration.desktop + +########## + +%package -n trinity-libkonq-devel +Summary: development files for Konqueror's core libraries +Group: Development/Libraries +Requires: trinity-libkonq = %{version}-%{release} + +%description -n trinity-libkonq-devel +This package contains headers and other development files for the core +Konqueror libraries. + +%files -n trinity-libkonq-devel +%defattr(-,root,root,-) +%{tde_tdeincludedir}/kfileivi.h +%{tde_tdeincludedir}/kivdirectoryoverlay.h +%{tde_tdeincludedir}/knewmenu.h +%{tde_tdeincludedir}/konqbookmarkmanager.h +%{tde_tdeincludedir}/konq_*.h +%{tde_tdeincludedir}/libkonq_export.h +%{tde_libdir}/libkonq.la +%{tde_libdir}/libkonq.so + +%post -n trinity-libkonq-devel +/sbin/ldconfig || : + +%postun -n trinity-libkonq-devel +/sbin/ldconfig || : + +########## + +%prep +%setup -q -n kdebase + +%patch0 -p1 +%patch1 -p1 +%patch2 -p1 + +%patch11 -p1 -b .openterminalhere +%if 0%{?rhel} || 0%{?fedora} +%patch13 -p1 -b .Xsession +%endif +%patch15 -p1 -b .tdeicon +%if 0%{?rhel} || 0%{?mgaversion} || 0%{?mdkversion} +%patch21 -p1 -b .man +%endif +%patch26 -p1 -b .doubleclick +%patch30 -p1 -b .xtestsupport +%patch36 -p1 -b .disablescrolldesktop +%patch44 -p1 -b .kxdglauncherdoc +%patch55 -p1 -b .addreorderdocinkate +%patch56 -p1 -b .adddraganddropinkate +%patch57 -p1 -b .disablekeybshortcut +%patch60 -p1 -b .defaultkonqmaxsizepreview + +# Applies an optional distro-specific graphical theme +%if "%{?tde_bg}" != "" +# KDM Background +%__sed -i "kdm/kfrontend/genkdmconf.c" \ + -e 's|"Wallpaper=isadora.png\n"|"Wallpaper=%{tde_bg}\n"|' + +# TDE user default background +%__sed -i "kpersonalizer/keyecandypage.cpp" \ + -e 's|#define DEFAULT_WALLPAPER "isadora.png"|#define DEFAULT_WALLPAPER "%{tde_bg}"|' +%__sed -i "startkde" \ + -e 's|/usr/share/wallpapers/isadora.png.desktop|%{tde_bg}|' \ + -e 's|Wallpaper=isadora.png|Wallpaper=%{tde_bg}|' +%endif + +# TDE branding: removes KUbuntu references [Bug #617] +%__sed -i "kcontrol/kdm/kdm-appear.cpp" \ + -e "s|Welcome to Kubuntu |Welcome to %{tde_aboutlabel} |" +%__sed -i "konqueror/about/konq_aboutpage.cc" \ + -e "s|About Kubuntu|About %{tde_aboutlabel}|" \ + -e "s|help:/kubuntu/|%{tde_aboutpage}|" \ + -e "s|Kubuntu Documentation|%{tde_aboutlabel} Documentation|" +%__sed -i "konqueror/about/launch.html" \ + -e "s|help:/kubuntu/about-kubuntu/index.html|%{tde_aboutpage}|" +%__sed -i "kdm/config.def" \ + -e "s|Welcome to Trinity |Welcome to %{tde_aboutlabel} |" + +# TDE default directory in 'startkde' script (KDEDIR) +%__sed -i "startkde" \ + -e "s|/opt/trinity|%{tde_prefix}|g" + +# TDE default start button icon +%__sed -i "startkde" \ + -e "s|%%{tde_starticon}|%{tde_starticon}|g" + + +%build +unset QTDIR || : ; . /etc/profile.d/qt.sh +export PATH="%{tde_bindir}:${PATH}" +export PKG_CONFIG_PATH="%{tde_libdir}/pkgconfig" +export CMAKE_INCLUDE_PATH="%{tde_includedir}:%{tde_includedir}/tqt" +export LD_LIBRARY_PATH="%{tde_libdir}" + +%if 0%{?rhel} || 0%{?fedora} +%__mkdir_p build +cd build +%endif + +%cmake \ + -DBIN_INSTALL_DIR=%{tde_bindir} \ + -DINCLUDE_INSTALL_DIR=%{tde_tdeincludedir} \ + -DLIB_INSTALL_DIR=%{tde_libdir} \ + -DSHARE_INSTALL_PREFIX=%{tde_datadir} \ + -DCMAKE_SKIP_RPATH="OFF" \ + -DWITH_SASL=ON \ + -DWITH_LDAP=ON \ + -DWITH_SAMBA=ON \ + -DWITH_OPENEXR=ON \ + -DWITH_XCOMPOSITE=ON \ + -DWITH_XCURSOR=ON \ + -DWITH_XFIXES=ON \ +%if 0%{?fedora} || 0%{?rhel} >= 6 + -DWITH_XRANDR=ON \ +%else + -DWITH_XRANDR=OFF \ +%endif + -DWITH_XRENDER=ON \ + -DWITH_XDAMAGE=ON \ + -DWITH_XEXT=ON \ + -DWITH_XTEST=ON \ + -DWITH_LIBUSB=ON \ + -DWITH_LIBRAW1394=ON \ + -DWITH_PAM=ON \ + -DWITH_XDMCP=ON \ + -DWITH_XINERAMA=ON \ + -DWITH_ARTS=ON \ + -DWITH_I8K=ON \ + -DWITH_HAL=ON \ + -DBUILD_ALL=ON \ + -DKCHECKPASS_PAM_SERVICE="kcheckpass-trinity" \ + -DKDM_PAM_SERVICE="kdm-trinity" \ + -DKSCREENSAVER_PAM_SERVICE="kscreensaver-trinity" \ + -DWITH_XSCREENSAVER=ON \ + .. + +%__make %{?_smp_mflags} + +%install +%__rm -rf %{?buildroot} +%__make install DESTDIR=%{?buildroot} -C build + + +# Adds a GDM/KDM/XDM session called 'TDE' +%if 0%{?rhel} || 0%{?fedora} +%__install -D -m 644 \ + "%{?buildroot}%{tde_datadir}/apps/kdm/sessions/tde.desktop" \ + "%{?buildroot}%{_usr}/share/xsessions/tde.desktop" + +# Force session name to be 'TDE' +%__sed -i "%{?buildroot}%{_usr}/share/xsessions/tde.desktop" \ + -e "s,^Name=.*,Name=TDE," +%endif + +# Mageia/Mandriva stores its session file in different folder than RHEL/Fedora +%if 0%{?mgaversion} || 0%{?mdkversion} +%__install -d -m 755 %{?buildroot}%{_sysconfdir}/X11/wmsession.d +cat <<EOF >"%{?buildroot}%{_sysconfdir}/X11/wmsession.d/45TDE" +NAME=TDE +ICON=kde-wmsession.xpm +DESC=The Trinity Desktop Environment +EXEC=%{tde_bindir}/startkde +SCRIPT: +exec %{tde_bindir}/startkde +EOF +%endif + +# Renames '/etc/ksysguarddrc' to avoid conflict with KDE4 'ksysguard' +%__mv -f \ + %{?buildroot}%{_sysconfdir}/ksysguarddrc \ + %{?buildroot}%{_sysconfdir}/ksysguarddrc.tde + +# TDE 3.5.12: add script "plasma-desktop" to avoid conflict with KDE4 +%if "%{?tde_prefix}" != "/usr" +%__install -m 755 "%{SOURCE1}" "%{?buildroot}%{tde_bindir}" +%endif + +# PAM configuration files +%__install -D -m 644 "%{SOURCE2}" "%{?buildroot}%{_sysconfdir}/pam.d/kdm-trinity" +%__install -D -m 644 "%{SOURCE3}" "%{?buildroot}%{_sysconfdir}/pam.d/kdm-trinity-np" +%__install -D -m 644 "%{SOURCE4}" "%{?buildroot}%{_sysconfdir}/pam.d/kcheckpass-trinity" +%__install -D -m 644 "%{SOURCE5}" "%{?buildroot}%{_sysconfdir}/pam.d/kscreensaver-trinity" + +# KDM configuration for RHEL/Fedora +%__sed -i "%{?buildroot}%{tde_datadir}/config/kdm/kdmrc" \ +%if 0%{?fedora} >= 16 + -e "s/^#*MinShowUID=.*/MinShowUID=1000/" +%else + -e "s/^#*MinShowUID=.*/MinShowUID=500/" +%endif + +# Moves the XDG configuration files to TDE directory +%if "%{tde_prefix}" != "/usr" +%__mkdir_p "%{?buildroot}%{tde_prefix}/etc" +%__mv -f "%{?buildroot}%{_sysconfdir}/xdg" "%{?buildroot}%{tde_prefix}/etc" +%endif + +# Symlinks 'usb.ids' +%__rm -f "%{?buildroot}%{tde_datadir}/apps/usb.ids" +%__ln_s -f "/usr/share/hwdata/usb.ids" "%{?buildroot}%{tde_datadir}/apps/usb.ids" + +# Makes 'media_safelyremove.desktop' an alternative +%__mv -f %{buildroot}%{tde_datadir}/apps/konqueror/servicemenus/media_safelyremove.desktop %{buildroot}%{tde_datadir}/apps/konqueror/servicemenus/media_safelyremove.desktop_tdebase +%__ln_s /etc/alternatives/media_safelyremove.desktop_tdebase %{buildroot}%{tde_datadir}/apps/konqueror/servicemenus/media_safelyremove.desktop + + +%clean +%__rm -rf %{?buildroot} + + + + +%changelog +* Sat Jul 14 2012 Francois Andriot <francois.andriot@free.fr> - 3.5.13-26 +- Add xscreensaver support to CMake [Bug #659] [Commit #80deb529] +- Enables 'shadow' support +- Enables 'i8k' support + diff --git a/redhat/kdebase/trinity-kdebase-3.5.13.spec b/redhat/kdebase/trinity-kdebase-3.5.13.spec index fd1e2fa99..9ab4c4985 100644 --- a/redhat/kdebase/trinity-kdebase-3.5.13.spec +++ b/redhat/kdebase/trinity-kdebase-3.5.13.spec @@ -60,6 +60,8 @@ Source5: pamd.kscreensaver-trinity%{?dist} Source6: tiles-fixed-png-images.tar.gz # TDE 3.5.13 patches +## [kdebase] Missing LDFLAGS cause FTBFS +Patch2: tdebase-3.5.13.1-missing_ldflags.patch ## [kdebase/kdm] adds gcrypt support [Bug #624] Patch7: kdebase-3.5.13-kdm-crypt.patch ## [kdebase/kioslave/media/mediamanager] FTBFS missing dbus-tqt includes [RHEL/Fedora] @@ -1786,21 +1788,18 @@ already. Most users won't need this. %{tde_datadir}/apps/[kt]dm/themes/ %{tde_datadir}/config/[kt]dm/ %{tde_tdedocdir}/HTML/en/[kt]dm/ +%{_sysconfdir}/pam.d/kdm-trinity +%{_sysconfdir}/pam.d/kdm-trinity-np # Distribution specific stuff %if 0%{?rhel} || 0%{?fedora} %{_usr}/share/xsessions/tde.desktop %endif -%{_sysconfdir}/pam.d/kdm-trinity -%{_sysconfdir}/pam.d/kdm-trinity-np -%if 0%{?mgaversion} || 0%{?mdkversion} -%{_sysconfdir}/X11/wmsession.d/* -%post -n trinity-tdm -%make_session - -%postun -n trinity-tdm -%make_session +# https://wiki.mageia.org/en/How_to_add_a_new_Window_Manager_or_Display_Manager +%if 0%{?mgaversion} || 0%{?mdkversion} +%{_sysconfdir}/X11/wmsession.d/45TDE +%{_datadir}/X11/dm.d/45TDE.conf %endif ########## @@ -2902,6 +2901,7 @@ Konqueror libraries. %setup -q -n kdebase %__tar xfz %{SOURCE6} -C kicker/data/tiles +%patch2 -p1 %patch7 -p1 %patch8 -p1 %patch9 -p1 @@ -2994,7 +2994,7 @@ Konqueror libraries. %__sed -i "startkde" \ -e "s|/opt/trinity|%{tde_prefix}|g" -# TDE default start button icon +# TDE default start button icon [See Patch15] %__sed -i "startkde" \ -e "s|%%{tde_starticon}|%{tde_starticon}|g" @@ -3077,6 +3077,15 @@ EXEC=%{tde_bindir}/startkde SCRIPT: exec %{tde_bindir}/startkde EOF + +%__install -d -m 755 %{?buildroot}%{_datadir}/X11/dm.d +cat <<EOF >"%{?buildroot}%{_datadir}/X11/dm.d/45TDE.conf" +NAME=TDM +DESCRIPTION=TDM (Trinity Display Manager) +PACKAGE=trinity-tdm +EXEC=%{tde_bindir}/kdm +FNDSESSION_EXEC="/usr/sbin/chksession --generate=/usr/share/xsessions" +EOF %endif # Renames '/etc/ksysguarddrc' to avoid conflict with KDE4 'ksysguard' diff --git a/redhat/kdebindings/trinity-kdebindings-3.5.13.spec b/redhat/kdebindings/trinity-kdebindings-3.5.13.spec index e095efe8a..f9b53ff25 100644 --- a/redhat/kdebindings/trinity-kdebindings-3.5.13.spec +++ b/redhat/kdebindings/trinity-kdebindings-3.5.13.spec @@ -257,18 +257,27 @@ This package is part of the official TDE bindings module. %files -n trinity-libqt3-jni %defattr(-,root,root,-) %{tde_libdir}/libqtjavasupport.la -%{tde_libdir}/libqtjavasupport.so %{tde_libdir}/libqtjavasupport.so.* %{tde_libdir}/jni/libqtjava.la -%{tde_libdir}/jni/libqtjava.so %{tde_libdir}/jni/libqtjava.so.* %doc qtjava/ChangeLog -%post -n trinity-libqt3-jni -/sbin/ldconfig || : +########## -%postun -n trinity-libqt3-jni -/sbin/ldconfig || : +%package -n trinity-libqt3-jni-devel +Summary: Development files fo Java bindings for Qt ( Native libraries ) [Trinity] +Group: Development/Libraries +Requires: trinity-libqt3-jni = %{version}-%{release} + +%description -n trinity-libqt3-jni-devel +This package contains the development files for trinity-libqt3-jni. + +This package is part of the official TDE bindings module. + +%files -n trinity-libqt3-jni-devel +%defattr(-,root,root,-) +%{tde_libdir}/libqtjavasupport.so +%{tde_libdir}/jni/libqtjava.so ########## @@ -308,12 +317,27 @@ This package is part of the official TDE bindings module. %files -n trinity-libtrinity-jni %defattr(-,root,root,-) %{tde_libdir}/jni/libkdejava.la -%{tde_libdir}/jni/libkdejava.so %{tde_libdir}/jni/libkdejava.so.* %doc kdejava/ChangeLog ########## +%package -n trinity-libtrinity-jni-devel +Summary: Development files for tdelibs bindings for java ( Native libraries ) [Trinity] +Group: Development/Libraries +Requires: trinity-libtrinity-jni = %{version}-%{release} + +%description -n trinity-libtrinity-jni-devel +This package contains the development files for trinity-libtrinity-jni. + +This package is part of the official TDE bindings module. + +%files -n trinity-libtrinity-jni-devel +%defattr(-,root,root,-) +%{tde_libdir}/jni/libkdejava.so + +########## + %package -n trinity-libsmokeqt1 Summary: SMOKE Binding Library to Qt Group: Environment/Libraries @@ -854,7 +878,8 @@ Requires: trinity-libsmokekde-devel = %{version}-%{release} Requires: trinity-libkjsembed-devel = %{version}-%{release} Requires: trinity-libxparts-devel = %{version}-%{release} Requires: trinity-libdcop-c-devel = %{version}-%{release} -Requires: trinity-tdebindings-devel = %{version}-%{release} +Requires: trinity-libqt3-jni-devel = %{version}-%{release} +Requires: trinity-libtrinity-jni-devel = %{version}-%{release} %description devel Development files for the TDE bindings. diff --git a/redhat/kdeedu/trinity-kdeedu-3.5.12.spec b/redhat/kdeedu/trinity-kdeedu-3.5.12.spec index 0cfdf0dcc..744c4c8e4 100644 --- a/redhat/kdeedu/trinity-kdeedu-3.5.12.spec +++ b/redhat/kdeedu/trinity-kdeedu-3.5.12.spec @@ -189,9 +189,11 @@ for i in crystalsvg hicolor locolor ; do done update-desktop-database >& /dev/null ||: -%post libs -p /sbin/ldconfig +%post libs +/sbin/ldconfig -%postun libs -p /sbin/ldconfig +%postun libs +/sbin/ldconfig %files -f %{name}.lang diff --git a/redhat/kdegames/trinity-kdegames-3.5.12.spec b/redhat/kdegames/trinity-kdegames-3.5.12.spec index 3cb97f970..148a3c7d2 100644 --- a/redhat/kdegames/trinity-kdegames-3.5.12.spec +++ b/redhat/kdegames/trinity-kdegames-3.5.12.spec @@ -150,9 +150,11 @@ for f in crystalsvg hicolor ; do done update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || : -%post libs -p /sbin/ldconfig +%post libs +/sbin/ldconfig -%postun libs -p /sbin/ldconfig +%postun libs +/sbin/ldconfig %files -f %{name}.lang diff --git a/redhat/kdegraphics/trinity-kdegraphics-3.5.12.spec b/redhat/kdegraphics/trinity-kdegraphics-3.5.12.spec index 512d70952..9e1e07e3b 100644 --- a/redhat/kdegraphics/trinity-kdegraphics-3.5.12.spec +++ b/redhat/kdegraphics/trinity-kdegraphics-3.5.12.spec @@ -231,9 +231,11 @@ for f in crystalsvg hicolor ; do done update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || : -%post libs -p /sbin/ldconfig +%post libs +/sbin/ldconfig -%postun libs -p /sbin/ldconfig +%postun libs +/sbin/ldconfig %post extras /sbin/ldconfig ||: diff --git a/redhat/kdelibs/kdelibs-3.5.13-add_readonly_to_tde_application.patch b/redhat/kdelibs/kdelibs-3.5.13-add_readonly_to_tde_application.patch deleted file mode 100644 index dcdbd4e99..000000000 --- a/redhat/kdelibs/kdelibs-3.5.13-add_readonly_to_tde_application.patch +++ /dev/null @@ -1,248 +0,0 @@ -commit d3a9d56143cf668c7d29b26a324a424d02036371 -Author: Timothy Pearson <kb9vqf@pearsoncomputing.net> -Date: 1337109016 -0500 - - Add the ability to force read-only configuration file access in a TDE application - Force kde-config to use read-only access - This closes Bug 293 - -diff --git a/kdecore/kconfigbackend.cpp b/kdecore/kconfigbackend.cpp -index 9ee9dd6..4ad0e5f 100644 ---- a/kdecore/kconfigbackend.cpp -+++ b/kdecore/kconfigbackend.cpp -@@ -247,17 +247,22 @@ void KConfigBackEnd::changeFileName(const TQString &_fileName, - mfileName = _fileName; - resType = _resType; - useKDEGlobals = _useKDEGlobals; -- if (mfileName.isEmpty()) -+ if (mfileName.isEmpty()) { - mLocalFileName = TQString::null; -- else if (!TQDir::isRelativePath(mfileName)) -+ } -+ else if (!TQDir::isRelativePath(mfileName)) { - mLocalFileName = mfileName; -- else -- mLocalFileName = KGlobal::dirs()->saveLocation(resType) + mfileName; -+ } -+ else { -+ mLocalFileName = KGlobal::dirs()->saveLocation(resType, TQString(), false) + mfileName; -+ } - -- if (useKDEGlobals) -+ if (useKDEGlobals) { - mGlobalFileName = KGlobal::dirs()->saveLocation("config", TQString(), false) + TQString::fromLatin1("kdeglobals"); -- else -+ } -+ else { - mGlobalFileName = TQString::null; -+ } - - d->localLastModified = TQDateTime(); - d->localLastSize = 0; -diff --git a/kdecore/kconfigbase.cpp b/kdecore/kconfigbase.cpp -index 9ad6600..c5c0a4e 100644 ---- a/kdecore/kconfigbase.cpp -+++ b/kdecore/kconfigbase.cpp -@@ -1139,16 +1139,18 @@ static TQString translatePath( TQString path ) - - // return original path, if it refers to another type of URL (e.g. http:/), or - // if the path is already relative to another directory -- if (!startsWithFile && path[0] != '/' || -- startsWithFile && path[5] != '/') -+ if (((!startsWithFile) && (path[0] != '/')) || (startsWithFile && (path[5] != '/'))) { - return path; -+ } - -- if (startsWithFile) -+ if (startsWithFile) { - path.remove(0,5); // strip leading "file:/" off the string -+ } - - // keep only one single '/' at the beginning - needed for cleanHomeDirPath() -- while (path[0] == '/' && path[1] == '/') -+ while (path[0] == '/' && path[1] == '/') { - path.remove(0,1); -+ } - - // we can not use KGlobal::dirs()->relativeLocation("home", path) here, - // since it would not recognize paths without a trailing '/'. -diff --git a/kdecore/kinstance.cpp b/kdecore/kinstance.cpp -index fe0a515..5b3aa86 100644 ---- ./kdecore/kinstance.cpp.orig 2011-08-11 04:30:15.000000000 +0200 -+++ ./kdecore/kinstance.cpp 2012-06-19 21:14:21.569741870 +0200 -@@ -70,7 +70,7 @@ - : _dirs (0L), - _config (0L), - _iconLoader (0L), -- _name( name ), _aboutData( new KAboutData( name, "", 0 ) ) -+ _name( name ), _aboutData( new KAboutData( name, "", 0 ) ), m_configReadOnly(false) - { - DEBUG_ADD - Q_ASSERT(!name.isEmpty()); -@@ -88,7 +88,7 @@ - : _dirs (0L), - _config (0L), - _iconLoader (0L), -- _name( aboutData->appName() ), _aboutData( aboutData ) -+ _name( aboutData->appName() ), _aboutData( aboutData ), m_configReadOnly(false) - { - DEBUG_ADD - Q_ASSERT(!_name.isEmpty()); -@@ -107,7 +107,7 @@ - : _dirs ( src->_dirs ), - _config ( src->_config ), - _iconLoader ( src->_iconLoader ), -- _name( src->_name ), _aboutData( src->_aboutData ) -+ _name( src->_name ), _aboutData( src->_aboutData ), m_configReadOnly(false) - { - DEBUG_ADD - Q_ASSERT(!_name.isEmpty()); -@@ -174,6 +174,11 @@ - extern bool kde_kiosk_exception; - extern bool kde_kiosk_admin; - -+void KInstance::setConfigReadOnly(bool ro) -+{ -+ m_configReadOnly = ro; -+} -+ - KConfig *KInstance::config() const - { - DEBUG_CHECK_ALIVE -@@ -198,10 +203,12 @@ - - if ( d->sharedConfig == 0 ) - { -- if ( !_name.isEmpty() ) -- d->sharedConfig = KSharedConfig::openConfig( _name + "rc"); -- else -+ if ( !_name.isEmpty() ) { -+ d->sharedConfig = KSharedConfig::openConfig( _name + "rc", m_configReadOnly ); -+ } -+ else { - d->sharedConfig = KSharedConfig::openConfig( TQString::null ); -+ } - } - - // Check if we are excempt from kiosk restrictions -@@ -211,7 +218,7 @@ - d->sharedConfig = 0; - return config(); // Reread... - } -- -+ - _config = d->sharedConfig; - if (_dirs) - if (_dirs->addCustomized(_config)) -diff --git a/kdecore/kinstance.h b/kdecore/kinstance.h -index 75cc4b4..444a2d8 100644 ---- a/kdecore/kinstance.h -+++ b/kdecore/kinstance.h -@@ -69,7 +69,7 @@ class kdecore_EXPORT KInstance - * Only for K(Unique)Application - * Initialize from src and delete it. - */ -- -+ - KInstance( KInstance* src ); - - /** -@@ -96,6 +96,14 @@ class kdecore_EXPORT KInstance - KSharedConfig *sharedConfig() const; - - /** -+ * Set a read-only flag on the configuration files -+ * This must be called before config() or dirs() to have any effect -+ * Defaults to FALSE -+ * @param ro read only if TRUE -+ */ -+ void setConfigReadOnly(bool ro); -+ -+ /** - * Returns an iconloader object. - * @return the iconloader object. - */ -@@ -162,6 +170,7 @@ protected: - virtual void virtual_hook( int id, void* data ); - private: - KInstancePrivate *d; -+ bool m_configReadOnly; - }; - - #endif -diff --git a/kdecore/kstandarddirs.cpp b/kdecore/kstandarddirs.cpp -index bce4bf4..bb8ae97 100644 ---- a/kdecore/kstandarddirs.cpp.orig 2011-08-21 06:15:32.000000000 +0200 -+++ b/kdecore/kstandarddirs.cpp 2012-06-19 21:17:34.550007910 +0200 -@@ -451,13 +450,17 @@ - bool KStandardDirs::exists(const TQString &fullPath) - { - KDE_struct_stat buff; -- if (access(TQFile::encodeName(fullPath), R_OK) == 0 && KDE_stat( TQFile::encodeName(fullPath), &buff ) == 0) -+ if ((access(TQFile::encodeName(fullPath), R_OK) == 0) && (KDE_stat( TQFile::encodeName(fullPath), &buff ) == 0)) { - if (fullPath.tqat(fullPath.length() - 1) != QChar('/')) { - if (S_ISREG( buff.st_mode )) - return true; -- } else -- if (S_ISDIR( buff.st_mode )) -+ } -+ else { -+ if (S_ISDIR( buff.st_mode )) { - return true; -+ } -+ } -+ } - return false; - } - -@@ -767,17 +770,23 @@ - srv = findExe(TQString::tqfromLatin1("lnusertemp")); - if (!srv.isEmpty()) - { -- system(TQFile::encodeName(srv)+" "+type); -- result = readlink(TQFile::encodeName(dir).data(), link, 1023); -+ if (system(TQFile::encodeName(srv)+" "+type) < 0 ) { -+ result = readlink(TQFile::encodeName(dir).data(), link, 1023); -+ } -+ else { -+ result = -1; -+ } - } - } - if (result > 0) - { - link[result] = 0; -- if (link[0] == TQChar('/').latin1()) -+ if (link[0] == TQChar('/').latin1()) { - dir = TQFile::decodeName(link); -- else -+ } -+ else { - dir = TQDir::cleanDirPath(dir+TQFile::decodeName(link)); -+ } - } - #endif - addResourceDir(type, dir+QChar('/')); -@@ -1139,8 +1148,9 @@ - } - dircache.remove(type); - } -- if (!fullPath.endsWith("/")) -+ if (!fullPath.endsWith("/")) { - fullPath += "/"; -+ } - return fullPath; - } - -diff --git a/kdecore/kde-config.cpp.in b/kdecore/kde-config.cpp.in -index 90c5dae..c988b00 100644 ---- a/kdecore/kde-config.cpp.in -+++ b/kdecore/kde-config.cpp.in -@@ -120,6 +120,7 @@ int main(int argc, char **argv) - KCmdLineArgs::addCmdLineOptions( options ); // Add my own options. - - KInstance a("kde-config"); -+ a.setConfigReadOnly(TRUE); - (void)KGlobal::dirs(); // trigger the creation - (void)KGlobal::config(); - diff --git a/redhat/kdelibs/tdelibs-r14.spec b/redhat/kdelibs/tdelibs-r14.spec index 0dbf4a796..d57bea3a6 100755 --- a/redhat/kdelibs/tdelibs-r14.spec +++ b/redhat/kdelibs/tdelibs-r14.spec @@ -174,9 +174,11 @@ EOF %__rm -rf %{?buildroot} -%post -p /sbin/ldconfig +%post +/sbin/ldconfig -%postun -p /sbin/ldconfig +%postun +/sbin/ldconfig %files diff --git a/redhat/kdelibs/trinity-kdelibs-3.5.12.spec b/redhat/kdelibs/trinity-kdelibs-3.5.12.spec index 7732731f0..4c31bba3e 100755 --- a/redhat/kdelibs/trinity-kdelibs-3.5.12.spec +++ b/redhat/kdelibs/trinity-kdelibs-3.5.12.spec @@ -190,9 +190,11 @@ EOF %__rm -rf %{?buildroot} -%post -p /sbin/ldconfig +%post +/sbin/ldconfig -%postun -p /sbin/ldconfig +%postun +/sbin/ldconfig %files diff --git a/redhat/kdelibs/trinity-kdelibs-3.5.13-sru.spec b/redhat/kdelibs/trinity-kdelibs-3.5.13-sru.spec new file mode 100755 index 000000000..46c1d7619 --- /dev/null +++ b/redhat/kdelibs/trinity-kdelibs-3.5.13-sru.spec @@ -0,0 +1,330 @@ +# 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 diff --git a/redhat/kdemultimedia/trinity-kdemultimedia-3.5.12.spec b/redhat/kdemultimedia/trinity-kdemultimedia-3.5.12.spec index 82e4df87f..e7dd20564 100644 --- a/redhat/kdemultimedia/trinity-kdemultimedia-3.5.12.spec +++ b/redhat/kdemultimedia/trinity-kdemultimedia-3.5.12.spec @@ -235,13 +235,17 @@ for f in crystalsvg hicolor locolor ; do done update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || : -%post libs -p /sbin/ldconfig +%post libs +/sbin/ldconfig -%postun libs -p /sbin/ldconfig +%postun libs +/sbin/ldconfig -%post extras-libs -p /sbin/ldconfig +%post extras-libs +/sbin/ldconfig -%postun extras-libs -p /sbin/ldconfig +%postun extras-libs +/sbin/ldconfig %post extras /sbin/ldconfig diff --git a/redhat/kdenetwork/kdenetwork-3.5.13-missing_ldflags.patch b/redhat/kdenetwork/kdenetwork-3.5.13-missing_ldflags.patch new file mode 100644 index 000000000..88d7fd0f1 --- /dev/null +++ b/redhat/kdenetwork/kdenetwork-3.5.13-missing_ldflags.patch @@ -0,0 +1,10 @@ +--- kdenetwork/wifi/CMakeLists.txt.ldflags 2011-10-29 04:43:38.000000000 +0200 ++++ kdenetwork/wifi/CMakeLists.txt 2012-08-08 15:14:31.956605213 +0200 +@@ -21,6 +21,7 @@ + ${CMAKE_BINARY_DIR} + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} ++ ${ARTS_INCLUDE_DIRS}/.. + ) + + link_directories( diff --git a/redhat/kdenetwork/kdenetwork-3.5.13-use_libv4l_or_libv4l1.patch b/redhat/kdenetwork/kdenetwork-3.5.13-use_libv4l_or_libv4l1.patch deleted file mode 100644 index 9d9d55344..000000000 --- a/redhat/kdenetwork/kdenetwork-3.5.13-use_libv4l_or_libv4l1.patch +++ /dev/null @@ -1,114 +0,0 @@ -commit d8cbbab802a063679a4db5cebc73122cdb1da100 -Author: Timothy Pearson <kb9vqf@pearsoncomputing.net> -Date: 1343324022 -0500 - - Use libv4l if available, otherwise check for v4l1 headers - -diff --git a/kopete/ConfigureChecks.cmake b/kopete/ConfigureChecks.cmake -index aece436..70e97f5 100644 ---- a/kopete/ConfigureChecks.cmake -+++ b/kopete/ConfigureChecks.cmake -@@ -26,3 +26,10 @@ if ( HAVE_LIBV4L1_VIDEODEV_H ) - endif ( ) - # -- End libv4l1-videodev.h ---------------------------------------------- - -+# -- Check for linux/videodev.h presence -------------------- -+CHECK_INCLUDE_FILE ( "linux/videodev.h" HAVE_LINUX_VIDEODEV_H ) -+if ( HAVE_LINUX_VIDEODEV_H ) -+ add_definitions( -DHAVE_LINUX_VIDEODEV_H ) -+endif ( ) -+# -- End linux-videodev.h ---------------------------------------------- -+ -diff --git a/kopete/libkopete/avdevice/videocontrol.h b/kopete/libkopete/avdevice/videocontrol.h -index c4db3b9..dbef6b5 100644 ---- a/kopete/libkopete/avdevice/videocontrol.h -+++ b/kopete/libkopete/avdevice/videocontrol.h -@@ -15,8 +15,6 @@ - ************************************************************************* - */ - --#define ENABLE_AV -- - #ifndef KOPETE_AVVIDEOCONTROL_H - #define KOPETE_AVVIDEOCONTROL_H - -diff --git a/kopete/libkopete/avdevice/videodevice.cpp b/kopete/libkopete/avdevice/videodevice.cpp -index ea23544..e12fb02 100644 ---- a/kopete/libkopete/avdevice/videodevice.cpp -+++ b/kopete/libkopete/avdevice/videodevice.cpp -@@ -15,8 +15,6 @@ - ************************************************************************* - */ - --#define ENABLE_AV -- - #include <cstdlib> - #include <cerrno> - #include <cstring> -diff --git a/kopete/libkopete/avdevice/videodevice.h b/kopete/libkopete/avdevice/videodevice.h -index 7bba507..7e57513 100644 ---- a/kopete/libkopete/avdevice/videodevice.h -+++ b/kopete/libkopete/avdevice/videodevice.h -@@ -15,11 +15,11 @@ - ************************************************************************* - */ - --#define ENABLE_AV -- - #ifndef KOPETE_AVVIDEODEVICELISTITEM_H - #define KOPETE_AVVIDEODEVICELISTITEM_H - -+#define ENABLE_AV -+ - #if defined HAVE_CONFIG_H - #include <config.h> - #endif -@@ -54,8 +54,10 @@ - #include <linux/kernel.h> - #if defined(HAVE_LIBV4L1_VIDEODEV_H) - #include <libv4l1-videodev.h> --#else -+#elif defined(HAVE_LINUX_VIDEODEV_H) - #include <linux/videodev.h> -+#else -+#undef ENABLE_AV - #endif - #define VIDEO_MODE_PAL_Nc 3 - #define VIDEO_MODE_PAL_M 4 -@@ -293,8 +295,10 @@ public: - void enumerateMenu (void); - - #endif -+#ifndef ENABLE_AV - struct video_capability V4L_capabilities; - struct video_buffer V4L_videobuffer; -+#endif - #endif - TQValueVector<Kopete::AV::VideoInput> m_input; - TQValueVector<Kopete::AV::VideoControl> m_control; -diff --git a/kopete/libkopete/avdevice/videodevicepool.cpp b/kopete/libkopete/avdevice/videodevicepool.cpp -index b725d5d..cbfe7cb 100644 ---- a/kopete/libkopete/avdevice/videodevicepool.cpp -+++ b/kopete/libkopete/avdevice/videodevicepool.cpp -@@ -15,8 +15,6 @@ - ************************************************************************* - */ - --#define ENABLE_AV -- - #include <assert.h> - #include <cstdlib> - #include <cerrno> -diff --git a/kopete/libkopete/avdevice/videoinput.h b/kopete/libkopete/avdevice/videoinput.h -index 9fc109a..dd7504f 100644 ---- a/kopete/libkopete/avdevice/videoinput.h -+++ b/kopete/libkopete/avdevice/videoinput.h -@@ -15,8 +15,6 @@ - ************************************************************************* - */ - --#define ENABLE_AV -- - #ifndef KOPETE_AVVIDEOINPUT_H - #define KOPETE_AVVIDEOINPUT_H - diff --git a/redhat/kdenetwork/trinity-kdenetwork-3.5.12.spec b/redhat/kdenetwork/trinity-kdenetwork-3.5.12.spec index 8f7a72611..7ef987e99 100644 --- a/redhat/kdenetwork/trinity-kdenetwork-3.5.12.spec +++ b/redhat/kdenetwork/trinity-kdenetwork-3.5.12.spec @@ -290,9 +290,11 @@ if [ $1 -eq 0 ]; then /sbin/service lisa stop > /dev/null 2>&1 ||: fi -%post libs -p /sbin/ldconfig +%post libs +/sbin/ldconfig -%postun libs -p /sbin/ldconfig +%postun libs +/sbin/ldconfig %post extras for f in crystalsvg hicolor ; do diff --git a/redhat/kdenetwork/trinity-kdenetwork-3.5.13.spec b/redhat/kdenetwork/trinity-kdenetwork-3.5.13.spec index 85fe3a196..f4e2ea6bd 100644 --- a/redhat/kdenetwork/trinity-kdenetwork-3.5.13.spec +++ b/redhat/kdenetwork/trinity-kdenetwork-3.5.13.spec @@ -1,3 +1,6 @@ +# Avoids relinking, which breaks consolehelper +%define dont_relink 1 + # If TDE is built iwn a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". %if "%{?tde_prefix}" != "/usr" %define _variant .opt @@ -55,6 +58,8 @@ Patch4: kdenetwork-3.2.3-resolv.patch # include more/proper ppp headers Patch6: kdenetwork-3.5.9-krfb_httpd.patch +# [kdenetworks] Missing LDFLAGS cause FTBFS +Patch1: kdenetwork-3.5.13-missing_ldflags.patch # [kdenetwork] Fix kopete protocol compilation [Bug #695] Patch10: kdenetwork-3.5.13-kopete_msn_protocol.patch Patch11: kdenetwork-3.5.13-kopete_sms_protocol.patch @@ -76,8 +81,6 @@ Patch19: kdenetwork-3.5.13-fix_html_specialchar_in_kopete_nowlistening.patch Patch20: kdenetwork-3.5.13-fix_a_fatal_error_message.patch # [tdenetwork] Fix a parallel build bug [Commit #35c41f35] Patch21: kdenetwork-3.5.13-fix_parallel_build.patch -# [tdenetwork] Use libv4l if available, otherwise check for v4l1 headers [Commit #d8cbbab8] -Patch22: kdenetwork-3.5.13-use_libv4l_or_libv4l1.patch BuildRequires: gettext BuildRequires: trinity-kdelibs-devel @@ -212,6 +215,8 @@ Requires: trinity-kdelibs-devel Obsoletes: trinity-kdenetwork-devel < %{version}-%{release} Provides: trinity-kdenetwork-devel = %{version}-%{release} +Obsoletes: tdenetwork-devel < %{version}-%{release} +Provides: tdenetwork-devel = %{version}-%{release} %description devel This is the development package which contains the headers for the KDE RSS @@ -579,7 +584,6 @@ Support for more IM protocols can be added through a plugin system. %{tde_datadir}/services/aim.protocol %{tde_datadir}/services/chatwindow.desktop %{tde_datadir}/services/emailwindow.desktop -#%{tde_datadir}/services/irc.protocol /opt/trinity/share/apps/kopete/ %{tde_datadir}/services/jabberdisco.protocol %{tde_datadir}/services/kconfiguredialog/kopete_*.desktop %{tde_datadir}/services/kopete_*.desktop @@ -693,9 +697,10 @@ track of the time spent online for you. %defattr(-,root,root,-) %config(noreplace) /etc/security/console.apps/kppp3 %config(noreplace) /etc/pam.d/kppp3 -%{tde_bindir}/kppp +%{tde_bindir}/kppp3 %{tde_bindir}/kppplogview -%{tde_sbindir}/kppp +%{_sbindir}/kppp3 +%{tde_sbindir}/kppp3 %{tde_tdeappdir}/Kppp.desktop %{tde_tdeappdir}/kppplogview.desktop %{tde_datadir}/apps/checkrules @@ -1024,6 +1029,7 @@ update-desktop-database 2> /dev/null || : %prep %setup -q -n kdenetwork +%patch1 -p1 -b .ldflags %patch3 -p1 -b .kppp %patch4 -p1 -b .resolv %patch6 -p1 -b .krfb_httpd @@ -1071,7 +1077,7 @@ cd build .. # Tdenetwork is not smp safe ! -%__make +%__make VERBOSE=1 %install @@ -1106,17 +1112,21 @@ for i in fileshare kcmkrfb kcmktalkd kcmwifi krfb kppp kppplogview \ fi done -# Run kppp through consolehelper -install -p -m644 -D %{SOURCE1} %{buildroot}/etc/pam.d/kppp3 -mkdir -p %{buildroot}%{tde_sbindir} -mv %{buildroot}%{tde_bindir}/kppp %{buildroot}%{tde_sbindir} -ln -s /usr/bin/consolehelper %{buildroot}%{tde_bindir}/kppp -mkdir -p %{buildroot}/etc/security/console.apps -cat > %{buildroot}/etc/security/console.apps/kppp3 <<EOF +# Run kppp through consolehelper, and rename it to 'kppp3' +%__install -p -m644 -D %{SOURCE1} %{buildroot}/etc/pam.d/kppp3 +%__mkdir_p %{buildroot}%{tde_sbindir} %{buildroot}%{_sbindir} +%__mv %{buildroot}%{tde_bindir}/kppp %{buildroot}%{tde_sbindir}/kppp3 +%__ln_s %{_bindir}/consolehelper %{buildroot}%{tde_bindir}/kppp3 +%if "%{tde_prefix}" != "/usr" +%__ln_s %{tde_sbindir}/kppp3 %{?buildroot}%{_sbindir}/kppp3 +%endif +%__mkdir_p %{buildroot}%{_sysconfdir}/security/console.apps +cat > %{buildroot}%{_sysconfdir}/security/console.apps/kppp3 <<EOF USER=root -PROGRAM=%{tde_sbindir}/kppp +PROGRAM=%{tde_sbindir}/kppp3 SESSION=true EOF +%__sed -i %{buildroot}%{tde_tdeappdir}/Kppp.desktop -e "/Exec=/ s|kppp|kppp3|" # ktalk %__install -p -m 0644 -D %{SOURCE2} %{buildroot}%{_sysconfdir}/xinetd.d/ktalk @@ -1144,7 +1154,6 @@ EOF - Fix html special chars in kopete nowlistening plugin [Bug #944] [Commit #0a2892ed] - Fix a fatal error message [Commit #5c988de1] - Fix a parallel build bug [Commit #35c41f35] -- Use libv4l if available, otherwise check for v4l1 headers [Commit #d8cbbab8] * Sat Jun 16 2012 Francois Andriot <francois.andriot@free.fr> - 3.5.13-5 - Split single package in multiple packages diff --git a/redhat/kdesdk/trinity-kdesdk-3.5.12.spec b/redhat/kdesdk/trinity-kdesdk-3.5.12.spec index 7458317d2..ded3104de 100644 --- a/redhat/kdesdk/trinity-kdesdk-3.5.12.spec +++ b/redhat/kdesdk/trinity-kdesdk-3.5.12.spec @@ -188,9 +188,11 @@ for f in crystalsvg hicolor locolor ; do done update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || : -%post libs -p /sbin/ldconfig +%post libs +/sbin/ldconfig -%postun libs -p /sbin/ldconfig +%postun libs +/sbin/ldconfig %files diff --git a/redhat/kdesdk/trinity-kdesdk-3.5.13.spec b/redhat/kdesdk/trinity-kdesdk-3.5.13.spec index 6d5ee5cde..b28a83ac8 100644 --- a/redhat/kdesdk/trinity-kdesdk-3.5.13.spec +++ b/redhat/kdesdk/trinity-kdesdk-3.5.13.spec @@ -52,7 +52,7 @@ BuildRequires: trinity-tdelibs-devel # for kbugbuster/libkcal BuildRequires: trinity-tdepim-devel %if 0%{?mgaversion} || 0%{?mdkversion} -BuildRequires: %{_lib}db5.1-devel +#BuildRequires: %{_lib}db4.8-devel %else BuildRequires: db4-devel %endif @@ -345,7 +345,7 @@ This package contains the KBabel development files. This package is part of Trinity, and a component of the TDE SDK module. %files -n trinity-kbabel-devel -%{tde_includedir}/kbabel/ +%{tde_tdeincludedir}/kbabel/ %{tde_libdir}/libkbabelcommon.la %{tde_libdir}/libkbabelcommon.so %{tde_libdir}/libkbabeldictplugin.la @@ -505,7 +505,7 @@ Included are: This package is part of Trinity, and a component of the TDE SDK module. %files misc -%{tde_includedir}/kprofilemethod.h +%{tde_tdeincludedir}/kprofilemethod.h %{tde_tdelibdir}/kabcformat_kdeaccounts.la %{tde_tdelibdir}/kabcformat_kdeaccounts.so %{tde_tdelibdir}/scheck.so @@ -716,7 +716,7 @@ loaded dynamically using KLibLoader. This package is part of Trinity, and a component of the TDE SDK module. %files -n trinity-kspy -%{tde_includedir}/kspy.h +%{tde_tdeincludedir}/kspy.h %{tde_libdir}/libkspy.la %{tde_libdir}/libkspy.so %{tde_libdir}/libkspy.so.* @@ -822,9 +822,9 @@ Development files for libcvsservice are included in this package. This package is part of Trinity, and a component of the TDE SDK module. %files -n trinity-libcvsservice-devel -%{tde_includedir}/cvsjob_stub.h -%{tde_includedir}/cvsservice_stub.h -%{tde_includedir}/repository_stub.h +%{tde_tdeincludedir}/cvsjob_stub.h +%{tde_tdeincludedir}/cvsservice_stub.h +%{tde_tdeincludedir}/repository_stub.h %{tde_libdir}/libcvsservice.la %{tde_libdir}/libcvsservice.so %{tde_libdir}/lib[kt]deinit_cvsaskpass.la @@ -1003,7 +1003,7 @@ This package is part of Trinity, and a component of the TDE SDK module. %{tde_libdir}/libkunittestgui.la %{tde_libdir}/libkunittestgui.so #%{tde_libdir}/libkunittestgui.so.* -%{tde_includedir}/kunittest/runnergui.h +%{tde_tdeincludedir}/kunittest/runnergui.h %post -n trinity-kunittest /sbin/ldconfig || : @@ -1053,7 +1053,7 @@ cd build %cmake \ -DBIN_INSTALL_DIR=%{tde_bindir} \ - -DINCLUDE_INSTALL_DIR=%{tde_includedir} \ + -DINCLUDE_INSTALL_DIR=%{tde_tdeincludedir} \ -DLIB_INSTALL_DIR=%{tde_libdir} \ -DMAN_INSTALL_DIR=%{tde_mandir}/man1 \ -DPKGCONFIG_INSTALL_DIR=%{tde_tdelibdir}/pkgconfig \ diff --git a/redhat/kdeutils/trinity-kdeutils-3.5.13.spec b/redhat/kdeutils/trinity-kdeutils-3.5.13.spec index 3c32f5e12..d85cfc7d4 100755 --- a/redhat/kdeutils/trinity-kdeutils-3.5.13.spec +++ b/redhat/kdeutils/trinity-kdeutils-3.5.13.spec @@ -1,7 +1,9 @@ +# Avoids relinking, which breaks consolehelper +%define dont_relink 1 + # 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 -%define _docdir %{tde_datadir}/doc %endif # TDE 3.5.13 specific building variables @@ -615,6 +617,7 @@ power management, for laptops, from within TDE. %{_sysconfdir}/pam.d/klaptop_acpi_helper %attr(644,root,root) %{_sysconfdir}/security/console.apps/klaptop_acpi_helper %{tde_sbindir}/klaptop_acpi_helper +%{_sbindir}/klaptop_acpi_helper %config %{tde_datadir}/config/kcmlaptoprc %post -n trinity-klaptopdaemon @@ -1024,11 +1027,13 @@ fi %__install -p -D -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/pam.d/klaptop_acpi_helper %__install -p -D -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/security/console.apps/klaptop_acpi_helper -pushd %{buildroot}%{tde_bindir} - %__mkdir_p %{buildroot}%{tde_sbindir} - %__mv klaptop_acpi_helper ../sbin - %__ln_s /usr/bin/consolehelper klaptop_acpi_helper -popd +# Use consolehelper for 'klaptop_acpi_helper' +%__mkdir_p %{buildroot}%{tde_sbindir} %{buildroot}%{_sbindir} +%__mv %{buildroot}%{tde_bindir}/klaptop_acpi_helper %{buildroot}%{tde_sbindir} +%__ln_s %{_bindir}/consolehelper %{buildroot}%{tde_bindir}/klaptop_acpi_helper +%if "%{tde_prefix}" != "/usr" +%__ln_s %{tde_sbindir}/klaptop_acpi_helper %{?buildroot}%{_sbindir}/klaptop_acpi_helper +%endif # klaptop setting %__install -p -D -m 644 %{SOURCE3} %{buildroot}%{tde_datadir}/config/kcmlaptoprc diff --git a/redhat/kdevelop/trinity-kdevelop-3.5.12.spec b/redhat/kdevelop/trinity-kdevelop-3.5.12.spec index 6d963ec74..de36a42ff 100644 --- a/redhat/kdevelop/trinity-kdevelop-3.5.12.spec +++ b/redhat/kdevelop/trinity-kdevelop-3.5.12.spec @@ -205,9 +205,11 @@ for f in hicolor locolor ; do done update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || : -%post libs -p /sbin/ldconfig +%post libs +/sbin/ldconfig -%postun libs -p /sbin/ldconfig +%postun libs +/sbin/ldconfig %clean diff --git a/redhat/kdewebdev/trinity-kdewebdev-3.5.12.spec b/redhat/kdewebdev/trinity-kdewebdev-3.5.12.spec index b1c69f526..9dcec5cd7 100644 --- a/redhat/kdewebdev/trinity-kdewebdev-3.5.12.spec +++ b/redhat/kdewebdev/trinity-kdewebdev-3.5.12.spec @@ -176,9 +176,11 @@ done update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || : -%post libs -p /sbin/ldconfig +%post libs +/sbin/ldconfig -%postun libs -p /sbin/ldconfig +%postun libs +/sbin/ldconfig %clean diff --git a/redhat/libraries/libksquirrel/trinity-libksquirrel.spec b/redhat/libraries/libksquirrel/trinity-libksquirrel.spec index 6a1659ace..78695b135 100644 --- a/redhat/libraries/libksquirrel/trinity-libksquirrel.spec +++ b/redhat/libraries/libksquirrel/trinity-libksquirrel.spec @@ -1,25 +1,32 @@ # Default version for this component %define kdecomp libksquirrel -%define version 0.8.0 -%define release 1 # If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". -%if "%{?_prefix}" != "/usr" +%if "%{?tde_prefix}" != "/usr" %define _variant .opt -%define _docdir %{_prefix}/share/doc %endif # TDE 3.5.13 specific building variables -BuildRequires: autoconf automake libtool m4 -%define tde_docdir %{_docdir}/kde -%define tde_includedir %{_includedir}/kde -%define tde_libdir %{_libdir}/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_mandir %{tde_datadir}/man +%define tde_appdir %{tde_datadir}/applications + +%define tde_tdeappdir %{tde_appdir}/kde +%define tde_tdedocdir %{tde_docdir}/kde +%define tde_tdeincludedir %{tde_includedir}/kde +%define tde_tdelibdir %{tde_libdir}/trinity + +%define _docdir %{tde_docdir} Name: trinity-%{kdecomp} Summary: Trinity image viewer -Version: %{?version} -Release: %{?release}%{?dist}%{?_variant} +Version: 0.8.0 +Release: 1%{?dist}%{?_variant} License: GPLv2+ Group: Environment/Libraries @@ -28,7 +35,7 @@ Vendor: Trinity Project Packager: Francois Andriot <francois.andriot@free.fr> URL: http://www.trinitydesktop.org/ -Prefix: %{_prefix} +Prefix: %{tde_prefix} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source0: %{kdecomp}-3.5.13.tar.gz @@ -36,19 +43,26 @@ Patch0: libksquirrel-3.5.13-detect_netpbm.patch Patch1: libksquirrel-3.5.13-fix_docdir.patch BuildRequires: tqtinterface-devel -BuildRequires: trinity-kdelibs-devel -BuildRequires: trinity-kdebase-devel +BuildRequires: trinity-tdelibs-devel +BuildRequires: trinity-tdebase-devel BuildRequires: desktop-file-utils BuildRequires: gettext BuildRequires: gettext-devel BuildRequires: transfig -BuildRequires: netpbm-progs -%if 0%{?fedora} >= 15 -BuildRequires: xmedcon-devel BuildRequires: djvulibre +BuildRequires: xmedcon +BuildRequires: xmedcon-devel +BuildRequires: librsvg +BuildRequires: libwmf-devel + +%if 0%{?mgaversion} || 0%{?mdkversion} +BuildRequires: netpbm +%else +BuildRequires: netpbm-progs %endif + %description Runtime libraries for KSquirrel. @@ -79,8 +93,8 @@ Tools for KSquirrel. # Ugly hack to modify TQT include directory inside autoconf files. # If TQT detection fails, it fallbacks to TQT4 instead of TQT3 ! %__sed -i admin/acinclude.m4.in \ - -e "s|/usr/include/tqt|%{_includedir}/tqt|g" \ - -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_docdir}/HTML'|g" + -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \ + -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g" %__cp "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in" %__cp "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh" @@ -88,18 +102,27 @@ Tools for KSquirrel. %build -export PATH="%{_bindir}:${PATH}" -export LDFLAGS="-L%{_libdir} -I%{_includedir}" +unset QTDIR; . /etc/profile.d/qt.sh +export PATH="%{tde_bindir}:${PATH}" +export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}" %configure \ - --disable-rpath \ - --with-extra-includes=%{_includedir}/tqt + --prefix=%{tde_prefix} \ + --exec-prefix=%{tde_prefix} \ + --bindir=%{tde_bindir} \ + --datadir=%{tde_datadir} \ + --libdir=%{tde_libdir} \ + --mandir=%{tde_mandir} \ + --includedir=%{tde_includedir} \ + --disable-rpath \ + --with-extra-includes=%{tde_includedir}/tqt \ + --enable-djvu %__make %{?_smp_mflags} %install -export PATH="%{_bindir}:${PATH}" +export PATH="%{tde_bindir}:${PATH}" %__rm -rf %{buildroot} %__make install DESTDIR=%{buildroot} @@ -109,32 +132,281 @@ export PATH="%{_bindir}:${PATH}" %post -/sbin/ldconfig +/sbin/ldconfig || : %postun -/sbin/ldconfig +/sbin/ldconfig || : %files %defattr(-,root,root,-) %doc AUTHORS ChangeLog COPYING LICENSE README -%{_libdir}/ksquirrel-libs/*.so.* -%{_libdir}/*.so.* -%{_datadir}/ksquirrel-libs +%{tde_libdir}/ksquirrel-libs/libkls_avs.so.0 +%{tde_libdir}/ksquirrel-libs/libkls_avs.so.0.8.0 +%{tde_libdir}/ksquirrel-libs/libkls_bmp.so.0 +%{tde_libdir}/ksquirrel-libs/libkls_bmp.so.0.8.0 +%{tde_libdir}/ksquirrel-libs/libkls_camera.so.0 +%{tde_libdir}/ksquirrel-libs/libkls_camera.so.0.8.0 +%{tde_libdir}/ksquirrel-libs/libkls_cut.so.0 +%{tde_libdir}/ksquirrel-libs/libkls_cut.so.0.8.0 +%{tde_libdir}/ksquirrel-libs/libkls_dds.so.0 +%{tde_libdir}/ksquirrel-libs/libkls_dds.so.0.8.0 +%{tde_libdir}/ksquirrel-libs/libkls_dicom.so.0 +%{tde_libdir}/ksquirrel-libs/libkls_dicom.so.0.8.0 +%{tde_libdir}/ksquirrel-libs/libkls_djvu.so.0 +%{tde_libdir}/ksquirrel-libs/libkls_djvu.so.0.8.0 +%{tde_libdir}/ksquirrel-libs/libkls_eps.so.0 +%{tde_libdir}/ksquirrel-libs/libkls_eps.so.0.8.0 +%{tde_libdir}/ksquirrel-libs/libkls_fig.so.0 +%{tde_libdir}/ksquirrel-libs/libkls_fig.so.0.8.0 +%{tde_libdir}/ksquirrel-libs/libkls_fli.so.0 +%{tde_libdir}/ksquirrel-libs/libkls_fli.so.0.8.0 +%{tde_libdir}/ksquirrel-libs/libkls_gif.so.0 +%{tde_libdir}/ksquirrel-libs/libkls_gif.so.0.8.0 +%{tde_libdir}/ksquirrel-libs/libkls_hdr.so.0 +%{tde_libdir}/ksquirrel-libs/libkls_hdr.so.0.8.0 +%{tde_libdir}/ksquirrel-libs/libkls_ico.so.0 +%{tde_libdir}/ksquirrel-libs/libkls_ico.so.0.8.0 +%{tde_libdir}/ksquirrel-libs/libkls_iff.so.0 +%{tde_libdir}/ksquirrel-libs/libkls_iff.so.0.8.0 +%{tde_libdir}/ksquirrel-libs/libkls_jbig.so.0 +%{tde_libdir}/ksquirrel-libs/libkls_jbig.so.0.8.0 +%{tde_libdir}/ksquirrel-libs/libkls_jpeg.so.0 +%{tde_libdir}/ksquirrel-libs/libkls_jpeg.so.0.8.0 +%{tde_libdir}/ksquirrel-libs/libkls_jpeg2000.so.0 +%{tde_libdir}/ksquirrel-libs/libkls_jpeg2000.so.0.8.0 +%{tde_libdir}/ksquirrel-libs/libkls_koala.so.0 +%{tde_libdir}/ksquirrel-libs/libkls_koala.so.0.8.0 +%{tde_libdir}/ksquirrel-libs/libkls_leaf.so.0 +%{tde_libdir}/ksquirrel-libs/libkls_leaf.so.0.8.0 +%{tde_libdir}/ksquirrel-libs/libkls_lif.so.0 +%{tde_libdir}/ksquirrel-libs/libkls_lif.so.0.8.0 +%{tde_libdir}/ksquirrel-libs/libkls_ljpeg.so.0 +%{tde_libdir}/ksquirrel-libs/libkls_ljpeg.so.0.8.0 +%{tde_libdir}/ksquirrel-libs/libkls_mac.so.0 +%{tde_libdir}/ksquirrel-libs/libkls_mac.so.0.8.0 +%{tde_libdir}/ksquirrel-libs/libkls_mdl.so.0 +%{tde_libdir}/ksquirrel-libs/libkls_mdl.so.0.8.0 +%{tde_libdir}/ksquirrel-libs/libkls_mng.so.0 +%{tde_libdir}/ksquirrel-libs/libkls_mng.so.0.8.0 +%{tde_libdir}/ksquirrel-libs/libkls_mtv.so.0 +%{tde_libdir}/ksquirrel-libs/libkls_mtv.so.0.8.0 +%{tde_libdir}/ksquirrel-libs/libkls_neo.so.0 +%{tde_libdir}/ksquirrel-libs/libkls_neo.so.0.8.0 +%{tde_libdir}/ksquirrel-libs/libkls_openexr.so.0 +%{tde_libdir}/ksquirrel-libs/libkls_openexr.so.0.8.0 +%{tde_libdir}/ksquirrel-libs/libkls_pcx.so.0 +%{tde_libdir}/ksquirrel-libs/libkls_pcx.so.0.8.0 +%{tde_libdir}/ksquirrel-libs/libkls_pi1.so.0 +%{tde_libdir}/ksquirrel-libs/libkls_pi1.so.0.8.0 +%{tde_libdir}/ksquirrel-libs/libkls_pi3.so.0 +%{tde_libdir}/ksquirrel-libs/libkls_pi3.so.0.8.0 +%{tde_libdir}/ksquirrel-libs/libkls_pix.so.0 +%{tde_libdir}/ksquirrel-libs/libkls_pix.so.0.8.0 +%{tde_libdir}/ksquirrel-libs/libkls_png.so.0 +%{tde_libdir}/ksquirrel-libs/libkls_png.so.0.8.0 +%{tde_libdir}/ksquirrel-libs/libkls_pnm.so.0 +%{tde_libdir}/ksquirrel-libs/libkls_pnm.so.0.8.0 +%{tde_libdir}/ksquirrel-libs/libkls_psd.so.0 +%{tde_libdir}/ksquirrel-libs/libkls_psd.so.0.8.0 +%{tde_libdir}/ksquirrel-libs/libkls_psp.so.0 +%{tde_libdir}/ksquirrel-libs/libkls_psp.so.0.8.0 +%{tde_libdir}/ksquirrel-libs/libkls_pxr.so.0 +%{tde_libdir}/ksquirrel-libs/libkls_pxr.so.0.8.0 +%{tde_libdir}/ksquirrel-libs/libkls_ras.so.0 +%{tde_libdir}/ksquirrel-libs/libkls_ras.so.0.8.0 +%{tde_libdir}/ksquirrel-libs/libkls_rawrgb.so.0 +%{tde_libdir}/ksquirrel-libs/libkls_rawrgb.so.0.8.0 +%{tde_libdir}/ksquirrel-libs/libkls_sct.so.0 +%{tde_libdir}/ksquirrel-libs/libkls_sct.so.0.8.0 +%{tde_libdir}/ksquirrel-libs/libkls_sgi.so.0 +%{tde_libdir}/ksquirrel-libs/libkls_sgi.so.0.8.0 +%{tde_libdir}/ksquirrel-libs/libkls_sun.so.0 +%{tde_libdir}/ksquirrel-libs/libkls_sun.so.0.8.0 +%{tde_libdir}/ksquirrel-libs/libkls_svg.so.0 +%{tde_libdir}/ksquirrel-libs/libkls_svg.so.0.8.0 +%{tde_libdir}/ksquirrel-libs/libkls_tga.so.0 +%{tde_libdir}/ksquirrel-libs/libkls_tga.so.0.8.0 +%{tde_libdir}/ksquirrel-libs/libkls_tiff.so.0 +%{tde_libdir}/ksquirrel-libs/libkls_tiff.so.0.8.0 +%{tde_libdir}/ksquirrel-libs/libkls_ttf.so.0 +%{tde_libdir}/ksquirrel-libs/libkls_ttf.so.0.8.0 +%{tde_libdir}/ksquirrel-libs/libkls_utah.so.0 +%{tde_libdir}/ksquirrel-libs/libkls_utah.so.0.8.0 +%{tde_libdir}/ksquirrel-libs/libkls_wal.so.0 +%{tde_libdir}/ksquirrel-libs/libkls_wal.so.0.8.0 +%{tde_libdir}/ksquirrel-libs/libkls_wbmp.so.0 +%{tde_libdir}/ksquirrel-libs/libkls_wbmp.so.0.8.0 +%{tde_libdir}/ksquirrel-libs/libkls_wmf.so.0 +%{tde_libdir}/ksquirrel-libs/libkls_wmf.so.0.8.0 +%{tde_libdir}/ksquirrel-libs/libkls_xbm.so.0 +%{tde_libdir}/ksquirrel-libs/libkls_xbm.so.0.8.0 +%{tde_libdir}/ksquirrel-libs/libkls_xcf.so.0 +%{tde_libdir}/ksquirrel-libs/libkls_xcf.so.0.8.0 +%{tde_libdir}/ksquirrel-libs/libkls_xcur.so.0 +%{tde_libdir}/ksquirrel-libs/libkls_xcur.so.0.8.0 +%{tde_libdir}/ksquirrel-libs/libkls_xim.so.0 +%{tde_libdir}/ksquirrel-libs/libkls_xim.so.0.8.0 +%{tde_libdir}/ksquirrel-libs/libkls_xpm.so.0 +%{tde_libdir}/ksquirrel-libs/libkls_xpm.so.0.8.0 +%{tde_libdir}/ksquirrel-libs/libkls_xwd.so.0 +%{tde_libdir}/ksquirrel-libs/libkls_xwd.so.0.8.0 +%{tde_libdir}/libksquirrel-libs-png.so.0 +%{tde_libdir}/libksquirrel-libs-png.so.0.0.0 +%{tde_libdir}/libksquirrel-libs.so.0 +%{tde_libdir}/libksquirrel-libs.so.0.8.0 +%{tde_datadir}/ksquirrel-libs/libkls_camera.so.ui +%{tde_datadir}/ksquirrel-libs/libkls_djvu.so.ui +%{tde_datadir}/ksquirrel-libs/libkls_svg.so.ui +%{tde_datadir}/ksquirrel-libs/libkls_tiff.so.ui +%{tde_datadir}/ksquirrel-libs/libkls_xcf.so.ui +%{tde_datadir}/ksquirrel-libs/rgbmap %files devel %defattr(-,root,root,-) -%{_includedir}/ksquirrel-libs -%{_libdir}/ksquirrel-libs/*.la -%{_libdir}/ksquirrel-libs/*.so -%{_libdir}/*.la -%{_libdir}/*.so -%{_libdir}/pkgconfig/ksquirrellibs.pc -%{_docdir}/ksquirrel-libs +%{tde_includedir}/ksquirrel-libs/error.h +%{tde_includedir}/ksquirrel-libs/fileio.h +%{tde_includedir}/ksquirrel-libs/fmt_codec_base.h +%{tde_includedir}/ksquirrel-libs/fmt_defs.h +%{tde_includedir}/ksquirrel-libs/fmt_types.h +%{tde_includedir}/ksquirrel-libs/fmt_utils.h +%{tde_includedir}/ksquirrel-libs/settings.h +%{tde_libdir}/ksquirrel-libs/libkls_avs.la +%{tde_libdir}/ksquirrel-libs/libkls_avs.so +%{tde_libdir}/ksquirrel-libs/libkls_bmp.la +%{tde_libdir}/ksquirrel-libs/libkls_bmp.so +%{tde_libdir}/ksquirrel-libs/libkls_camera.la +%{tde_libdir}/ksquirrel-libs/libkls_camera.so +%{tde_libdir}/ksquirrel-libs/libkls_cut.la +%{tde_libdir}/ksquirrel-libs/libkls_cut.so +%{tde_libdir}/ksquirrel-libs/libkls_dds.la +%{tde_libdir}/ksquirrel-libs/libkls_dds.so +%{tde_libdir}/ksquirrel-libs/libkls_dicom.la +%{tde_libdir}/ksquirrel-libs/libkls_dicom.so +%{tde_libdir}/ksquirrel-libs/libkls_djvu.la +%{tde_libdir}/ksquirrel-libs/libkls_djvu.so +%{tde_libdir}/ksquirrel-libs/libkls_eps.la +%{tde_libdir}/ksquirrel-libs/libkls_eps.so +%{tde_libdir}/ksquirrel-libs/libkls_fig.la +%{tde_libdir}/ksquirrel-libs/libkls_fig.so +%{tde_libdir}/ksquirrel-libs/libkls_fli.la +%{tde_libdir}/ksquirrel-libs/libkls_fli.so +%{tde_libdir}/ksquirrel-libs/libkls_gif.la +%{tde_libdir}/ksquirrel-libs/libkls_gif.so +%{tde_libdir}/ksquirrel-libs/libkls_hdr.la +%{tde_libdir}/ksquirrel-libs/libkls_hdr.so +%{tde_libdir}/ksquirrel-libs/libkls_ico.la +%{tde_libdir}/ksquirrel-libs/libkls_ico.so +%{tde_libdir}/ksquirrel-libs/libkls_iff.la +%{tde_libdir}/ksquirrel-libs/libkls_iff.so +%{tde_libdir}/ksquirrel-libs/libkls_jbig.la +%{tde_libdir}/ksquirrel-libs/libkls_jbig.so +%{tde_libdir}/ksquirrel-libs/libkls_jpeg.la +%{tde_libdir}/ksquirrel-libs/libkls_jpeg.so +%{tde_libdir}/ksquirrel-libs/libkls_jpeg2000.la +%{tde_libdir}/ksquirrel-libs/libkls_jpeg2000.so +%{tde_libdir}/ksquirrel-libs/libkls_koala.la +%{tde_libdir}/ksquirrel-libs/libkls_koala.so +%{tde_libdir}/ksquirrel-libs/libkls_leaf.la +%{tde_libdir}/ksquirrel-libs/libkls_leaf.so +%{tde_libdir}/ksquirrel-libs/libkls_lif.la +%{tde_libdir}/ksquirrel-libs/libkls_lif.so +%{tde_libdir}/ksquirrel-libs/libkls_ljpeg.la +%{tde_libdir}/ksquirrel-libs/libkls_ljpeg.so +%{tde_libdir}/ksquirrel-libs/libkls_mac.la +%{tde_libdir}/ksquirrel-libs/libkls_mac.so +%{tde_libdir}/ksquirrel-libs/libkls_mdl.la +%{tde_libdir}/ksquirrel-libs/libkls_mdl.so +%{tde_libdir}/ksquirrel-libs/libkls_mng.la +%{tde_libdir}/ksquirrel-libs/libkls_mng.so +%{tde_libdir}/ksquirrel-libs/libkls_mtv.la +%{tde_libdir}/ksquirrel-libs/libkls_mtv.so +%{tde_libdir}/ksquirrel-libs/libkls_neo.la +%{tde_libdir}/ksquirrel-libs/libkls_neo.so +%{tde_libdir}/ksquirrel-libs/libkls_openexr.la +%{tde_libdir}/ksquirrel-libs/libkls_openexr.so +%{tde_libdir}/ksquirrel-libs/libkls_pcx.la +%{tde_libdir}/ksquirrel-libs/libkls_pcx.so +%{tde_libdir}/ksquirrel-libs/libkls_pi1.la +%{tde_libdir}/ksquirrel-libs/libkls_pi1.so +%{tde_libdir}/ksquirrel-libs/libkls_pi3.la +%{tde_libdir}/ksquirrel-libs/libkls_pi3.so +%{tde_libdir}/ksquirrel-libs/libkls_pix.la +%{tde_libdir}/ksquirrel-libs/libkls_pix.so +%{tde_libdir}/ksquirrel-libs/libkls_png.la +%{tde_libdir}/ksquirrel-libs/libkls_png.so +%{tde_libdir}/ksquirrel-libs/libkls_pnm.la +%{tde_libdir}/ksquirrel-libs/libkls_pnm.so +%{tde_libdir}/ksquirrel-libs/libkls_psd.la +%{tde_libdir}/ksquirrel-libs/libkls_psd.so +%{tde_libdir}/ksquirrel-libs/libkls_psp.la +%{tde_libdir}/ksquirrel-libs/libkls_psp.so +%{tde_libdir}/ksquirrel-libs/libkls_pxr.la +%{tde_libdir}/ksquirrel-libs/libkls_pxr.so +%{tde_libdir}/ksquirrel-libs/libkls_ras.la +%{tde_libdir}/ksquirrel-libs/libkls_ras.so +%{tde_libdir}/ksquirrel-libs/libkls_rawrgb.la +%{tde_libdir}/ksquirrel-libs/libkls_rawrgb.so +%{tde_libdir}/ksquirrel-libs/libkls_sct.la +%{tde_libdir}/ksquirrel-libs/libkls_sct.so +%{tde_libdir}/ksquirrel-libs/libkls_sgi.la +%{tde_libdir}/ksquirrel-libs/libkls_sgi.so +%{tde_libdir}/ksquirrel-libs/libkls_sun.la +%{tde_libdir}/ksquirrel-libs/libkls_sun.so +%{tde_libdir}/ksquirrel-libs/libkls_svg.la +%{tde_libdir}/ksquirrel-libs/libkls_svg.so +%{tde_libdir}/ksquirrel-libs/libkls_tga.la +%{tde_libdir}/ksquirrel-libs/libkls_tga.so +%{tde_libdir}/ksquirrel-libs/libkls_tiff.la +%{tde_libdir}/ksquirrel-libs/libkls_tiff.so +%{tde_libdir}/ksquirrel-libs/libkls_ttf.la +%{tde_libdir}/ksquirrel-libs/libkls_ttf.so +%{tde_libdir}/ksquirrel-libs/libkls_utah.la +%{tde_libdir}/ksquirrel-libs/libkls_utah.so +%{tde_libdir}/ksquirrel-libs/libkls_wal.la +%{tde_libdir}/ksquirrel-libs/libkls_wal.so +%{tde_libdir}/ksquirrel-libs/libkls_wbmp.la +%{tde_libdir}/ksquirrel-libs/libkls_wbmp.so +%{tde_libdir}/ksquirrel-libs/libkls_wmf.la +%{tde_libdir}/ksquirrel-libs/libkls_wmf.so +%{tde_libdir}/ksquirrel-libs/libkls_xbm.la +%{tde_libdir}/ksquirrel-libs/libkls_xbm.so +%{tde_libdir}/ksquirrel-libs/libkls_xcf.la +%{tde_libdir}/ksquirrel-libs/libkls_xcf.so +%{tde_libdir}/ksquirrel-libs/libkls_xcur.la +%{tde_libdir}/ksquirrel-libs/libkls_xcur.so +%{tde_libdir}/ksquirrel-libs/libkls_xim.la +%{tde_libdir}/ksquirrel-libs/libkls_xim.so +%{tde_libdir}/ksquirrel-libs/libkls_xpm.la +%{tde_libdir}/ksquirrel-libs/libkls_xpm.so +%{tde_libdir}/ksquirrel-libs/libkls_xwd.la +%{tde_libdir}/ksquirrel-libs/libkls_xwd.so +%{tde_libdir}/libksquirrel-libs-png.la +%{tde_libdir}/libksquirrel-libs-png.so +%{tde_libdir}/libksquirrel-libs.la +%{tde_libdir}/libksquirrel-libs.so +%{tde_libdir}/pkgconfig/ksquirrellibs.pc +%{tde_docdir}/ksquirrel-libs/ %files tools %defattr(-,root,root,-) -%{_bindir}/* +%{tde_bindir}/ksquirrel-libs-camera2ppm +%{tde_bindir}/ksquirrel-libs-dcraw +%{tde_bindir}/ksquirrel-libs-dicom2png +%{tde_bindir}/ksquirrel-libs-fig2ppm +%{tde_bindir}/ksquirrel-libs-iff2ppm +%{tde_bindir}/ksquirrel-libs-leaf2ppm +%{tde_bindir}/ksquirrel-libs-ljpeg2ppm +%{tde_bindir}/ksquirrel-libs-ljpeg2ppm-s +%{tde_bindir}/ksquirrel-libs-mac2ppm +%{tde_bindir}/ksquirrel-libs-neo2ppm +%{tde_bindir}/ksquirrel-libs-pi12ppm +%{tde_bindir}/ksquirrel-libs-pi32ppm +%{tde_bindir}/ksquirrel-libs-svg2png +%{tde_bindir}/ksquirrel-libs-ttf2pnm +%{tde_bindir}/ksquirrel-libs-utah2ppm +%{tde_bindir}/ksquirrel-libs-xcf2pnm +%{tde_bindir}/ksquirrel-libs-xim2ppm %Changelog diff --git a/redhat/libraries/pykdeextensions/pykdeextensions-3.5.13-do_not_link_stdc++.patch b/redhat/libraries/pykdeextensions/pykdeextensions-3.5.13-do_not_link_stdc++.patch new file mode 100644 index 000000000..40177c2e2 --- /dev/null +++ b/redhat/libraries/pykdeextensions/pykdeextensions-3.5.13-do_not_link_stdc++.patch @@ -0,0 +1,31 @@ +--- pykdeextensions/src/kdedistutils.py.ori 2012-08-05 09:04:21.430039677 +0000 ++++ pykdeextensions/src/kdedistutils.py 2012-08-05 09:04:33.013847354 +0000 +@@ -820,7 +820,7 @@ + linklist.append("-L"+self.kde_lib_dir); linklist.append("-L/opt/trinity/lib"); linklist.append("-lkdecore"); linklist.append("-lpythonize") + linklist.append("-L"+self.qt_lib_dir); linklist.append("-lqt-mt") + linklist.append("-lm") +- linklist.append("-lstdc++") ++# linklist.append("-lstdc++") + linklist.append("-lc") + linklist.append(self.clib) + +@@ -1734,7 +1734,7 @@ + linklist.append("-L"+self.kde_lib_dir); linklist.append("-L/opt/trinity/lib"); linklist.append("-lkdecore"); linklist.append("-lpythonize") + linklist.append("-L"+self.qt_lib_dir); linklist.append("-lqt-mt") + linklist.append("-lm") +- linklist.append("-lstdc++") ++# linklist.append("-lstdc++") + linklist.append("-lc") + linklist.append(self.clib) + +--- pykdeextensions/setup.py.ORI 2012-08-05 09:07:01.588332389 +0000 ++++ pykdeextensions/setup.py 2012-08-05 09:07:07.795225579 +0000 +@@ -223,7 +223,7 @@ + linklist.extend(sysconfig.get_config_var("LIBS").split()) + + linklist.append("-lm") +- linklist.append("-lstdc++") ++# linklist.append("-lstdc++") + linklist.append("-lc") + linklist.append(self.clib) + diff --git a/redhat/libraries/pykdeextensions/pykdeextensions-3.5.13-fix_libsuffix.patch b/redhat/libraries/pykdeextensions/pykdeextensions-3.5.13-fix_libsuffix.patch new file mode 100644 index 000000000..b7db0c21c --- /dev/null +++ b/redhat/libraries/pykdeextensions/pykdeextensions-3.5.13-fix_libsuffix.patch @@ -0,0 +1,53 @@ +commit 32d597f993f2566f7bdfec8a29c916b4c9b1a803 +Author: Darrell Anderson <humanreadable@yahoo.com> +Date: 1339639807 -0500 + + Reverse an old Debian-specific patch that prevents building on + some 64-bit systems. Add text to help with basic debugging. + +diff --git a/setup.py b/setup.py +index e51f0fa..e7ec147 100755 +--- a/setup.py ++++ b/setup.py +@@ -135,7 +135,7 @@ class BuildLibpythonize(Command): + if self.clib!=None: + self.clib = glob.glob(os.path.join(self.clib,'libgcc*.a'))[0] + if self.clib is None: +- raise SystemExit, "Failed to find a suitable libgcc library" ++ raise SystemExit, "setup.py: Failed to find a suitable libgcc library" + self.announce("Using %s for clib" % self.clib) + + # Make a list of places to look for python .so modules +diff --git a/src/kdedistutils.py b/src/kdedistutils.py +index b8b3743..b8e23f3 100644 +--- a/src/kdedistutils.py ++++ b/src/kdedistutils.py +@@ -660,7 +660,7 @@ class BuildKControlModule(Command): + if self.clib!=None: + self.clib = glob.glob(os.path.join(self.clib,'libgcc*.a'))[0] + if self.clib is None: +- raise SystemExit, "Failed to find a suitable libgcc library" ++ raise SystemExit, "kdedistutils.py (1): Failed to find a suitable libgcc library" + self.announce("Using %s for clib" % self.clib) + + # Make a list of places to look for python .so modules +@@ -1591,7 +1591,7 @@ class BuildKioslave(Command): + if self.clib!=None: + self.clib = glob.glob(os.path.join(self.clib,'libgcc*.a'))[0] + if self.clib is None: +- raise SystemExit, "Failed to find a suitable libgcc library" ++ raise SystemExit, "kdedistutils.py (2): Failed to find a suitable libgcc library" + self.announce("Using %s for clib" % self.clib) + + # Make a list of places to look for python .so modules +@@ -2229,7 +2229,7 @@ def compile_qtdesigner(ui_files, + + ########################################################################### + def get_libdir_name(): +- #if os.uname()[4] in ['x86_64','mips64','ppc64','sparc64','s390x']: +- # return 'lib64' +- #else: ++ if os.uname()[4] in ['x86_64','mips64','ppc64','sparc64','s390x']: ++ return 'lib64' ++ else: + return 'lib' diff --git a/redhat/libraries/pykdeextensions/trinity-pykdeextensions.spec b/redhat/libraries/pykdeextensions/trinity-pykdeextensions.spec index 9a6a44d8c..1ecd8085a 100644 --- a/redhat/libraries/pykdeextensions/trinity-pykdeextensions.spec +++ b/redhat/libraries/pykdeextensions/trinity-pykdeextensions.spec @@ -1,20 +1,30 @@ %{!?python_sitearch:%global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} # If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". -%if "%{?_prefix}" != "/usr" +%if "%{?tde_prefix}" != "/usr" %define _variant .opt -%define _docdir %{_datadir}/doc %endif # TDE 3.5.13 specific building variables -BuildRequires: autoconf automake libtool m4 -%define tde_docdir %{_docdir}/kde -%define tde_includedir %{_includedir}/kde -%define tde_libdir %{_libdir}/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_mandir %{tde_datadir}/man +%define tde_appdir %{tde_datadir}/applications +%define tde_tdeappdir %{tde_appdir}/kde +%define tde_tdedocdir %{tde_docdir}/kde +%define tde_tdeincludedir %{tde_includedir}/kde +%define tde_tdelibdir %{tde_libdir}/trinity -Name: trinity-pykdeextensions -Summary: Python packages to support KDE applications (scripts) [Trinity] +%define _docdir %{tde_docdir} + + + +Name: trinity-pytdeextensions +Summary: Python packages to support TDE applications (scripts) [Trinity] Version: 0.4.0 Release: 2%{?dist}%{?_variant} @@ -25,28 +35,47 @@ Vendor: Trinity Project Packager: Francois Andriot <francois.andriot@free.fr> URL: http://www.simonzone.com/software/pykdeextensions -Prefix: %{_prefix} +Prefix: %{tde_prefix} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source0: pykdeextensions-3.5.13.tar.gz + + + # [pykdeextensions] Fix KCM modules versioning [Bug #999] Patch1: pykdeextensions-3.5.13-fix_libtool.patch # [pykdeextensions] Fix hardcoded path to Guidance python libraries [Bug #999] Patch2: pykdeextensions-3.5.13-fix_extra_module_dir.patch +# [pykdeextensions] Reverse an old Debian-specific patch that prevents building on +# some 64-bit systems. Add text to help with basic debugging. [Commit #32d597f9] +Patch3: pykdeextensions-3.5.13-fix_libsuffix.patch +# [pykdeextensions] Do not link with stdc++ +Patch4: pykdeextensions-3.5.13-do_not_link_stdc++.patch BuildRequires: tqtinterface-devel -BuildRequires: trinity-kdelibs-devel -BuildRequires: trinity-kdebase-devel +BuildRequires: trinity-tdelibs-devel +BuildRequires: trinity-tdebase-devel BuildRequires: desktop-file-utils BuildRequires: gettext BuildRequires: python-trinity-devel + +%if 0%{?mgaversion} || 0%{?mdkversion} +BuildRequires: python-qt +%else %if 0%{?rhel} == 5 BuildRequires: trinity-PyQt-devel %else BuildRequires: PyQt-devel %endif +%endif + +Requires: trinity-libpythonize0 = %{version}-%{release} + +Obsoletes: trinity-pykdeextensions < %{version}-%{release} +Provides: trinity-pykdeextensions = %{version}-%{release} + %description PyKDE Extensions is a collection of software and Python packages @@ -67,7 +96,7 @@ This package contains the libpythonize library files. %package -n trinity-libpythonize0-devel Summary: Python packages to support KDE applications (development) [Trinity] Group: Development/Libraries -Requires: trinity-libpythonize0 +Requires: trinity-libpythonize0 = %{version}-%{release} %description -n trinity-libpythonize0-devel PyKDE Extensions is a collection of software and Python packages @@ -80,42 +109,49 @@ This package contains the libpythonize development files. %setup -q -n libraries/pykdeextensions %patch1 -p1 -b .libtool %patch2 -p1 -b .extramodule +%patch3 -p1 -b .libsuffix +%patch4 -p1 -b .stdc++ # Changes library directory to 'lib64' for f in src/*.py; do %__sed -i "${f}" \ - -e "s|%{_prefix}/lib/|%{_libdir}/|g" \ + -e "s|%{tde_prefix}/lib/|%{tde_libdir}/|g" \ -e "s|/usr/lib/pyshared/python2.6|%{python_sitearch}|g" \ -e "s|'pykde-dir=',None,|'pykde-dir=','%{python_sitearch}',|g" \ -e "s|self.pykde_dir = None|self.pykde_dir = \"%{python_sitearch}\"|g" \ - -e "s|/usr/include/tqt|%{_includedir}/tqt|g" + -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" done %build unset QTDIR; . /etc/profile.d/qt.sh -export PATH="%{_bindir}:${PATH}" -export LDFLAGS="-L%{_libdir} -I%{_includedir}" +export PATH="%{tde_bindir}:${PATH}" +export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}" export PYTHONPATH=%{python_sitearch}/trinity-sip:%{python_sitearch}/trinity-PyQt ./setup.py build_libpythonize %install unset QTDIR; . /etc/profile.d/qt.sh -export PATH="%{_bindir}:${PATH}" +export PATH="%{tde_bindir}:${PATH}" export PYTHONPATH=%{python_sitearch}/trinity-sip:%{python_sitearch}/trinity-PyQt +# Avoids 'error: byte-compiling is disabled.' on Mandriva/Mageia +export PYTHONDONTWRITEBYTECODE= + %__rm -rf %{buildroot} + + ./setup.py install \ --root=%{buildroot} \ - --prefix=%{_prefix} \ - --install-clib=%{_libdir} \ - --install-cheaders=%{tde_includedir} + --prefix=%{tde_prefix} \ + --install-clib=%{tde_libdir} \ + --install-cheaders=%{tde_tdeincludedir} # Removes BUILDROOT directory reference in installed files for f in \ - %{buildroot}%{_libdir}/libpythonize.la \ - %{buildroot}%{_datadir}/apps/pykdeextensions/app_templates/kcontrol_module/src/KcontrolModuleWidgetUI.py \ - %{buildroot}%{_datadir}/apps/pykdeextensions/app_templates/kdeutility/src/KDEUtilityDialogUI.py \ + %{buildroot}%{tde_libdir}/libpythonize.la \ + %{buildroot}%{tde_datadir}/apps/pykdeextensions/app_templates/kcontrol_module/src/KcontrolModuleWidgetUI.py \ + %{buildroot}%{tde_datadir}/apps/pykdeextensions/app_templates/kdeutility/src/KDEUtilityDialogUI.py \ ; do %__sed -i "${f}" -e "s|%{buildroot}||g" : @@ -123,44 +159,54 @@ done # Moves PYTHON libraries to distribution directory %__mkdir_p %{buildroot}%{python_sitearch} -%__mv -f %{buildroot}%{_prefix}/lib/python*/site-packages/* %{buildroot}%{python_sitearch} -%__rm -rf %{buildroot}%{_prefix}/lib/python*/site-packages +%__mv -f %{buildroot}%{tde_prefix}/lib/python*/site-packages/* %{buildroot}%{python_sitearch} +%__rm -rf %{buildroot}%{tde_prefix}/lib/python*/site-packages + +# Removes useless files +%__rm -rf %{?buildroot}%{tde_libdir}/*.a +# Fix permissions on include files +%__chmod 644 %{?buildroot}%{tde_tdeincludedir}/*.h %clean %__rm -rf %{buildroot} -%post -n trinity-libpythonize0 -p /sbin/ldconfig -%postun -n trinity-libpythonize0 -p /sbin/ldconfig +%post -n trinity-libpythonize0 +/sbin/ldconfig + +%postun -n trinity-libpythonize0 +/sbin/ldconfig + +%post -n trinity-libpythonize0-devel +/sbin/ldconfig -%post -n trinity-libpythonize0-devel -p /sbin/ldconfig -%postun -n trinity-libpythonize0-devel -p /sbin/ldconfig +%postun -n trinity-libpythonize0-devel +/sbin/ldconfig %files %defattr(-,root,root,-) %doc AUTHORS ChangeLog COPYING NEWS README TODO -%{_datadir}/apps/pykdeextensions -%{tde_docdir}/HTML/en/pykdeextensions +%{tde_datadir}/apps/pykdeextensions +%{tde_tdedocdir}/HTML/en/pykdeextensions %{python_sitearch}/* %files -n trinity-libpythonize0 %defattr(-,root,root,-) -%{_libdir}/libpythonize.so.* +%{tde_libdir}/libpythonize.so.* %files -n trinity-libpythonize0-devel %defattr(-,root,root,-) -%{tde_includedir}/*.h -%{_libdir}/libpythonize.a -%{_libdir}/libpythonize.la -%{_libdir}/libpythonize.so +%{tde_tdeincludedir}/*.h +%{tde_libdir}/libpythonize.la +%{tde_libdir}/libpythonize.so %Changelog -* Fri May 11 2012 Francois Andriot <francois.andriot@free.fr> - 0.8.0svn20080103-2 +* Fri May 11 2012 Francois Andriot <francois.andriot@free.fr> - 0.4.0-2 - Fix KCM modules versioning [Bug #999] - Fix hardcoded path to Guidance python libraries [Bug #999] -* Thu Dec 01 2011 Francois Andriot <francois.andriot@free.fr> - 0.8.0svn20080103-1 +* Thu Dec 01 2011 Francois Andriot <francois.andriot@free.fr> - 0.4.0-1 - Initial build for RHEL 5, RHEL 6, Fedora 15, Fedora 16 diff --git a/redhat/libraries/python-trinity/python-trinity-3.5.13-fix_mandrake_detection.patch b/redhat/libraries/python-trinity/python-trinity-3.5.13-fix_mandrake_detection.patch new file mode 100644 index 000000000..7769b4f27 --- /dev/null +++ b/redhat/libraries/python-trinity/python-trinity-3.5.13-fix_mandrake_detection.patch @@ -0,0 +1,11 @@ +--- python-trinity/configure.py.ORI 2012-08-05 00:02:51.785715468 +0200 ++++ python-trinity/configure.py 2012-08-05 00:03:02.312464939 +0200 +@@ -513,7 +513,7 @@ + + for file in dist: + if file.find ("andrake") > 0: +- kde_sip_flags.remove ("ALL") ++ kde_sip_flags.pop() + kde_sip_flags.append ("D_MANDRAKE") + + def set_sip_flags(): diff --git a/redhat/libraries/python-trinity/python-trinity-3.5.13-fix_min_sip_version.patch b/redhat/libraries/python-trinity/python-trinity-3.5.13-fix_min_sip_version.patch deleted file mode 100644 index dd2877616..000000000 --- a/redhat/libraries/python-trinity/python-trinity-3.5.13-fix_min_sip_version.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- python-trinity/configure.py.ORI 2012-05-12 10:52:21.457246722 +0200 -+++ python-trinity/configure.py 2012-05-12 10:52:43.558700741 +0200 -@@ -74,7 +74,7 @@ - kde_version_extra = None - kde_max_version = 0x030503 - --sip_min_v4_version = 0x040900 -+sip_min_v4_version = 0x040400 - qt_min_version = 0x030200 - pyqt_min_version = 0x031000 - diff --git a/redhat/libraries/python-trinity/python-trinity.spec b/redhat/libraries/python-trinity/python-trinity.spec index 0adf450ff..f2815a5c9 100644 --- a/redhat/libraries/python-trinity/python-trinity.spec +++ b/redhat/libraries/python-trinity/python-trinity.spec @@ -1,16 +1,27 @@ %{!?python_sitearch:%global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} # If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". -%if "%{?_prefix}" != "/usr" +%if "%{?tde_prefix}" != "/usr" %define _variant .opt -%define _docdir %{_datadir}/doc %endif # TDE 3.5.13 specific building variables -BuildRequires: autoconf automake libtool m4 -%define tde_docdir %{_docdir}/kde -%define tde_includedir %{_includedir}/kde -%define tde_libdir %{_libdir}/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_mandir %{tde_datadir}/man +%define tde_appdir %{tde_datadir}/applications + +%define tde_tdeappdir %{tde_appdir}/kde +%define tde_tdedocdir %{tde_docdir}/kde +%define tde_tdeincludedir %{tde_includedir}/kde +%define tde_tdelibdir %{tde_libdir}/trinity + +%define _docdir %{tde_docdir} + +%define __arch_install_post %{nil} Name: python-trinity @@ -32,26 +43,33 @@ Source0: python-trinity-3.5.13.tar.gz ## RHEL/Fedora patches Patch1: python-trinity-3.5.13-install_directories.patch - # [python-trinity] Fix compilation with GCC 4.7 Patch2: python-trinity-3.5.13-fix_gcc47_compilation.patch +# [python-trinity] Fix Mandrake detection function +Patch3: python-trinity-3.5.13-fix_mandrake_detection.patch + BuildRequires: tqtinterface-devel -BuildRequires: trinity-kdelibs-devel -BuildRequires: trinity-kdebase-devel +BuildRequires: trinity-tdelibs-devel +BuildRequires: trinity-tdebase-devel BuildRequires: desktop-file-utils BuildRequires: gettext BuildRequires: python +%if 0%{?mgaversion} || 0%{?mdkversion} +BuildRequires: python-sip +BuildRequires: python-qt +%else %if 0%{?rhel} == 5 +# RHEL 5 comes with old version, so we brought ours ... BuildRequires: trinity-sip-devel BuildRequires: trinity-PyQt-devel %else BuildRequires: sip-devel BuildRequires: PyQt-devel %endif - +%endif %description Python binding module that provides wide access to the Trinity API, @@ -84,32 +102,44 @@ tips and working code you can use to learn from. %setup -q -n libraries/python-trinity %patch1 -p1 %patch2 -p1 +%patch3 -p1 + # Hack to get TQT include files under /opt %__sed -i "configure.py" \ - -e "s|/usr/include/tqt|%{_includedir}/tqt|g" + -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" + %build -export PATH="%{_bindir}:${PATH}" -export LDFLAGS="-L%{_libdir} -I%{_includedir}" +unset QTDIR; . /etc/profile.d/qt.sh +export PATH="%{tde_bindir}:${PATH}" +export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}" + +export LDFLAGS="${LDFLAGS} -lpython2.7" export PYTHONPATH=%{python_sitearch}/trinity-sip:%{python_sitearch}/trinity-PyQt %__python configure.py \ - -k %{_prefix} \ + -k %{tde_prefix} \ -L %{_lib} \ -v %{_datadir}/sip/trinity +%if 0%{?mgaversion} || 0%{?mdkversion} +# Shitty hack to add LDFLAGS +%__sed -i */Makefile \ + -e "/^LIBS = / s|$| -lpython2.7 -lDCOP -lkdecore -lkdefx -lkdeui -lkresources -lkabc -lkparts -lkio|" +%endif + %__make %{_smp_mflags} %install -export PATH="%{_bindir}:${PATH}" +export PATH="%{tde_bindir}:${PATH}" %__rm -rf %{buildroot} %__make install DESTDIR=%{buildroot} # Install documentation -%__mkdir_p %{buildroot}%{tde_docdir}/HTML/en -%__cp -rf doc %{buildroot}%{tde_docdir}/HTML/en/%{name} +%__mkdir_p %{buildroot}%{tde_tdedocdir}/HTML/en/ +%__cp -rf doc %{buildroot}%{tde_tdedocdir}/HTML/en/python-trinity/ @@ -127,12 +157,13 @@ export PATH="%{_bindir}:${PATH}" %files devel %defattr(-,root,root,-) -%{_bindir}/kdepyuic -%{_datadir}/sip/trinity +%{tde_bindir}/kdepyuic +# The SIP files are outside TDE's prefix +%{_datadir}/sip/trinity/ %files doc %defattr(-,root,root,-) -%{tde_docdir}/HTML/en/%{name} +%{tde_tdedocdir}/HTML/en/python-trinity/ %Changelog |