|
@@ -0,0 +1,108 @@
|
|
|
|
+%define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
|
|
|
|
+
|
|
|
|
+Name: mesa-libGLU
|
|
|
|
+Version: 9.0.0
|
|
|
|
+Release: 1%{?_dist_release}
|
|
|
|
+Summary: Mesa libGLU library
|
|
|
|
+Summary(ja): Mesa libGLU ライブラリ
|
|
|
|
+
|
|
|
|
+License: MIT
|
|
|
|
+URL: http://mesa3d.org/
|
|
|
|
+Source0: ftp://ftp.freedesktop.org/pub/mesa/glu/glu-%{version}.tar.bz2
|
|
|
|
+Source2: make-git-snapshot.sh
|
|
|
|
+
|
|
|
|
+BuildRequires: mesa-libGL-devel
|
|
|
|
+Provides: libGLU = %{version}-%{release}
|
|
|
|
+
|
|
|
|
+%description
|
|
|
|
+Mesa implementation of the standard GLU OpenGL utility API.
|
|
|
|
+
|
|
|
|
+%package devel
|
|
|
|
+Summary: Development files for %{name}
|
|
|
|
+Summary(ja): %{name} の開発ファイル
|
|
|
|
+Requires: %{name} = %{version}-%{release}
|
|
|
|
+Provides: libGLU-devel = %{version}-%{release}
|
|
|
|
+
|
|
|
|
+%description devel
|
|
|
|
+The %{name}-devel package contains libraries and header files for
|
|
|
|
+developing applications that use %{name}.
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+# compat32
|
|
|
|
+%package -n compat32-%{name}
|
|
|
|
+Summary: Mesa libGLU runtime library
|
|
|
|
+Summary(ja): Mesa libGLU ランタイムライブラリ
|
|
|
|
+Group: System Environment/Libraries
|
|
|
|
+Requires(post): /sbin/ldconfig
|
|
|
|
+Requires(postun): /sbin/ldconfig
|
|
|
|
+Requires: %{name} = %{version}-%{release}
|
|
|
|
+
|
|
|
|
+%description -n compat32-%{name}
|
|
|
|
+Mesa libGLU runtime library
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+%package -n compat32-%{name}-devel
|
|
|
|
+Summary: Mesa libGLU development package
|
|
|
|
+Summary(ja): Mesa libGLU 開発パッケージ
|
|
|
|
+Group: Development/Libraries
|
|
|
|
+Requires: compat32-mesa-libGL = %{version}
|
|
|
|
+Requires: compat32-%{name} = %{version}-%{release}
|
|
|
|
+Requires: mesa-libGL-devel = %{version}
|
|
|
|
+Requires: %{name}-devel = %{version}-%{release}
|
|
|
|
+
|
|
|
|
+%description -n compat32-%{name}-devel
|
|
|
|
+Mesa libGLU development package
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+%prep
|
|
|
|
+%setup -q -n glu-%{version}
|
|
|
|
+
|
|
|
|
+%build
|
|
|
|
+%configure --disable-static
|
|
|
|
+make %{?_smp_mflags}
|
|
|
|
+
|
|
|
|
+%install
|
|
|
|
+rm -rf $RPM_BUILD_ROOT
|
|
|
|
+make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
+find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
|
|
|
|
+rm -rf $RPM_BUILD_ROOT%{_datadir}/man/man3/gl[A-Z]*
|
|
|
|
+
|
|
|
|
+%post -p /sbin/ldconfig
|
|
|
|
+%post -n compat32-%{name} -p /sbin/ldconfig
|
|
|
|
+
|
|
|
|
+%postun -p /sbin/ldconfig
|
|
|
|
+%postun -n compat32-%{name} -p /sbin/ldconfig
|
|
|
|
+
|
|
|
|
+%files
|
|
|
|
+%{_libdir}/libGLU.so.1
|
|
|
|
+%{_libdir}/libGLU.so.1.3.*
|
|
|
|
+
|
|
|
|
+%files devel
|
|
|
|
+%{_includedir}/GL/glu*.h
|
|
|
|
+%{_libdir}/libGLU.so
|
|
|
|
+%{_libdir}/pkgconfig/glu.pc
|
|
|
|
+
|
|
|
|
+%if %{build_compat32}
|
|
|
|
+%files -n compat32-%{name}
|
|
|
|
+%{_libdir}/libGLU.so.1
|
|
|
|
+%{_libdir}/libGLU.so.1.3.*
|
|
|
|
+
|
|
|
|
+%files -n compat32-%{name}-devel
|
|
|
|
+%{_includedir}/GL/glu*.h
|
|
|
|
+%{_libdir}/libGLU.so
|
|
|
|
+%{_libdir}/pkgconfig/glu.pc
|
|
|
|
+%endif
|
|
|
|
+
|
|
|
|
+%changelog
|
|
|
|
+* Sat Nov 17 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 9.0.0-1
|
|
|
|
+- initial build for Vine Linux
|
|
|
|
+
|
|
|
|
+* Tue Sep 18 2012 Adam Jackson <ajax@redhat.com> 9.0.0-1
|
|
|
|
+- libGLU 9.0
|
|
|
|
+
|
|
|
|
+* Mon Sep 10 2012 Dave Airlie <airlied@redhat.com> 9.0-0.2
|
|
|
|
+- add back libGLU provides for now
|
|
|
|
+
|
|
|
|
+* Tue Sep 04 2012 Adam Jackson <ajax@redhat.com> 9.0-0.1
|
|
|
|
+- Initial packaging for split libGLU
|
|
|
|
+
|