]>
Commit | Line | Data |
---|---|---|
f47c7d95 | 1 | Summary: A freely licensed alternative to the GLUT library |
d0191a96 | 2 | Summary(pl.UTF-8): Zamiennik biblioteki GLUT na wolnej licencji |
f47c7d95 | 3 | Name: freeglut |
8010980b | 4 | Version: 3.2.2 |
b147c6c4 | 5 | Release: 2 |
f47c7d95 JB |
6 | License: MIT |
7 | Group: Libraries | |
8010980b KM |
8 | Source0: https://downloads.sourceforge.net/freeglut/%{name}-%{version}.tar.gz |
9 | # Source0-md5: 485c1976165315fc42c0b0a1802816d9 | |
10 | URL: https://freeglut.sourceforge.net/ | |
f47c7d95 | 11 | BuildRequires: OpenGL-GLU-devel |
27cfaa0e | 12 | BuildRequires: OpenGL-devel |
b147c6c4 | 13 | BuildRequires: cmake >= 3.0.0 |
27cfaa0e | 14 | BuildRequires: xorg-lib-libX11-devel |
3e3c81fe | 15 | BuildRequires: xorg-lib-libXext-devel |
27c737c8 | 16 | BuildRequires: xorg-lib-libXi-devel |
27cfaa0e | 17 | BuildRequires: xorg-lib-libXrandr-devel |
3e3c81fe | 18 | BuildRequires: xorg-lib-libXxf86vm-devel |
05ab4e2e | 19 | Provides: OpenGL-glut = 4.0 |
b147c6c4 | 20 | Obsoletes: glut < 4 |
f47c7d95 JB |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
22 | ||
23 | %description | |
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. | |
28 | ||
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. | |
33 | ||
692b2449 JR |
34 | %description -l pl.UTF-8 |
35 | Freeglut to Free OpenGL Utility Toolkit, mający być wolnodostępnym | |
f47c7d95 | 36 | zamiennikiem biblioteki GLUT Marka Kilgarda. Jest rozprowadzany na |
692b2449 JR |
37 | licencji w stylu X-Consortium (szczegóły w pliku COPYING), aby |
38 | umożliwić korzystanie i/lub modyfikowanie źródeł. | |
f47c7d95 JB |
39 | |
40 | Korzysta z bibliotek OpenGL, GLU i pthread. Biblioteka nie korzysta z | |
692b2449 JR |
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 | |
f47c7d95 JB |
43 | modyfikacje. |
44 | ||
45 | %package devel | |
46 | Summary: Header files for freeglut library | |
d0191a96 | 47 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki freeglut |
f47c7d95 JB |
48 | Group: Development/Libraries |
49 | Requires: %{name} = %{version}-%{release} | |
50 | Requires: OpenGL-GLU-devel | |
27cfaa0e JB |
51 | Requires: xorg-lib-libX11-devel |
52 | Requires: xorg-lib-libXrandr-devel | |
3e3c81fe | 53 | Requires: xorg-lib-libXxf86vm-devel |
05ab4e2e | 54 | Provides: OpenGL-glut-devel = 4.0 |
b147c6c4 | 55 | Obsoletes: glut-devel < 4 |
f47c7d95 JB |
56 | |
57 | %description devel | |
58 | Header files for freeglut library. | |
59 | ||
692b2449 JR |
60 | %description devel -l pl.UTF-8 |
61 | Pliki nagłówkowe biblioteki freeglut. | |
f47c7d95 JB |
62 | |
63 | %package static | |
64 | Summary: Static freeglut library | |
d0191a96 | 65 | Summary(pl.UTF-8): Statyczna biblioteka freeglut |
f47c7d95 JB |
66 | Group: Development/Libraries |
67 | Requires: %{name}-devel = %{version}-%{release} | |
05ab4e2e | 68 | Provides: OpenGL-glut-static = 4.0 |
b147c6c4 | 69 | Obsoletes: glut-static < 4 |
f47c7d95 JB |
70 | |
71 | %description static | |
72 | Static freeglut library. | |
73 | ||
692b2449 | 74 | %description static -l pl.UTF-8 |
f47c7d95 JB |
75 | Statyczna biblioteka freeglut. |
76 | ||
77 | %prep | |
78 | %setup -q | |
79 | ||
80 | %build | |
27cfaa0e JB |
81 | install -d build |
82 | cd build | |
83 | %cmake .. \ | |
84 | -DFREEGLUT_PRINT_WARNINGS=OFF | |
85 | ||
f47c7d95 JB |
86 | %{__make} |
87 | ||
88 | %install | |
89 | rm -rf $RPM_BUILD_ROOT | |
90 | ||
27cfaa0e | 91 | %{__make} -C build install \ |
f47c7d95 JB |
92 | DESTDIR=$RPM_BUILD_ROOT |
93 | ||
b147c6c4 JB |
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 | |
97 | ||
f47c7d95 JB |
98 | %clean |
99 | rm -rf $RPM_BUILD_ROOT | |
100 | ||
101 | %post -p /sbin/ldconfig | |
102 | %postun -p /sbin/ldconfig | |
103 | ||
104 | %files | |
105 | %defattr(644,root,root,755) | |
8010980b | 106 | %doc AUTHORS COPYING ChangeLog README |
f47c7d95 | 107 | %attr(755,root,root) %{_libdir}/libglut.so.*.*.* |
d001085f | 108 | %attr(755,root,root) %ghost %{_libdir}/libglut.so.3 |
f47c7d95 JB |
109 | |
110 | %files devel | |
111 | %defattr(644,root,root,755) | |
f47c7d95 | 112 | %attr(755,root,root) %{_libdir}/libglut.so |
f47c7d95 JB |
113 | %{_includedir}/GL/freeglut*.h |
114 | %{_includedir}/GL/glut.h | |
8010980b KM |
115 | %{_pkgconfigdir}/glut.pc |
116 | %{_libdir}/cmake/FreeGLUT | |
f47c7d95 JB |
117 | |
118 | %files static | |
119 | %defattr(644,root,root,755) | |
120 | %{_libdir}/libglut.a |