5561315
%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
5561315
2ad023d
Name:           libxcb
a2e3f99
Version:        1.10
a2e3f99
Release:        1%{?dist}
2ad023d
Summary:        A C binding to the X11 protocol
2ad023d
2ad023d
Group:          System Environment/Libraries
2ad023d
License:        MIT
2ad023d
URL:            http://xcb.freedesktop.org/
2ad023d
Source0:        http://xcb.freedesktop.org/dist/%{name}-%{version}.tar.bz2
2ad023d
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
7baf952
# This is stolen straight from the pthread-stubs source:
7baf952
# http://cgit.freedesktop.org/xcb/pthread-stubs/blob/?id=6900598192bacf5fd9a34619b11328f746a5956d
7baf952
# we don't need the library because glibc has working pthreads, but we need
7baf952
# the pkgconfig file so libs that link against libxcb know this...
7baf952
Source1:	pthread-stubs.pc.in
3848026
a2e3f99
# http://cgit.freedesktop.org/xcb/libxcb/patch/?id=3b72a2c9d1d656c74c691a45689e1d637f669e3a
a2e3f99
Patch0:		0001-Force-XCB-event-structures-with-64-bit-extended-fiel.patch
a2e3f99
2ad023d
BuildRequires:  autoconf automake libtool pkgconfig
2ad023d
BuildRequires:  doxygen
2ad023d
BuildRequires:  graphviz
2ad023d
BuildRequires:  libXau-devel
2ad023d
BuildRequires:  libxslt
a2e3f99
BuildRequires:  xcb-proto >= 1.10
2ad023d
BuildRequires:  xorg-x11-proto-devel
2ad023d
BuildRequires:  xorg-x11-util-macros
2ad023d
2ad023d
%description
2ad023d
The X protocol C-language Binding (XCB) is a replacement for Xlib featuring a
2ad023d
small footprint, latency hiding, direct access to the protocol, improved
2ad023d
threading support, and extensibility.
2ad023d
2ad023d
%package        devel
2ad023d
Summary:        Development files for %{name}
2ad023d
Group:          Development/Libraries
2ad023d
Requires:       %{name} = %{version}-%{release}
2ad023d
Requires:       pkgconfig
2ad023d
2ad023d
%description    devel
2ad023d
The %{name}-devel package contains libraries and header files for
2ad023d
developing applications that use %{name}.
2ad023d
2ad023d
%package        doc
2ad023d
Summary:        Documentation for %{name}
2ad023d
Group:          Documentation
e5c72c3
BuildArch:	noarch
2ad023d
2ad023d
%description    doc
2ad023d
The %{name}-doc package contains documentation for the %{name} library.
2ad023d
2ad023d
%prep
6d256aa
%setup -q 
a2e3f99
%patch0 -p1
2ad023d
2ad023d
%build
1425dac
sed -i 's/pthread-stubs //' configure.ac
2ad023d
autoreconf -v --install
5561315
%configure --disable-static --docdir=%{_pkgdocdir} \
d2a6bc4
	   --enable-selinux --enable-xkb --disable-xprint
