summaryrefslogtreecommitdiffstats
path: root/redhat/extras/kasablanca/trinity-kasablanca.spec
diff options
context:
space:
mode:
authorFrancois Andriot <francois.andriot@free.fr>2012-05-07 01:06:08 +0200
committerFrancois Andriot <francois.andriot@free.fr>2012-05-07 01:06:08 +0200
commit9750a057f2f36c5b88a5bc53c0a051b605dac061 (patch)
tree4f205d3ed4ecf8d2df665b566674d12372363c7f /redhat/extras/kasablanca/trinity-kasablanca.spec
parent6bb431be79e8f75c26bbf0f81749fa7738965f65 (diff)
downloadtde-packaging-9750a057f2f36c5b88a5bc53c0a051b605dac061.tar.gz
tde-packaging-9750a057f2f36c5b88a5bc53c0a051b605dac061.zip
RHEL/Fedora: massive updates for Fedora 17 (TDE 3.5.13 entire build)
Diffstat (limited to 'redhat/extras/kasablanca/trinity-kasablanca.spec')
-rw-r--r--redhat/extras/kasablanca/trinity-kasablanca.spec15
1 files changed, 11 insertions, 4 deletions
diff --git a/redhat/extras/kasablanca/trinity-kasablanca.spec b/redhat/extras/kasablanca/trinity-kasablanca.spec
index 26ff6c296..4604d7491 100644
--- a/redhat/extras/kasablanca/trinity-kasablanca.spec
+++ b/redhat/extras/kasablanca/trinity-kasablanca.spec
@@ -1,4 +1,11 @@
+# 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
+
%define kdecomp kasablanca
+%define tde_docdir %{_docdir}/kde
Name: trinity-%{kdecomp}
Summary: Graphical FTP client
@@ -41,11 +48,11 @@ Kasablanca is an ftp client, among its features are currently:
# 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|%{_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/config/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
%__make -f "admin/Makefile.common"
@@ -128,7 +135,7 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
%{_datadir}/apps/kasablanca/
%{_datadir}/config*/*
%{_datadir}/icons/hicolor/*/*/*
-
+%{tde_docdir}/HTML/en/kasablanca
%changelog
* Sun Dec 04 2011 Francois Andriot <francois.andriot@free.fr> - 0.4.0.2-1