]> git.pld-linux.org Git - packages/glew.git/blob - glew.spec
- updated to 1.6.0 (note: new soname)
[packages/glew.git] / glew.spec
1 Summary:        The OpenGL Extension Wrangler Library
2 Summary(pl.UTF-8):      Bibliteka OpenGL Extension Wrangler
3 Name:           glew
4 Version:        1.6.0
5 Release:        1
6 License:        BSD
7 Group:          Libraries
8 Source0:        http://downloads.sourceforge.net/glew/%{name}-%{version}.tgz
9 # Source0-md5:  7dfbb444b5a4e125bc5dba0aef403082
10 Patch0:         %{name}-dynamic-progs.patch
11 URL:            http://glew.sourceforge.net/
12 BuildRequires:  OpenGL-GLU-devel
13 BuildRequires:  xorg-lib-libXext-devel
14 BuildRequires:  xorg-lib-libXi-devel
15 BuildRequires:  xorg-lib-libXmu-devel
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
19 The OpenGL Extension Wrangler Library (GLEW) is a cross-platform C/C++
20 extension loading library. GLEW provides efficient run-time mechanisms
21 for determining which OpenGL extensions are supported on the target
22 platform. OpenGL core and extension functionality is exposed in a
23 single header file.
24
25 %description -l pl.UTF-8
26 OpenGL Extension Wrangler Library (GLEW) jest międzyplatformową
27 biblioteką C/C++ ładującą rozszerzenia. GLEW zapewnia wydajne
28 mechanizmy rozpoznające które rozszerzenia są dostępne w czasie
29 wykonywania programu. Funkcjonalność rdzenia OpenGL i rozszerzeń jest
30 udostępniana w pojedynczym pliku nagłówkowym.
31
32 %package devel
33 Summary:        Header files for glew
34 Summary(pl.UTF-8):      Pliki nagłówkowe glew
35 Group:          Development/Libraries
36 Requires:       %{name} = %{version}-%{release}
37 Requires:       OpenGL-GLU-devel
38 Requires:       xorg-lib-libXext-devel
39 Requires:       xorg-lib-libXi-devel
40 Requires:       xorg-lib-libXmu-devel
41
42 %description devel
43 Header files for glew.
44
45 %description devel -l pl.UTF-8
46 Pliki nagłówkowe glew.
47
48 %package static
49 Summary:        Static glew library
50 Summary(pl.UTF-8):      Biblioteka statyczna glew
51 Group:          Development/Libraries
52 Requires:       %{name}-devel = %{version}-%{release}
53
54 %description static
55 Static glew library.
56
57 %description static -l pl.UTF-8
58 Biblioteka statyczna glew.
59
60 %prep
61 %setup -q
62 %patch0 -p1
63
64 %build
65 %{__make} \
66         CC="%{__cc}" \
67         OPT="%{rpmcflags}" \
68         LDFLAGS="%{rpmldflags}" \
69         LIBDIR=%{_libdir}
70
71 %install
72 rm -rf $RPM_BUILD_ROOT
73 install -d $RPM_BUILD_ROOT{%{_libdir},%{_bindir},%{_includedir}/GL,%{_pkgconfigdir}}
74
75 install bin/* $RPM_BUILD_ROOT%{_bindir}
76 cp -d lib/* $RPM_BUILD_ROOT%{_libdir}
77 install include/GL/{glew,glxew}.h $RPM_BUILD_ROOT%{_includedir}/GL
78 install glew.pc glewmx.pc $RPM_BUILD_ROOT%{_pkgconfigdir}
79
80 %clean
81 rm -rf $RPM_BUILD_ROOT
82
83 %post   -p /sbin/ldconfig
84 %postun -p /sbin/ldconfig
85
86 %files
87 %defattr(644,root,root,755)
88 %doc LICENSE.txt README.txt TODO.txt doc/*.{html,css,png,jpg}
89 %attr(755,root,root) %{_bindir}/glewinfo
90 %attr(755,root,root) %{_bindir}/visualinfo
91 %attr(755,root,root) %{_libdir}/libGLEW.so.*.*.*
92 %attr(755,root,root) %ghost %{_libdir}/libGLEW.so.1.6
93 %attr(755,root,root) %{_libdir}/libGLEWmx.so.*.*.*
94 %attr(755,root,root) %ghost %{_libdir}/libGLEWmx.so.1.6
95
96 %files devel
97 %defattr(644,root,root,755)
98 %attr(755,root,root) %{_libdir}/libGLEW.so
99 %attr(755,root,root) %{_libdir}/libGLEWmx.so
100 %{_includedir}/GL/glew.h
101 %{_includedir}/GL/glxew.h
102 %{_pkgconfigdir}/glew.pc
103 %{_pkgconfigdir}/glewmx.pc
104
105 %files static
106 %defattr(644,root,root,755)
107 %{_libdir}/libGLEW.a
108 %{_libdir}/libGLEWmx.a
This page took 0.076815 seconds and 3 git commands to generate.