diff --git a/make-git-snapshot.sh b/make-git-snapshot.sh deleted file mode 100755 index 5c01a36..0000000 --- a/make-git-snapshot.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/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 repo to reduce clone time. - -DIRNAME=wayland-$( date +%Y%m%d ) -REPO=wayland - -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/wayland/${REPO}/ $DIRNAME/${REPO}/ -GIT_DIR=$DIRNAME/${REPO}/.git git archive --format=tar --prefix=${REPO}-${DIRNAME#wayland-}/ ${1:-HEAD} \ - | xz > ${REPO}-${DIRNAME#wayland-}.tar.xz - -# rm -rf $DIRNAME diff --git a/wayland.spec b/wayland.spec index a2ecf6e..67afed3 100644 --- a/wayland.spec +++ b/wayland.spec @@ -1,21 +1,13 @@ -#global gitdate 20130515 - Name: wayland Version: 1.8.92 -Release: 1%{?gitdate:.%{gitdate}}%{?dist} +Release: 1%{?dist} Summary: Wayland Compositor Infrastructure Group: User Interface/X License: MIT URL: http://%{name}.freedesktop.org/ -%if 0%{?gitdate} -Source0: wayland-%{gitdate}.tar.xz -%else Source0: http://wayland.freedesktop.org/releases/%{name}-%{version}.tar.xz -%endif -Source1: make-git-snapshot.sh -BuildRequires: autoconf automake libtool BuildRequires: chrpath BuildRequires: doxygen BuildRequires: pkgconfig(libffi) @@ -89,10 +81,9 @@ Requires: wayland-devel%{?_isa} = %{version}-%{release} Headers and symlinks for developing wayland server applications. %prep -%setup -q -n %{name}-%{?gitdate:%{gitdate}}%{!?gitdate:%{version}} +%setup -q %build -autoreconf -v --install %configure --disable-static --enable-documentation make %{?_smp_mflags}