diff --git a/.cvsignore b/.cvsignore index 2cfa14a..dc89fff 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -libdrm-20071130.tar.bz2 +libdrm-20080215.tar.bz2 diff --git a/libdrm.spec b/libdrm.spec index e04fd61..56d9852 100644 --- a/libdrm.spec +++ b/libdrm.spec @@ -1,12 +1,15 @@ +%define gitdate 20080215 + Summary: Direct Rendering Manager runtime library Name: libdrm Version: 2.4.0 -Release: 0.3%{?dist} +Release: 0.4%{?dist} License: MIT Group: System Environment/Libraries URL: http://dri.sourceforge.net #Source0: http://dri.freedesktop.org/libdrm/%{name}-%{version}.tar.bz2 -Source0: libdrm-20071130.tar.bz2 +Source0: %{name}-%{gitdate}.tar.bz2 +Source1: make-git-snapshot.sh BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: pkgconfig automake autoconf libtool @@ -25,11 +28,11 @@ Requires: %{name} = %{version}-%{release} Direct Rendering Manager development package %prep -%setup -q +%setup -q -n %{name}-%{gitdate} #patch2 -p1 -b .mknod %build -aclocal ; automake ; autoconf +autoreconf -v --install || exit 1 %configure make @@ -77,6 +80,9 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/pkgconfig/libdrm.pc %changelog +* Fri Feb 15 2008 Adam Jackson 2.4.0-0.4 +- Today's git snapshot for updated headers. + * Mon Jan 21 2008 Adam Jackson 2.4.0-0.3 - libdrm-2.4.0-no-freaking-mknod.patch: Disable. Deep voodoo. diff --git a/make-git-snapshot.sh b/make-git-snapshot.sh new file mode 100755 index 0000000..361597e --- /dev/null +++ b/make-git-snapshot.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +DIRNAME=libdrm-$( date +%Y%m%d ) + +rm -rf $DIRNAME +git clone git://git.freedesktop.org/git/mesa/drm $DIRNAME +cd $DIRNAME +if [ -z "$1" ]; then + git log | head -1 +else + git checkout $1 +fi +git log | head -1 | awk '{ print $2 }' > ../commitid +git repack -a -d +cd .. +tar jcf $DIRNAME.tar.bz2 $DIRNAME +rm -rf $DIRNAME diff --git a/sources b/sources index fc2898b..eaca2ee 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -2587b78b25bfa1116e62052f9211d38f libdrm-20071130.tar.bz2 +8fc14f6cff3639da43d9b57a5143a675 libdrm-20080215.tar.bz2