Drop git snapshot handling
We've been building it from tarballs for several years now.
This commit is contained in:
parent
1954d37971
commit
1235df5076
@ -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 mesa repo to reduce clone time.
|
|
||||||
|
|
||||||
DIRNAME=weston-$( 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://anongit.freedesktop.org/wayland/weston $DIRNAME
|
|
||||||
|
|
||||||
GIT_DIR=$DIRNAME/.git git archive --format=tar --prefix=$DIRNAME/ ${1:-HEAD} \
|
|
||||||
| bzip2 > $DIRNAME.tar.bz2
|
|
||||||
|
|
||||||
# rm -rf $DIRNAME
|
|
15
weston.spec
15
weston.spec
@ -1,32 +1,22 @@
|
|||||||
#define gitdate 20130515
|
|
||||||
|
|
||||||
%if 0%{?fedora} >= 21
|
%if 0%{?fedora} >= 21
|
||||||
%define with_rdp 1
|
%define with_rdp 1
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
Name: weston
|
Name: weston
|
||||||
Version: 1.8.92
|
Version: 1.8.92
|
||||||
#Release: 4%{?alphatag}%{?dist}
|
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Reference compositor for Wayland
|
Summary: Reference compositor for Wayland
|
||||||
Group: User Interface/X
|
Group: User Interface/X
|
||||||
License: BSD and CC-BY-SA
|
License: BSD and CC-BY-SA
|
||||||
URL: http://wayland.freedesktop.org/
|
URL: http://wayland.freedesktop.org/
|
||||||
%if 0%{?gitdate}
|
|
||||||
Source0: %{name}-%{gitdate}.tar.bz2
|
|
||||||
%else
|
|
||||||
Source0: http://wayland.freedesktop.org/releases/%{name}-%{version}.tar.xz
|
Source0: http://wayland.freedesktop.org/releases/%{name}-%{version}.tar.xz
|
||||||
%endif
|
|
||||||
Source1: make-git-snapshot.sh
|
|
||||||
|
|
||||||
BuildRequires: autoconf
|
|
||||||
BuildRequires: cairo-devel >= 1.10.0
|
BuildRequires: cairo-devel >= 1.10.0
|
||||||
BuildRequires: glib2-devel
|
BuildRequires: glib2-devel
|
||||||
BuildRequires: libdrm-devel
|
BuildRequires: libdrm-devel
|
||||||
BuildRequires: libjpeg-turbo-devel
|
BuildRequires: libjpeg-turbo-devel
|
||||||
BuildRequires: libpng-devel
|
BuildRequires: libpng-devel
|
||||||
BuildRequires: librsvg2
|
BuildRequires: librsvg2
|
||||||
BuildRequires: libtool
|
|
||||||
BuildRequires: libinput-devel >= 0.8
|
BuildRequires: libinput-devel >= 0.8
|
||||||
%if 0%{?fedora} < 18
|
%if 0%{?fedora} < 18
|
||||||
BuildRequires: libudev-devel
|
BuildRequires: libudev-devel
|
||||||
@ -73,12 +63,9 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
|
|||||||
Common headers for weston
|
Common headers for weston
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-%{?gitdate:%{gitdate}}%{!?gitdate:%{version}}
|
%setup -q
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%if 0%{?gitdate}
|
|
||||||
autoreconf -ivf
|
|
||||||
%endif
|
|
||||||
%configure --disable-static --disable-setuid-install --enable-xwayland \
|
%configure --disable-static --disable-setuid-install --enable-xwayland \
|
||||||
%{?with_rdp:--enable-rdp-compositor}
|
%{?with_rdp:--enable-rdp-compositor}
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
Loading…
Reference in New Issue
Block a user