From 650e460106ea930cb5cce79e8bc2fec436658646 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Nov 01 2019 20:13:18 +0000 Subject: import mesa-libGLU-9.0.0-4.el7 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f4e87d3 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/glu-9.0.0.tar.bz2 diff --git a/.mesa-libGLU.metadata b/.mesa-libGLU.metadata new file mode 100644 index 0000000..83381fa --- /dev/null +++ b/.mesa-libGLU.metadata @@ -0,0 +1 @@ +c2814bbaf1e60e28a75ec80f4646047c0da742bd SOURCES/glu-9.0.0.tar.bz2 diff --git a/SOURCES/make-git-snapshot.sh b/SOURCES/make-git-snapshot.sh new file mode 100755 index 0000000..bfdfc6f --- /dev/null +++ b/SOURCES/make-git-snapshot.sh @@ -0,0 +1,22 @@ +#!/bin/sh + +# Usage: ./make-git-snapshot.sh [COMMIT] +# +# to make a snapshot of the given tag/branch. Defaults to HEAD. +# Point env var REF to a local mesa repo to reduce clone time. + +DIRNAME=glu-$( date +%Y%m%d ) + +echo REF ${REF:+--reference $REF} +echo DIRNAME $DIRNAME +echo HEAD ${1:-HEAD} + +rm -rf $DIRNAME + +git clone ${REF:+--reference $REF} \ + git://git.freedesktop.org/git/mesa/glu $DIRNAME + +GIT_DIR=$DIRNAME/.git git archive --format=tar --prefix=$DIRNAME/ ${1:-HEAD} \ + | xz > $DIRNAME.tar.xz + +# rm -rf $DIRNAME diff --git a/SPECS/mesa-libGLU.spec b/SPECS/mesa-libGLU.spec new file mode 100644 index 0000000..a0381da --- /dev/null +++ b/SPECS/mesa-libGLU.spec @@ -0,0 +1,80 @@ +#define gitdate 20120904 + +Name: mesa-libGLU +Version: 9.0.0 +Release: 4%{?dist} +Summary: Mesa libGLU library + +License: MIT +URL: http://mesa3d.org/ +Source0: ftp://ftp.freedesktop.org/pub/mesa/glu/glu-%{version}.tar.bz2 +Source2: make-git-snapshot.sh + +%if 0%{?gitdate} +BuildRequires: autoconf automake libtool +%endif +BuildRequires: mesa-libGL-devel +#Requires: +Provides: libGLU + +%description +Mesa implementation of the standard GLU OpenGL utility API. + +%package devel +Summary: Development files for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: gl-manpages +Provides: libGLU-devel + +%description devel +The %{name}-devel package contains libraries and header files for +developing applications that use %{name}. + +%prep +%setup -q -n glu-%{?gitdate:%{gitdate}}%{?!gitdate:%{version}} + +%build +%if 0%{?gitdate} +autoreconf -v -i -f +%endif +%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 + +%postun -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 + +%changelog +* Fri Jan 24 2014 Daniel Mach - 9.0.0-4 +- Mass rebuild 2014-01-24 + +* Fri Dec 27 2013 Daniel Mach - 9.0.0-3 +- Mass rebuild 2013-12-27 + +* Thu Feb 14 2013 Fedora Release Engineering - 9.0.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Tue Sep 18 2012 Adam Jackson 9.0.0-1 +- libGLU 9.0 + +* Mon Sep 10 2012 Dave Airlie 9.0-0.2 +- add back libGLU provides for now + +* Tue Sep 04 2012 Adam Jackson 9.0-0.1 +- Initial packaging for split libGLU +