[9028] | 1 | Summary: High performance library for simulating rigid body dynamics |
---|
[2470] | 2 | Name: ode |
---|
| 3 | Version: 0.11.1 |
---|
[9028] | 4 | Release: 2%{?_dist_release} |
---|
| 5 | |
---|
[2470] | 6 | Group: System Environment/Libraries |
---|
| 7 | License: BSD or LGPLv2+ |
---|
| 8 | URL: http://www.ode.org |
---|
| 9 | Source0: http://downloads.sourceforge.net/opende/ode-%{version}.tar.bz2 |
---|
| 10 | # This works around a bug in rpmbuild, where with localbuilds it will pass |
---|
| 11 | # the machine being build on as host param to configure instead of the machine |
---|
| 12 | # on which the code will run |
---|
| 13 | Patch0: ode-0.10.0-no-pentium-on-i386.patch |
---|
| 14 | Patch1: ode-0.11.1-multilib.patch |
---|
| 15 | |
---|
[9028] | 16 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
| 17 | BuildRequires: libGL-devel |
---|
| 18 | BuildRequires: libGLU-devel |
---|
| 19 | |
---|
[2470] | 20 | %description |
---|
| 21 | ODE is an open source, high performance library for simulating rigid body |
---|
| 22 | dynamics. It is fully featured, stable, mature and platform independent with |
---|
| 23 | an easy to use C/C++ API. It has advanced joint types and integrated collision |
---|
| 24 | detection with friction. ODE is useful for simulating vehicles, objects in |
---|
| 25 | virtual reality environments and virtual creatures. It is currently used in |
---|
| 26 | many computer games, 3D authoring tools and simulation tools. |
---|
| 27 | |
---|
| 28 | |
---|
| 29 | %package double |
---|
| 30 | Summary: Ode physics library compiled with double precision |
---|
[9028] | 31 | Group: System Environment/Libraries |
---|
[2470] | 32 | |
---|
| 33 | %description double |
---|
| 34 | The %{name}-double package contains a version of the ODE library for simulating |
---|
| 35 | rigid body dynamics compiled with double precision. |
---|
| 36 | |
---|
| 37 | |
---|
| 38 | %package devel |
---|
| 39 | Summary: Development files for %{name} |
---|
| 40 | Group: Development/Libraries |
---|
| 41 | Requires: %{name} = %{version}-%{release} |
---|
| 42 | Requires: %{name}-double = %{version}-%{release} |
---|
| 43 | |
---|
| 44 | %description devel |
---|
| 45 | The %{name}-devel package contains libraries and header files for |
---|
| 46 | developing applications that use %{name} or %{name}-double. |
---|
| 47 | |
---|
| 48 | |
---|
| 49 | %prep |
---|
| 50 | %setup -q |
---|
| 51 | %patch0 -p1 |
---|
| 52 | %patch1 -p1 |
---|
| 53 | # to stop autoxxx from getting regenerated because of our configure patch |
---|
| 54 | touch -r CHANGELOG.txt configure.in |
---|
| 55 | # stop rpmlint from complaining about executable files in the debug package |
---|
| 56 | chmod -x ode/src/stepfast.cpp include/ode/collision_trimesh.h \ |
---|
| 57 | include/ode/odeconfig.h |
---|
| 58 | |
---|
| 59 | |
---|
| 60 | %build |
---|
| 61 | %configure --enable-shared --disable-static --enable-double-precision |
---|
| 62 | make %{?_smp_mflags} X_LIBS=-lX11 \ |
---|
| 63 | libode_la_LDFLAGS="-release double -version-info 2:1:1" |
---|
| 64 | sed -i 's|-lode|-lode-double|g' ode-config ode.pc |
---|
| 65 | mv ode-config ode-double-config |
---|
| 66 | mv ode.pc ode-double.pc |
---|
| 67 | mv ode/src/.libs/libode-double.so.1.1.1 . |
---|
| 68 | make distclean |
---|
| 69 | |
---|
| 70 | CFLAGS="%{optflags} -ffast-math" |
---|
| 71 | CXXFLAGS="%{optflags} -ffast-math" |
---|
| 72 | %configure --enable-shared --disable-static |
---|
| 73 | make %{?_smp_mflags} X_LIBS=-lX11 |
---|
| 74 | |
---|
| 75 | |
---|
| 76 | %install |
---|
| 77 | rm -rf $RPM_BUILD_ROOT |
---|
| 78 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
| 79 | rm $RPM_BUILD_ROOT%{_libdir}/libode.la |
---|
| 80 | # DIY libode-double install |
---|
| 81 | install -m 755 ode-double-config $RPM_BUILD_ROOT%{_bindir} |
---|
| 82 | install -m 755 libode-double.so.1.1.1 $RPM_BUILD_ROOT%{_libdir} |
---|
| 83 | ln -s libode-double.so.1.1.1 $RPM_BUILD_ROOT%{_libdir}/libode-double.so.1 |
---|
| 84 | ln -s libode-double.so.1.1.1 $RPM_BUILD_ROOT%{_libdir}/libode-double.so |
---|
| 85 | install -m 644 ode-double.pc $RPM_BUILD_ROOT%{_libdir}/pkgconfig |
---|
| 86 | |
---|
| 87 | |
---|
| 88 | %clean |
---|
| 89 | rm -rf $RPM_BUILD_ROOT |
---|
| 90 | |
---|
| 91 | |
---|
| 92 | %post -p /sbin/ldconfig |
---|
| 93 | |
---|
| 94 | %postun -p /sbin/ldconfig |
---|
| 95 | |
---|
| 96 | %post double -p /sbin/ldconfig |
---|
| 97 | |
---|
| 98 | %postun double -p /sbin/ldconfig |
---|
| 99 | |
---|
| 100 | |
---|
| 101 | %files |
---|
| 102 | %defattr(-,root,root,-) |
---|
| 103 | %doc CHANGELOG.txt LICENSE*.TXT README.txt |
---|
| 104 | %{_libdir}/libode.so.1* |
---|
| 105 | |
---|
| 106 | %files double |
---|
| 107 | %defattr(-,root,root,-) |
---|
| 108 | %doc CHANGELOG.txt LICENSE*.TXT README.txt |
---|
| 109 | %{_libdir}/libode-double.so.1* |
---|
| 110 | |
---|
| 111 | %files devel |
---|
| 112 | %defattr(-,root,root,-) |
---|
| 113 | %{_bindir}/%{name}-config |
---|
| 114 | %{_bindir}/%{name}-double-config |
---|
| 115 | %{_includedir}/%{name} |
---|
| 116 | %{_libdir}/libode.so |
---|
| 117 | %{_libdir}/libode-double.so |
---|
| 118 | %{_libdir}/pkgconfig/%{name}.pc |
---|
| 119 | %{_libdir}/pkgconfig/%{name}-double.pc |
---|
| 120 | |
---|
| 121 | |
---|
| 122 | %changelog |
---|
[9028] | 123 | * Sun Oct 26 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.11.1-2 |
---|
| 124 | - rebuilt on current VineSeed |
---|
| 125 | - moved double subpackage to System Environment/Libraries Group |
---|
| 126 | |
---|
[2470] | 127 | * Fri Jan 07 2011 Kazutaka HARADA <kazutaka@vinelinux.org> 0.11.1-1 |
---|
| 128 | - initial build for Vine Linux based on fedora development |
---|
| 129 | |
---|
| 130 | * Mon Nov 8 2010 Hans de Goede <hdegoede@redhat.com> 0.11.1-5 |
---|
| 131 | - Add a -double subpackage providing a version of ode compiled with |
---|
| 132 | double precision (#574034) |
---|
| 133 | |
---|
| 134 | * Tue Feb 16 2010 Hans de Goede <hdegoede@redhat.com> 0.11.1-4 |
---|
| 135 | - Fix FTBFS (#564642) |
---|
| 136 | |
---|
| 137 | * Thu Nov 12 2009 Hans de Goede <hdegoede@redhat.com> 0.11.1-3 |
---|
| 138 | - Fix multilib conflict in -devel sub package (#507981) |
---|
| 139 | |
---|
| 140 | * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11.1-2 |
---|
| 141 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
---|
| 142 | |
---|
| 143 | * Mon May 25 2009 Hans de Goede <hdegoede@redhat.com> 0.11.1-1 |
---|
| 144 | - New upstream release 0.11.1 |
---|
| 145 | |
---|
| 146 | * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-2 |
---|
| 147 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
---|
| 148 | |
---|
| 149 | * Fri Jan 30 2009 Hans de Goede <hdegoede@redhat.com> 0.11-1 |
---|
| 150 | - New upstream release 0.11 |
---|
| 151 | |
---|
| 152 | * Mon Sep 15 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 0.10.1-1 |
---|
| 153 | - New upstream release 0.10.1 (bz 460033) |
---|
| 154 | |
---|
| 155 | * Thu Apr 3 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 0.9-4 |
---|
| 156 | - Force proper use of RPM_OPT_FLAGS during build |
---|
| 157 | |
---|
| 158 | * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.9-3 |
---|
| 159 | - Autorebuild for GCC 4.3 |
---|
| 160 | |
---|
| 161 | * Thu Oct 18 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 0.9-2 |
---|
| 162 | - Drop workaround for stormbaancoureur crash, it is now fixed in |
---|
| 163 | stormbaancoureur |
---|
| 164 | |
---|
| 165 | * Fri Oct 12 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 0.9-1 |
---|
| 166 | - New upstream release 0.9 (final) |
---|
| 167 | |
---|
| 168 | * Fri Sep 28 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 0.9-0.1.rc1 |
---|
| 169 | - New upstream release 0.9-rc1 |
---|
| 170 | |
---|
| 171 | * Tue Sep 11 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 0.8.1-0.1.rc1 |
---|
| 172 | - New upstream release 0.8.1-rc1 |
---|
| 173 | |
---|
| 174 | * Wed Aug 15 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 0.8-2 |
---|
| 175 | - Update License tag for new Licensing Guidelines compliance |
---|
| 176 | |
---|
| 177 | * Wed Feb 14 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 0.8-1 |
---|
| 178 | - New upstream release 0.8 |
---|
| 179 | |
---|
| 180 | * Thu Oct 05 2006 Christian Iseli <Christian.Iseli@licr.org> 0.7-2 |
---|
| 181 | - rebuilt for unwind info generation, broken in gcc-4.1.1-21 |
---|
| 182 | |
---|
| 183 | * Fri Sep 22 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 0.7-1 |
---|
| 184 | - New upstream release 0.7 |
---|
| 185 | |
---|
| 186 | * Mon Aug 28 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 0.6-3 |
---|
| 187 | - FE6 Rebuild |
---|
| 188 | |
---|
| 189 | * Wed Jul 5 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 0.6-2 |
---|
| 190 | - Change name from libode to ode |
---|
| 191 | - Fix soname & /usr/lib64 usage |
---|
| 192 | - Patch configure to accept our CFLAGS instead of always using its own |
---|
| 193 | - Patch configure to never activate the generation of asm-code which is then |
---|
| 194 | used unconditionally, the build CPU may be very different from the CPU on |
---|
| 195 | which the package gets run. |
---|
| 196 | |
---|
| 197 | * Sun Jun 18 2006 Hugo Cisneiros <hugo@devin.com.br> 0.6-1 |
---|
| 198 | - Initial RPM release |
---|