On Mon, Apr 02, 2001 at 05:22:42PM -0500, Paul E Johnson wrote:
> > Will you test my fixed up RPM?
> > 
> >                         ---Kayvan
> I will be delighted to test.  

Okay. The new lyx RPMs (in ftp.sylvan.com/pub/lyx/devel) for 1.2.0cvs
are now correct. Please test them. If you are still using 1.1.6fix1,
you may want to move your ~/.lyx directory and let 1.2.0cvs create a new
one for you.

The only file that needs post-install fixing is reLyX, so I
did not end up using the macros your proposed.

The patch here should be applied to the CVS (and probably to the
1.1.6fix branch).

                        ---Kayvan
Index: development/ChangeLog
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/development/ChangeLog,v
retrieving revision 1.3
diff -u -u -r1.3 ChangeLog
--- development/ChangeLog       2001/04/02 12:43:30     1.3
+++ development/ChangeLog       2001/04/03 23:30:21
@@ -7,3 +7,7 @@
        * Code_rules/Recommendations:
        * Code_rules/Rules: update, add some comments,
          spelling and grammar
+
+2001-04-03 Kayvan Sylvan <[EMAIL PROTECTED]>
+
+       * Fix lyx.spec.in handling on reLyX with RPM relocation.
Index: development/lyx.spec.in
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/development/lyx.spec.in,v
retrieving revision 1.8
diff -u -u -r1.8 lyx.spec.in
--- development/lyx.spec.in     2000/07/27 08:55:56     1.8
+++ development/lyx.spec.in     2001/04/03 23:30:22
@@ -87,6 +87,13 @@
 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
 #

Reply via email to