]>
Commit | Line | Data |
---|---|---|
cc00dfef | 1 | Summary: ODE is a library for simulating articulated rigid body dynamics |
2aa52682 | 2 | Summary(pl.UTF-8): ODE jest biblioteką służącą do symulacji dynamiki bryły sztywnej |
cc00dfef | 3 | Name: ode |
5cae0dca | 4 | Version: 0.10.0 |
1f3ac6cc | 5 | Release: 1 |
88ddbc93 | 6 | Epoch: 1 |
7bfb5633 | 7 | License: LGPL v2.1+ |
cc00dfef | 8 | Group: Libraries |
5cae0dca | 9 | Source0: http://dl.sourceforge.net/opende/%{name}-%{version}.tar.bz2 |
10 | # Source0-md5: e84ff88b34f3a9b96ee479f175fb0b11 | |
d25c5771 | 11 | URL: http://ode.org/ |
7bfb5633 | 12 | BuildRequires: OpenGL-GLU |
cc00dfef | 13 | BuildRequires: OpenGL-devel |
91ffb7f1 JB |
14 | BuildRequires: autoconf |
15 | BuildRequires: automake | |
d6f36f4b | 16 | BuildRequires: libstdc++-devel |
326c87b1 | 17 | BuildRequires: xorg-lib-libX11-devel |
cc00dfef | 18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
19 | ||
d6f36f4b JB |
20 | %define _noautoreqdep libGL.so.1 libGLU.so.1 |
21 | ||
cc00dfef | 22 | %description |
23 | The Open Dynamics Engine (ODE) is a free software library for the | |
24 | simulation of Rigid Body Dynamics. ODE is useful for simulating things | |
25 | like vehicles, objects in virtual reality environments, and virtual | |
26 | creatures. | |
27 | ||
b7c0a82c | 28 | %description -l pl.UTF-8 |
7bfb5633 | 29 | Open Dynamics Engine (ODE) jest wolną biblioteką służącą do |
30 | symulacji dynamiki bryły sztywnej. ODE jest użyteczne przy symulacji | |
31 | pojazdów, obiektów w przestrzeni wirtualnej i wirtualnych stworzeń. | |
cc00dfef | 32 | |
33 | %package devel | |
d6f36f4b | 34 | Summary: Header files for ODE libraries |
2aa52682 | 35 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek ODE |
cc00dfef | 36 | Group: Development/Libraries |
88ddbc93 | 37 | Requires: %{name} = %{epoch}:%{version}-%{release} |
7bfb5633 | 38 | Requires: OpenGL-GLU |
d6f36f4b | 39 | Requires: OpenGL-devel |
d6f36f4b | 40 | Requires: libstdc++-devel |
3f110930 | 41 | Requires: xorg-lib-libX11-devel |
cc00dfef | 42 | |
43 | %description devel | |
d6f36f4b | 44 | Header files for ODE libraries. |
cc00dfef | 45 | |
b7c0a82c JR |
46 | %description devel -l pl.UTF-8 |
47 | Pliki nagłówkowe bibliotek ODE. | |
d6f36f4b JB |
48 | |
49 | %package static | |
50 | Summary: Static ODE libraries | |
2aa52682 | 51 | Summary(pl.UTF-8): Statyczne biblioteki ODE |
d6f36f4b | 52 | Group: Development/Libraries |
88ddbc93 | 53 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
d6f36f4b JB |
54 | |
55 | %description static | |
56 | Static ODE libraries. | |
57 | ||
b7c0a82c | 58 | %description static -l pl.UTF-8 |
d6f36f4b | 59 | Statyczne biblioteki ODE. |
cc00dfef | 60 | |
61 | %prep | |
62 | %setup -q | |
63 | ||
64 | %build | |
1f3ac6cc | 65 | %{__aclocal} |
66 | %{__autoconf} | |
67 | %{__autoheader} | |
68 | %{__automake} | |
91ffb7f1 | 69 | %configure \ |
5cae0dca | 70 | --enable-shared |
69d0b5e7 | 71 | %{__make} |
cc00dfef | 72 | |
73 | %install | |
74 | rm -rf $RPM_BUILD_ROOT | |
cc00dfef | 75 | |
69d0b5e7 | 76 | %{__make} install \ |
77 | DESTDIR=$RPM_BUILD_ROOT | |
cc00dfef | 78 | |
1f3ac6cc | 79 | mv $RPM_BUILD_ROOT%{_libdir}/libode.so $RPM_BUILD_ROOT%{_libdir}/libode.so.0 |
76bacbd5 | 80 | ln -sf libode.so.0 $RPM_BUILD_ROOT%{_libdir}/libode.so |
1f3ac6cc | 81 | |
cc00dfef | 82 | %clean |
83 | rm -rf $RPM_BUILD_ROOT | |
84 | ||
d6f36f4b JB |
85 | %post -p /sbin/ldconfig |
86 | %postun -p /sbin/ldconfig | |
87 | ||
cc00dfef | 88 | %files |
89 | %defattr(644,root,root,755) | |
69d0b5e7 | 90 | %doc CHANGELOG.txt README.txt |
2d9fc676 | 91 | %attr(755,root,root) %ghost %{_libdir}/libode.so.0 |
5cae0dca | 92 | # not sure about ghost here |
93 | %attr(755,root,root) %ghost %{_libdir}/libode-*.so | |
cc00dfef | 94 | |
95 | %files devel | |
96 | %defattr(644,root,root,755) | |
69d0b5e7 | 97 | %doc ode/{README,TODO} ode/doc/{main.dox,pix} |
76bacbd5 JB |
98 | %attr(755,root,root) %{_bindir}/ode-config |
99 | %attr(755,root,root) %{_libdir}/libode.so | |
5cae0dca | 100 | %{_libdir}/libode.la |
76bacbd5 | 101 | %{_includedir}/ode |
d6f36f4b JB |
102 | |
103 | %files static | |
104 | %defattr(644,root,root,755) | |
76bacbd5 | 105 | %{_libdir}/libode.a |