[Kst] build fixes for x86_64

Robin Humble rjh at cita.utoronto.ca
Thu Nov 25 22:42:29 CET 2004


build fixes for fc2 x86_64 are attached.

yes, patching the configure script is WAY dodgy, but I don't know
enough about AM/AC/LT etc. to fix it any other way... sorry.

rpms and .src.rpms are at http://www.cita.utoronto.ca/~rjh/kst/ if you
are interested.

it appears to run (windows pop up) on x86_64, but I haven't tested it
any more than that...

cheers,
robin
--
    Robin Humble       http://www.cita.utoronto.ca/~rjh/
-------------- next part --------------
--- kst.old.spec	2004-11-23 21:18:30.000000000 -0500
+++ kst.spec	2004-11-25 16:21:21.000000000 -0500
@@ -7,6 +7,7 @@
 Version: 1.0.0
 Release: 1
 Source0: kst-%{version}.tar.gz
+Patch0: kst-x86_64.patch
 Group: X11/Applications/Scientific
 License: GNU GENERAL PUBLIC LICENSE
 URL: http://omega.astro.utoronto.ca/kst/kst-%{version}.tar.gz
@@ -20,6 +21,9 @@
 
 %prep
 %setup 
+%ifarch x86_64
+%patch0 -p1
+%endif
 ./configure --prefix=%prefix
 
 %build
@@ -38,27 +42,50 @@
 %prefix/bin/d2asc
 %prefix/bin/kstplugineditor
 #libraries
+%ifarch x86_64
+%prefix/lib64/libkst.so.1.0.0
+%prefix/lib64/libkst.so.1
+%prefix/lib64/libkst.so
+%prefix/lib64/libkst.la
+%else
 %prefix/lib/libkst.so.1.0.0
 %prefix/lib/libkst.so.1
 %prefix/lib/libkst.so
 %prefix/lib/libkst.la
+%endif
 #headers
 %prefix/include/kstdatasource.h
 %prefix/include/kstobject.h
 #data plugins
+%ifarch x86_64
+%prefix/lib64/kde3/kstdata_*.la
+%prefix/lib64/kde3/kstdata_*.so
+%else
 %prefix/lib/kde3/kstdata_*.la
 %prefix/lib/kde3/kstdata_*.so
+%endif
 %prefix/share/services/kst/kstdata_*.desktop
 #plugins
+%ifarch x86_64
+%prefix/lib64/kde3/kstplugins/*.la
+%prefix/lib64/kde3/kstplugins/*.so
+%prefix/lib64/kde3/kstplugins/*.xml
+%else
 %prefix/lib/kde3/kstplugins/*.la
 %prefix/lib/kde3/kstplugins/*.so
 %prefix/lib/kde3/kstplugins/*.xml
+%endif
 %prefix/share/servicetypes/kst/kstdatasourceplugin.desktop
 %prefix/share/servicetypes/kst/kstplugin.desktop
 %prefix/share/servicetypes/kst/kstfilter.desktop
 #extensions
+%ifarch x86_64
+%prefix/lib64/kde3/kstextension_elog.la
+%prefix/lib64/kde3/kstextension_elog.so
+%else
 %prefix/lib/kde3/kstextension_elog.la
 %prefix/lib/kde3/kstextension_elog.so
+%endif
 %prefix/share/services/kst/kstextension_elog.desktop
 %prefix/share/apps/kst/kstextension_elog.rc
 %prefix/share/servicetypes/kst/kstextension.desktop
-------------- next part --------------
diff -ruN kst-1.0.0.orig/configure kst-1.0.0/configure
--- kst-1.0.0.orig/configure	2004-11-25 15:51:39.723508208 -0500
+++ kst-1.0.0/configure	2004-11-25 15:54:23.812562880 -0500
@@ -498,7 +498,7 @@
 sysconfdir='${prefix}/etc'
 sharedstatedir='${prefix}/com'
 localstatedir='${prefix}/var'
-libdir='${exec_prefix}/lib'
+libdir='${exec_prefix}/lib64'
 includedir='${prefix}/include'
 oldincludedir='/usr/include'
 infodir='${prefix}/info'


More information about the Kst mailing list