]> git.pld-linux.org Git - packages/freeglut.git/blame - freeglut.spec
- remove cmake completeness check so that -static is not required; release 2
[packages/freeglut.git] / freeglut.spec
CommitLineData
f47c7d95 1Summary: A freely licensed alternative to the GLUT library
d0191a96 2Summary(pl.UTF-8): Zamiennik biblioteki GLUT na wolnej licencji
f47c7d95 3Name: freeglut
8010980b 4Version: 3.2.2
b147c6c4 5Release: 2
f47c7d95
JB
6License: MIT
7Group: Libraries
8010980b
KM
8Source0: https://downloads.sourceforge.net/freeglut/%{name}-%{version}.tar.gz
9# Source0-md5: 485c1976165315fc42c0b0a1802816d9
10URL: https://freeglut.sourceforge.net/
f47c7d95 11BuildRequires: OpenGL-GLU-devel
27cfaa0e 12BuildRequires: OpenGL-devel
b147c6c4 13BuildRequires: cmake >= 3.0.0
27cfaa0e 14BuildRequires: xorg-lib-libX11-devel
3e3c81fe 15BuildRequires: xorg-lib-libXext-devel
27c737c8 16BuildRequires: xorg-lib-libXi-devel
27cfaa0e 17BuildRequires: xorg-lib-libXrandr-devel
3e3c81fe 18BuildRequires: xorg-lib-libXxf86vm-devel
05ab4e2e 19Provides: OpenGL-glut = 4.0
b147c6c4 20Obsoletes: glut < 4
f47c7d95
JB
21BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23%description
24Freeglut, the Free OpenGL Utility Toolkit, is meant to be a free
25alternative to Mark Kilgard's GLUT library. It is distributed under an
26X-Consortium style license (see COPYING for details), to offer you a
27chance to use and/or modify the source.
28
29It makes use of OpenGL, GLU, and pthread libraries. The library does
30not make use of any GLUT code and is not 100% compatible. Code
31recompilation and/or slight modifications might be required for your
32applications to work with freeglut.
33
692b2449
JR
34%description -l pl.UTF-8
35Freeglut to Free OpenGL Utility Toolkit, mający być wolnodostępnym
f47c7d95 36zamiennikiem biblioteki GLUT Marka Kilgarda. Jest rozprowadzany na
692b2449
JR
37licencji w stylu X-Consortium (szczegóły w pliku COPYING), aby
38umożliwić korzystanie i/lub modyfikowanie źródeł.
f47c7d95
JB
39
40Korzysta 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
42aplikacji z freeglutem może być konieczna rekompilacja kodu i/lub małe
f47c7d95
JB
43modyfikacje.
44
45%package devel
46Summary: Header files for freeglut library
d0191a96 47Summary(pl.UTF-8): Pliki nagłówkowe biblioteki freeglut
f47c7d95
JB
48Group: Development/Libraries
49Requires: %{name} = %{version}-%{release}
50Requires: OpenGL-GLU-devel
27cfaa0e
JB
51Requires: xorg-lib-libX11-devel
52Requires: xorg-lib-libXrandr-devel
3e3c81fe 53Requires: xorg-lib-libXxf86vm-devel
05ab4e2e 54Provides: OpenGL-glut-devel = 4.0
b147c6c4 55Obsoletes: glut-devel < 4
f47c7d95
JB
56
57%description devel
58Header files for freeglut library.
59
692b2449
JR
60%description devel -l pl.UTF-8
61Pliki nagłówkowe biblioteki freeglut.
f47c7d95
JB
62
63%package static
64Summary: Static freeglut library
d0191a96 65Summary(pl.UTF-8): Statyczna biblioteka freeglut
f47c7d95
JB
66Group: Development/Libraries
67Requires: %{name}-devel = %{version}-%{release}
05ab4e2e 68Provides: OpenGL-glut-static = 4.0
b147c6c4 69Obsoletes: glut-static < 4
f47c7d95
JB
70
71%description static
72Static freeglut library.
73
692b2449 74%description static -l pl.UTF-8
f47c7d95
JB
75Statyczna biblioteka freeglut.
76
77%prep
78%setup -q
79
80%build
27cfaa0e
JB
81install -d build
82cd build
83%cmake .. \
84 -DFREEGLUT_PRINT_WARNINGS=OFF
85
f47c7d95
JB
86%{__make}
87
88%install
89rm -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
99rm -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
This page took 0.161811 seconds and 4 git commands to generate.