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