Package init
This commit is contained in:
commit
e988b95841
BIN
libxkbcommon-0.8.4.tar.xz
Normal file
BIN
libxkbcommon-0.8.4.tar.xz
Normal file
Binary file not shown.
94
libxkbcommon.spec
Normal file
94
libxkbcommon.spec
Normal file
@ -0,0 +1,94 @@
|
||||
Name: libxkbcommon
|
||||
Version: 0.8.4
|
||||
Release: 2
|
||||
Summary: X.Org X11 XKB parsing library
|
||||
License: MIT
|
||||
URL: https://www.x.org
|
||||
Source0: https://xkbcommon.org/download/%{name}-%{version}.tar.xz
|
||||
Source1: make-git-snapshot.sh
|
||||
|
||||
BuildRequires: autoconf automake libtool pkgconfig(xcb-xkb) >= 1.10
|
||||
BuildRequires: xorg-x11-util-macros byacc flex bison libX11-devel
|
||||
BuildRequires: xorg-x11-proto-devel xkeyboard-config-devel
|
||||
|
||||
Requires: xkeyboard-config
|
||||
|
||||
%description
|
||||
xkbcommon is a library for handling of keyboard descriptions, including
|
||||
loading them from disk, parsing them and handling their state. It's mainly
|
||||
meant for client toolkits, window systems, and other system applications
|
||||
|
||||
%package devel
|
||||
Summary: X.Org X11 XKB parsing development package
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
X.Org X11 XKB parsing development package
|
||||
|
||||
%package x11
|
||||
Summary: X.Org X11 XKB keymap creation library
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
|
||||
%description x11
|
||||
%{name}-x11 is the X.Org library for creating keymaps by querying the X
|
||||
server.
|
||||
|
||||
%package x11-devel
|
||||
Summary: X.Org X11 XKB keymap creation library
|
||||
Requires: %{name}-x11%{?_isa} = %{version}-%{release}
|
||||
|
||||
%description x11-devel
|
||||
X.Org X11 XKB keymap creation library development package
|
||||
|
||||
|
||||
%prep
|
||||
%autosetup -n %{name}-%{version} -p1
|
||||
|
||||
autoreconf -v --install || exit 1
|
||||
|
||||
%build
|
||||
%configure --disable-silent-rules --enable-x11 --disable-docs
|
||||
|
||||
%make_build
|
||||
|
||||
%install
|
||||
%make_install
|
||||
|
||||
%delete_la
|
||||
|
||||
%ldconfig_scriptlets
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%license LICENSE
|
||||
%{_libdir}/%{name}.so.*
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/libxkbcommon.so
|
||||
%{_libdir}/*.a
|
||||
%{_includedir}/xkbcommon/*.h
|
||||
%{_libdir}/pkgconfig/xkbcommon.pc
|
||||
%exclude %{_includedir}/xkbcommon/xkbcommon-x11.h
|
||||
|
||||
%ldconfig_scriptlets x11
|
||||
|
||||
%files x11
|
||||
%{_libdir}/libxkbcommon-x11.so.0.0.0
|
||||
%{_libdir}/libxkbcommon-x11.so.0
|
||||
|
||||
%files x11-devel
|
||||
%{_libdir}/libxkbcommon-x11.so
|
||||
%{_includedir}/xkbcommon/xkbcommon-x11.h
|
||||
%{_libdir}/pkgconfig/xkbcommon-x11.pc
|
||||
|
||||
|
||||
%changelog
|
||||
* Mon Sep 23 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.8.4-2
|
||||
- Type: enhancement
|
||||
- ID: NA
|
||||
- SUG: NA
|
||||
- DESC: rebuilt spec, add x11,x11-devel package.
|
||||
|
||||
* Tue Sep 17 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.8.4-1
|
||||
- Package init
|
||||
17
make-git-snapshot.sh
Executable file
17
make-git-snapshot.sh
Executable file
@ -0,0 +1,17 @@
|
||||
#!/bin/sh
|
||||
|
||||
DIRNAME=libxkbcommon-$( date +%Y%m%d )
|
||||
|
||||
rm -rf $DIRNAME
|
||||
git clone git://anongit.freedesktop.org/git/xorg/lib/libxkbcommon $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
|
||||
Loading…
x
Reference in New Issue
Block a user