]> git.pld-linux.org Git - packages/Mesa-libGLU.git/blob - Mesa-libGLU.spec
- missing devel Provides
[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.0
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.bz2
13 # Source0-md5:  be9249132ff49275461cf92039083030
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 Requires:       OpenGL >= 1.2
22 Provides:       OpenGL-GLU = 1.3
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
26 SGI implementation of libGLU OpenGL library. It implements OpenGL GLU
27 1.3 specifications.
28
29 %description -l pl.UTF-8
30 Implementacja SGI biblioteki libGLU ze standardu OpenGL. Implementuje
31 specyfikację OpenGL GLU 1.3.
32
33 %package devel
34 Summary:        Header files for SGI libGLU library
35 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki SGI libGLU
36 Group:          Development/Libraries
37 Requires:       %{name} = %{version}-%{release}
38 Requires:       OpenGL-devel >= 1.2
39 Provides:       OpenGL-GLU-devel = 1.3
40
41 %description devel
42 Header files for SGI libGLU library.
43
44 %description devel -l pl.UTF-8
45 Pliki nagłówkowe biblioteki SGI libGLU.
46
47 %package static
48 Summary:        Static SGI libGLU library
49 Summary(pl.UTF-8):      Statyczna biblioteka SGI libGLU
50 Group:          Development/Libraries
51 Requires:       %{name}-devel = %{version}-%{release}
52 Provides:       OpenGL-GLU-static = 1.3
53
54 %description static
55 Static SGI libGLU library.
56
57 %description static -l pl.UTF-8
58 Statyczna biblioteka SGI libGLU.
59
60 %prep
61 %setup -q -n glu-%{version}
62
63 %build
64 %{__libtoolize}
65 %{__aclocal}
66 %{__autoconf}
67 %{__automake}
68 %configure \
69         --disable-silent-rules \
70         %{!?with_static_libs:--disable-static}
71
72 %{__make}
73
74 %install
75 rm -rf $RPM_BUILD_ROOT
76
77 %{__make} install \
78         DESTDIR=$RPM_BUILD_ROOT
79
80 # there is pkg-config support; also, traditionally libGLU didn't have .la
81 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libGLU.la
82
83 %clean
84 rm -rf $RPM_BUILD_ROOT
85
86 %post   -p /sbin/ldconfig
87 %postun -p /sbin/ldconfig
88
89 %files
90 %defattr(644,root,root,755)
91 %attr(755,root,root) %{_libdir}/libGLU.so.*.*.*
92 %attr(755,root,root) %ghost %{_libdir}/libGLU.so.1
93
94 %files devel
95 %defattr(644,root,root,755)
96 %attr(755,root,root) %{_libdir}/libGLU.so
97 %{_includedir}/GL/glu.h
98 %{_includedir}/GL/glu_mangle.h
99 %{_pkgconfigdir}/glu.pc
100
101 %if %{with static_libs}
102 %files static
103 %defattr(644,root,root,755)
104 %{_libdir}/libGLU.a
105 %endif
This page took 0.058839 seconds and 3 git commands to generate.