On Sat, Jan 19, 2002 at 10:59:32PM +0100, Jean-Marc Lasgouttes wrote:
> 
> This is becquse they have been produced on rh6.1. Not sure what the
> proper fix is. The 0.88 vs 0.89 thing cannot be solved easily, since the
> two versions are binary incompatible (note that you should not use any
> xforms library provided by redhat, they are buggy; use the ones from
> ftp.lyx.org/pub/lyx/contrib instead).
> 

Anyone who wants to use 0.89 xforms must rebuild from source RPM.
Regarding a build on RH6.1 it's really way too old. Do you need a
rebuild for RH7.2? I can do that, but I guess so can anybody else with a
newer version of RH on his machine.

I also propose a patch to spec file that is attached to enforce use of
macros everywhere.

-- 
Zvezdan Petkovic <[EMAIL PROTECTED]>
http://www.cs.wm.edu/~zvezdan/
--- lyx-1.1.6.spec      Fri Jan 11 19:31:16 2002
+++ lyx-1.1.6zp.spec    Mon Jan 14 20:37:04 2002
@@ -3,13 +3,13 @@
 Version: 1.1.6fix4
 Release: 1
 Copyright: see COPYING file
-Group: X11/Editors
+Group: Applications/Publishing
 Url: http://www.lyx.org/
 Packager: Kayvan A. Sylvan <[EMAIL PROTECTED]>
-Source: ftp://ftp.lyx.org/pub/lyx/stable/lyx-%{PACKAGE_VERSION}.tar.gz
-BuildRoot: %{_tmppath}/%{name}-root
-Icon: lyx.xpm
-Prefix: /usr
+Source: ftp://ftp.lyx.org/pub/lyx/stable/%{name}-%{version}.tar.gz
+BuildRoot: %{_tmppath}/%{name}-%{version}-root
+Icon: %{name}.xpm
+Prefix: %{_prefix}
 Requires: xforms >= 0.88, tetex-xdvi, tetex, tetex-latex
 Obsoletes: tetex-lyx
 
@@ -53,13 +53,13 @@
 #
 TEXMF=%{_datadir}/texmf
 mkdir -p ${RPM_BUILD_ROOT}${TEXMF}/tex/latex
-mv ${RPM_BUILD_ROOT}%{_datadir}/lyx/tex \
-      ${RPM_BUILD_ROOT}/${TEXMF}/tex/latex/lyx
+mv ${RPM_BUILD_ROOT}%{_datadir}/%{name}/tex \
+   ${RPM_BUILD_ROOT}${TEXMF}/tex/latex/%{name}
 
 #
 # Miscellaneous files
 #
-cp -a lib/images/lyx.xpm ${RPM_BUILD_ROOT}%{_datadir}/lyx/images/
+cp -a lib/images/%{name}.xpm ${RPM_BUILD_ROOT}%{_datadir}/%{name}/images/
 cp lib/reLyX/README README.reLyX
 
 %clean
@@ -78,14 +78,13 @@
 # Now configure LyX
 #
 echo "Configuring LyX for your system..."
-cd %{_datadir}/lyx
+cd %{_datadir}/%{name}
 ./configure --srcdir
 
 # Fix reLyX perl program if the prefix is non-standard
 if [ "%{_prefix}" != "/usr" ]
 then
-    perl -pi -e "s!/usr/share/lyx!%{_datadir}/lyx!" \
-        %{_bindir}/reLyX
+    perl -pi -e "s!/usr/share/%{name}!%{_datadir}/%{name}!" %{_bindir}/reLyX
 fi
 
 %postun

Reply via email to