2 Summary: OpenGL module for Ruby
3 Summary(pl.UTF-8): Moduł OpenGL dla Ruby
8 Group: Development/Languages
9 Source0: http://www2.giganet.net/~yoshi/%{pkgname}-%{version}.tar.gz
10 # Source0-md5: 0832d08a87ebb16f6d4e30459a5019f0
11 Patch0: %{name}-ruby1.9.patch
12 URL: http://www2.giganet.net/~yoshi/
13 BuildRequires: OpenGL-devel
14 BuildRequires: OpenGL-glut-devel
15 BuildRequires: rpm-rubyprov
16 BuildRequires: rpmbuild(macros) >= 1.665
17 BuildRequires: ruby-devel >= 1:1.8.6
18 BuildRequires: ruby-modules
19 BuildRequires: sed >= 4.0
20 BuildRequires: xorg-lib-libX11-devel
21 BuildRequires: xorg-lib-libXext-devel
22 BuildRequires: xorg-lib-libXi-devel
23 BuildRequires: xorg-lib-libXmu-devel
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 %define _noautoreqdep libGL.so.1 libGLU.so.1
30 OpenGL module for Ruby.
32 %description -l pl.UTF-8
33 Moduł OpenGL dla Ruby.
36 %setup -q -n opengl-%{version}
40 %{__ruby} extconf.rb \
45 CFLAGS="%{rpmcflags} -fPIC"
48 rm -rf $RPM_BUILD_ROOT
49 %{__make} -j1 install \
50 DESTDIR=$RPM_BUILD_ROOT
52 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
53 cp -a sample/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
56 rm -rf $RPM_BUILD_ROOT
59 %defattr(644,root,root,755)
60 %doc README.EUC ChangeLog
61 %attr(755,root,root) %{ruby_vendorarchdir}/glut.so
62 %attr(755,root,root) %{ruby_vendorarchdir}/opengl.so
63 %{_examplesdir}/%{name}-%{version}