summaryrefslogtreecommitdiffstats
path: root/redhat/applications/kchmviewer
diff options
context:
space:
mode:
authorFrancois Andriot <francois.andriot@free.fr>2012-05-05 11:09:11 +0200
committerFrancois Andriot <francois.andriot@free.fr>2012-05-05 11:09:11 +0200
commitd45bc6f2a0b63a4533b1d325207c9421ffd8051c (patch)
tree0178af4d916a54c33484bb7cab9ee148e9d09ea3 /redhat/applications/kchmviewer
parent8b32b1132dd028eb502cc670932070dcd1e527c3 (diff)
downloadtde-packaging-d45bc6f2a0b63a4533b1d325207c9421ffd8051c.tar.gz
tde-packaging-d45bc6f2a0b63a4533b1d325207c9421ffd8051c.zip
RHEL/Fedora: fix lots of application building
Diffstat (limited to 'redhat/applications/kchmviewer')
-rw-r--r--redhat/applications/kchmviewer/trinity-kchmviewer.spec27
1 files changed, 15 insertions, 12 deletions
diff --git a/redhat/applications/kchmviewer/trinity-kchmviewer.spec b/redhat/applications/kchmviewer/trinity-kchmviewer.spec
index c322597fc..5b1c28d58 100644
--- a/redhat/applications/kchmviewer/trinity-kchmviewer.spec
+++ b/redhat/applications/kchmviewer/trinity-kchmviewer.spec
@@ -1,7 +1,7 @@
# Default version for this component
%define kdecomp kchmviewer
%define version 3.1.2
-%define release 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"
@@ -66,11 +66,12 @@ support. Correctly detects and shows encoding of any valid chm file.
# 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"
+%__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 "/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"
%__make -f "admin/Makefile.common"
@@ -86,9 +87,6 @@ export LDFLAGS="-L%{_libdir} -I%{_includedir}"
--with-extra-includes=%{_includedir}/tqt \
--enable-closure
-# --with-qt-dir=${QTDIR} \
-# --with-qt-includes=${QTINC} \
-# --with-qt-libraries=${QTLIB} \
%__make %{?_smp_mflags}
@@ -105,12 +103,12 @@ export PATH="%{_bindir}:${PATH}"
%post
-touch --no-create %{_datadir}/icons/hicolor || :
-gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
+touch --no-create %{_datadir}/icons/crystalsvg || :
+gtk-update-icon-cache --quiet %{_datadir}/icons/crystalsvg || :
%postun
-touch --no-create %{_datadir}/icons/hicolor || :
-gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
+touch --no-create %{_datadir}/icons/crystalsvg || :
+gtk-update-icon-cache --quiet %{_datadir}/icons/crystalsvg || :
%files -f %{kdecomp}.lang
@@ -127,5 +125,10 @@ gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
%Changelog
+* Tue May 01 2012 Francois Andriot <francois.andriot@free.fr> - 3.1.2-2
+- Rebuilt for Fedora 17
+- Fix post and postun
+- Fix HTML directory location
+
* Sat Nov 19 2011 Francois Andriot <francois.andriot@free.fr> - 3.1.2-1
- Initial build for RHEL 5, RHEL 6, Fedora 15, Fedora 16