]>
Commit | Line | Data |
---|---|---|
5a1a6f5c JB |
1 | # TODO: |
2 | # - system libccd | |
3 | # - assertion "bNormalizationResult" failed in _dNormalize3() | |
4 | # [what conditions? assert fails when passed 0-length vector, which cannot be normalized] | |
40551cdd | 5 | # |
5a1a6f5c JB |
6 | Summary: ODE - library for simulating articulated rigid body dynamics |
7 | Summary(pl.UTF-8): ODE - biblioteka służąca do symulacji dynamiki bryły sztywnej | |
cc00dfef | 8 | Name: ode |
5a1a6f5c | 9 | Version: 0.12 |
e8bff069 | 10 | Release: 1 |
88ddbc93 | 11 | Epoch: 1 |
7bfb5633 | 12 | License: LGPL v2.1+ |
cc00dfef | 13 | Group: Libraries |
5a1a6f5c JB |
14 | Source0: http://downloads.sourceforge.net/opende/%{name}-%{version}.tar.bz2 |
15 | # Source0-md5: 48fdd41fae1a7e7831feeded09826599 | |
d25c5771 | 16 | URL: http://ode.org/ |
606c508e | 17 | BuildRequires: OpenGL-GLU-devel |
cc00dfef | 18 | BuildRequires: OpenGL-devel |
91ffb7f1 | 19 | BuildRequires: autoconf |
5a1a6f5c | 20 | BuildRequires: automake >= 1:1.10 |
d6f36f4b | 21 | BuildRequires: libstdc++-devel |
5a1a6f5c JB |
22 | BuildRequires: libtool >= 2:2 |
23 | BuildRequires: pkgconfig | |
24 | BuildRequires: python-Cython >= 0.14.1 | |
25 | BuildRequires: python-devel >= 1:2.4 | |
326c87b1 | 26 | BuildRequires: xorg-lib-libX11-devel |
cc00dfef | 27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
28 | ||
29 | %description | |
30 | The Open Dynamics Engine (ODE) is a free software library for the | |
31 | simulation of Rigid Body Dynamics. ODE is useful for simulating things | |
32 | like vehicles, objects in virtual reality environments, and virtual | |
33 | creatures. | |
34 | ||
b7c0a82c | 35 | %description -l pl.UTF-8 |
7bfb5633 | 36 | Open Dynamics Engine (ODE) jest wolną biblioteką służącą do |
37 | symulacji dynamiki bryły sztywnej. ODE jest użyteczne przy symulacji | |
38 | pojazdów, obiektów w przestrzeni wirtualnej i wirtualnych stworzeń. | |
cc00dfef | 39 | |
40 | %package devel | |
5a1a6f5c JB |
41 | Summary: Header files for ODE library |
42 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki ODE | |
cc00dfef | 43 | Group: Development/Libraries |
88ddbc93 | 44 | Requires: %{name} = %{epoch}:%{version}-%{release} |
d6f36f4b | 45 | Requires: libstdc++-devel |
cc00dfef | 46 | |
47 | %description devel | |
5a1a6f5c | 48 | Header files for ODE library. |
cc00dfef | 49 | |
b7c0a82c | 50 | %description devel -l pl.UTF-8 |
5a1a6f5c | 51 | Pliki nagłówkowe biblioteki ODE. |
d6f36f4b JB |
52 | |
53 | %package static | |
5a1a6f5c JB |
54 | Summary: Static ODE library |
55 | Summary(pl.UTF-8): Statyczna biblioteka ODE | |
d6f36f4b | 56 | Group: Development/Libraries |
88ddbc93 | 57 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
d6f36f4b JB |
58 | |
59 | %description static | |
5a1a6f5c | 60 | Static ODE library. |
d6f36f4b | 61 | |
b7c0a82c | 62 | %description static -l pl.UTF-8 |
5a1a6f5c JB |
63 | Statyczna biblioteka ODE. |
64 | ||
65 | %package -n python-ode | |
66 | Summary: Python binding for ODE library | |
67 | Summary(pl.UTF-8): Wiązanie Pythona do biblioteki ODE | |
68 | Group: Libraries/Python | |
69 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
70 | ||
71 | %description -n python-ode | |
72 | Python binding for ODE library. | |
73 | ||
74 | %description -n python-ode -l pl.UTF-8 | |
75 | Wiązanie Pythona do biblioteki ODE. | |
cc00dfef | 76 | |
77 | %prep | |
78 | %setup -q | |
79 | ||
80 | %build | |
606c508e | 81 | %{__libtoolize} |
1f3ac6cc | 82 | %{__aclocal} |
83 | %{__autoconf} | |
84 | %{__autoheader} | |
85 | %{__automake} | |
91ffb7f1 | 86 | %configure \ |
5a1a6f5c | 87 | --enable-libccd \ |
5cae0dca | 88 | --enable-shared |
69d0b5e7 | 89 | %{__make} |
cc00dfef | 90 | |
5a1a6f5c JB |
91 | srcdir="$(pwd)" |
92 | cd bindings/python | |
93 | CC="%{__cc}" \ | |
94 | CFLAGS="%{rpmcflags}" \ | |
95 | CPPFLAGS="%{rpmcppflags} -I$srcdir/include -DdSINGLE" \ | |
96 | %{__python} setup.py build | |
97 | ||
cc00dfef | 98 | %install |
99 | rm -rf $RPM_BUILD_ROOT | |
cc00dfef | 100 | |
69d0b5e7 | 101 | %{__make} install \ |
102 | DESTDIR=$RPM_BUILD_ROOT | |
cc00dfef | 103 | |
5a1a6f5c JB |
104 | cd bindings/python |
105 | %{__python} setup.py install \ | |
106 | --skip-build \ | |
107 | --optimize=2 \ | |
108 | --root=$RPM_BUILD_ROOT | |
109 | ||
110 | # obsoleted by pkg-config | |
111 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libode.la | |
112 | ||
cc00dfef | 113 | %clean |
114 | rm -rf $RPM_BUILD_ROOT | |
115 | ||
d6f36f4b JB |
116 | %post -p /sbin/ldconfig |
117 | %postun -p /sbin/ldconfig | |
118 | ||
cc00dfef | 119 | %files |
120 | %defattr(644,root,root,755) | |
69d0b5e7 | 121 | %doc CHANGELOG.txt README.txt |
5a1a6f5c JB |
122 | %attr(755,root,root) %{_libdir}/libode.so.*.*.* |
123 | %attr(755,root,root) %ghost %{_libdir}/libode.so.3 | |
cc00dfef | 124 | |
125 | %files devel | |
126 | %defattr(644,root,root,755) | |
69d0b5e7 | 127 | %doc ode/{README,TODO} ode/doc/{main.dox,pix} |
76bacbd5 JB |
128 | %attr(755,root,root) %{_bindir}/ode-config |
129 | %attr(755,root,root) %{_libdir}/libode.so | |
130 | %{_includedir}/ode | |
669cbc81 | 131 | %{_pkgconfigdir}/ode.pc |
d6f36f4b JB |
132 | |
133 | %files static | |
134 | %defattr(644,root,root,755) | |
76bacbd5 | 135 | %{_libdir}/libode.a |
5a1a6f5c JB |
136 | |
137 | %files -n python-ode | |
138 | %defattr(644,root,root,755) | |
139 | %doc bindings/python/TODO.txt | |
140 | %attr(755,root,root) %{py_sitedir}/ode.so | |
141 | %{py_sitedir}/Open_Dynamics_Engine-0.1-py*.egg-info |