To build libe RPM package for Linux i386, x86_64 and ia64 I have 
integrated this patch provided below.

summary:
 * corrects syntax in Makefile.am
 * changes in liebe.spec* to build package from the scratch 
   - use of autoconf, automake fives the problem with /usr/lib64 on x86_64
   - catch libs depending on platform

With this complete patch it was no problem to build rpm packages.

best regards,
  mike
diff -u -r -N libe-0.2.2.orig/Makefile.am libe-0.2.2/Makefile.am
--- libe-0.2.2.orig/Makefile.am 2002-04-30 01:27:15.000000000 +0200
+++ libe-0.2.2/Makefile.am      2004-12-15 16:59:22.449262276 +0100
@@ -1,4 +1,4 @@
-CFLAGS                         = -O2 -Wall -D_REENTRANT -g
+AM_CFLAGS                      = -O2 -Wall -D_REENTRANT -g
 INCLUDES                       = -I.
 
 pkgincludedir          = ${prefix}/include/e
diff -u -r -N libe-0.2.2.orig/libe.spec libe-0.2.2/libe.spec
--- libe-0.2.2.orig/libe.spec   2002-04-30 01:37:48.000000000 +0200
+++ libe-0.2.2/libe.spec        2004-12-15 18:04:00.749839552 +0100
@@ -5,6 +5,7 @@
 Copyright: GPL
 Group: Development/Libraries
 Source: libe-0.2.2.tar.gz
+Buildroot: /tmp/%{name}-%{version}-buildroot
 
 %description
 libe (a library of useful functions in C)
@@ -13,16 +14,24 @@
 %setup
 
 %build
-./configure --prefix=/usr
+#./configure --prefix=/usr
+aclocal
+autoconf
+automake -a
+%configure --prefix=/usr
 make RPM_OPT_FLAGS="$RPM_OPT_FLAGS"
 
 %install
-make install
+make install DESTDIR=$RPM_BUILD_ROOT
 
 %clean
 
 %files
+%ifarch x86_64
+/usr/lib64/libe.a
+%else
 /usr/lib/libe.a
+%endif
 /usr/include/e/barrier.h
 /usr/include/e/bitmask.h
 /usr/include/e/bytes.h
diff -u -r -N libe-0.2.2.orig/libe.spec.in libe-0.2.2/libe.spec.in
--- libe-0.2.2.orig/libe.spec.in        2002-04-30 01:28:17.000000000 +0200
+++ libe-0.2.2/libe.spec.in     2004-12-15 18:04:04.990100153 +0100
@@ -5,6 +5,7 @@
 Copyright: GPL
 Group: Development/Libraries
 Source: @[EMAIL PROTECTED]@[EMAIL PROTECTED]
+Buildroot: /tmp/%{name}-%{version}-buildroot
 
 %description
 libe (a library of useful functions in C)
@@ -13,16 +14,24 @@
 %setup
 
 %build
-./configure --prefix=/usr
+#./configure --prefix=/usr
+aclocal
+autoconf
+automake -a
+%configure --prefix=/usr
 make RPM_OPT_FLAGS="$RPM_OPT_FLAGS"
 
 %install
-make install
+make install DESTDIR=$RPM_BUILD_ROOT
 
 %clean
 
 %files
+%ifarch x86_64
+/usr/lib64/libe.a
+%else
 /usr/lib/libe.a
+%endif
 /usr/include/e/barrier.h
 /usr/include/e/bitmask.h
 /usr/include/e/bytes.h

Reply via email to