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