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