X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=development%2Flyx.spec.in;h=aede6edc0211d70fec7e7c1a6c0657470e8c8336;hb=977cf6160f4acecc4598db78bdf2b5ac50a49625;hp=1fb6d09d2c6ea2f8802d7257916477c051015382;hpb=a847627f1fe0d82d522e1ed316fc6517ad32cf7d;p=lyx.git diff --git a/development/lyx.spec.in b/development/lyx.spec.in index 1fb6d09d2c..aede6edc02 100644 --- a/development/lyx.spec.in +++ b/development/lyx.spec.in @@ -38,8 +38,17 @@ place that the Redhat tetex package is installed and would see it. %build unset LINGUAS || true CXXFLAGS="$RPM_OPT_FLAGS" CFLAGS="$RPM_OPT_FLAGS" \ -./configure --prefix=/usr --without-warnings -make +./configure --prefix=/usr --without-warnings --with-included-string +# The following check is to ensure that lyx RPMs generated on RH 6.X machines +# with gcc-2.95 still run against older Redhat OS/compiler combinations. +# It will eventually be ripped out. +if [ -r /usr/lib/libstdc++-libc6.1-1.so.2 ] +then + make CXX=gcc LYX_LIBS='/usr/lib/libstdc++-libc6.1-1.so.2 -lforms -lXpm' +else + make +fi + %install unset LINGUAS || true @@ -59,7 +68,7 @@ cp -r ${RPM_BUILD_ROOT}/usr/share/lyx/tex \ # # Miscellaneous files # -cp -a images/lyx.xpm ${RPM_BUILD_ROOT}/usr/share/lyx/images/ +cp -a lib/images/lyx.xpm ${RPM_BUILD_ROOT}/usr/share/lyx/images/ cp lib/reLyX/README README.reLyX %clean