2ad023d
make %{?_smp_mflags}
2ad023d
2ad023d
%install
2ad023d
rm -rf $RPM_BUILD_ROOT
2ad023d
make install DESTDIR=$RPM_BUILD_ROOT
5561315
install -pm 644 COPYING NEWS README $RPM_BUILD_ROOT%{_pkgdocdir}
7baf952
sed 's,@libdir@,%{_libdir},;s,@prefix@,%{_prefix},;s,@exec_prefix@,%{_exec_prefix},' %{SOURCE1} > $RPM_BUILD_ROOT%{_libdir}/pkgconfig/pthread-stubs.pc
2ad023d
0536de8
find $RPM_BUILD_ROOT -name '*.la' -delete
0536de8
2ad023d
%clean
2ad023d
rm -rf $RPM_BUILD_ROOT
2ad023d
2ad023d
%post -p /sbin/ldconfig
2ad023d
%postun -p /sbin/ldconfig
2ad023d
2ad023d
%files
2ad023d
%defattr(-,root,root,-)
fd3394e
%{_libdir}/libxcb-composite.so.0*
fd3394e
%{_libdir}/libxcb-damage.so.0*
fd3394e
%{_libdir}/libxcb-dpms.so.0*
c9f4771
%{_libdir}/libxcb-dri2.so.0*
a2e3f99
%{_libdir}/libxcb-dri3.so.0*
fd3394e
%{_libdir}/libxcb-glx.so.0*
a2e3f99
%{_libdir}/libxcb-present.so.0*
fd3394e
%{_libdir}/libxcb-randr.so.0*
fd3394e
%{_libdir}/libxcb-record.so.0*
fd3394e
%{_libdir}/libxcb-render.so.0*
fd3394e
%{_libdir}/libxcb-res.so.0*
fd3394e
%{_libdir}/libxcb-screensaver.so.0*
fd3394e
%{_libdir}/libxcb-shape.so.0*
fd3394e
%{_libdir}/libxcb-shm.so.0*
a2e3f99
%{_libdir}/libxcb-sync.so.1*
fd3394e
%{_libdir}/libxcb-xevie.so.0*
fd3394e
%{_libdir}/libxcb-xf86dri.so.0*
fd3394e
%{_libdir}/libxcb-xfixes.so.0*
fd3394e
%{_libdir}/libxcb-xinerama.so.0*
a2e3f99
%{_libdir}/libxcb-xkb.so.1*
fd3394e
%{_libdir}/libxcb-xselinux.so.0*
fd3394e
%{_libdir}/libxcb-xtest.so.0*
fd3394e
%{_libdir}/libxcb-xv.so.0*
fd3394e
%{_libdir}/libxcb-xvmc.so.0*
fd3394e
%{_libdir}/libxcb.so.1*
2ad023d
2ad023d
%files devel
2ad023d
%defattr(-,root,root,-)
2ad023d
%{_includedir}/xcb
2ad023d
%{_libdir}/*.so
2ad023d
%{_libdir}/pkgconfig/*.pc
c28a79a
%{_mandir}/man3/*.3*
2ad023d
2ad023d
%files doc
2ad023d
%defattr(-,root,root,-)
5561315
%{_pkgdocdir}
2ad023d
2ad023d
%changelog
a2e3f99
* Mon Jan 27 2014 Adam Jackson <ajax@redhat.com> 1.10-1
a2e3f99
- libxcb 1.10 plus one. Updated ABIs: sync, xkb. New libs: dri3, present.
a2e3f99
6c69624
* Tue Aug  6 2013 Ville Skyttä <ville.skytta@iki.fi> - 1.9.1-3
5561315
- Install docs to %%{_pkgdocdir} where available.
5561315
d215fe4
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.1-2
d215fe4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
d215fe4
Peter Hutterer 802cd7f
* Fri May 31 2013 Peter Hutterer <peter.hutterer@redhat.com> 1.9.1-1
Peter Hutterer 802cd7f
- libxcb 1.9.1
Peter Hutterer 802cd7f
Peter Hutterer f0d0d82
* Fri May 24 2013 Peter Hutterer <peter.hutterer@redhat.com> 1.9-3
Peter Hutterer f0d0d82
- Fix integer overflow in read_packet (CVE-2013-2064)
Peter Hutterer f0d0d82
e2aaae4
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9-2
e2aaae4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
e2aaae4
c28a79a
* Tue Oct 16 2012 Adam Jackson <ajax@redhat.com> 1.9-1
c28a79a
- libxcb 1.9
c28a79a
f7b5983
* Tue Sep 04 2012 Adam Jackson <ajax@redhat.com> 1.8.1-4
f7b5983
- --enable-xkb for weston
f7b5983
- --disable-xprint instead of manual rm
f7b5983
- BuildRequire an updated xcb-proto for XKB and DRI2 fixes
d2a6bc4
9707094
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.1-2
9707094
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
9707094
a1e6e0f
* Mon Apr 09 2012 Adam Jackson <ajax@redhat.com> 1.8.1-1
a1e6e0f
- libxcb 1.8.1
a1e6e0f
5b5004c
* Fri Jan 13 2012 Adam Jackson <ajax@redhat.com> 1.8-2
5b5004c
- Don't %%doc in the base package, that pulls in copies of things we only
5b5004c
  want in -doc subpackage.
5b5004c
aba55b5
* Wed Jan 11 2012 Adam Jackson <ajax@redhat.com> 1.8-1
aba55b5
- libxcb 1.8