f5eb96
%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
f5eb96
f5eb96
Name:       libxcb
f5eb96
Version:    1.13
f5eb96
Release:    1%{?dist}
f5eb96
Summary:    A C binding to the X11 protocol
f5eb96
License:    MIT
f5eb96
URL:        https://xcb.freedesktop.org/
f5eb96
f5eb96
Source0:    https://xcb.freedesktop.org/dist/%{name}-%{version}.tar.bz2
f5eb96
f5eb96
# This is stolen straight from the pthread-stubs source:
f5eb96
# http://cgit.freedesktop.org/xcb/pthread-stubs/blob/?id=6900598192bacf5fd9a34619b11328f746a5956d
f5eb96
# we don't need the library because glibc has working pthreads, but we need
f5eb96
# the pkgconfig file so libs that link against libxcb know this...
f5eb96
Source1:    pthread-stubs.pc.in
f5eb96
f5eb96
BuildRequires:  doxygen
f5eb96
BuildRequires:  graphviz
f5eb96
BuildRequires:  libtool
f5eb96
BuildRequires:  libxslt
f5eb96
BuildRequires:  pkgconfig
f5eb96
BuildRequires:  pkgconfig(xau) >= 0.99.2
f5eb96
BuildRequires:  pkgconfig(xcb-proto) >= 1.12
f5eb96
BuildRequires:  pkgconfig(xorg-macros) >= 1.18
f5eb96
#BuildRequires:  xorg-x11-proto-devel
f5eb96
f5eb96
%description
f5eb96
The X protocol C-language Binding (XCB) is a replacement for Xlib featuring a
f5eb96
small footprint, latency hiding, direct access to the protocol, improved
f5eb96
threading support, and extensibility.
f5eb96
f5eb96
%package devel
f5eb96
Summary:    Development files for %{name}
f5eb96
Requires:   %{name}%{?_isa} = %{version}-%{release}
f5eb96
f5eb96
%description devel
f5eb96
The %{name}-devel package contains libraries and header files for developing
f5eb96
applications that use %{name}.
f5eb96
f5eb96
%package doc
f5eb96
Summary:    Documentation for %{name}
f5eb96
BuildArch:  noarch
f5eb96
f5eb96
%description doc
f5eb96
The %{name}-doc package contains documentation for the %{name} library.
f5eb96
f5eb96
%prep
f5eb96
%autosetup -p1
f5eb96
f5eb96
%build
f5eb96
sed -i 's/pthread-stubs //' configure.ac
f5eb96
# autoreconf -f needed to expunge rpaths
f5eb96
autoreconf -v -f --install
f5eb96
%configure \
f5eb96
    --disable-static \
f5eb96
    --docdir=%{_pkgdocdir} \
f5eb96
    --enable-selinux \
f5eb96
    --enable-xkb \
f5eb96
    --enable-xinput \
f5eb96
    --enable-xevie \
f5eb96
    --disable-xprint \
f5eb96
    --disable-silent-rules
f5eb96
f5eb96
# Remove rpath from libtool (extra insurance if autoreconf is ever dropped)
f5eb96
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
f5eb96
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
f5eb96
f5eb96
make %{?_smp_mflags}
f5eb96
f5eb96
%install
f5eb96
make install DESTDIR=$RPM_BUILD_ROOT
f5eb96
install -pm 644 COPYING NEWS README $RPM_BUILD_ROOT%{_pkgdocdir}
f5eb96
sed 's,@libdir@,%{_libdir},;s,@prefix@,%{_prefix},;s,@exec_prefix@,%{_exec_prefix},' %{SOURCE1} \
f5eb96
    > $RPM_BUILD_ROOT%{_libdir}/pkgconfig/pthread-stubs.pc
