Drop git snapshot handling

We've been building it from tarballs for several years now.
This commit is contained in:
Kalev Lember 2015-09-16 16:26:47 +02:00
parent c9cfdd6ffb
commit 5337fa6c50
2 changed files with 2 additions and 33 deletions

View File

@ -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

View File

@ -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}