1 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
---|
2 | |
---|
3 | Name: mesa-libGLU |
---|
4 | Summary: Mesa libGLU library |
---|
5 | Summary(ja): Mesa libGLU ライブラリ |
---|
6 | Version: 9.0.0 |
---|
7 | Release: 4%{?_dist_release} |
---|
8 | |
---|
9 | License: MIT |
---|
10 | Group: System Environment/Libraries |
---|
11 | URL: http://mesa3d.org/ |
---|
12 | Source0: ftp://ftp.freedesktop.org/pub/mesa/glu/glu-%{version}.tar.bz2 |
---|
13 | Source2: make-git-snapshot.sh |
---|
14 | |
---|
15 | BuildRequires: mesa-libGL-devel |
---|
16 | Provides: libGLU = %{version}-%{release} |
---|
17 | |
---|
18 | %description |
---|
19 | Mesa implementation of the standard GLU OpenGL utility API. |
---|
20 | |
---|
21 | %package devel |
---|
22 | Summary: Development files for %{name} |
---|
23 | Summary(ja): %{name} の開発ファイル |
---|
24 | Group: Development/Libraries |
---|
25 | Requires: %{name} = %{version}-%{release} |
---|
26 | Requires: mesa-libGL-devel >= 9.0.0 |
---|
27 | Provides: libGLU-devel = %{version}-%{release} |
---|
28 | |
---|
29 | %description devel |
---|
30 | The %{name}-devel package contains libraries and header files for |
---|
31 | developing applications that use %{name}. |
---|
32 | |
---|
33 | |
---|
34 | # compat32 |
---|
35 | %package -n compat32-%{name} |
---|
36 | Summary: Mesa libGLU runtime library |
---|
37 | Summary(ja): Mesa libGLU ランタイムライブラリ |
---|
38 | Group: System Environment/Libraries |
---|
39 | Requires(post): /sbin/ldconfig |
---|
40 | Requires(postun): /sbin/ldconfig |
---|
41 | Requires: %{name} = %{version}-%{release} |
---|
42 | |
---|
43 | %description -n compat32-%{name} |
---|
44 | Mesa libGLU runtime library |
---|
45 | |
---|
46 | |
---|
47 | %package -n compat32-%{name}-devel |
---|
48 | Summary: Mesa libGLU development package |
---|
49 | Summary(ja): Mesa libGLU 開発パッケージ |
---|
50 | Group: Development/Libraries |
---|
51 | Requires: compat32-mesa-libGL >= 9.0.0 |
---|
52 | Requires: compat32-%{name} = %{version}-%{release} |
---|
53 | Requires: %{name}-devel = %{version}-%{release} |
---|
54 | |
---|
55 | %description -n compat32-%{name}-devel |
---|
56 | Mesa libGLU development package |
---|
57 | |
---|
58 | |
---|
59 | %prep |
---|
60 | %setup -q -n glu-%{version} |
---|
61 | |
---|
62 | %build |
---|
63 | %configure --disable-static |
---|
64 | make %{?_smp_mflags} |
---|
65 | |
---|
66 | %install |
---|
67 | rm -rf $RPM_BUILD_ROOT |
---|
68 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
69 | find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' |
---|
70 | rm -rf $RPM_BUILD_ROOT%{_datadir}/man/man3/gl[A-Z]* |
---|
71 | |
---|
72 | %post -p /sbin/ldconfig |
---|
73 | %post -n compat32-%{name} -p /sbin/ldconfig |
---|
74 | |
---|
75 | %postun -p /sbin/ldconfig |
---|
76 | %postun -n compat32-%{name} -p /sbin/ldconfig |
---|
77 | |
---|
78 | %files |
---|
79 | %{_libdir}/libGLU.so.1 |
---|
80 | %{_libdir}/libGLU.so.1.3.* |
---|
81 | |
---|
82 | %files devel |
---|
83 | %{_includedir}/GL/glu*.h |
---|
84 | %{_libdir}/libGLU.so |
---|
85 | %{_libdir}/pkgconfig/glu.pc |
---|
86 | |
---|
87 | %if %{build_compat32} |
---|
88 | %files -n compat32-%{name} |
---|
89 | %{_libdir}/libGLU.so.1 |
---|
90 | %{_libdir}/libGLU.so.1.3.* |
---|
91 | |
---|
92 | %files -n compat32-%{name}-devel |
---|
93 | %{_includedir}/GL/glu*.h |
---|
94 | %{_libdir}/libGLU.so |
---|
95 | %{_libdir}/pkgconfig/glu.pc |
---|
96 | %endif |
---|
97 | |
---|
98 | %changelog |
---|
99 | * Thu Jun 30 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 9.0.0-4 |
---|
100 | - rebuild with gcc-5.4.0 |
---|
101 | |
---|
102 | * Tue Oct 14 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 9.0.0-3 |
---|
103 | - added Group tag |
---|
104 | |
---|
105 | * Wed Jan 09 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 9.0.0-2 |
---|
106 | - add Requires: mesa-libGL-devel to mesa-libGLU-devel package |
---|
107 | - remove Requires: mesa-libGL-devel from compat-mesa-libGLU-devel package |
---|
108 | |
---|
109 | * Sat Nov 17 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 9.0.0-1 |
---|
110 | - initial build for Vine Linux |
---|
111 | |
---|
112 | * Tue Sep 18 2012 Adam Jackson <ajax@redhat.com> 9.0.0-1 |
---|
113 | - libGLU 9.0 |
---|
114 | |
---|
115 | * Mon Sep 10 2012 Dave Airlie <airlied@redhat.com> 9.0-0.2 |
---|
116 | - add back libGLU provides for now |
---|
117 | |
---|
118 | * Tue Sep 04 2012 Adam Jackson <ajax@redhat.com> 9.0-0.1 |
---|
119 | - Initial packaging for split libGLU |
---|
120 | |
---|