public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/ode] epel10: - Add a -double subpackage providing a version of ode compiled with
@ 2026-11-30 16:33 Hans de Goede
0 siblings, 0 replies; only message in thread
From: Hans de Goede @ 2026-11-30 16:33 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/ode
Branch : epel10
Commit : 1b34496e9a97cd2e88816c72cfa8249a27506c35
Author : Hans de Goede <hdegoede@redhat.com>
Date : 2010-11-08T22:30:46+01:00
Stats : +44/-69 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/ode/c/1b34496e9a97cd2e88816c72cfa8249a27506c35?branch=epel10
Log:
- Add a -double subpackage providing a version of ode compiled with
double precision (#574034)
---
diff --git a/ode-0.6-configure.patch b/ode-0.6-configure.patch
deleted file mode 100644
index a849626..0000000
--- a/ode-0.6-configure.patch
+++ /dev/null
@@ -1,22 +0,0 @@
---- ode-0.7/configure~ 2006-09-22 12:15:42.000000000 +0200
-+++ ode-0.7/configure 2006-09-22 12:15:42.000000000 +0200
-@@ -7117,7 +7117,7 @@
- echo "${ECHO_T}$dEpsilon" >&6
-
-
--if test "$build_os" == "$target_os"
-+if test "$target_cpu" != "i386"
- then
- echo "$as_me:$LINENO: checking for a Pentium CPU" >&5
- echo $ECHO_N "checking for a Pentium CPU... $ECHO_C" >&6
---- ode-0.7/configure.in~ 2006-09-22 12:15:58.000000000 +0200
-+++ ode-0.7/configure.in 2006-09-22 12:15:58.000000000 +0200
-@@ -220,7 +220,7 @@
-
-
- dnl Check for PENTIUM
--if test "$build_os" == "$target_os"
-+if test "$target_cpu" != "i386"
- then
- AC_MSG_CHECKING(for a Pentium CPU)
- AC_TRY_RUN([
diff --git a/ode-0.8-install.patch b/ode-0.8-install.patch
deleted file mode 100644
index f5a9fea..0000000
--- a/ode-0.8-install.patch
+++ /dev/null
@@ -1,44 +0,0 @@
---- ode-0.8/Makefile.am.install 2007-02-07 22:15:35.000000000 +0100
-+++ ode-0.8/Makefile.am 2007-02-14 15:17:36.000000000 +0100
-@@ -25,13 +25,12 @@
-
- if USE_SONAME
- install-exec-hook:
-- ln -s $(libdir)/@ODE_SONAME@.@ODE_REVISION@.@ODE_AGE@ \
-- $(libdir)/libode.so
-- ln -s $(libdir)/@ODE_SONAME@.@ODE_REVISION@.@ODE_AGE@ \
-- $(libdir)/@ODE_SONAME@
-- ln -s $(libdir)/@ODE_SONAME@.@ODE_REVISION@.@ODE_AGE@ \
-- $(libdir)/@ODE_SONAME@.@ODE_REVISION@
-- /sbin/ldconfig
-+ ln -s @ODE_SONAME@.@ODE_REVISION@.@ODE_AGE@ \
-+ $(DESTDIR)/$(libdir)/libode.so
-+ ln -s @ODE_SONAME@.@ODE_REVISION@.@ODE_AGE@ \
-+ $(DESTDIR)/$(libdir)/@ODE_SONAME@
-+ ln -s @ODE_SONAME@.@ODE_REVISION@.@ODE_AGE@ \
-+ $(DESTDIR)/$(libdir)/@ODE_SONAME@.@ODE_REVISION@
- else
- install-exec-hook:
- endif
---- ode-0.8/Makefile.in.install 2007-02-11 16:40:20.000000000 +0100
-+++ ode-0.8/Makefile.in 2007-02-14 15:17:43.000000000 +0100
-@@ -660,13 +660,12 @@
- rm -rf ${PACKAGE}-${VERSION}
-
- @USE_SONAME_TRUE@install-exec-hook:
--@USE_SONAME_TRUE@ ln -s $(libdir)/@ODE_SONAME@.@ODE_REVISION@.@ODE_AGE@ \
--@USE_SONAME_TRUE@ $(libdir)/libode.so
--@USE_SONAME_TRUE@ ln -s $(libdir)/@ODE_SONAME@.@ODE_REVISION@.@ODE_AGE@ \
--@USE_SONAME_TRUE@ $(libdir)/@ODE_SONAME@
--@USE_SONAME_TRUE@ ln -s $(libdir)/@ODE_SONAME@.@ODE_REVISION@.@ODE_AGE@ \
--@USE_SONAME_TRUE@ $(libdir)/@ODE_SONAME@.@ODE_REVISION@
--@USE_SONAME_TRUE@ /sbin/ldconfig
-+@USE_SONAME_TRUE@ ln -s @ODE_SONAME@.@ODE_REVISION@.@ODE_AGE@ \
-+@USE_SONAME_TRUE@ $(DESTDIR)/$(libdir)/libode.so
-+@USE_SONAME_TRUE@ ln -s @ODE_SONAME@.@ODE_REVISION@.@ODE_AGE@ \
-+@USE_SONAME_TRUE@ $(DESTDIR)/$(libdir)/@ODE_SONAME@
-+@USE_SONAME_TRUE@ ln -s @ODE_SONAME@.@ODE_REVISION@.@ODE_AGE@ \
-+@USE_SONAME_TRUE@ $(DESTDIR)/$(libdir)/@ODE_SONAME@.@ODE_REVISION@
- @USE_SONAME_FALSE@install-exec-hook:
- # Tell versions [3.59,3.63) of GNU make to not export all variables.
- # Otherwise a system limit (for SysV at least) may be exceeded.
diff --git a/ode.spec b/ode.spec
index e0f227a..edd66fe 100644
--- a/ode.spec
+++ b/ode.spec
@@ -1,6 +1,6 @@
Name: ode
Version: 0.11.1
-Release: 4%{?dist}
+Release: 5%{?dist}
Summary: High performance library for simulating rigid body dynamics
Group: System Environment/Libraries
License: BSD or LGPLv2+
@@ -23,14 +23,24 @@ virtual reality environments and virtual creatures. It is currently used in
many computer games, 3D authoring tools and simulation tools.
+%package double
+Summary: Ode physics library compiled with double precision
+Group: Development/Libraries
+
+%description double
+The %{name}-double package contains a version of the ODE library for simulating
+rigid body dynamics compiled with double precision.
+
+
%package devel
Summary: Development files for %{name}
Group: Development/Libraries
-Requires: %{name} = %{version}-%{release}, pkgconfig
+Requires: %{name} = %{version}-%{release}
+Requires: %{name}-double = %{version}-%{release}
%description devel
The %{name}-devel package contains libraries and header files for
-developing applications that use %{name}.
+developing applications that use %{name} or %{name}-double.
%prep
@@ -45,6 +55,15 @@ chmod -x ode/src/stepfast.cpp include/ode/collision_trimesh.h \
%build
+%configure --enable-shared --disable-static --enable-double-precision
+make %{?_smp_mflags} X_LIBS=-lX11 \
+ libode_la_LDFLAGS="-release double -version-info 2:1:1"
+sed -i 's|-lode|-lode-double|g' ode-config ode.pc
+mv ode-config ode-double-config
+mv ode.pc ode-double.pc
+mv ode/src/.libs/libode-double.so.1.1.1 .
+make distclean
+
CFLAGS="%{optflags} -ffast-math"
CXXFLAGS="%{optflags} -ffast-math"
%configure --enable-shared --disable-static
@@ -55,6 +74,12 @@ make %{?_smp_mflags} X_LIBS=-lX11
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
rm $RPM_BUILD_ROOT%{_libdir}/libode.la
+# DIY libode-double install
+install -m 755 ode-double-config $RPM_BUILD_ROOT%{_bindir}
+install -m 755 libode-double.so.1.1.1 $RPM_BUILD_ROOT%{_libdir}
+ln -s libode-double.so.1.1.1 $RPM_BUILD_ROOT%{_libdir}/libode-double.so.1
+ln -s libode-double.so.1.1.1 $RPM_BUILD_ROOT%{_libdir}/libode-double.so
+install -m 644 ode-double.pc $RPM_BUILD_ROOT%{_libdir}/pkgconfig
%clean
@@ -65,21 +90,37 @@ rm -rf $RPM_BUILD_ROOT
%postun -p /sbin/ldconfig
+%post double -p /sbin/ldconfig
+
+%postun double -p /sbin/ldconfig
+
%files
%defattr(-,root,root,-)
%doc CHANGELOG.txt LICENSE*.TXT README.txt
%{_libdir}/libode.so.1*
+%files double
+%defattr(-,root,root,-)
+%doc CHANGELOG.txt LICENSE*.TXT README.txt
+%{_libdir}/libode-double.so.1*
+
%files devel
%defattr(-,root,root,-)
%{_bindir}/%{name}-config
+%{_bindir}/%{name}-double-config
%{_includedir}/%{name}
%{_libdir}/libode.so
+%{_libdir}/libode-double.so
%{_libdir}/pkgconfig/%{name}.pc
+%{_libdir}/pkgconfig/%{name}-double.pc
%changelog
+* Mon Nov 8 2010 Hans de Goede <hdegoede@redhat.com> 0.11.1-5
+- Add a -double subpackage providing a version of ode compiled with
+ double precision (#574034)
+
* Tue Feb 16 2010 Hans de Goede <hdegoede@redhat.com> 0.11.1-4
- Fix FTBFS (#564642)
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-30 16:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-30 16:33 [rpms/ode] epel10: - Add a -double subpackage providing a version of ode compiled with Hans de Goede
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox