summaryrefslogtreecommitdiffstats
path: root/redhat/tdeartwork/trinity-kdeartwork-3.5.12.spec
diff options
context:
space:
mode:
authorFrançois Andriot <albator78@libertysurf.fr>2013-06-24 19:50:32 +0200
committerFrançois Andriot <albator78@libertysurf.fr>2013-06-24 19:50:32 +0200
commitb4359e8bf97799f83dc1ca62744db7cfcc81bc87 (patch)
tree3346872613490cc467c19e1645d0026c1221bce7 /redhat/tdeartwork/trinity-kdeartwork-3.5.12.spec
parent4cc71d79c5718d59078d06c497a56d7c05b41576 (diff)
downloadtde-packaging-b4359e8bf97799f83dc1ca62744db7cfcc81bc87.tar.gz
tde-packaging-b4359e8bf97799f83dc1ca62744db7cfcc81bc87.zip
RPM Packaging: rename directories
Diffstat (limited to 'redhat/tdeartwork/trinity-kdeartwork-3.5.12.spec')
-rw-r--r--redhat/tdeartwork/trinity-kdeartwork-3.5.12.spec186
1 files changed, 186 insertions, 0 deletions
diff --git a/redhat/tdeartwork/trinity-kdeartwork-3.5.12.spec b/redhat/tdeartwork/trinity-kdeartwork-3.5.12.spec
new file mode 100644
index 000000000..e1bc6e7b7
--- /dev/null
+++ b/redhat/tdeartwork/trinity-kdeartwork-3.5.12.spec
@@ -0,0 +1,186 @@
+# Default version for this component
+%if "%{?version}" == ""
+%define version 3.5.12
+%endif
+%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 %{_prefix}/share/doc
+%endif
+
+# TDE 3.5.12 specific building variables
+BuildRequires: autoconf automake libtool m4
+%define tde_libdir %{_libdir}/kde3
+
+
+Name: trinity-kdeartwork
+Summary: Additional artwork (themes, sound themes, ...) for KDE
+Version: %{?version}
+Release: %{?release}%{?dist}%{?_variant}
+
+License: GPLv2
+Group: User Interface/Desktops
+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}
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Source: kdeartwork-%{version}.tar.gz
+
+# FIXME: this should go in kde-settings -- Rex
+Source1: webcollagerc
+
+BuildRequires: gettext
+BuildRequires: trinity-kdebase-devel
+BuildRequires: libart_lgpl-devel
+BuildRequires: nas-devel esound-devel jack-audio-connection-kit-devel
+BuildRequires: xscreensaver-extras xscreensaver-gl-base
+
+
+Requires: trinity-kdebase
+
+%description
+Additional artwork (themes, sound themes, screensavers ...) for KDE.
+
+# TODO: build this subpkg noarch
+%package icons
+Summary: Icon themes (kdeclassic, slick ....) for KDE
+Group: User Interface/Desktops
+%description icons
+%{summary}.
+
+
+%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
+
+%__make %{?_smp_mflags}
+
+
+%install
+export PATH="%{_bindir}:${PATH}"
+%__rm -rf %{buildroot}
+%__make install DESTDIR=%{buildroot}
+
+# webcollage -root -directory /usr/share/backgrounds/images #227683
+
+# rpmdocs
+for dir in IconThemes/* kworldclock kscreensaver/kxsconfig ; do
+ for file in AUTHORS ChangeLog COPYRIGHT README TODO ; do
+ test -s "$dir/$file" && install -p -m644 -D "$dir/$file" "rpmdocs/$dir/$file"
+ done
+done
+
+# File lists
+%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 ] && rm -f $i/common && ln -sf ../common $i/common
+ done
+ popd
+ fi
+done
+fi
+
+# kde vs xscreensaver based screensavers
+for screensaver in %{buildroot}%{_datadir}/applnk/System/ScreenSavers/*.desktop ; do
+ if [ `grep '^TryExec=xscreensaver' $screensaver` ]; then
+ echo $screensaver | sed -e "s|%{buildroot}||" >> %{name}-extras.lang
+ else
+ echo $screensaver | sed -e "s|%{buildroot}||" >> %{name}.lang
+ fi
+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 || :
+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 || :
+done
+
+%clean
+%__rm -rf %{buildroot}
+
+%files -f %{name}.lang
+%defattr(-,root,root,-)
+%doc kwin-styles/smooth-blend/COPYING
+%doc rpmdocs/kworldclock
+%{_bindir}/*.kss
+%{tde_libdir}/plugins/styles/*
+%{tde_libdir}/*.so
+%{tde_libdir}/*.la
+%{_datadir}/apps/kfiresaver/
+%{_datadir}/apps/kscreensaver/
+%{_datadir}/apps/kstyle/themes/*
+%{_datadir}/apps/kwin/*
+%{_datadir}/apps/kworldclock/
+%{_datadir}/sounds/*
+%{_datadir}/wallpapers/*
+%{_datadir}/emoticons/*
+%{_bindir}/kxs*
+
+%files icons
+%defattr(-,root,root,-)
+%doc rpmdocs/IconThemes/*
+%{_datadir}/icons/ikons/
+%{_datadir}/icons/kdeclassic/
+%{_datadir}/icons/kids/
+%{_datadir}/icons/Locolor/
+%{_datadir}/icons/slick/
+
+
+
+%changelog
+* Mon Sep 19 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.12-5
+- Add support for RHEL5
+
+* Sun Sep 11 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.12-4
+- Import to GIT
+
+* Tue Aug 23 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.12-3
+- Add correction for Fedora 15
+
+* 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 "kdeartwork 3.5.10-1"