]> git.pld-linux.org Git - packages/freeglut.git/blob - freeglut.spec
- up to 3.2.2
[packages/freeglut.git] / freeglut.spec
1 Summary:        A freely licensed alternative to the GLUT library
2 Summary(pl.UTF-8):      Zamiennik biblioteki GLUT na wolnej licencji
3 Name:           freeglut
4 Version:        3.2.2
5 Release:        1
6 License:        MIT
7 Group:          Libraries
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 >= 2.8.8
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
20 Obsoletes:      glut
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
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ł.
39
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
43 modyfikacje.
44
45 %package devel
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
56
57 %description devel
58 Header files for freeglut library.
59
60 %description devel -l pl.UTF-8
61 Pliki nagłówkowe biblioteki freeglut.
62
63 %package static
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
70
71 %description static
72 Static freeglut library.
73
74 %description static -l pl.UTF-8
75 Statyczna biblioteka freeglut.
76
77 %prep
78 %setup -q
79
80 %build
81 install -d build
82 cd build
83 %cmake .. \
84         -DFREEGLUT_PRINT_WARNINGS=OFF
85
86 %{__make}
87
88 %install
89 rm -rf $RPM_BUILD_ROOT
90
91 %{__make} -C build install \
92         DESTDIR=$RPM_BUILD_ROOT
93
94 %clean
95 rm -rf $RPM_BUILD_ROOT
96
97 %post   -p /sbin/ldconfig
98 %postun -p /sbin/ldconfig
99
100 %files
101 %defattr(644,root,root,755)
102 %doc AUTHORS COPYING ChangeLog README
103 %attr(755,root,root) %{_libdir}/libglut.so.*.*.*
104 %attr(755,root,root) %ghost %{_libdir}/libglut.so.3
105
106 %files devel
107 %defattr(644,root,root,755)
108 %attr(755,root,root) %{_libdir}/libglut.so
109 %{_includedir}/GL/freeglut*.h
110 %{_includedir}/GL/glut.h
111 %{_pkgconfigdir}/glut.pc
112 %{_libdir}/cmake/FreeGLUT
113
114 %files static
115 %defattr(644,root,root,755)
116 %{_libdir}/libglut.a
This page took 0.337423 seconds and 3 git commands to generate.