Browse Source

libxcb: add pthread-stubs.pc

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@7123 ec354946-7b23-47d6-9f5a-488ba84defc7
daisuke 11 years ago
parent
commit
cf2f5fe209
1 changed files with 17 additions and 5 deletions
  1. 17 5
      lib/libx/libxcb/libxcb-vl.spec

+ 17 - 5
lib/libx/libxcb/libxcb-vl.spec

@@ -6,14 +6,17 @@ Summary:        A C binding to the X11 protocol
 Summary(ja):    X11 プロトコルの C による実装
 Name:           libxcb
 Version:        1.9
-Release:        1%{?_dist_release}
+Release:        2%{?_dist_release}
 
 Group:          System Environment/Libraries
 License:        MIT
 URL:            http://xcb.freedesktop.org/
 Source0:        http://xcb.freedesktop.org/dist/%{name}-%{version}.tar.bz2
-
-Patch10:        libxcb-1.8.1-no-pthread-stubs.patch
+# This is stolen straight from the pthread-stubs source:
+# http://cgit.freedesktop.org/xcb/pthread-stubs/blob/?id=6900598192bacf5fd9a34619b11328f746a5956d
+# 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
 
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
 BuildRequires:  autoconf automake libtool pkgconfig
@@ -72,11 +75,15 @@ developing applications that use %{name}.
 
 %prep
 %setup -q
-%patch10 -p1
 
 %build
+sed -i 's/pthread-stubs //' configure.ac
 autoreconf -v --install
-%configure --disable-static --docdir=%{_datadir}/doc/%{name}-%{version} --disable-selinux
+%configure --disable-static \
+           --docdir=%{_datadir}/doc/%{name}-%{version} \
+	   --disable-selinux \
+	   --enable-xkb \
+	   --disable-xprint
 make %{?_smp_mflags}
 
 %install
@@ -85,6 +92,8 @@ 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
+
 find $RPM_BUILD_ROOT -name '*.la' -delete
 
 %clean
@@ -122,6 +131,9 @@ rm -rf $RPM_BUILD_ROOT
 %endif
 
 %changelog
+* Sat Nov 17 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 1.9-2
+- add Source1: pthread-stubs.pc, remove patch10
+
 * Mon Oct 08 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.9-1
 - new upstream release