public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Hans de Goede <jwrdegoede@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/ode] epel10: auto-import ode-0.6-2 on branch devel from ode-0.6-2.src.rpm
Date: Mon, 30 Nov 2026 16:32:57 GMT [thread overview]
Message-ID: <179605637734.1.1686931114091855700.rpms-ode-4425b7f0f91e@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/ode
Branch : epel10
Commit : 4425b7f0f91e996fa100255b9d43226612f71f43
Author : Hans de Goede <jwrdegoede@fedoraproject.org>
Date : 2006-07-05T20:42:01+00:00
Stats : +348/-0 in 5 file(s)
URL : https://src.fedoraproject.org/rpms/ode/c/4425b7f0f91e996fa100255b9d43226612f71f43?branch=epel10
Log:
auto-import ode-0.6-2 on branch devel from ode-0.6-2.src.rpm
---
diff --git a/.cvsignore b/.cvsignore
index e69de29..fdb989a 100644
--- a/.cvsignore
+++ b/.cvsignore
@@ -0,0 +1 @@
+ode-src-0.6.zip
diff --git a/ode-0.6-configure.patch b/ode-0.6-configure.patch
new file mode 100644
index 0000000..a436ea5
--- /dev/null
+++ b/ode-0.6-configure.patch
@@ -0,0 +1,218 @@
+--- ode-0.6/configure.configure 2006-06-09 16:54:52.000000000 +0200
++++ ode-0.6/configure 2006-07-01 15:42:13.000000000 +0200
+@@ -3532,7 +3532,7 @@
+ /usr/openwin/share/include'
+
+ if test "$ac_x_includes" = no; then
+- # Guess where to find include files, by looking for Intrinsic.h.
++ # Guess where to find include files, by looking for Xlib.h.
+ # First, try using that file with no special directory specified.
+ cat >conftest.$ac_ext <<_ACEOF
+ /* confdefs.h. */
+@@ -3540,7 +3540,7 @@
+ cat confdefs.h >>conftest.$ac_ext
+ cat >>conftest.$ac_ext <<_ACEOF
+ /* end confdefs.h. */
+-#include <X11/Intrinsic.h>
++#include <X11/Xlib.h>
+ _ACEOF
+ if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+@@ -3567,7 +3567,7 @@
+ sed 's/^/| /' conftest.$ac_ext >&5
+
+ for ac_dir in $ac_x_header_dirs; do
+- if test -r "$ac_dir/X11/Intrinsic.h"; then
++ if test -r "$ac_dir/X11/Xlib.h"; then
+ ac_x_includes=$ac_dir
+ break
+ fi
+@@ -3581,18 +3581,18 @@
+ # See if we find them without any special options.
+ # Don't add to $LIBS permanently.
+ ac_save_LIBS=$LIBS
+- LIBS="-lXt $LIBS"
++ LIBS="-lX11 $LIBS"
+ cat >conftest.$ac_ext <<_ACEOF
+ /* confdefs.h. */
+ _ACEOF
+ cat confdefs.h >>conftest.$ac_ext
+ cat >>conftest.$ac_ext <<_ACEOF
+ /* end confdefs.h. */
+-#include <X11/Intrinsic.h>
++#include <X11/Xlib.h>
+ int
+ main ()
+ {
+-XtMalloc (0)
++XrmInitialize ()
+ ;
+ return 0;
+ }
+@@ -6309,11 +6309,6 @@
+
+ case "$arch" in
+ pentium3 | pentium4 | athlon* )
+-
+-cat >>confdefs.h <<\_ACEOF
+-#define HAVE_SSE
+-_ACEOF
+-
+ ;;
+ esac
+
+@@ -7121,7 +7116,7 @@
+ fi
+ rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
+ fi
+-if test "x$pentium" == xyes
++if test "x$pentium" == xgarbage
+ then
+
+ cat >>confdefs.h <<\_ACEOF
+@@ -7181,7 +7176,7 @@
+ fi
+ rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
+ fi
+-if test "x$cpu64" == xyes
++if test "x$cpu64" == xgarbage
+ then
+
+ cat >>confdefs.h <<\_ACEOF
+@@ -7193,7 +7188,7 @@
+ echo "${ECHO_T}$cpu64" >&6
+
+
+-if test x$cpu64 = xyes; then
++if test x$cpu64 = xgarbage; then
+ X86_64_SYSTEM_TRUE=
+ X86_64_SYSTEM_FALSE='#'
+ else
+@@ -7202,6 +7197,7 @@
+ fi
+
+
++if false; then
+ echo "$as_me:$LINENO: checking if building a release library" >&5
+ echo $ECHO_N "checking if building a release library... $ECHO_C" >&6
+ # Check whether --enable-release or --disable-release was given.
+@@ -7228,6 +7224,7 @@
+ fi
+ echo "$as_me:$LINENO: result: $release" >&5
+ echo "${ECHO_T}$release" >&6
++fi
+
+ echo "$as_me:$LINENO: checking for char" >&5
+ echo $ECHO_N "checking for char... $ECHO_C" >&6
+@@ -9317,9 +9314,9 @@
+ ;;
+ *)
+ drawstuff="X11" # if anything else default to X11
+- so_ext=".so"
++ so_ext=".so.0"
+ DLLDEFINE=""
+- SHARED_LDFLAGS="-shared"
++ SHARED_LDFLAGS="-shared -Wl,-soname,\\\$@"
+ ;;
+ esac
+
+@@ -12081,10 +12078,9 @@
+ # 1. Remove the extension, and $U if already installed.
+ ac_i=`echo "$ac_i" |
+ sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
+- # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
+- # will be set to the directory where LIBOBJS objects are built.
+- ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
+- ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
++ # 2. Add them.
++ ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
++ ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
+ done
+ LIBOBJS=$ac_libobjs
+
+@@ -13502,8 +13498,5 @@
+ echo " Use double precision: $precision"
+ echo " Use OPCODE: $opcode"
+ echo " Use gyroscopic term: $gyroscopic"
+-echo " Is this a Pentium: $pentium"
+-echo " Is the CPU x86-64: $cpu64"
+-echo " Is this a release build: $release"
+ echo " Headers will be installed in $prefix/include/ode"
+ echo " Libraries will be installed in $prefix/lib"
+--- ode-0.6/configure.in.configure 2006-05-23 19:43:32.000000000 +0200
++++ ode-0.6/configure.in 2006-07-01 15:42:08.000000000 +0200
+@@ -49,7 +49,9 @@
+ dnl so allow users to compile programs for their target machine.
+ case "$arch" in
+ pentium3 | pentium4 | athlon* )
+- AC_DEFINE(HAVE_SSE,,[Use SSE Optimizations])
++dnl This isn't used anywhere in the source, still commented out for safety. The
++dnl x86_64 buildsys will have SSE, but the host on which the result runs not!
++dnl AC_DEFINE(HAVE_SSE,,[Use SSE Optimizations])
+ ;;
+ dnl this space available for other architectures specific extensions and/or
+ dnl other Intel based extensions such as 3DNow, SSE2, MMX, etc.
+@@ -205,7 +207,9 @@
+ return 0;
+ };
+ ],pentium=yes,pentium=no,)
+-if test "x$pentium" == xyes
++dnl Check modified to always fail. The buildsys may be a pentium (and thus have
++dnl an RDTSC), but the host on which the result runs may not!
++if test "x$pentium" == xgarbage
+ then
+ AC_DEFINE(PENTIUM,1,[is this a pentium on a gcc-based platform?])
+ fi
+@@ -224,13 +228,18 @@
+ return 0;
+ };
+ ],cpu64=yes,cpu64=no,)
+-if test "x$cpu64" == xyes
++dnl Checks modified to always fail. The FE buildsys is a x86_64, but the host
++dnl on which the result runs could also be an i386!
++if test "x$cpu64" == xgarbage
+ then
+ AC_DEFINE(X86_64_SYSTEM,1,[is this a X86_64 system on a gcc-based platform?])
+ fi
+ AC_MSG_RESULT($cpu64)
+-AM_CONDITIONAL(X86_64_SYSTEM, test x$cpu64 = xyes)
++AM_CONDITIONAL(X86_64_SYSTEM, test x$cpu64 = xgarbage)
+
++dnl completely disable this, because we don't want configure to override our
++dnl default rpmbuild CFLAGS!
++if false; then
+ AC_MSG_CHECKING(if building a release library)
+ AC_ARG_ENABLE(release,AC_HELP_STRING([--enable-release],
+ [build a release library with -fomit-frame-pointer and -ffast-math]),
+@@ -247,6 +256,7 @@
+ CXXFLAGS="-g"
+ fi
+ AC_MSG_RESULT($release)
++fi
+
+ dnl Check variable type sizes
+ AC_CHECK_SIZEOF(char)
+@@ -275,9 +285,9 @@
+ ;;
+ *)
+ drawstuff="X11" # if anything else default to X11
+- so_ext=".so"
++ so_ext=".so.0"
+ DLLDEFINE=""
+- SHARED_LDFLAGS="-shared"
++ SHARED_LDFLAGS="-shared -Wl,-soname,\\\$@"
+ ;;
+ esac
+ dnl Set Conditionals
+@@ -474,8 +484,8 @@
+ echo " Use double precision: $precision"
+ echo " Use OPCODE: $opcode"
+ echo " Use gyroscopic term: $gyroscopic"
+-echo " Is this a Pentium: $pentium"
+-echo " Is the CPU x86-64: $cpu64"
+-echo " Is this a release build: $release"
++dnl echo " Is this a Pentium: $pentium"
++dnl echo " Is the CPU x86-64: $cpu64"
++dnl echo " Is this a release build: $release"
+ echo " Headers will be installed in $prefix/include/ode"
+ echo " Libraries will be installed in $prefix/lib"
diff --git a/ode-0.6-lib64.patch b/ode-0.6-lib64.patch
new file mode 100644
index 0000000..e9a58b1
--- /dev/null
+++ b/ode-0.6-lib64.patch
@@ -0,0 +1,36 @@
+--- ode-0.6/ode-config.in.lib64 2005-12-02 18:25:32.000000000 +0100
++++ ode-0.6/ode-config.in 2006-07-01 15:52:52.000000000 +0200
+@@ -42,10 +42,8 @@
+ echo -I@includedir@/ode
+ ;;
+ --libs)
+- echo -L@libdir@ -lode
+- ;;
+ --shared-libs)
+- echo -L@prefix@/lib -lode@so_ext@
++ echo -lode
+ ;;
+ *)
+ echo "${usage}" 1>&2
+--- ode-0.6/ode/src/Makefile.in.lib64 2006-06-09 16:54:49.000000000 +0200
++++ ode-0.6/ode/src/Makefile.in 2006-07-01 15:58:37.000000000 +0200
+@@ -438,7 +438,7 @@
+ # Fake an executable in order to get a shared library
+ # Note the elegant and cunning way to trick Autotools to install a program
+ # in a lib directory. --Rodrigo
+-traplibdir = $(prefix)/lib
++traplibdir = $(libdir)
+ libode_SOURCES =
+ libode_DEPENDENCIES = libfast.a libode.a $(am__append_2)
+ libode_LDFLAGS = @SHARED_LDFLAGS@
+--- ode-0.6/ode/src/Makefile.am.lib64 2006-07-01 15:57:23.000000000 +0200
++++ ode-0.6/ode/src/Makefile.am 2006-07-01 15:57:25.000000000 +0200
+@@ -11,7 +11,7 @@
+ # Fake an executable in order to get a shared library
+ # Note the elegant and cunning way to trick Autotools to install a program
+ # in a lib directory. --Rodrigo
+-traplibdir=$(prefix)/lib
++traplibdir=$(libdir)
+ EXEEXT=@so_ext@
+ traplib_PROGRAMS=libode
+ libode_SOURCES=
diff --git a/ode.spec b/ode.spec
new file mode 100644
index 0000000..1c606c8
--- /dev/null
+++ b/ode.spec
@@ -0,0 +1,92 @@
+Name: ode
+Version: 0.6
+Release: 2%{?dist}
+Summary: High performance library for simulating rigid body dynamics
+Group: System Environment/Libraries
+License: BSD LGPL
+URL: http://www.ode.org
+Source0: http://dl.sourceforge.net/sourceforge/opende/ode-src-%{version}.zip
+Patch0: ode-0.6-configure.patch
+Patch1: ode-0.6-lib64.patch
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildRequires: libGL-devel
+
+%description
+ODE is an open source, high performance library for simulating rigid body
+dynamics. It is fully featured, stable, mature and platform independent with
+an easy to use C/C++ API. It has advanced joint types and integrated collision
+detection with friction. ODE is useful for simulating vehicles, objects in
+virtual reality environments and virtual creatures. It is currently used in
+many computer games, 3D authoring tools and simulation tools.
+
+
+%package devel
+Summary: Development files for %{name}
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+The %{name}-devel package contains libraries and header files for
+developing applications that use %{name}.
+
+
+%prep
+%setup -q
+%patch0 -p1 -z .configure
+%patch1 -p1 -z .lib64
+# sigh stop autoxxx from rerunning because of our patches above.
+touch aclocal.m4
+touch configure
+touch Makefile.in
+touch include/ode/config.h.in
+touch ode/src/Makefile.in
+# stop rpmlint from complaining about executable files in the debug package
+chmod -x include/*/*.h ode/src/*.cpp
+
+
+%build
+export CFLAGS="%{optflags} -ffast-math -fPIC"
+export CXXFLAGS="%{optflags} -ffast-math -fPIC"
+%configure --enable-shared
+make %{?_smp_mflags}
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+make install DESTDIR=$RPM_BUILD_ROOT
+rm $RPM_BUILD_ROOT%{_libdir}/libode.a
+ln -s libode.so.0 $RPM_BUILD_ROOT%{_libdir}/libode.so
+
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+
+%files
+%defattr(-,root,root,-)
+%doc CHANGELOG.txt LICENSE*.TXT README.txt
+%{_libdir}/libode.so.0
+
+%files devel
+%defattr(-,root,root,-)
+%{_bindir}/%{name}-config
+%{_includedir}/%{name}
+%{_libdir}/libode.so
+
+
+%changelog
+* Wed Jul 5 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 0.6-2
+- Change name from libode to ode
+- Fix soname & /usr/lib64 usage
+- Patch configure to accept our CFLAGS instead of always using its own
+- Patch configure to never activate the generation of asm-code which is then
+ used unconditionally, the build CPU may be very different from the CPU on
+ which the package gets run.
+
+* Sun Jun 18 2006 Hugo Cisneiros <hugo@devin.com.br> 0.6-1
+- Initial RPM release
diff --git a/sources b/sources
index e69de29..d17d01b 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+7afdb1d434a1e2cc2d701fdf8d1f2fad ode-src-0.6.zip
reply other threads:[~2026-11-30 16:32 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179605637734.1.1686931114091855700.rpms-ode-4425b7f0f91e@fedoraproject.org \
--to=jwrdegoede@fedoraproject.org \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox