[weston] New package addressing Fedora package review concerns.
Richard Hughes
rhughes at fedoraproject.org
Wed Apr 25 16:09:20 UTC 2012
commit e8c19515107ab32fb5e5026b257108be50fad2a2
Author: Richard Hughes <richard at hughsie.com>
Date: Wed Apr 25 17:08:09 2012 +0100
New package addressing Fedora package review concerns.
.gitignore | 1 +
make-git-snapshot.sh | 22 ++++++++++++++
sources | 1 +
weston.spec | 80 ++++++++++++++++++++++++++++++++++++++++++++++++++
4 files changed, 104 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..fba84a1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/weston-20120424.tar.bz2
diff --git a/make-git-snapshot.sh b/make-git-snapshot.sh
new file mode 100755
index 0000000..fec8ab5
--- /dev/null
+++ b/make-git-snapshot.sh
@@ -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=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/wayland-demos $DIRNAME
+
+GIT_DIR=$DIRNAME/.git git archive --format=tar --prefix=$DIRNAME/ ${1:-HEAD} \
+ | bzip2 > $DIRNAME.tar.bz2
+
+# rm -rf $DIRNAME
diff --git a/sources b/sources
index e69de29..b9bb74a 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+3bd4f91bcb780ea51f6c5f06daadd78f weston-20120424.tar.bz2
diff --git a/weston.spec b/weston.spec
new file mode 100644
index 0000000..61737ac
--- /dev/null
+++ b/weston.spec
@@ -0,0 +1,80 @@
+%define gitdate 20120424
+
+Name: weston
+Version: 0.89
+Release: 0.3%{?alphatag}%{?dist}
+Summary: Reference compositor for Wayland
+Group: User Interface/X
+License: BSD and CC-BY-SA
+URL: http://wayland.freedesktop.org/
+Source0: %{name}-%{gitdate}.tar.bz2
+Source1: make-git-snapshot.sh
+
+BuildRequires: autoconf
+BuildRequires: cairo-devel >= 1.10.0
+BuildRequires: glib2-devel
+BuildRequires: libdrm-devel
+BuildRequires: libjpeg-turbo-devel
+BuildRequires: libpng-devel
+BuildRequires: librsvg2
+BuildRequires: libtool
+BuildRequires: libudev-devel
+BuildRequires: libwayland-client-devel
+BuildRequires: libwayland-server-devel
+BuildRequires: libxcb-devel
+BuildRequires: libxkbcommon-devel
+BuildRequires: libxkbcommon-devel
+BuildRequires: mesa-libEGL-devel >= 8.1
+BuildRequires: mesa-libgbm-devel
+BuildRequires: mesa-libGLES-devel
+BuildRequires: mesa-libGLU-devel
+BuildRequires: mesa-libwayland-egl-devel
+BuildRequires: mtdev-devel
+BuildRequires: pam-devel
+BuildRequires: pixman-devel
+BuildRequires: poppler-devel
+BuildRequires: poppler-glib-devel
+BuildRequires: systemd-devel
+
+%description
+Weston is the reference wayland compositor that can run on KMS, under X11
+or under another compositor.
+
+%prep
+%setup -q -n weston-%{gitdate}
+
+%build
+autoreconf -ivf
+%configure --disable-static --disable-setuid-install
+make %{?_smp_mflags}
+
+%install
+make install DESTDIR=$RPM_BUILD_ROOT
+
+find $RPM_BUILD_ROOT -name \*.la | xargs rm -f
+
+%files
+%defattr(-,root,root,-)
+%doc README
+%doc data/COPYING
+%{_bindir}/weston
+%{_bindir}/weston-launch
+%{_bindir}/weston-terminal
+%dir %{_libdir}/weston
+%{_libdir}/weston/desktop-shell.so
+%{_libdir}/weston/drm-backend.so
+%{_libdir}/weston/tablet-shell.so
+%{_libdir}/weston/wayland-backend.so
+%{_libdir}/weston/x11-backend.so
+%{_libdir}/weston/xserver-launcher.so
+%{_libexecdir}/weston-*
+%dir %{_datadir}/weston
+%{_datadir}/weston/*.png
+%{_datadir}/weston/wayland.svg
+
+%changelog
+* Wed Apr 25 2012 Richard Hughes <richard at hughsie.com> 0.89-0.3
+- New package addressing Fedora package review concerns.
+
+* Tue Apr 24 2012 Richard Hughes <richard at hughsie.com> 0.89-0.2
+- Initial package for Fedora package review.
More information about the scm-commits
mailing list