5561315
%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
5561315
8c4481e
Name:       libxcb
049cddf
Version:    1.11.1
049cddf
Release:    1%{?dist}
8c4481e
Summary:    A C binding to the X11 protocol
8c4481e
License:    MIT
8c4481e
URL:        http://xcb.freedesktop.org/
8c4481e
8c4481e
Source0:    http://xcb.freedesktop.org/dist/%{name}-%{version}.tar.bz2
8c4481e
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...
8c4481e
Source1:    pthread-stubs.pc.in
3848026
2ad023d
BuildRequires:  doxygen
2ad023d
BuildRequires:  graphviz
8c4481e
BuildRequires:  libtool
2ad023d
BuildRequires:  libxslt
Rex Dieter 5b2a611
BuildRequires:  pkgconfig
8c4481e
BuildRequires:  pkgconfig(xau) >= 0.99.2
8c4481e
BuildRequires:  pkgconfig(xcb-proto) >= 1.11
8c4481e
BuildRequires:  pkgconfig(xorg-macros) >= 1.18
8c4481e
#BuildRequires:  xorg-x11-proto-devel
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
8c4481e
%package devel
8c4481e
Summary:    Development files for %{name}
Rex Dieter 5b2a611
Requires:   %{name}%{?_isa} = %{version}-%{release}
2ad023d
8c4481e
%description devel
8c4481e
The %{name}-devel package contains libraries and header files for developing
8c4481e
applications that use %{name}.
2ad023d
8c4481e
%package doc
8c4481e
Summary:    Documentation for %{name}
8c4481e
BuildArch:  noarch
2ad023d
8c4481e
%description doc
2ad023d
The %{name}-doc package contains documentation for the %{name} library.
2ad023d
2ad023d
%prep
Rex Dieter d4eb6b8
%autosetup -p1
2ad023d
2ad023d
%build
1425dac
sed -i 's/pthread-stubs //' configure.ac
Rex Dieter 5b2a611
# autoreconf -f needed to expunge rpaths
Rex Dieter 5b2a611
autoreconf -v -f --install
8c4481e
%configure \
8c4481e
    --disable-static \
8c4481e
    --docdir=%{_pkgdocdir} \
8c4481e
    --enable-selinux \
8c4481e
    --enable-xkb \
8c4481e
    --enable-xinput \
Rex Dieter 8084b53
    --disable-xprint \
Rex Dieter 8084b53
    --disable-silent-rules
Rex Dieter 8084b53
Rex Dieter 8084b53
# Remove rpath from libtool (extra insurance if autoreconf is ever dropped)
Rex Dieter 8084b53
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
Rex Dieter 8084b53
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
Rex Dieter 8084b53
2ad023d
make %{?_smp_mflags}
2ad023d
2ad023d
%install
2ad023d
make install DESTDIR=$RPM_BUILD_ROOT
5561315
install -pm 644 COPYING NEWS README $RPM_BUILD_ROOT%{_pkgdocdir}
8c4481e
sed 's,@libdir@,%{_libdir},;s,@prefix@,%{_prefix},;s,@exec_prefix@,%{_exec_prefix},' %{SOURCE1} \
8c4481e
    > $RPM_BUILD_ROOT%{_libdir}/pkgconfig/pthread-stubs.pc
2ad023d
0536de8
find $RPM_BUILD_ROOT -name '*.la' -delete
0536de8
2ad023d
%post -p /sbin/ldconfig
8c4481e
2ad023d
%postun -p /sbin/ldconfig
2ad023d
2ad023d
%files
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*
8c4481e
%{_libdir}/libxcb-xinput.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
%{_includedir}/xcb
2ad023d
%{_libdir}/*.so
2ad023d
%{_libdir}/pkgconfig/*.pc
c28a79a
%{_mandir}/man3/*.3*
2ad023d
2ad023d
%files doc
5561315
%{_pkgdocdir}
2ad023d
2ad023d
%changelog
049cddf
* Mon Sep 21 2015 Adam Jackson <ajax@redhat.com> 1.11.1-1
049cddf
- libxcb 1.11.1
049cddf
Rex Dieter cd4954b
* Thu Jun 25 2015 Rex Dieter <rdieter@fedoraproject.org> 1.11-8
Rex Dieter cd4954b
- followup fix for thread deadlocks (#1193742, fdo#84252)
Rex Dieter cd4954b
4b613c9
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.11-7
4b613c9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
4b613c9
Rex Dieter d4eb6b8
* Fri Jun 12 2015 Rex Dieter <rdieter@fedoraproject.org> 1.11-6
Rex Dieter d4eb6b8
- pull in (partial?) upstream fix for deadlocks (#1193742, fdo#84252)
Rex Dieter d4eb6b8
Rex Dieter 8084b53
* Wed May 20 2015 Rex Dieter <rdieter@fedoraproject.org> - 1.11-5
Rex Dieter 8084b53
- fix rpath harder (#1136546)
Rex Dieter 8084b53
- %%build: --disable-silent-rules
Rex Dieter 8084b53
Rex Dieter 5b2a611
* Tue May 19 2015 Rex Dieter <rdieter@fedoraproject.org> - 1.11-4
Rex Dieter 8084b53
- fix fpath (use autoreconf -f)
Rex Dieter 5b2a611
- -devel: tighten deps via %%{?_isa}, drop Requires: pkgconfig (add explicit BR: pkgconfig)
Rex Dieter 5b2a611
8c4481e
* Thu Jan 08 2015 Simone Caronni <negativo17@gmail.com> - 1.11-3
8c4481e
- Clean up SPEC file, fix rpmlint warnings.
8c4481e
- Enable XInput extension (#1177701).
8c4481e
d882432
* Fri Oct 24 2014 Dan Horák <dan@danny.cz> - 1.11-2
d882432
- rebuilt for broken koji db - no buildroot info
d882432
88c1233
* Wed Oct 01 2014 Adam Jackson <ajax@redhat.com> 1.11-1
88c1233
- libxcb 1.11
88c1233
7a45b5c
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10-3
7a45b5c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
7a45b5c
466d75a
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10-2
466d75a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
466d75a
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