1 Summary: A freely licensed alternative to the GLUT library
2 Summary(pl.UTF-8): Zamiennik biblioteki GLUT na wolnej licencji
8 Source0: https://downloads.sourceforge.net/freeglut/%{name}-%{version}.tar.gz
9 # Source0-md5: 485c1976165315fc42c0b0a1802816d9
10 URL: https://freeglut.sourceforge.net/
11 BuildRequires: OpenGL-GLU-devel
12 BuildRequires: OpenGL-devel
13 BuildRequires: cmake >= 3.0.0
14 BuildRequires: xorg-lib-libX11-devel
15 BuildRequires: xorg-lib-libXext-devel
16 BuildRequires: xorg-lib-libXi-devel
17 BuildRequires: xorg-lib-libXrandr-devel
18 BuildRequires: xorg-lib-libXxf86vm-devel
19 Provides: OpenGL-glut = 4.0
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 Freeglut, the Free OpenGL Utility Toolkit, is meant to be a free
25 alternative to Mark Kilgard's GLUT library. It is distributed under an
26 X-Consortium style license (see COPYING for details), to offer you a
27 chance to use and/or modify the source.
29 It makes use of OpenGL, GLU, and pthread libraries. The library does
30 not make use of any GLUT code and is not 100% compatible. Code
31 recompilation and/or slight modifications might be required for your
32 applications to work with freeglut.
34 %description -l pl.UTF-8
35 Freeglut to Free OpenGL Utility Toolkit, mający być wolnodostępnym
36 zamiennikiem biblioteki GLUT Marka Kilgarda. Jest rozprowadzany na
37 licencji w stylu X-Consortium (szczegóły w pliku COPYING), aby
38 umożliwić korzystanie i/lub modyfikowanie źródeł.
40 Korzysta z bibliotek OpenGL, GLU i pthread. Biblioteka nie korzysta z
41 żadnego kodu GLUT-a i nie jest w 100% kompatybilna. Do działania
42 aplikacji z freeglutem może być konieczna rekompilacja kodu i/lub małe
46 Summary: Header files for freeglut library
47 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki freeglut
48 Group: Development/Libraries
49 Requires: %{name} = %{version}-%{release}
50 Requires: OpenGL-GLU-devel
51 Requires: xorg-lib-libX11-devel
52 Requires: xorg-lib-libXrandr-devel
53 Requires: xorg-lib-libXxf86vm-devel
54 Provides: OpenGL-glut-devel = 4.0
55 Obsoletes: glut-devel < 4
58 Header files for freeglut library.
60 %description devel -l pl.UTF-8
61 Pliki nagłówkowe biblioteki freeglut.
64 Summary: Static freeglut library
65 Summary(pl.UTF-8): Statyczna biblioteka freeglut
66 Group: Development/Libraries
67 Requires: %{name}-devel = %{version}-%{release}
68 Provides: OpenGL-glut-static = 4.0
69 Obsoletes: glut-static < 4
72 Static freeglut library.
74 %description static -l pl.UTF-8
75 Statyczna biblioteka freeglut.
84 -DFREEGLUT_PRINT_WARNINGS=OFF
89 rm -rf $RPM_BUILD_ROOT
91 %{__make} -C build install \
92 DESTDIR=$RPM_BUILD_ROOT
94 # disable completeness check incompatible with split packaging
95 %{__sed} -i -e '/^foreach(target .*IMPORT_CHECK_TARGETS/,/^endforeach/d; /^unset(_IMPORT_CHECK_TARGETS)/d' \
96 $RPM_BUILD_ROOT%{_libdir}/cmake/FreeGLUT/FreeGLUTTargets.cmake
99 rm -rf $RPM_BUILD_ROOT
101 %post -p /sbin/ldconfig
102 %postun -p /sbin/ldconfig
105 %defattr(644,root,root,755)
106 %doc AUTHORS COPYING ChangeLog README
107 %attr(755,root,root) %{_libdir}/libglut.so.*.*.*
108 %attr(755,root,root) %ghost %{_libdir}/libglut.so.3
111 %defattr(644,root,root,755)
112 %attr(755,root,root) %{_libdir}/libglut.so
113 %{_includedir}/GL/freeglut*.h
114 %{_includedir}/GL/glut.h
115 %{_pkgconfigdir}/glut.pc
116 %{_libdir}/cmake/FreeGLUT
119 %defattr(644,root,root,755)