From 3efcce37c5618d11a1d1bffed08e4dfad501b3ea Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Thu, 5 Apr 2001 12:35:39 +0000 Subject: [PATCH] reLyX rpm fix git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_1_6@1901 a592a061-630c-0410-9148-cb99ea01b6c8 --- development/lyx.spec.in | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/development/lyx.spec.in b/development/lyx.spec.in index aede6edc02..1ebe32a8a3 100644 --- a/development/lyx.spec.in +++ b/development/lyx.spec.in @@ -87,6 +87,13 @@ echo "Configuring LyX for your system..." cd $RPM_INSTALL_PREFIX/share/lyx ./configure --srcdir +# Fix reLyX perl program if the prefix is non-standard +if [ "$RPM_INSTALL_PREFIX" != "/usr" ] +then + perl -pi -e "s!/usr/share/lyx!$RPM_INSTALL_PREFIX/share/lyx!" \ + ${RPM_INSTALL_PREFIX}/bin/reLyX +fi + %post -n tetex-lyx # Fix the TeX file hash #