]> git.pld-linux.org Git - packages/freeglut.git/blob - freeglut.spec
- remove cmake completeness check so that -static is not required; release 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:        2
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 >= 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
20 Obsoletes:      glut < 4
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 < 4
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 < 4
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 # 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
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)
106 %doc AUTHORS COPYING ChangeLog README
107 %attr(755,root,root) %{_libdir}/libglut.so.*.*.*
108 %attr(755,root,root) %ghost %{_libdir}/libglut.so.3
109
110 %files devel
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
117
118 %files static
119 %defattr(644,root,root,755)
120 %{_libdir}/libglut.a
This page took 0.088027 seconds and 4 git commands to generate.