Name: xcb-util Version: 0.3.2 Release: 1%{?dist} Summary: Convenience libraries sitting on top of libxcb Group: System Environment/Libraries License: MIT URL: http://xcb.freedesktop.org Source0: http://xcb.freedesktop.org/dist/%{name}-%{version}.tar.bz2 Patch0: xcb-util-0.3.2-revert-keysyms-use-xcb_key_lookup_t.patch Patch1: xcb-util-0.3.2-xcb_keysyms-remove-xcb_lookup_t.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: gperf, pkgconfig, libxcb-devel, m4, xorg-x11-proto-devel %description The xcb-util module provides a number of libraries which sit on top of libxcb, the core X protocol library, and some of the extension libraries. These experimental libraries provide convenience functions and interfaces which make the raw X protocol more usable. Some of the libraries also provide client-side code which is not strictly part of the X protocol but which have traditionally been provided by Xlib. %package devel Summary: Development and header files for xcb-util Group: System Environment/Libraries Requires: %{name} = %{version}-%{release}, pkgconfig %description devel Development files for xcb-util. %prep %setup -q # taken from upstream git, both post 0.3.2 patches %patch0 -p1 %patch1 -p1 %build %configure --with-pic --disable-static # get rid of rpath - Freedesktop.org bug 19156, https://bugs.freedesktop.org/show_bug.cgi?id=19156 sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool make %{?_smp_mflags} # fix make check, Freedesktop.org bug 19157 #%check #make check %install rm -rf %{buildroot} make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" rm %{buildroot}%{_libdir}/*.la %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc README %{_libdir}/*.so.*.* %{_libdir}/*.so.? %files devel %defattr(-,root,root,-) %{_libdir}/pkgconfig/*.pc %{_libdir}/*.so %{_includedir}/xcb/*.h %changelog * Thu Dec 18 2008 Michal Nowak - 0.3.2-1 - 0.3.2 - remove rpath (x86-64) - xcb_keysyms: remove xcb_lookup_t - Revert "keysyms: use xcb_key_lookup_t type for col paramter" - temporary disabled %%check due to RPATH regression * Thu Dec 4 2008 Michal Nowak - 0.3.1-2 - patch for exit() in aux library (Peter Harris) - slight changes in spec file * Mon Nov 24 2008 Michal Nowak - 0.3.1-1 - 0.3.1 - fix license issue (Jonathan Landis) * Fri Sep 19 2008 Michal Nowak - 0.3.0-1 - bump to 0.3.0 * Sun Aug 17 2008 Michal Nowak - 0.2.1-2 - new build deps: gperf, pkgconfig, libxcb, m4, xorg-x11-proto-devel - not installing *.a files anymore - configure with --with-pic * Mon Aug 04 2008 Michal Nowak - 0.2.1-1 - initial package