Initial import (#854377)

Signed-off-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
Adam Jackson 2012-09-06 14:14:41 -04:00
parent d75ea0d447
commit 81f7ae71e4
4 changed files with 88 additions and 0 deletions

1
.gitignore vendored
View File

@ -0,0 +1 @@
/libGLU-20120904.tar.xz

22
make-git-snapshot.sh Executable file
View File

@ -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=libGLU-$( 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

64
mesa-libGLU.spec Normal file
View File

@ -0,0 +1,64 @@
%define gitdate 20120904
Name: mesa-libGLU
Version: 9.0
Release: 0.1%{?dist}
Summary: Mesa libGLU library
License: MIT
URL: http://mesa3d.org/
# snapshot only at this point
Source0: libGLU-%{gitdate}.tar.xz
Source2: make-git-snapshot.sh
%if 0%{?gitdate}
BuildRequires: autoconf automake libtool
%endif
BuildRequires: mesa-libGL-devel
#Requires:
%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
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%prep
%setup -q -n libGLU-%{?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
* Tue Sep 04 2012 Adam Jackson <ajax@redhat.com> 9.0-0.1
- Initial packaging for split libGLU

View File

@ -0,0 +1 @@
a1f8aca93eed0281bb25775b2aae1167 libGLU-20120904.tar.xz