Rebuild for the new boost

Fixed the multilib conflict in config scripts
This commit is contained in:
Hedayat Vatankhah 2010-08-04 04:39:34 +04:30
parent aa3ff0cd07
commit 64fd0a2ae8
2 changed files with 248 additions and 1 deletions

View File

@ -0,0 +1,241 @@
diff -up simspark-0.2.1/lib/kerosin/kerosin-config.in.mlibfix simspark-0.2.1/lib/kerosin/kerosin-config.in
--- simspark-0.2.1/lib/kerosin/kerosin-config.in.mlibfix 2010-06-08 13:09:00.000000000 +0430
+++ simspark-0.2.1/lib/kerosin/kerosin-config.in 2010-08-04 04:29:02.566306185 +0430
@@ -14,6 +14,7 @@ Options:
[--libs]
[--libtool]
[--cflags]
+ [-m32|-m64]
EOF
exit $1
}
@@ -22,6 +23,16 @@ if test $# -eq 0 ; then
usage 1 1>&2
fi
+ARCH=`arch`
+case $ARCH in
+ x86_64 | ia64 | s390x)
+ LIBDIR="/usr/lib64"
+ ;;
+ * )
+ LIBDIR="/usr/lib"
+ ;;
+esac
+
while test $# -gt 0 ; do
case "$1" in
-*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
@@ -57,6 +68,12 @@ while test $# -gt 0 ; do
--libtool)
echo_libtool=yes
;;
+ -m32)
+ LIBDIR="/usr/lib"
+ ;;
+ -m64)
+ LIBDIR="/usr/lib64"
+ ;;
*)
usage 1 1>&2
;;
@@ -93,7 +110,7 @@ if test "$echo_libs" = "yes" ; then
else
libs="-lkerosin"
fi
- echo -L@libdir@/simspark $libs
+ echo -L$LIBDIR/simspark $libs
fi
if test "$echo_libtool" = "yes" ; then
@@ -105,7 +122,7 @@ if test "$echo_libtool" = "yes" ; then
if test `uname` = "Darwin"; then
convlib="$convlib -framework OpenGL -framework IL -framework SDL "
fi
- echo @libdir@/simspark/$convlib
+ echo $LIBDIR/simspark/$convlib
fi
# EOF
diff -up simspark-0.2.1/lib/oxygen/oxygen-config.in.mlibfix simspark-0.2.1/lib/oxygen/oxygen-config.in
--- simspark-0.2.1/lib/oxygen/oxygen-config.in.mlibfix 2010-06-08 13:08:59.000000000 +0430
+++ simspark-0.2.1/lib/oxygen/oxygen-config.in 2010-08-04 04:29:09.525209055 +0430
@@ -14,6 +14,7 @@ Options:
[--libs]
[--libtool]
[--cflags]
+ [-m32|-m64]
EOF
exit $1
}
@@ -22,6 +23,16 @@ if test $# -eq 0 ; then
usage 1 1>&2
fi
+ARCH=`arch`
+case $ARCH in
+ x86_64 | ia64 | s390x)
+ LIBDIR="/usr/lib64"
+ ;;
+ * )
+ LIBDIR="/usr/lib"
+ ;;
+esac
+
while test $# -gt 0 ; do
case "$1" in
-*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
@@ -57,6 +68,12 @@ while test $# -gt 0 ; do
--libtool)
echo_libtool=yes
;;
+ -m32)
+ LIBDIR="/usr/lib"
+ ;;
+ -m64)
+ LIBDIR="/usr/lib64"
+ ;;
*)
usage 1 1>&2
;;
@@ -93,7 +110,7 @@ if test "$echo_libs" = "yes" ; then
else
libs="-loxygen"
fi
- echo -L@libdir@/simspark $libs
+ echo -L$LIBDIR/simspark $libs
fi
if test "$echo_libtool" = "yes" ; then
@@ -102,7 +119,7 @@ if test "$echo_libtool" = "yes" ; then
else
convlib="liboxygen.la"
fi
- echo @libdir@/simspark/$convlib
+ echo $LIBDIR/simspark/$convlib
fi
# EOF
diff -up simspark-0.2.1/lib/salt/salt-config.in.mlibfix simspark-0.2.1/lib/salt/salt-config.in
--- simspark-0.2.1/lib/salt/salt-config.in.mlibfix 2010-06-08 13:09:00.000000000 +0430
+++ simspark-0.2.1/lib/salt/salt-config.in 2010-08-04 04:22:13.525157510 +0430
@@ -15,6 +15,7 @@ Options:
[--libs]
[--libtool]
[--cflags]
+ [-m32|-m64]
EOF
exit $1
}
@@ -23,6 +24,16 @@ if test $# -eq 0 ; then
usage 1 1>&2
fi
+ARCH=`arch`
+case $ARCH in
+ x86_64 | ia64 | s390x)
+ LIBDIR="/usr/lib64"
+ ;;
+ * )
+ LIBDIR="/usr/lib"
+ ;;
+esac
+
while test $# -gt 0 ; do
case "$1" in
-*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
@@ -61,6 +72,12 @@ while test $# -gt 0 ; do
--libdir)
echo_libdir=yes
;;
+ -m32)
+ LIBDIR="/usr/lib"
+ ;;
+ -m64)
+ LIBDIR="/usr/lib64"
+ ;;
*)
usage 1 1>&2
;;
@@ -97,7 +114,7 @@ if test "$echo_libs" = "yes" ; then
else
libs="-lsalt @SALT_LIBADD@"
fi
- echo -L@libdir@/simspark $libs
+ echo -L$LIBDIR/simspark $libs
fi
if test "$echo_libtool" = "yes" ; then
@@ -106,11 +123,11 @@ if test "$echo_libtool" = "yes" ; then
else
convlib="libsalt.la"
fi
- echo @libdir@/simspark/$convlib
+ echo $LIBDIR/simspark/$convlib
fi
if test "$echo_libdir" = "yes" ; then
- echo @libdir@/simspark
+ echo $LIBDIR/simspark
fi
# EOF
diff -up simspark-0.2.1/lib/zeitgeist/zeitgeist-config.in.mlibfix simspark-0.2.1/lib/zeitgeist/zeitgeist-config.in
--- simspark-0.2.1/lib/zeitgeist/zeitgeist-config.in.mlibfix 2010-06-08 13:09:00.000000000 +0430
+++ simspark-0.2.1/lib/zeitgeist/zeitgeist-config.in 2010-08-04 04:28:56.398341469 +0430
@@ -14,6 +14,7 @@ Options:
[--libs]
[--libtool]
[--cflags]
+ [-m32|-m64]
EOF
exit $1
}
@@ -22,6 +23,16 @@ if test $# -eq 0 ; then
usage 1 1>&2
fi
+ARCH=`arch`
+case $ARCH in
+ x86_64 | ia64 | s390x)
+ LIBDIR="/usr/lib64"
+ ;;
+ * )
+ LIBDIR="/usr/lib"
+ ;;
+esac
+
while test $# -gt 0 ; do
case "$1" in
-*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
@@ -57,6 +68,12 @@ while test $# -gt 0 ; do
--libtool)
echo_libtool=yes
;;
+ -m32)
+ LIBDIR="/usr/lib"
+ ;;
+ -m64)
+ LIBDIR="/usr/lib64"
+ ;;
*)
usage 1 1>&2
;;
@@ -93,7 +110,7 @@ if test "$echo_libs" = "yes" ; then
else
libs="-lzeitgeist"
fi
- echo -L@libdir@/simspark $libs
+ echo -L$LIBDIR/simspark $libs
fi
if test "$echo_libtool" = "yes" ; then
@@ -105,7 +122,7 @@ if test "$echo_libtool" = "yes" ; then
if test `uname -s` = "Darwin"; then
convlib="$convlib -framework Carbon"
fi
- echo @libdir@/simspark/$convlib
+ echo $LIBDIR/simspark/$convlib
fi
# EOF

View File

@ -1,12 +1,13 @@
Name: simspark
Version: 0.2.1
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Spark physical simulation system
Group: Development/Libraries
License: GPLv2
URL: http://simspark.sourceforge.net
Source0: http://downloads.sourceforge.net/simspark/%{name}-%{version}.tar.gz
Patch0: %{name}-confscript-mlibfix.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: cmake boost-devel ruby ruby-devel SDL-devel tex(latex)
@ -34,6 +35,7 @@ developing applications that use %{name}.
%prep
%setup -q
%patch0 -p1 -b .mlibfix
%build
mkdir build
@ -78,6 +80,10 @@ rm -rf %{buildroot}
%doc doc/devel/howtos doc/devel/manual.pdf
%changelog
* Wed Aug 04 2010 Hedayat Vatankhah <hedayat@fedoraproject.org> - 0.2.1-2
- Rebuild for the new boost
- Fixed multilib conflict in config scripts (rh #507983)
* Wed Jun 09 2010 Hedayat Vatankhah <hedayat@fedoraproject.org> - 0.2.1-1
- New upstream version 0.2.1
- Removed conditional for F10 and before