2ad023d
Name:           libxcb
4147587
Version:        1.1
4147587
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)
2ad023d
4147587
Patch0:         libxcb-1.1-no-pthread-stubs.patch
4147587
Patch1:		libxcb-1.1-abstract-socket.patch
2ad023d
2ad023d
BuildRequires:  autoconf automake libtool pkgconfig
2ad023d
BuildRequires:  doxygen
2ad023d
BuildRequires:  graphviz
2ad023d
BuildRequires:  libXau-devel
2ad023d
BuildRequires:  libxslt
4147587
BuildRequires:  xcb-proto >= 1.1
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
2ad023d
2ad023d
%description    doc
2ad023d
The %{name}-doc package contains documentation for the %{name} library.
2ad023d
2ad023d
%prep
2ad023d
%setup -q
b6f56cd
%patch0 -p1 -b .pthread-stubs
b6f56cd
%patch1 -p1 -b .abstract
2ad023d
2ad023d
%build
2ad023d
autoreconf -v --install
2ad023d
%configure --disable-static --docdir=%{_datadir}/doc/%{name}-%{version}
2ad023d
make %{?_smp_mflags}
2ad023d
2ad023d
%install
2ad023d
rm -rf $RPM_BUILD_ROOT
2ad023d
make install DESTDIR=$RPM_BUILD_ROOT
2ad023d
find $RPM_BUILD_ROOT -name '*.la' | xargs rm -f
2ad023d
install -m 644 COPYING NEWS README $RPM_BUILD_ROOT/%{_datadir}/doc/%{name}-%{version}
2ad023d
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,-)
2ad023d
%{_libdir}/*.so.*
2ad023d
2ad023d
%files devel
2ad023d
%defattr(-,root,root,-)
2ad023d
%{_includedir}/xcb
2ad023d
%{_libdir}/*.so
2ad023d
%{_libdir}/pkgconfig/*.pc
2ad023d
2ad023d
%files doc
2ad023d
%defattr(-,root,root,-)
2ad023d
%{_datadir}/doc/%{name}-%{version}
2ad023d
2ad023d
%changelog
4147587
* Mon Nov 12 2007 Adam Jackson <ajax@redhat.com> 1.1-1
4147587
- libxcb 1.1
4147587
b6f56cd
* Fri Aug 24 2007 Adam Jackson <ajax@redhat.com> 1.0-3
b6f56cd
- libxcb-1.0-abstract-socket.patch: When connecting to the X server, prefer
b6f56cd
  abstract-namespace unix sockets to filesystem-bound sockets.
b6f56cd
ee43f98
* Wed Aug 22 2007 Adam Jackson <ajax@redhat.com> - 1.0-2
ee43f98
- Rebuild for PPC toolchain bug
ee43f98
2ad023d
* Fri Jun 29 2007 Adam Jackson <ajax@redhat.com> 1.0-1
2ad023d
- Initial revision.