]> git.lyx.org Git - lyx.git/blobdiff - development/lyx.spec.in
Citation dialog resized form to fit on a 800x600 screen
[lyx.git] / development / lyx.spec.in
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
 #