1 Summary: GLASS - openGL Articulated Structure System
2 Summary(pl.UTF-8): GLASS - Biblioteka obsługi struktur 3D OpenGL
8 Source0: http://dl.sourceforge.net/glass/%{name}-%{version}.tar.gz
9 # Source0-md5: bcde18e3ce0bebb19cf888d652f8b425
10 Patch0: %{name}-LIBS.patch
11 Patch1: %{name}-DESTDIR.patch
12 URL: http://glass.sourceforge.net/
13 BuildRequires: OpenGL-devel
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17 %define _noautoreqdep libGL.so.1 libGLU.so.1
20 GLASS is a 3D library, designed to make easy use of structured models
21 (models, that are made up of components linked by basic transforms,for
22 example, rotations and translations) in open GL applications. By using
23 GLASS in an application, these models can be loaded, modified, and
24 displayed using a minimum of function calls.
26 %description -l pl.UTF-8
27 GLASS to biblioteka wspomagająca projektowanie aplikacji 3D, stworzona
28 aby uprościć użycie modelu strukturalnego (modele, które składają się
29 z połączonych prostymi transformacjami części, np. obrotów lub
30 przesunięć) w aplikacjach 3D OpenGL. GLASS pozwala załadować,
31 zmodyfikować i wyświetlać te obiekty przy użyciu minimalnej ilości
32 wywołań (co upraszcza kod).
35 Summary: GLASS development package
36 Summary(pl.UTF-8): Pakiet dla programistów GLASS
37 Group: X11/Development/Libraries
38 Requires: %{name} = %{version}-%{release}
41 GLASS header files. Contains also tutorial and specifications.
43 %description devel -l pl.UTF-8
44 Pliki nagłówkowe biblioteki GLASS.
54 CFLAGS="%{rpmcflags} -fPIC -Wall -I/usr/X11R6/include -DVERSION_STRING=\"\\\"%{version}\"\\\"" \
55 LIBS="-L/usr/X11R6/%{_lib} -lGL"
58 rm -rf $RPM_BUILD_ROOT
59 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
62 DESTDIR=$RPM_BUILD_ROOT \
63 INCLUDEDIR=%{_includedir}/glass \
66 cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
68 cd $RPM_BUILD_ROOT%{_libdir}
69 ln -sf libglass.so.*.*.* libglass.so.1
72 rm -rf $RPM_BUILD_ROOT
74 %post -p /sbin/ldconfig
75 %postun -p /sbin/ldconfig
78 %defattr(644,root,root,755)
79 %doc ChangeLog README TODO
80 %attr(755,root,root) %{_libdir}/libglass.so.*.*.*
81 %attr(755,root,root) %ghost %{_libdir}/libglass.so.1
84 %defattr(644,root,root,755)
86 %attr(755,root,root) %{_libdir}/libglass.so
88 %{_examplesdir}/%{name}-%{version}