summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--redhat/kdeartwork/trinity-kdeartwork-3.5.13.spec57
-rw-r--r--redhat/kdeartwork/webcollagerc3
-rwxr-xr-xredhat/kdebase/trinity-kdebase-3.5.13.spec25
-rw-r--r--redhat/kdebindings/trinity-kdebindings-3.5.13.spec14
-rw-r--r--redhat/kdeedu/trinity-kdeedu-3.5.13.spec238
-rw-r--r--redhat/kdegames/trinity-kdegames-3.5.13.spec196
-rw-r--r--redhat/kdegraphics/trinity-kdegraphics-3.5.13.spec342
7 files changed, 839 insertions, 36 deletions
diff --git a/redhat/kdeartwork/trinity-kdeartwork-3.5.13.spec b/redhat/kdeartwork/trinity-kdeartwork-3.5.13.spec
index 6a0ef7146..1f48d1611 100644
--- a/redhat/kdeartwork/trinity-kdeartwork-3.5.13.spec
+++ b/redhat/kdeartwork/trinity-kdeartwork-3.5.13.spec
@@ -11,17 +11,23 @@
%endif
# TDE 3.5.13 specific building variables
-BuildRequires: autoconf automake libtool m4
+BuildRequires: cmake >= 2.8
%define tde_libdir %{_libdir}/trinity
+# kdeartwork specific settings
+# On RHEL 6, libart is too old !
+%if 0%{?fedora} >= 15
+%define with_libart 1
+%endif
+
Name: trinity-kdeartwork
-Summary: Additional artwork (themes, sound themes, ...) for KDE
+Summary: Additional artwork (themes, sound themes, ...) for TDE
Version: %{?version}
Release: %{?release}%{?dist}%{?_variant}
License: GPLv2
-Group: User Interface/Desktops
+Group: User Interface/Desktops
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Vendor: Trinity Project
@@ -35,8 +41,11 @@ Source1: webcollagerc
BuildRequires: gettext
BuildRequires: trinity-kdebase-devel
-BuildRequires: libart_lgpl-devel
BuildRequires: nas-devel esound-devel jack-audio-connection-kit-devel
+BuildRequires: xscreensaver
+%if "%{?with_libart}" == "1"
+BuildRequires: libart_lgpl-devel
+%endif
Requires: trinity-kdebase
@@ -54,24 +63,27 @@ Group: User Interface/Desktops
%prep
%setup -q -n kdeartwork
-%__cp "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
-%__cp "/usr/share/libtool/config/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 \
- --enable-new-ldflags \
- --disable-dependency-tracking \
- --disable-debug --disable-warnings \
- --enable-final \
- --with-extra-includes=%{_includedir}/tqt
+export PKG_CONFIG_PATH="%{_libdir}/pkgconfig"
+export CMAKE_INCLUDE_PATH="%{_includedir}:%{_includedir}/tqt"
+export LD_LIBRARY_PATH="%{_libdir}"
+
+%__mkdir build
+cd build
+%cmake \
+ -DWITH_XSCREENSAVER=ON \
+%if "%{?with_libart}" == "1"
+ -DWITH_LIBART=ON \
+%else
+ -DWITH_LIBART=OFF \
+%endif
+ -DWITH_OPENGL=ON \
+ -DWITH_ARTS=ON \
+ -DBUILD_ALL=ON \
+ ..
%__make %{?_smp_mflags}
@@ -79,8 +91,7 @@ export LDFLAGS="-L%{_libdir} -I%{_includedir}"
%install
export PATH="%{_bindir}:${PATH}"
%__rm -rf %{buildroot}
-
-%make_install
+%__make install -C build DESTDIR=%{buildroot}
# webcollage -root -directory /usr/share/backgrounds/images #227683
@@ -123,17 +134,17 @@ done
%post icons
for i in locolor ikons kdeclassic kids slick ; do
touch --no-create %{_datadir}/icons/$i 2>/dev/null || :
- %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/$i 2>/dev/null || :
+ gtk-update-icon-cache --quiet %{_datadir}/icons/$i 2>/dev/null || :
done
%postun icons
for i in locolor ikons kdeclassic kids slick ; do
touch --no-create %{_datadir}/icons/$i 2>/dev/null || :
- %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/$i 2>/dev/null || :
+ gtk-update-icon-cache --quiet %{_datadir}/icons/$i 2>/dev/null || :
done
%clean
-rm -rf %{buildroot}
+%__rm -rf %{buildroot}
%files -f %{name}.lang
%defattr(-,root,root,-)
diff --git a/redhat/kdeartwork/webcollagerc b/redhat/kdeartwork/webcollagerc
new file mode 100644
index 000000000..fc901454a
--- /dev/null
+++ b/redhat/kdeartwork/webcollagerc
@@ -0,0 +1,3 @@
+[directory]
+Value=/usr/share/backgrounds/images/
+
diff --git a/redhat/kdebase/trinity-kdebase-3.5.13.spec b/redhat/kdebase/trinity-kdebase-3.5.13.spec
index c52d2f2b0..a35207c56 100755
--- a/redhat/kdebase/trinity-kdebase-3.5.13.spec
+++ b/redhat/kdebase/trinity-kdebase-3.5.13.spec
@@ -30,6 +30,9 @@ Prefix: %{_prefix}
Source0: kdebase-%{version}.tar.gz
+# Wrapper script to prevent Plasma launch at Trinity Startup
+Source1: plasma-desktop
+
# TDE for RHEL/Fedora specific patches
# [kdebase/kdesu] Remove 'ignore' button on 'kdesu' dialog box
Patch3: kdebase-3.5.13-kdesu-noignorebutton.patch
@@ -61,6 +64,7 @@ BuildRequires: pam-devel
BuildRequires: libXdmcp-devel
BuildRequires: libxkbfile-devel
BuildRequires: dbus-tqt-devel
+BuildRequires: libXtst-devel
Requires: tqtinterface
Requires: trinity-arts
@@ -90,7 +94,7 @@ kfontmanager, kmenuedit).
%package devel
Requires: %{name}
-Requires: %{name}-libs = %{?epoch:%{epoch}:}%{version}-%{release}
+Requires: %{name}-libs = %{version}-%{release}
Requires: trinity-kdelibs-devel
Summary: %{summary} - Development files
%if "%{?_prefix}" == "/usr"
@@ -106,7 +110,7 @@ Kate plugins or KWin styles.
%package extras
Summary: Extra applications from %{name}
Group: User Interface/Desktops
-Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
+Requires: %{name} = %{version}-%{release}
%description extras
%{summary}, including:
* kappfinder
@@ -118,11 +122,11 @@ Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
%package libs
Summary: %{name} runtime libraries
Group: System Environment/Libraries
-Requires: trinity-kdelibs >= %{version}
+Requires: trinity-kdelibs
%if "%{?_prefix}" == "/usr"
Obsoletes: kdebase3-libs
%endif
-Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
+Requires: %{name} = %{version}-%{release}
%description libs
%{summary}
@@ -144,9 +148,6 @@ Protocol handlers (KIOslaves) for personal information management, including:
%patch5 -p1
%patch6 -p1
-# Gets the cmake modules in current build directory
-%__mkdir_p cmake/modules
-%__cp -f %{_datadir}/cmake/*.* cmake/modules
%build
unset QTDIR || : ; . /etc/profile.d/qt.sh
@@ -201,6 +202,11 @@ sed -i "%{?buildroot}%{_bindir}/startkde" \
# 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 "%{?_prefix}" != "/usr"
+%{__cp} -f "%{SOURCE1}" "%{?buildroot}%{_bindir}"
+%endif
+
%clean
%__rm -rf %{?buildroot}
@@ -418,8 +424,13 @@ update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
%exclude %{_datadir}/services/pop3*.protocol
%exclude %{_datadir}/services/smtp*.protocol
+# New in TDE 3.5.12
+%{_bindir}/plasma-desktop
+
# New in TDE 3.5.13
%{_bindir}/krootbacking
+%{_bindir}/tsak
+%attr(4511,root,root) %{_bindir}/kdmtsak
%files libs
%defattr(-,root,root,-)
diff --git a/redhat/kdebindings/trinity-kdebindings-3.5.13.spec b/redhat/kdebindings/trinity-kdebindings-3.5.13.spec
index f4ea50005..f0b76045b 100644
--- a/redhat/kdebindings/trinity-kdebindings-3.5.13.spec
+++ b/redhat/kdebindings/trinity-kdebindings-3.5.13.spec
@@ -13,6 +13,7 @@
# 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
@@ -26,7 +27,7 @@ Group: User Interface/Desktops
Vendor: Trinity Project
Packager: Francois Andriot <francois.andriot@free.fr>
-URL: http://developer.kde.org/language-bindings/
+URL: http://www.trinitydesktop.org/
Source0: kdebindings-%{version}.tar.gz
@@ -114,7 +115,7 @@ unset JAVA_HOME ||:
export DO_NOT_COMPILE="$DO_NOT_COMPILE python"
%configure \
- --includedir=%{_includedir}/kde \
+ --includedir=%{tde_includedir} \
--disable-rpath \
--enable-new-ldflags \
--disable-debug --disable-warnings \
@@ -145,8 +146,8 @@ popd
%install
-%__rm -rf $RPM_BUILD_ROOT
export PATH="%{_bindir}:${PATH}"
+%__rm -rf $RPM_BUILD_ROOT
%make_install \
PYTHON=%{__python}
@@ -206,7 +207,8 @@ for dir in dcopperl dcoppython kalyptus %{?_with_java:kdejava qtjava} kjsembed k
done
%clean
-rm -rf $RPM_BUILD_ROOT
+%__rm -rf $RPM_BUILD_ROOT
+
%post
/sbin/ldconfig ||:
@@ -255,8 +257,8 @@ update-desktop-database >& /dev/null ||:
# Excludes 'kjscmd' (conflicts with 'kdelibs' from RHEL6)
%if "%{?_prefix}" == "/usr"
%exclude %{_bindir}/kjscmd
-%exclude %{_mandir}/man1/kjscmd*
%endif
+%exclude %{_mandir}/man1/kjscmd*
%files dcopperl -f %{name}-dcopperl.list
@@ -266,7 +268,7 @@ update-desktop-database >& /dev/null ||:
%files devel
%defattr(-,root,root,-)
-%{_includedir}/kde/*
+%{tde_includedir}/*
%{_libdir}/lib*.so
%if "%{?_with_java:1}" == "1"
%{_libdir}/jni/*.so
diff --git a/redhat/kdeedu/trinity-kdeedu-3.5.13.spec b/redhat/kdeedu/trinity-kdeedu-3.5.13.spec
new file mode 100644
index 000000000..72f8e2c72
--- /dev/null
+++ b/redhat/kdeedu/trinity-kdeedu-3.5.13.spec
@@ -0,0 +1,238 @@
+# Default version for this component
+%if "%{?version}" == ""
+%define version 3.5.13
+%endif
+%define release 0
+
+# 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
+%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
+
+
+Name: trinity-kdeedu
+Summary: Educational/Edutainment applications
+Version: %{?version}
+Release: %{?release}%{?dist}%{?_variant}
+
+License: GPLv2
+Group: Amusements/Games
+
+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: kdeedu-%{version}.tar.gz
+
+Patch100: svn.patch
+
+Provides: kdeedu3 = %{version}-%{release}
+
+Requires(post): /sbin/ldconfig
+Requires(postun): /sbin/ldconfig
+
+Requires: %{name}-libs = %{version}-%{release}
+
+BuildRequires: desktop-file-utils
+BuildRequires: trinity-kdelibs-devel
+BuildRequires: python-devel python
+BuildRequires: boost-devel
+%if 0%{?rhel} >= 6 || 0%{?fedora} >= 15
+BuildRequires: ocaml(compiler)
+%else
+BuildRequires: ocaml
+%endif
+#BuildRequires: ocaml-facile-devel
+
+
+%description
+Educational/Edutainment applications, including:
+* blinken: Simon Says Game
+* kalzium: Periodic Table of Elements
+* kanagram: Letter Order Game
+* kbruch: Exercise Fractions
+* keduca: Tests and Exams
+* kgeography: Geography Trainer
+* khangman: Hangman Game
+* kig: Interactive Geometry
+* kiten: Japanese Reference/Study Tool
+* klatin: Latin Reviser
+* klettres: French alphabet tutor
+* kmplot: Mathematical Function Plotter
+* kpercentage: Excersie Percentages
+* kstars: Desktop Planetarium
+* ktouch: Touch Typing Tutor
+* kturtle: Logo Programming Environment
+* kverbos: Study Spanish Verbforms
+* kvoctrain: Vocabulary Trainer
+* kwordquiz: Vocabulary Trainer
+
+%package devel
+Summary: Development files for %{name}
+Group: Development/Libraries
+Provides: kdeedu3-devel = %{version}-%{release}
+Requires: %{name}-libs = %{version}-%{release}
+%description devel
+%{summary}.
+
+%package libs
+Summary: %{name} runtime libraries
+Group: System Environment/Libraries
+Requires: trinity-kdelibs
+# include to be paranoid, installing libs-only is still mostly untested -- Rex
+Requires: %{name} = %{version}-%{release}
+%description libs
+%{summary}.
+
+
+%prep
+%setup -q -n kdeedu
+
+%patch100 -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"
+
+%if 0%{?rhel} > 0
+rm -rf doc/kgeography kgeography
+perl -pi -e "s|kgeography||" subdirs
+%endif
+
+%__cp "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
+%__cp "/usr/share/libtool/config/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}"
+
+# Fix link with kparts
+export CXXFLAGS="${CXXFLAGS} -lkparts"
+
+%if 0%{?fedora}
+export CXXFLAGS="${CXXFLAGS} -fpermissive"
+%endif
+
+%configure \
+ --enable-new-ldflags \
+ --disable-dependency-tracking \
+ --disable-rpath \
+%if 0%{?rhel} >= 6 || 0%{?fedora} >= 15
+ --enable-kig-python-scripting \
+%else
+ --disable-kig-python-scripting \
+%endif
+ --disable-debug \
+ --disable-warnings \
+ --enable-final \
+ --enable-closure \
+ --includedir=%{_includedir}/kde \
+ --disable-ocamlsolver \
+ --with-extra-includes=%{_includedir}/tqt
+
+
+%__make \
+ OCAMLLIB=$(ocamlc -where) FACILELIB=$(ocamlc -where)
+
+
+%install
+export PATH="%{_bindir}:${PATH}"
+%__rm -rf %{buildroot}
+%__make install DESTDIR=%{buildroot}
+
+# locale's
+%find_lang %{name} || touch %{name}.lang
+HTML_DIR=$(kde-config --expandvars --install html)
+if [ -d %{buildroot}$HTML_DIR ]; then
+for lang_dir in %{buildroot}$HTML_DIR/* ; do
+ if [ -d $lang_dir ]; then
+ lang=$(basename $lang_dir)
+ echo "%lang($lang) $HTML_DIR/$lang/*" >> %{name}.lang
+ # replace absolute symlinks with relative ones
+ pushd $lang_dir
+ for i in *; do
+ [ -d $i -a -L $i/common ] && ln -nsf ../common $i/common
+ done
+ popd
+ fi
+done
+fi
+
+# rpmdocs
+for dir in blinken k* ; do
+ for file in AUTHORS ChangeLog README TODO ; do
+ test -s "$dir/$file" && install -p -m644 -D "$dir/$file" "rpmdocs/$dir/$file"
+ done
+done
+
+
+%clean
+%__rm -rf %{buildroot}
+
+
+%post
+for i in crystalsvg hicolor locolor ; do
+ touch --no-create %{_datadir}/icons/$i 2>/dev/null || :
+ gtk-update-icon-cache --quiet %{_datadir}/icons/$i 2>/dev/null || :
+done
+update-desktop-database >& /dev/null ||:
+
+%postun
+for i in crystalsvg hicolor locolor ; do
+ touch --no-create %{_datadir}/icons/$i 2>/dev/null || :
+ gtk-update-icon-cache --quiet %{_datadir}/icons/$i 2>/dev/null || :
+done
+update-desktop-database >& /dev/null ||:
+
+%post libs -p /sbin/ldconfig
+
+%postun libs -p /sbin/ldconfig
+
+
+%files -f %{name}.lang
+%defattr(-,root,root,-)
+%doc README COPYING
+%doc rpmdocs/*
+%{_bindir}/*
+%{_datadir}/applications/kde/*
+# FIXME
+%{_datadir}/applnk/Edutainment/
+%{_datadir}/apps/*
+%config %{_datadir}/config*/*
+%{_datadir}/mimelnk/*/*
+%{_datadir}/icons/crystalsvg/*/*/*
+%{_datadir}/icons/hicolor/*/*/*
+%{_datadir}/icons/locolor/*/*/*
+%{_datadir}/services/*
+%{tde_libdir}/*
+%doc %lang(en) %{_docdir}/HTML/en/*
+
+%files libs
+%defattr(-,root,root,-)
+%{_libdir}/lib*.so.*
+%{_libdir}/lib*.la
+
+%files devel
+%defattr(-,root,root,-)
+%doc libkdeedu/AUTHORS libkdeedu/README
+%{tde_includedir}/*
+%{_libdir}/lib*.so
+
+
+%changelog
+* Sat Sep 09 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.13-0
+- Initial build for RHEL 6
diff --git a/redhat/kdegames/trinity-kdegames-3.5.13.spec b/redhat/kdegames/trinity-kdegames-3.5.13.spec
new file mode 100644
index 000000000..14d8d0f55
--- /dev/null
+++ b/redhat/kdegames/trinity-kdegames-3.5.13.spec
@@ -0,0 +1,196 @@
+# Default version for this component
+%if "%{?version}" == ""
+%define version 3.5.13
+%endif
+%define release 0
+
+# 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
+%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
+
+
+Name: trinity-kdegames
+Summary: Trinity Desktop Environment - Games
+Version: %{?version}
+Release: %{?release}%{?dist}%{?_variant}
+
+License: GPLv2
+Group: Amusements/Games
+
+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)
+
+Source: kdegames-%{version}.tar.gz
+
+Provides: kdegames3 = %{version}-%{release}
+
+Requires: %{name}-libs = %{version}-%{release}
+
+BuildRequires: trinity-kdelibs-devel
+
+%description
+Games and gaming libraries for the K Desktop Environment.
+Included with this package are: kenolaba, kasteroids, kblackbox, kmahjongg,
+kmines, konquest, kpat, kpoker, kreversi, ksame, kshisen, ksmiletris,
+ksnake, ksirtet, katomic, kjumpingcube, ktuberling.
+
+%package devel
+Summary: Development files for %{name}
+Group: Development/Libraries
+License: LGPLv2
+Provides: kdegames3-devel = %{version}-%{release}
+Requires: %{name}-libs = %{?epoch:%{epoch}:}%{version}-%{release}
+Requires: trinity-kdelibs-devel
+%description devel
+%{summary}.
+Install %{name}-devel if you wish to develop or compile games for the
+KDE desktop.
+
+%package libs
+Summary: %{name} runtime libraries
+Group: System Environment/Libraries
+Requires: trinity-kdelibs
+License: LGPLv2
+# include to paranoid, installing libs-only is still mostly untested -- Rex
+#Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
+%description libs
+%{summary}.
+
+
+
+%prep
+%setup -q -n kdegames
+
+# 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"
+
+%__cp "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
+%__cp "/usr/share/libtool/config/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}"
+
+%if 0%{?fedora} > 0
+export CXXFLAGS="${CXXFLAGS} -lkio"
+%endif
+
+%configure \
+ --enable-new-ldflags \
+ --disable-dependency-tracking \
+ --disable-rpath \
+ --enable-final \
+ --disable-debug \
+ --disable-warnings \
+ --enable-closure \
+ --includedir=%{_includedir}/kde \
+ --disable-setgid \
+ --with-extra-includes=%{_includedir}/tqt
+
+%__make %{?_smp_mflags}
+
+
+%install
+export PATH="%{_bindir}:${PATH}"
+%__rm -rf %{buildroot}
+%__make install DESTDIR=%{buildroot}
+
+# locale's
+%find_lang %{name} || touch %{name}.lang
+HTML_DIR=$(kde-config --expandvars --install html)
+if [ -d %{buildroot}$HTML_DIR ]; then
+for lang_dir in %{buildroot}$HTML_DIR/* ; do
+ if [ -d $lang_dir ]; then
+ lang=$(basename $lang_dir)
+ echo "%lang($lang) $HTML_DIR/$lang/*" >> %{name}.lang
+ # replace absolute symlinks with relative ones
+ pushd $lang_dir
+ for i in *; do
+ [ -d $i -a -L $i/common ] && ln -nsf ../common $i/common
+ done
+ popd
+ fi
+done
+fi
+
+# rpmdocs
+for dir in k* lskat ; do
+ for file in AUTHORS ChangeLog README TODO ; do
+ test -s "$dir/$file" && install -p -m644 -D "$dir/$file" "rpmdocs/$dir/$file"
+ done
+done
+
+
+%clean
+%__rm -rf %{buildroot}
+
+
+%post
+for f in crystalsvg hicolor ; do
+ touch --no-create %{_datadir}/icons/$f 2> /dev/null ||:
+ gtk-update-icon-cache -q %{_datadir}/icons/$f 2> /dev/null ||:
+done
+update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
+
+%postun
+for f in crystalsvg hicolor ; do
+ touch --no-create %{_datadir}/icons/$f 2> /dev/null ||:
+ gtk-update-icon-cache -q %{_datadir}/icons/$f 2> /dev/null ||:
+done
+update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
+
+%post libs -p /sbin/ldconfig
+
+%postun libs -p /sbin/ldconfig
+
+
+%files -f %{name}.lang
+%defattr(-,root,root,-)
+%doc AUTHORS README COPYING
+%doc rpmdocs/*
+%{_bindir}/*
+%{_datadir}/applications/kde/*.desktop
+%{_datadir}/apps/*
+%{_datadir}/config*/*
+%{_datadir}/icons/crystalsvg/*/*/*
+%{_datadir}/icons/hicolor/*/*/*
+%{_datadir}/mimelnk/*/*
+%{_datadir}/service*/*
+%{tde_libdir}/*
+%{_libdir}/libkdeinit_*.so
+%doc %lang(en) %{_docdir}/HTML/en/*
+
+%files libs
+%defattr(-,root,root,-)
+%{_libdir}/lib*.so.*
+%{_libdir}/lib*.la
+
+%files devel
+%defattr(-,root,root,-)
+%doc COPYING.LIB
+%doc libkdegames/README libkdegames/TODO
+%{tde_includedir}/*
+%{_libdir}/lib*.so
+%exclude %{_libdir}/libkdeinit_*.so
+
+
+%changelog
+* Sat Sep 09 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.13-0
+- Initial build for RHEL 6
diff --git a/redhat/kdegraphics/trinity-kdegraphics-3.5.13.spec b/redhat/kdegraphics/trinity-kdegraphics-3.5.13.spec
new file mode 100644
index 000000000..b988eddca
--- /dev/null
+++ b/redhat/kdegraphics/trinity-kdegraphics-3.5.13.spec
@@ -0,0 +1,342 @@
+# Default version for this component
+%if "%{?version}" == ""
+%define version 3.5.13
+%endif
+%define release 0
+
+# 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
+%endif
+
+# TDE 3.5.13 specific building variables
+BuildRequires: cmake >= 2.8
+%define tde_docdir %{_docdir}
+%define tde_includedir %{_includedir}/kde
+%define tde_libdir %{_libdir}/trinity
+
+
+Name: trinity-kdegraphics
+Version: %{?version}
+Release: %{?release}%{?dist}%{_variant}
+License: GPL
+Summary: K Desktop Environment - Graphics Applications
+
+Group: Applications/Multimedia
+Prefix: %{_prefix}
+
+Vendor: Trinity Project
+Packager: Francois Andriot <francois.andriot@free.fr>
+URL: http://www.trinitydesktop.org/
+
+Source0: kdegraphics-%{version}.tar.gz
+
+BuildRequires: tqtinterface-devel
+BuildRequires: trinity-kdelibs-devel
+BuildRequires: trinity-kdebase-devel
+BuildRequires: gettext
+BuildRequires: libmng-devel
+BuildRequires: libpng-devel
+BuildRequires: libtiff-devel
+BuildRequires: libungif-devel
+BuildRequires: automake libtool
+BuildRequires: gphoto2-devel
+BuildRequires: sane-backends-devel
+BuildRequires: libusb-devel
+
+# kgamma
+BuildRequires: libXxf86vm-devel
+# kuickshow
+BuildRequires: imlib-devel
+#kfile-plugin
+BuildRequires: OpenEXR-devel
+# kpdf
+BuildRequires: freetype-devel
+BuildRequires: poppler-qt-devel
+BuildRequires: libpaper-devel
+# ksvg
+BuildRequires: fontconfig-devel
+BuildRequires: fribidi-devel
+BuildRequires: lcms-devel
+BuildRequires: libart_lgpl-devel
+BuildRequires: libXmu-devel
+# kpovmodeler
+BuildRequires: libGL-devel libGLU-devel libXi-devel
+
+Requires: tqtinterface
+Requires: trinity-arts
+Requires: trinity-kdelibs
+Requires: ghostscript
+Requires: %{name}-libs = %{version}-%{release}
+
+%if "%{_prefix}" == "/usr"
+Provides: kdegraphics3 = %{version}-%{release}
+Conflicts: kdegraphics
+%endif
+
+%description
+Graphics applications for the K Desktop Environment, including
+* kamera (digital camera support)
+* kcoloredit (palette editor and color chooser)
+* kdvi (displays TeX .dvi files)
+* kghostview (displays postscript files)
+* kiconedit (icon editor)
+* kooka (scanner application)
+* kpdf (displays PDF files)
+* kruler (screen ruler and color measurement tool)
+* ksnapshot (screen capture utility)
+* kview (image viewer for GIF, JPEG, TIFF, etc.)
+
+%package devel
+Summary: Development files for %{name}
+Provides: kdegraphics3-devel = %{version}-%{release}
+Requires: %{name}-libs = %{version}-%{release}
+Group: Development/Libraries
+%description devel
+%{summary}.
+
+## FIXME: move more stuff to -extras
+%package extras
+Summary: Extra applications from %{name}
+Group: Applications/Multimedia
+Requires: %{name}-libs = %{version}-%{release}
+Requires(post): /sbin/ldconfig
+Requires(postun): /sbin/ldconfig
+
+%description extras
+%{summary}, including:
+* kfax
+* kfaxview
+* kpovmodler
+
+%package libs
+Summary: %{name} runtime libraries
+Group: System Environment/Libraries
+Requires: trinity-kdelibs >= %{version}
+# include to be paranoid, installing libs-only is still mostly untested -- Rex
+Requires: %{name} = %{version}-%{release}
+%description libs
+%{summary}.
+
+
+
+%prep
+%setup -q -n kdegraphics
+
+# 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"
+
+%__cp "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
+%__cp "/usr/share/libtool/config/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 \
+ --enable-new-ldflags \
+ --disable-dependency-tracking \
+ --disable-rpath \
+ --disable-debug \
+ --disable-warnings \
+ --enable-final \
+ --enable-closure \
+ --includedir=%{_includedir}/kde \
+ --with-extra-includes=%{_includedir}/tqt
+
+%if 0%{?fedora} >= 15
+# Ugly fix for kolourpaint - problem when linking libkdefx.so
+sed -i kolourpaint/Makefile \
+ -e 's,\($(kolourpaint_LINK) $(kolourpaint_OBJECTS) $(kolourpaint_LDADD) \)\($(LIBS)\),\1 -lkdefx \2,'
+
+# Another ugly fix for kpdf - problem when linking fontconfig
+sed -i kpdf/Makefile \
+ -e '/^LDFLAGS = .*/ s,$, -lfontconfig,'
+%endif
+
+%__make %{?_smp_mflags}
+
+%install
+export PATH="%{_bindir}:${PATH}"
+%__rm -rf %{buildroot}
+
+make install DESTDIR=%{buildroot}
+
+# locale's
+%find_lang %{name} || touch %{name}.lang
+HTML_DIR=$(kde-config --expandvars --install html)
+if [ -d %{buildroot}$HTML_DIR ]; then
+for lang_dir in %{buildroot}$HTML_DIR/* ; do
+ if [ -d $lang_dir ]; then
+ lang=$(basename $lang_dir)
+ echo "%lang($lang) $HTML_DIR/$lang/*" >> %{name}.lang
+ # replace absolute symlinks with relative ones
+ pushd $lang_dir
+ for i in *; do
+ [ -d $i -a -L $i/common ] && ln -nsf ../common $i/common
+ done
+ popd
+ fi
+done
+fi
+
+# rpmdocs
+for dir in k* ; do
+ for file in AUTHORS ChangeLog README TODO ; do
+ if test -s "$dir/$file" ; then
+ install -p -m644 -D "$dir/$file" "rpmdocs/$dir/$file"
+ echo "%doc rpmdocs/$dir/" >> %{name}.lang
+ fi
+ done
+done
+
+# unpackaged files
+# omit kpovmodeler-devel files (for now) -- Rex
+rm -f %{buildroot}/libkpovmodeler.so
+
+
+%clean
+rm -rf %{buildroot}
+
+
+%post
+for f in crystalsvg hicolor ; do
+ touch --no-create %{_datadir}/icons/${f} 2> /dev/null ||:
+ gtk-update-icon-cache -q %{_datadir}/icons/${f} 2> /dev/null ||:
+done
+update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
+
+%postun
+for f in crystalsvg hicolor ; do
+ touch --no-create %{_datadir}/icons/${f} 2> /dev/null ||:
+ gtk-update-icon-cache -q %{_datadir}/icons/${f} 2> /dev/null ||:
+done
+update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
+
+%post libs -p /sbin/ldconfig
+
+%postun libs -p /sbin/ldconfig
+
+%post extras
+/sbin/ldconfig ||:
+for f in crystalsvg hicolor ; do
+ touch --no-create %{_datadir}/icons/${f} 2> /dev/null ||:
+ gtk-update-icon-cache -q %{_datadir}/icons/${f} 2> /dev/null ||:
+done
+update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
+
+%postun extras
+/sbin/ldconfig ||:
+for f in crystalsvg hicolor ; do
+ touch --no-create %{_datadir}/icons/${f} 2> /dev/null ||:
+ gtk-update-icon-cache -q %{_datadir}/icons/${f} 2> /dev/null ||:
+done
+update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
+
+
+%files extras
+%defattr(-,root,root,-)
+
+# kfax
+%doc rpmdocs/kfax/
+%{_bindir}/kfax
+%{_datadir}/applications/kde/kfax.desktop
+%{_datadir}/apps/kfax/
+%{_datadir}/icons/hicolor/??x??/apps/kfax.png
+%{_datadir}/icons/hicolor/scalable/apps/kfax.svgz
+
+# kfaxview
+%{_bindir}/kfaxview
+%{_libdir}/libkfaximage.so
+%{_libdir}/libkfaximage.la
+%{tde_libdir}/kfaxviewpart.*
+%{_datadir}/applications/kde/kfaxview.desktop
+%{_datadir}/apps/kfaxview/
+%{_datadir}/icons/hicolor/??x??/apps/kfaxview.png
+%{_datadir}/icons/hicolor/scalable/apps/kfaxview.svgz
+%{_datadir}/services/kfaxmultipage.desktop
+%{_datadir}/services/kfaxmultipage_tiff.desktop
+
+# kpovmodeler
+%doc rpmdocs/kpovmodeler/
+%doc %{_docdir}/HTML/en/kpovmodeler/
+%{_bindir}/kpovmodeler
+%{_libdir}/libkpovmodeler.so.*
+%{_libdir}/libkpovmodeler.la
+%{tde_libdir}/libkpovmodelerpart.*
+%{_datadir}/applications/kde/kpovmodeler.desktop
+%{_datadir}/apps/kpovmodeler/
+%{_datadir}/icons/crystalsvg/*/mimetypes/kpovmodeler_doc.*
+%{_datadir}/icons/hicolor/*/apps/kpovmodeler.*
+
+%files -f %{name}.lang
+%defattr(-,root,root,-)
+%doc AUTHORS COPYING README
+%doc rpmdocs/*
+
+# kfax
+%exclude %{_bindir}/kfax
+%exclude %{_datadir}/applications/kde/kfax.desktop
+%exclude %{_datadir}/apps/kfax/
+%exclude %{_datadir}/icons/hicolor/*/apps/kfax.*
+
+# kfaxview
+%exclude %{_bindir}/kfaxview
+%exclude %{_libdir}/libkfaximage.so
+%exclude %{_libdir}/libkfaximage.la
+%exclude %{tde_libdir}/kfaxviewpart.*
+%exclude %{_datadir}/applications/kde/kfaxview.desktop
+%exclude %{_datadir}/apps/kfaxview/
+%exclude %{_datadir}/icons/hicolor/*/apps/kfaxview.*
+%exclude %{_datadir}/services/kfaxmultipage.desktop
+%exclude %{_datadir}/services/kfaxmultipage_tiff.desktop
+
+# kpovmodeler
+%exclude %{tde_docdir}/HTML/en/kpovmodeler/
+%exclude %{_bindir}/kpovmodeler
+%exclude %{_libdir}/libkpovmodeler.*
+%exclude %{tde_libdir}/libkpovmodelerpart.*
+%exclude %{_datadir}/applications/kde/kpovmodeler.desktop
+%exclude %{_datadir}/apps/kpovmodeler/
+%exclude %{_datadir}/icons/crystalsvg/*/mimetypes/kpovmodeler_doc.*
+%exclude %{_datadir}/icons/hicolor/*/apps/kpovmodeler.*
+
+%{_bindir}/*
+%{_datadir}/applications/kde/*.desktop
+%{_datadir}/applnk/Graphics/*kruler.desktop
+%{_datadir}/apps/*
+%{_datadir}/icons/crystalsvg/*/*/*
+%{_datadir}/icons/hicolor/*/*/*
+%{_datadir}/config*/*
+%{_datadir}/service*/*
+%{_datadir}/mimelnk/*/*
+%{_libdir}/libkdeinit_*.so
+%{tde_libdir}/*
+
+%files libs
+%defattr(-,root,root,-)
+%exclude %{_libdir}/libkfaximage.la
+%exclude %{_libdir}/libkpovmodeler.la
+%exclude %{_libdir}/libkpovmodeler.so.*
+%{_libdir}/lib*.so.*
+%{_libdir}/lib*.la
+# Why ???
+%{_libdir}/libdjvu.so
+
+%files devel
+%defattr(-,root,root,-)
+%{_includedir}/kde/*
+%{_libdir}/lib*.so
+#exclude %{_libdir}/libkpovmodeler.so
+%exclude %{_libdir}/libkfaximage.so
+%exclude %{_libdir}/libkdeinit_*.so
+%exclude %{_libdir}/libdjvu.so
+
+%changelog
+* Sun Sep 11 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.13-0
+- Import to GIT