]> git.pld-linux.org Git - packages/Mesa-libGLU.git/blame - Mesa-libGLU.spec
- updated to 9.0.2
[packages/Mesa-libGLU.git] / Mesa-libGLU.spec
CommitLineData
c68e9b0f
JB
1#
2# Conditional build:
c4a5f5fa
JB
3%bcond_with glvnd # use GLVND as OpenGL provider
4%bcond_with osmesa # use OSMesa as OpenGL provider
c68e9b0f
JB
5%bcond_without static_libs # static library
6#
c4a5f5fa
JB
7%if %{without glvnd} && %{without osmesa}
8%define with_generic_opengl 1
9%endif
c68e9b0f
JB
10Summary: SGI implementation of libGLU OpenGL library
11Summary(pl.UTF-8): Implementacja SGI biblioteki libGLU ze standardu OpenGL
12Name: Mesa-libGLU
c4a5f5fa 13Version: 9.0.2
5b7b2319 14Release: 1
c68e9b0f
JB
15License: SGI Free Software License B v2.0 (MIT-like)
16Group: Libraries
5b7b2319 17Source0: ftp://ftp.freedesktop.org/pub/mesa/glu/glu-%{version}.tar.xz
c4a5f5fa 18# Source0-md5: 2b0f13fa5b949bfb3a995927c6e35125
c68e9b0f 19URL: http://www.mesa3d.org/
c4a5f5fa
JB
20%{?with_osmesa:BuildRequires: Mesa-libOSMesa-devel}
21%{?with_generic_opengl:BuildRequires: OpenGL-devel >= 1.2}
c68e9b0f
JB
22BuildRequires: autoconf >= 2.60
23BuildRequires: automake
c4a5f5fa 24%{?with_glvnd:BuildRequires: libglvnd-libGL-devel}
c68e9b0f
JB
25BuildRequires: libstdc++-devel
26BuildRequires: libtool >= 2:2.2
27BuildRequires: pkgconfig
5b7b2319
JB
28BuildRequires: tar >= 1:1.22
29BuildRequires: xz
c68e9b0f
JB
30Requires: OpenGL >= 1.2
31Provides: OpenGL-GLU = 1.3
32BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33
34%description
35SGI implementation of libGLU OpenGL library. It implements OpenGL GLU
361.3 specifications.
37
38%description -l pl.UTF-8
39Implementacja SGI biblioteki libGLU ze standardu OpenGL. Implementuje
40specyfikację OpenGL GLU 1.3.
41
42%package devel
43Summary: Header files for SGI libGLU library
44Summary(pl.UTF-8): Pliki nagłówkowe biblioteki SGI libGLU
45Group: Development/Libraries
46Requires: %{name} = %{version}-%{release}
c4a5f5fa
JB
47%{?with_osmesa:Requires: Mesa-libOSMesa-devel}
48%{?with_generic_opengl:Requires: OpenGL-devel >= 1.2}
49%{?with_glvnd:Requires: libglvnd-libGL-devel}
9b1325b6 50Provides: OpenGL-GLU-devel = 1.3
c68e9b0f
JB
51
52%description devel
53Header files for SGI libGLU library.
54
55%description devel -l pl.UTF-8
56Pliki nagłówkowe biblioteki SGI libGLU.
57
58%package static
59Summary: Static SGI libGLU library
60Summary(pl.UTF-8): Statyczna biblioteka SGI libGLU
61Group: Development/Libraries
62Requires: %{name}-devel = %{version}-%{release}
63Provides: OpenGL-GLU-static = 1.3
64
65%description static
66Static SGI libGLU library.
67
68%description static -l pl.UTF-8
69Statyczna biblioteka SGI libGLU.
70
71%prep
72%setup -q -n glu-%{version}
73
74%build
75%{__libtoolize}
76%{__aclocal}
77%{__autoconf}
78%{__automake}
79%configure \
c4a5f5fa
JB
80 %{?with_glvnd:--enable-libglvnd} \
81 %{?with_osmesa:--enable-osmesa} \
c68e9b0f
JB
82 --disable-silent-rules \
83 %{!?with_static_libs:--disable-static}
84
85%{__make}
86
87%install
88rm -rf $RPM_BUILD_ROOT
89
90%{__make} install \
91 DESTDIR=$RPM_BUILD_ROOT
92
93# there is pkg-config support; also, traditionally libGLU didn't have .la
94%{__rm} $RPM_BUILD_ROOT%{_libdir}/libGLU.la
95
96%clean
97rm -rf $RPM_BUILD_ROOT
98
99%post -p /sbin/ldconfig
100%postun -p /sbin/ldconfig
101
102%files
103%defattr(644,root,root,755)
104%attr(755,root,root) %{_libdir}/libGLU.so.*.*.*
105%attr(755,root,root) %ghost %{_libdir}/libGLU.so.1
106
107%files devel
108%defattr(644,root,root,755)
109%attr(755,root,root) %{_libdir}/libGLU.so
110%{_includedir}/GL/glu.h
c68e9b0f
JB
111%{_pkgconfigdir}/glu.pc
112
113%if %{with static_libs}
114%files static
115%defattr(644,root,root,755)
116%{_libdir}/libGLU.a
117%endif
This page took 0.101628 seconds and 4 git commands to generate.