[xorg-x11-glamor] xorg-x11-glamor initial import (927269)

Jerome Glisse glisse at fedoraproject.org
Mon Apr 8 17:29:13 UTC 2013


commit 03068646b95a5796960293e22d3c693efa1046b5
Author: Jerome Glisse <jglisse at redhat.com>
Date:   Mon Apr 8 13:21:10 2013 -0400

    xorg-x11-glamor initial import (927269)

 .gitignore           |    1 +
 make-git-snapshot.sh |   27 ++++++++++++++++
 sources              |    1 +
 xorg-x11-glamor.spec |   81 ++++++++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 110 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..af155f8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/xorg-x11-glamor-20130401git81aadb8.tar.xz
diff --git a/make-git-snapshot.sh b/make-git-snapshot.sh
new file mode 100755
index 0000000..239c390
--- /dev/null
+++ b/make-git-snapshot.sh
@@ -0,0 +1,27 @@
+#!/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 glamor repo to reduce clone time.
+
+if [ -z "$1" ] ; then
+	echo "Please supply short git commit id"
+	exit 1
+fi
+
+DIRNAME=xorg-x11-glamor-$( date +%Y%m%d )git$1
+
+echo REF ${REF:+--reference $REF}
+echo DIRNAME $DIRNAME
+echo HEAD ${1:-HEAD}
+
+rm -rf $DIRNAME
+
+git clone --depth 1 -b master ${REF:+--reference $REF} \
+	git://git.freedesktop.org/git/xorg/driver/glamor $DIRNAME
+
+GIT_DIR=$DIRNAME/.git git archive --format=tar --prefix=$DIRNAME/ ${1:-HEAD} \
+	| xz > $DIRNAME.tar.xz
+
+# rm -rf $DIRNAME
diff --git a/sources b/sources
index e69de29..ccaf4c6 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+8baf39f4a7061296a673d55edd0e1558  xorg-x11-glamor-20130401git81aadb8.tar.xz
diff --git a/xorg-x11-glamor.spec b/xorg-x11-glamor.spec
new file mode 100644
index 0000000..75d26b8
--- /dev/null
+++ b/xorg-x11-glamor.spec
@@ -0,0 +1,81 @@
+%global checkout 20130401git81aadb8
+
+Summary: X.org glamor library
+Name: xorg-x11-glamor
+Version: 0.5.0
+Release: 4.%{checkout}%{?dist}
+License: MIT
+Group: System Environment/Libraries
+URL: http://www.freedesktop.org/wiki/Software/Glamor
+
+
+# source tarball has to be created from git using make-git-snapshot.sh
+# if checkout value is 20130401git81aadb8 then create the tar with :
+# ./make-git-snapshot.sh 81aadb8
+# http://cgit.freedesktop.org/xorg/driver/glamor/
+Source0: %{name}-%{checkout}.tar.xz
+Source1: make-git-snapshot.sh
+
+Requires: xorg-x11-server-Xorg
+BuildRequires: pkgconfig autoconf automake libtool
+BuildRequires: xorg-x11-server-devel
+BuildRequires: mesa-libgbm-devel mesa-libEGL-devel
+
+%description
+glamor provides xorg-x11 acceleration using the OpenGL driver.
+
+%package devel
+Summary: X.org glamor renderer development package
+Group: Development/Libraries
+Requires: %{name}%{?_isa} = %{version}-%{release}
+
+%description devel
+X.org glamor development package
+
+%prep
+%setup -q -n %{name}-%{checkout}
+
+%build
+autoreconf --install
+%configure --disable-static --disable-glx-tls
+make %{?_smp_mflags}
+
+%install
+# core libs and headers, but not drivers.
+make install DESTDIR=$RPM_BUILD_ROOT
+find $RPM_BUILD_ROOT -type f -name '*.la' -delete
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%doc README
+%doc COPYING
+%{_libdir}/libglamor.so.0
+%{_libdir}/libglamor.so.0.0.0
+%{_libdir}/xorg/modules/libglamoregl.so
+%{_datadir}/X11/xorg.conf.d/glamor.conf
+
+%files devel
+%dir %{_includedir}/xorg
+%{_includedir}/xorg/glamor.h
+%{_libdir}/pkgconfig/glamor.pc
+%{_libdir}/pkgconfig/glamor-egl.pc
+%{_libdir}/libglamor.so
+
+
+%changelog
+* Fri Apr 05 2013 Jerome Glisse <jglisse at redhat.com> 0.5.0-4.20130401git81aadb8
+- Fix directory ownership.
+
+* Thu Apr 04 2013 Jerome Glisse <jglisse at redhat.com> 0.5.0-3.20130401git81aadb8
+- Remove comment rather than investigating Xorg mess as running ldconfig can't be harmfull.
+- Fix devel package dependency.
+
+* Wed Apr 03 2013 Jerome Glisse <jglisse at redhat.com> 0.5.0-2.20130401git81aadb8
+- Silence rpmlint warning about ldconfig
+- Only install libglamor.so in devel package.
+- Adding COPYING and README as doc
+
+* Thu Mar 28 2013 Jerome Glisse <jglisse at redhat.com> 0.5.0-1.20130401git81aadb8
+- Initial package


More information about the scm-commits mailing list