- Fix xpyb build
This commit is contained in:
parent
c526c1a56f
commit
08b6265857
19
libxcb.spec
19
libxcb.spec
@ -2,9 +2,12 @@
|
|||||||
|
|
||||||
%define xpyb_version 1.1
|
%define xpyb_version 1.1
|
||||||
|
|
||||||
|
# Define this when bootstrapping to avoid the xpyb loop
|
||||||
|
#define bootstrap 1
|
||||||
|
|
||||||
Name: libxcb
|
Name: libxcb
|
||||||
Version: 1.2
|
Version: 1.2
|
||||||
Release: 6%{?dist}
|
Release: 7%{?dist}
|
||||||
Summary: A C binding to the X11 protocol
|
Summary: A C binding to the X11 protocol
|
||||||
|
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
@ -32,6 +35,9 @@ BuildRequires: python
|
|||||||
BuildRequires: xcb-proto >= 1.5
|
BuildRequires: xcb-proto >= 1.5
|
||||||
BuildRequires: xorg-x11-proto-devel
|
BuildRequires: xorg-x11-proto-devel
|
||||||
BuildRequires: xorg-x11-util-macros
|
BuildRequires: xorg-x11-util-macros
|
||||||
|
%if !0%{?bootstrap}
|
||||||
|
BuildRequires: libxcb-devel
|
||||||
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The X protocol C-language Binding (XCB) is a replacement for Xlib featuring a
|
The X protocol C-language Binding (XCB) is a replacement for Xlib featuring a
|
||||||
@ -56,6 +62,7 @@ BuildArch: noarch
|
|||||||
%description doc
|
%description doc
|
||||||
The %{name}-doc package contains documentation for the %{name} library.
|
The %{name}-doc package contains documentation for the %{name} library.
|
||||||
|
|
||||||
|
%if !0%{?bootstrap}
|
||||||
%package python
|
%package python
|
||||||
Summary: Python bindings for %{name}
|
Summary: Python bindings for %{name}
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
@ -63,6 +70,7 @@ Provides: xpyb
|
|||||||
|
|
||||||
%description python
|
%description python
|
||||||
Python bindings for %{name}.
|
Python bindings for %{name}.
|
||||||
|
%endif
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -b2
|
%setup -q -b2
|
||||||
@ -76,10 +84,12 @@ autoreconf -v --install
|
|||||||
--enable-selinux
|
--enable-selinux
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
|
%if !0%{?bootstrap}
|
||||||
pushd ../xpyb-%{xpyb_version}
|
pushd ../xpyb-%{xpyb_version}
|
||||||
%configure
|
%configure
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
popd
|
popd
|
||||||
|
%endif
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
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}
|
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
|
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}
|
pushd ../xpyb-%{xpyb_version}
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
popd
|
popd
|
||||||
|
%endif
|
||||||
|
|
||||||
find $RPM_BUILD_ROOT -name '*.la' -delete
|
find $RPM_BUILD_ROOT -name '*.la' -delete
|
||||||
|
|
||||||
@ -113,11 +125,16 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%{_datadir}/doc/%{name}-%{version}
|
%{_datadir}/doc/%{name}-%{version}
|
||||||
|
|
||||||
|
%if !0%{?bootstrap}
|
||||||
%files python
|
%files python
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%{python_sitearch}/xcb
|
%{python_sitearch}/xcb
|
||||||
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Jul 06 2009 Adam Jackson <ajax@redhat.com> 1.2-7
|
||||||
|
- Fix xpyb build
|
||||||
|
|
||||||
* Mon Jun 29 2009 Adam Jackson <ajax@redhat.com> 1.2-6
|
* Mon Jun 29 2009 Adam Jackson <ajax@redhat.com> 1.2-6
|
||||||
- BuildRequires: xcb-proto >= 1.5
|
- BuildRequires: xcb-proto >= 1.5
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user