initial import

This commit is contained in:
Adam Jackson 2010-11-11 14:58:33 -05:00
parent 8955f61c12
commit fb4ae9909d
4 changed files with 85 additions and 0 deletions

1
.gitignore vendored
View File

@ -0,0 +1 @@
/libxkbcommon-20101110.tar.bz2

66
libxkbcommon.spec Normal file
View File

@ -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@redhat.com> 0.1.0-1.20101110
- inital import

17
make-git-snapshot.sh Executable file
View File

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

View File

@ -0,0 +1 @@
7a561f5cbb5f04fda0ff7083b0f84e74 libxkbcommon-20101110.tar.bz2