|
|
e84a35 |
Name: compat-libxcb
|
|
|
e84a35 |
Version: 1.9
|
|
|
e84a35 |
Release: 1%{?dist}
|
|
|
e84a35 |
Summary: A C binding to the X11 protocol
|
|
|
e84a35 |
|
|
|
e84a35 |
Group: System Environment/Libraries
|
|
|
e84a35 |
License: MIT
|
|
|
e84a35 |
URL: http://xcb.freedesktop.org/
|
|
|
e84a35 |
Source0: http://xcb.freedesktop.org/dist/libxcb-%{version}.tar.bz2
|
|
|
e84a35 |
BuildRoot: %{_tmppath}/libxcb-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
e84a35 |
|
|
|
e84a35 |
Patch1: 0001-integer-overflow-in-read_packet-CVE-2013-2064.patch
|
|
|
e84a35 |
Patch2: 0001-c_client.py-Handle-multiple-expr.-in-a-bitcase.patch
|
|
|
e84a35 |
Patch3: xkb.patch
|
|
|
e84a35 |
|
|
|
e84a35 |
BuildRequires: autoconf automake libtool pkgconfig
|
|
|
e84a35 |
BuildRequires: libXau-devel
|
|
|
e84a35 |
BuildRequires: libxslt
|
|
|
e84a35 |
BuildRequires: xcb-proto >= 1.7-3
|
|
|
e84a35 |
BuildRequires: xorg-x11-proto-devel
|
|
|
e84a35 |
BuildRequires: xorg-x11-util-macros
|
|
|
e84a35 |
|
|
|
e84a35 |
%description
|
|
|
e84a35 |
The X protocol C-language Binding (XCB) is a replacement for Xlib featuring a
|
|
|
e84a35 |
small footprint, latency hiding, direct access to the protocol, improved
|
|
|
e84a35 |
threading support, and extensibility.
|
|
|
e84a35 |
|
|
|
e84a35 |
%prep
|
|
|
e84a35 |
%setup -q -n libxcb-%{version}
|
|
|
e84a35 |
%patch1 -p1
|
|
|
e84a35 |
%patch2 -p1
|
|
|
e84a35 |
%patch3 -p1 -b .jx
|
|
|
e84a35 |
|
|
|
e84a35 |
%build
|
|
|
e84a35 |
sed -i 's/pthread-stubs //' configure.ac
|
|
|
e84a35 |
autoreconf -v --install
|
|
|
e84a35 |
%configure --disable-static --disable-build-docs --enable-xkb --enable-sync \
|
|
|
e84a35 |
--disable-{composite,damage,dpms,dri2,glx,randr,record,render} \
|
|
|
e84a35 |
--disable-{resource,screensaver,shape,shm,xevie,xfixes,xfree86-dri} \
|
|
|
e84a35 |
--disable-{xprint,xinerama,selinux,xtest,xv,xvmc}
|
|
|
e84a35 |
ln -s %{_datadir}/xcb/xproto.xml .
|
|
|
e84a35 |
make %{?_smp_mflags} V=1
|
|
|
e84a35 |
|
|
|
e84a35 |
%install
|
|
|
e84a35 |
rm -rf $RPM_BUILD_ROOT
|
|
|
e84a35 |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
e84a35 |
|
|
|
e84a35 |
find $RPM_BUILD_ROOT -name '*.la' -delete
|
|
|
e84a35 |
rm -rf $RPM_BUILD_ROOT{%{_datadir},%{_includedir},%{_libdir}/pkgconfig}
|
|
|
e84a35 |
rm -f $RPM_BUILD_ROOT%{_libdir}/*.so
|
|
|
e84a35 |
rm -f $RPM_BUILD_ROOT%{_libdir}/libxcb.so*
|
|
|
e84a35 |
|
|
|
e84a35 |
%clean
|
|
|
e84a35 |
rm -rf $RPM_BUILD_ROOT
|
|
|
e84a35 |
|
|
|
e84a35 |
%post -p /sbin/ldconfig
|
|
|
e84a35 |
%postun -p /sbin/ldconfig
|
|
|
e84a35 |
|
|
|
e84a35 |
%files
|
|
|
e84a35 |
%defattr(-,root,root,-)
|
|
|
e84a35 |
%doc COPYING
|
|
|
e84a35 |
%{_libdir}/libxcb-sync.so.0*
|
|
|
e84a35 |
%{_libdir}/libxcb-xkb.so.0*
|
|
|
e84a35 |
|
|
|
e84a35 |
%changelog
|
|
|
e84a35 |
* Tue Apr 07 2015 Adam Jackson <ajax@redhat.com> 1.9-1
|
|
|
e84a35 |
- Compatibility build for libxcb-sync.so.0 and libxcb-xkb.so.0
|