[libxkbcommon] initial import

Adam Jackson ajax at fedoraproject.org
Thu Nov 11 19:58:33 UTC 2010


commit fb4ae9909d1ed2cafe7659f16567b5c40c3e63b5
Author: Adam Jackson <ajax at redhat.com>
Date:   Thu Nov 11 14:58:33 2010 -0500

    initial import

 .gitignore           |    1 +
 libxkbcommon.spec    |   66 ++++++++++++++++++++++++++++++++++++++++++++++++++
 make-git-snapshot.sh |   17 +++++++++++++
 sources              |    1 +
 4 files changed, 85 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..16e26c7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/libxkbcommon-20101110.tar.bz2
diff --git a/libxkbcommon.spec b/libxkbcommon.spec
new file mode 100644
index 0000000..a4267c4
--- /dev/null
+++ b/libxkbcommon.spec
@@ -0,0 +1,66 @@
+%global gitdate  20101110
+
+Name:           libxkbcommon
+Version:        0.1.0
+Release:        1%{?gitdate:.%{gitdate}}%{?dist}
+Summary:        X.Org X11 XKB parsing library
+License:        MIT
+Group:          System Environment/Libraries
+URL:            http://www.x.org
+
+%if 0%{?gitdate}
+Source0:       %{name}-%{gitdate}.tar.bz2
+%else
+Source0:        ftp://ftp.x.org/pub/individual/lib/%{name}-%{version}.tar.bz2
+%endif
+Source1:        make-git-snapshot.sh
+
+BuildRequires:  autoconf automake libtool
+BuildRequires:  xorg-x11-util-macros byacc flex bison
+BuildRequires:  xorg-x11-proto-devel libX11-devel
+
+%description
+%{name} is the X.Org library for compiling XKB maps into formats usable by
+the X Server or other display servers.
+
+%package devel
+Summary:        X.Org X11 XKB parsing development package
+Group:          Development/Libraries
+Requires:       %{name} = %{version}-%{release}
+
+%description devel
+X.Org X11 XKB parsing development package
+
+%prep
+%setup -q -n %{name}-%{?gitdate:%{gitdate}}%{!?gitdate:%{version}}
+
+%build
+autoreconf -v --install || exit 1
+%configure --disable-static
+
+make %{?_smp_mflags}
+
+%install
+make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
+
+find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(-,root,root,-)
+%doc COPYING
+%{_libdir}/libxkbcommon.so.0.0.0
+%{_libdir}/libxkbcommon.so.0
+
+%files devel
+%defattr(-,root,root,-)
+%{_libdir}/libxkbcommon.so
+%{_includedir}/X11/extensions/XKBcommon.h
+%{_libdir}/pkgconfig/xkbcommon.pc
+
+%changelog
+* Sat Nov 06 2010 Dave Airlie <airlied at redhat.com> 0.1.0-1.20101110
+- inital import
+
diff --git a/make-git-snapshot.sh b/make-git-snapshot.sh
new file mode 100755
index 0000000..8b3a485
--- /dev/null
+++ b/make-git-snapshot.sh
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+DIRNAME=mtdev-$( date +%Y%m%d )
+
+rm -rf $DIRNAME
+git clone http://bitmath.org/git/mtdev.git $DIRNAME
+cd $DIRNAME
+if [ -z "$1" ]; then
+    git log | head -1
+else
+    git checkout $1
+fi
+git log | head -1 | awk '{ print $2 }' > ../commitid
+git repack -a -d
+cd ..
+tar jcf $DIRNAME.tar.bz2 $DIRNAME
+rm -rf $DIRNAME
diff --git a/sources b/sources
index e69de29..fca8435 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+7a561f5cbb5f04fda0ff7083b0f84e74  libxkbcommon-20101110.tar.bz2


More information about the scm-commits mailing list