diff --git a/libxcb.spec b/libxcb.spec index 09ac665..7a7c8de 100644 --- a/libxcb.spec +++ b/libxcb.spec @@ -2,9 +2,12 @@ %define xpyb_version 1.1 +# Define this when bootstrapping to avoid the xpyb loop +#define bootstrap 1 + Name: libxcb Version: 1.2 -Release: 6%{?dist} +Release: 7%{?dist} Summary: A C binding to the X11 protocol Group: System Environment/Libraries @@ -32,6 +35,9 @@ BuildRequires: python BuildRequires: xcb-proto >= 1.5 BuildRequires: xorg-x11-proto-devel BuildRequires: xorg-x11-util-macros +%if !0%{?bootstrap} +BuildRequires: libxcb-devel +%endif %description The X protocol C-language Binding (XCB) is a replacement for Xlib featuring a @@ -56,6 +62,7 @@ BuildArch: noarch %description doc The %{name}-doc package contains documentation for the %{name} library. +%if !0%{?bootstrap} %package python Summary: Python bindings for %{name} Group: Development/Libraries @@ -63,6 +70,7 @@ Provides: xpyb %description python Python bindings for %{name}. +%endif %prep %setup -q -b2 @@ -76,10 +84,12 @@ autoreconf -v --install --enable-selinux make %{?_smp_mflags} +%if !0%{?bootstrap} pushd ../xpyb-%{xpyb_version} %configure make %{?_smp_mflags} popd +%endif %install rm -rf $RPM_BUILD_ROOT @@ -87,9 +97,11 @@ make install DESTDIR=$RPM_BUILD_ROOT install -m 644 COPYING NEWS README $RPM_BUILD_ROOT/%{_datadir}/doc/%{name}-%{version} sed 's,@libdir@,%{_libdir},;s,@prefix@,%{_prefix},;s,@exec_prefix@,%{_exec_prefix},' %{SOURCE1} > $RPM_BUILD_ROOT%{_libdir}/pkgconfig/pthread-stubs.pc +%if !0%{?bootstrap} pushd ../xpyb-%{xpyb_version} make install DESTDIR=$RPM_BUILD_ROOT popd +%endif find $RPM_BUILD_ROOT -name '*.la' -delete @@ -113,11 +125,16 @@ rm -rf $RPM_BUILD_ROOT %defattr(-,root,root,-) %{_datadir}/doc/%{name}-%{version} +%if !0%{?bootstrap} %files python %defattr(-,root,root,-) %{python_sitearch}/xcb +%endif %changelog +* Mon Jul 06 2009 Adam Jackson 1.2-7 +- Fix xpyb build + * Mon Jun 29 2009 Adam Jackson 1.2-6 - BuildRequires: xcb-proto >= 1.5