summaryrefslogtreecommitdiffstats
path: root/redhat/kdetoys
diff options
context:
space:
mode:
authoralbator <albator@arcadia.vtf>2011-09-11 17:32:14 +0200
committeralbator <albator@arcadia.vtf>2011-09-11 17:32:14 +0200
commitb683e306b9437c92b554f78af83917ca47ce2979 (patch)
tree18c28db8a07968d324f118d98b4dc3754fbf65df /redhat/kdetoys
parenta189f56cac51798f236f72172d1179d50fa07c36 (diff)
downloadtde-packaging-b683e306b9437c92b554f78af83917ca47ce2979.tar.gz
tde-packaging-b683e306b9437c92b554f78af83917ca47ce2979.zip
Some more packages for RHEL 6 / TDE 3.5.12
Diffstat (limited to 'redhat/kdetoys')
-rw-r--r--redhat/kdetoys/trinity-kdetoys-3.5.12.spec163
1 files changed, 163 insertions, 0 deletions
diff --git a/redhat/kdetoys/trinity-kdetoys-3.5.12.spec b/redhat/kdetoys/trinity-kdetoys-3.5.12.spec
new file mode 100644
index 000000000..557d872ee
--- /dev/null
+++ b/redhat/kdetoys/trinity-kdetoys-3.5.12.spec
@@ -0,0 +1,163 @@
+# Default version for this component
+%if "%{?version}" == ""
+%define version 3.5.12
+%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"
+%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}
+%define tde_includedir %{_includedir}/kde
+%define tde_libdir %{_libdir}/kde3
+
+
+Summary: K Desktop Environment - Toys and Amusements
+Name: trinity-kdetoys
+Group: Amusements/Graphics
+Version: %{?version}
+Release: %{?release}%{?dist}%{?_variant}
+
+License: GPLv2+
+Source0: kdetoys-%{version}.tar.gz
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Vendor: Trinity Project
+Packager: Francois Andriot <francois.andriot@free.fr>
+URL: http://www.trinitydesktop.org/
+
+Prefix: %{_prefix}
+
+BuildRequires: desktop-file-utils
+BuildRequires: tqtinterface-devel >= %{version}
+BuildRequires: trinity-kdelibs-devel >= %{version}
+BuildRequires: gettext
+
+#Requires(hint): kdebase3 >= %{version}
+
+%description
+Includes:
+* amor: Amusing Misuse Of Resources put's comic figures above your windows
+* eyesapplet: a kicker applet similar to XEyes
+* fifteenapplet: kicker applet, order 15 pieces in a 4x4 square by moving them
+* kmoon: system tray applet showing the moon phase
+* kodo: mouse movement meter
+* kteatime: system tray applet that makes sure your tea doesn't get too strong
+* ktux: Tux-in-a-Spaceship screen saver
+* kweather: kicker applet that will display the current weather outside
+* kworldwatch: application and kicker applet showing daylight area on the world
+ globe
+
+NOTE: kicker applets and screen savers require kdebase to be installed,
+and user to be logged-in to KDE.
+
+
+%prep
+%setup -q -n kdetoys
+
+%__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 \
+ --includedir=%{_includedir}/kde \
+ --disable-rpath \
+ --enable-new-ldflags \
+ --disable-debug --disable-warnings \
+ --disable-dependency-tracking --enable-final \
+ --with-extra-includes=%{_includedir}/tqt
+
+%__make %{?_smp_mflags}
+
+
+%install
+export PATH="%{_bindir}:${PATH}"
+%__rm -rf "%{buildroot}"
+%make_install
+
+desktop-file-install \
+ --dir=%{buildroot}%{_datadir}/applnk/System/ScreenSavers \
+ --vendor="" \
+ %{buildroot}%{_datadir}/applnk/System/ScreenSavers/*.desktop ||:
+
+desktop-file-install \
+ --dir=%{buildroot}%{_datadir}/applications/kde \
+ --vendor="" \
+ %{buildroot}%{_datadir}/applications/kde/*.desktop ||:
+
+# replace absolute symlink with relative
+ln -nfs tips-en %{buildroot}%{_datadir}/apps/amor/tips
+
+## File lists
+# locale's
+%find_lang %{name} || touch %{name}.lang
+# HTML (1.0)
+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
+
+## Unpackaged files
+# not sure the point of just one header file 'AmorIface.h', omit (for now).
+%__rm -rf %{buildroot}%{_includedir}
+
+
+%post
+touch --no-create %{_datadir}/icons/hicolor ||:
+gtk-update-icon-cache -q %{_datadir}/icons/hicolor 2> /dev/null ||:
+
+%postun
+touch --no-create %{_datadir}/icons/hicolor ||:
+gtk-update-icon-cache -q %{_datadir}/icons/hicolor 2> /dev/null ||:
+
+
+%files -f %{name}.lang
+%defattr(-,root,root,-)
+%doc AUTHORS COPYING README
+%{_bindir}/*
+%{_libdir}/libkdeinit_*.*
+%{tde_libdir}/*
+%{_datadir}/applications/kde/*.desktop
+%{_datadir}/applnk/System/ScreenSavers/*.desktop
+%{_datadir}/apps/*
+%{_datadir}/icons/hicolor/*/*/*
+%{_datadir}/service*/*.desktop
+
+
+%clean
+%__rm -rf %{buildroot}
+
+
+%changelog
+* Sun Sep 11 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.12-3
+- Import to GIT
+
+* Mon Aug 22 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.12-2
+- Correct macro to install under "/opt", if desired
+
+* Fri Aug 05 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.12-1
+- Initial version
+- Spec file based on Fedora 8 "kdetoys 7:3.5.10-1"
+