f5eb96
f5eb96
find $RPM_BUILD_ROOT -name '*.la' -delete
f5eb96
f5eb96
%post -p /sbin/ldconfig
f5eb96
f5eb96
%postun -p /sbin/ldconfig
f5eb96
f5eb96
%files
f5eb96
%{_libdir}/libxcb-composite.so.0*
f5eb96
%{_libdir}/libxcb-damage.so.0*
f5eb96
%{_libdir}/libxcb-dpms.so.0*
f5eb96
%{_libdir}/libxcb-dri2.so.0*
f5eb96
%{_libdir}/libxcb-dri3.so.0*
f5eb96
%{_libdir}/libxcb-glx.so.0*
f5eb96
%{_libdir}/libxcb-present.so.0*
f5eb96
%{_libdir}/libxcb-randr.so.0*
f5eb96
%{_libdir}/libxcb-record.so.0*
f5eb96
%{_libdir}/libxcb-render.so.0*
f5eb96
%{_libdir}/libxcb-res.so.0*
f5eb96
%{_libdir}/libxcb-screensaver.so.0*
f5eb96
%{_libdir}/libxcb-shape.so.0*
f5eb96
%{_libdir}/libxcb-shm.so.0*
f5eb96
%{_libdir}/libxcb-sync.so.1*
f5eb96
%{_libdir}/libxcb-xevie.so.0*
f5eb96
%{_libdir}/libxcb-xf86dri.so.0*
f5eb96
%{_libdir}/libxcb-xfixes.so.0*
f5eb96
%{_libdir}/libxcb-xinerama.so.0*
f5eb96
%{_libdir}/libxcb-xinput.so.0*
f5eb96
%{_libdir}/libxcb-xkb.so.1*
f5eb96
%{_libdir}/libxcb-xselinux.so.0*
f5eb96
%{_libdir}/libxcb-xtest.so.0*
f5eb96
%{_libdir}/libxcb-xv.so.0*
f5eb96
%{_libdir}/libxcb-xvmc.so.0*
f5eb96
%{_libdir}/libxcb.so.1*
f5eb96
f5eb96
%files devel
f5eb96
%{_includedir}/xcb
f5eb96
%{_libdir}/*.so
f5eb96
%{_libdir}/pkgconfig/*.pc
f5eb96
%{_mandir}/man3/*.3*
f5eb96
f5eb96
%files doc
f5eb96
%{_pkgdocdir}
f5eb96
f5eb96
%changelog
f5eb96
* Tue Apr 24 2018 Adam Jackson <ajax@redhat.com> - 1.13-1
f5eb96
- libxcb 1.13
f5eb96
f5eb96
* Wed May 18 2016 Adam Jackson <ajax@redhat.com> - 1.12-1
f5eb96
- libxcb 1.12
f5eb96
f5eb96
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.1-2
f5eb96
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
f5eb96
f5eb96
* Mon Sep 21 2015 Adam Jackson <ajax@redhat.com> 1.11.1-1
f5eb96
- libxcb 1.11.1
f5eb96
f5eb96
* Thu Jun 25 2015 Rex Dieter <rdieter@fedoraproject.org> 1.11-8
f5eb96
- followup fix for thread deadlocks (#1193742, fdo#84252)
f5eb96
f5eb96
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.11-7
f5eb96
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
f5eb96
f5eb96
* Fri Jun 12 2015 Rex Dieter <rdieter@fedoraproject.org> 1.11-6
f5eb96
- pull in (partial?) upstream fix for deadlocks (#1193742, fdo#84252)
f5eb96
f5eb96
* Wed May 20 2015 Rex Dieter <rdieter@fedoraproject.org> - 1.11-5
f5eb96
- fix rpath harder (#1136546)
f5eb96
- %%build: --disable-silent-rules
f5eb96
f5eb96
* Tue May 19 2015 Rex Dieter <rdieter@fedoraproject.org> - 1.11-4
f5eb96
- fix fpath (use autoreconf -f)
f5eb96
- -devel: tighten deps via %%{?_isa}, drop Requires: pkgconfig (add explicit BR: pkgconfig)
f5eb96
f5eb96
* Thu Jan 08 2015 Simone Caronni <negativo17@gmail.com> - 1.11-3
f5eb96
- Clean up SPEC file, fix rpmlint warnings.
f5eb96
- Enable XInput extension (#1177701).
f5eb96
f5eb96
* Fri Oct 24 2014 Dan Horák <dan@danny.cz> - 1.11-2
f5eb96
- rebuilt for broken koji db - no buildroot info
f5eb96
f5eb96
* Wed Oct 01 2014 Adam Jackson <ajax@redhat.com> 1.11-1
f5eb96
- libxcb 1.11
f5eb96
f5eb96
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10-3
f5eb96
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
f5eb96
f5eb96
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10-2
f5eb96
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
f5eb96
f5eb96
* Mon Jan 27 2014 Adam Jackson <ajax@redhat.com> 1.10-1
f5eb96
- libxcb 1.10 plus one. Updated ABIs: sync, xkb. New libs: dri3, present.
f5eb96
f5eb96
* Tue Aug  6 2013 Ville Skyttä <ville.skytta@iki.fi> - 1.9.1-3
f5eb96
- Install docs to %%{_pkgdocdir} where available.
f5eb96
f5eb96
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.1-2
f5eb96
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
f5eb96
f5eb96
* Fri May 31 2013 Peter Hutterer <peter.hutterer@redhat.com> 1.9.1-1
f5eb96
- libxcb 1.9.1
f5eb96
f5eb96
* Fri May 24 2013 Peter Hutterer <peter.hutterer@redhat.com> 1.9-3
f5eb96
- Fix integer overflow in read_packet (CVE-2013-2064)
f5eb96
f5eb96
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9-2
f5eb96
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
f5eb96
f5eb96
* Tue Oct 16 2012 Adam Jackson <ajax@redhat.com> 1.9-1
f5eb96
- libxcb 1.9
f5eb96
f5eb96
* Tue Sep 04 2012 Adam Jackson <ajax@redhat.com> 1.8.1-4
f5eb96
- --enable-xkb for weston
f5eb96
- --disable-xprint instead of manual rm
f5eb96
- BuildRequire an updated xcb-proto for XKB and DRI2 fixes
f5eb96
f5eb96
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.1-2
f5eb96
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
f5eb96
f5eb96
* Mon Apr 09 2012 Adam Jackson <ajax@redhat.com> 1.8.1-1
f5eb96
- libxcb 1.8.1
f5eb96
f5eb96
* Fri Jan 13 2012 Adam Jackson <ajax@redhat.com> 1.8-2
f5eb96
- Don't %%doc in the base package, that pulls in copies of things we only
f5eb96
  want in -doc subpackage.
f5eb96
f5eb96
* Wed Jan 11 2012 Adam Jackson <ajax@redhat.com> 1.8-1
f5eb96
- libxcb 1.8