When I try to compile the src rpm on my RH 8.0 system, I get

checking for a good enough C++ compiler... g++
checking for c++... g++
checking whether the C++ compiler (g++ -O2 -march=i386 -mcpu=i686 ) works... no
configure: error: installation or configuration problem: C++ compiler cannot create 
executables.
error: Bad exit status from /var/tmp/rpm-tmp.84097 (%build)

A few questions/remarks on the spec file:

1) 

Instead of 

%{_datadir}/texmf/tex/latex/%{name}

in the files section, should not lyx be installed under

%{_datadir}/texmf.local/tex/latex/%{name}

More generally, should not the rpm get the TEXMFLOCAL variable from
the tex environment with something like

kpsewhich --expand-var='$TEXMFLOCAL'

and similarly (in case needed)

kpsewhich --expand-var='$TEXMFMAIN'

2)

I think one should use the -q flag to setup, so that we do not
see the unpacked files:

%setup -q

3)

Is reLyX still needed?  It seems there is a builtin tex import in LyX
(which works pretty well).

4) 

Why is the line

gzip -f9 ${RPM_BUILD_ROOT}%{_mandir}/man?/*

Does not RH automatically gzips the man pages?

5) 

More generally: would not there be a possibility to use the
%_configure, %_make, etc macros?

Mate

-- 
---
Mate Wierdl | Dept. of Math. Sciences | University of Memphis  

Reply via email to