libxcb-python subpackage
This commit is contained in:
parent
f1edd1f790
commit
0536de84ab
@ -1 +1,2 @@
|
||||
libxcb-1.2.tar.bz2
|
||||
xpyb-1.1.tar.bz2
|
||||
|
@ -1,3 +1,4 @@
|
||||
libxcb-1_1_91-1_fc10:HEAD:libxcb-1.1.91-1.fc10.src.rpm:1221155742
|
||||
libxcb-1_1_93-1_fc11:HEAD:libxcb-1.1.93-1.fc11.src.rpm:1229635191
|
||||
libxcb-1_2-1_fc11:HEAD:libxcb-1.2-1.fc11.src.rpm:1234972884
|
||||
libxcb-1_2-4_fc12:HEAD:libxcb-1.2-4.fc12.src.rpm:1242757718
|
||||
|
36
libxcb.spec
36
libxcb.spec
@ -1,6 +1,10 @@
|
||||
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
||||
|
||||
%define xpyb_version 1.1
|
||||
|
||||
Name: libxcb
|
||||
Version: 1.2
|
||||
Release: 3%{?dist}
|
||||
Release: 4%{?dist}
|
||||
Summary: A C binding to the X11 protocol
|
||||
|
||||
Group: System Environment/Libraries
|
||||
@ -13,6 +17,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
# we don't need the library because glibc has working pthreads, but we need
|
||||
# the pkgconfig file so libs that link against libxcb know this...
|
||||
Source1: pthread-stubs.pc.in
|
||||
Source2: http://xcb.freedesktop.org/dist/xpyb-%{xpyb_version}.tar.bz2
|
||||
|
||||
Patch0: libxcb-1.1-no-pthread-stubs.patch
|
||||
Patch1: libxcb-1.2-to-git-6e2e87d.patch
|
||||
@ -50,8 +55,16 @@ BuildArch: noarch
|
||||
%description doc
|
||||
The %{name}-doc package contains documentation for the %{name} library.
|
||||
|
||||
%package python
|
||||
Summary: Python bindings for %{name}
|
||||
Group: Development/Libraries
|
||||
Provides: xpyb
|
||||
|
||||
%description python
|
||||
Python bindings for %{name}.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%setup -q -b2
|
||||
%patch0 -p1 -b .pthread-stubs
|
||||
%patch1 -p1 -b .git
|
||||
|
||||
@ -61,13 +74,23 @@ autoreconf -v --install
|
||||
--enable-selinux
|
||||
make %{?_smp_mflags}
|
||||
|
||||
pushd ../xpyb-%{xpyb_version}
|
||||
%configure
|
||||
make %{?_smp_mflags}
|
||||
popd
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
make install DESTDIR=$RPM_BUILD_ROOT
|
||||
find $RPM_BUILD_ROOT -name '*.la' | xargs rm -f
|
||||
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
|
||||
|
||||
pushd ../xpyb-%{xpyb_version}
|
||||
make install DESTDIR=$RPM_BUILD_ROOT
|
||||
popd
|
||||
|
||||
find $RPM_BUILD_ROOT -name '*.la' -delete
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
@ -88,7 +111,14 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%defattr(-,root,root,-)
|
||||
%{_datadir}/doc/%{name}-%{version}
|
||||
|
||||
%files python
|
||||
%defattr(-,root,root,-)
|
||||
%{python_sitearch}/xcb
|
||||
|
||||
%changelog
|
||||
* Tue May 19 2009 Adam Jackson <ajax@redhat.com> 1.2-4
|
||||
- Add libxcb-python subpackage
|
||||
|
||||
* Tue Apr 07 2009 Adam Jackson <ajax@redhat.com> 1.2-3
|
||||
- libxcb-1.2-to-git-6e2e87d.patch: Various updates from git, XID generation
|
||||
being the most important.
|
||||
|
Loading…
Reference in New Issue
Block a user