]> git.lyx.org Git - lyx.git/commitdiff
reLyX rpm fix
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 5 Apr 2001 12:35:38 +0000 (12:35 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 5 Apr 2001 12:35:38 +0000 (12:35 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1900 a592a061-630c-0410-9148-cb99ea01b6c8

development/ChangeLog
development/lyx.spec.in

index 206782065ef428c989f0f03e9afad6d0a5ad3cda..264ac8341e793f366e4cd6bff38a6f6fbca8572b 100644 (file)
@@ -7,3 +7,7 @@
        * Code_rules/Recommendations:
        * Code_rules/Rules: update, add some comments,
          spelling and grammar
+
+2001-04-03 Kayvan Sylvan <kayvan@sylvan.com>
+
+       * Fix lyx.spec.in handling on reLyX with RPM relocation.
index aede6edc0211d70fec7e7c1a6c0657470e8c8336..1ebe32a8a383bea0bc5a07587e962269b5ec6cc8 100644 (file)
@@ -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
 #