[521] | 1 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
---|
| 2 | |
---|
[2203] | 3 | %define xpyb_version 1.2 |
---|
[521] | 4 | |
---|
| 5 | Summary: A C binding to the X11 protocol |
---|
| 6 | Summary(ja): X11 プロトコルの C による実装 |
---|
| 7 | Name: libxcb |
---|
[9044] | 8 | Version: 1.11 |
---|
[7707] | 9 | Release: 1%{?_dist_release} |
---|
[521] | 10 | |
---|
| 11 | Group: System Environment/Libraries |
---|
| 12 | License: MIT |
---|
| 13 | URL: http://xcb.freedesktop.org/ |
---|
| 14 | Source0: http://xcb.freedesktop.org/dist/%{name}-%{version}.tar.bz2 |
---|
[7123] | 15 | # This is stolen straight from the pthread-stubs source: |
---|
| 16 | # http://cgit.freedesktop.org/xcb/pthread-stubs/blob/?id=6900598192bacf5fd9a34619b11328f746a5956d |
---|
| 17 | # we don't need the library because glibc has working pthreads, but we need |
---|
| 18 | # the pkgconfig file so libs that link against libxcb know this... |
---|
| 19 | Source1: pthread-stubs.pc.in |
---|
[521] | 20 | |
---|
| 21 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
[9044] | 22 | BuildRequires: autoconf |
---|
| 23 | BuildRequires: automake |
---|
| 24 | BuildRequires: libtool |
---|
| 25 | BuildRequires: pkgconfig |
---|
[521] | 26 | #BuildRequires: doxygen |
---|
| 27 | #BuildRequires: graphviz |
---|
| 28 | BuildRequires: libXau-devel |
---|
| 29 | BuildRequires: libxslt |
---|
[527] | 30 | BuildRequires: xcb-proto >= 1.6 |
---|
[521] | 31 | BuildRequires: xorg-x11-proto-devel |
---|
| 32 | BuildRequires: xorg-x11-util-macros |
---|
[1863] | 33 | BuildRequires: python-devel |
---|
[521] | 34 | |
---|
[5549] | 35 | Obsoletes: %{name}-python < 1.8 |
---|
| 36 | |
---|
[8064] | 37 | Vendor: Project Vine |
---|
| 38 | Distribution: Vine Linux |
---|
| 39 | Packager: Takemikaduchi |
---|
| 40 | |
---|
[521] | 41 | %description |
---|
| 42 | The X protocol C-language Binding (XCB) is a replacement for Xlib featuring a |
---|
| 43 | small footprint, latency hiding, direct access to the protocol, improved |
---|
| 44 | threading support, and extensibility. |
---|
| 45 | |
---|
| 46 | %package devel |
---|
| 47 | Summary: Development files for %{name} |
---|
[9044] | 48 | Summary(ja): %{name} の開発用ファイル |
---|
[521] | 49 | Group: Development/Libraries |
---|
| 50 | Requires: %{name} = %{version}-%{release} |
---|
| 51 | Requires: pkgconfig |
---|
| 52 | |
---|
| 53 | %description devel |
---|
| 54 | The %{name}-devel package contains libraries and header files for |
---|
| 55 | developing applications that use %{name}. |
---|
| 56 | |
---|
| 57 | %package doc |
---|
| 58 | Summary: Documentation for %{name} |
---|
| 59 | Group: Documentation |
---|
| 60 | |
---|
| 61 | %description doc |
---|
| 62 | The %{name}-doc package contains documentation for the %{name} library. |
---|
| 63 | |
---|
| 64 | %package -n compat32-%{name} |
---|
| 65 | Summary: A C binding to the X11 protocol |
---|
| 66 | Summary(ja): X11 プロトコルの C による実装 |
---|
| 67 | Group: System Environment/Libraries |
---|
| 68 | |
---|
| 69 | %description -n compat32-%{name} |
---|
| 70 | The X protocol C-language Binding (XCB) is a replacement for Xlib featuring a |
---|
| 71 | small footprint, latency hiding, direct access to the protocol, improved |
---|
| 72 | threading support, and extensibility. |
---|
| 73 | |
---|
| 74 | %package -n compat32-%{name}-devel |
---|
| 75 | Summary: Development files for %{name} |
---|
[9044] | 76 | Summary(ja): %{name} の開発用ファイル |
---|
[521] | 77 | Group: Development/Libraries |
---|
| 78 | Requires: compat32-%{name} = %{version}-%{release} |
---|
| 79 | Requires: %{name}-devel = %{version}-%{release} |
---|
| 80 | |
---|
| 81 | %description -n compat32-%{name}-devel |
---|
| 82 | The %{name}-devel package contains libraries and header files for |
---|
| 83 | developing applications that use %{name}. |
---|
| 84 | |
---|
| 85 | %prep |
---|
[5549] | 86 | %setup -q |
---|
[521] | 87 | |
---|
| 88 | %build |
---|
[7123] | 89 | sed -i 's/pthread-stubs //' configure.ac |
---|
[521] | 90 | autoreconf -v --install |
---|
[7123] | 91 | %configure --disable-static \ |
---|
| 92 | --docdir=%{_datadir}/doc/%{name}-%{version} \ |
---|
| 93 | --disable-selinux \ |
---|
| 94 | --enable-xkb \ |
---|
| 95 | --disable-xprint |
---|
[521] | 96 | make %{?_smp_mflags} |
---|
| 97 | |
---|
| 98 | %install |
---|
| 99 | rm -rf $RPM_BUILD_ROOT |
---|
| 100 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
| 101 | find $RPM_BUILD_ROOT -name '*.la' | xargs rm -f |
---|
| 102 | install -m 644 COPYING NEWS README $RPM_BUILD_ROOT/%{_datadir}/doc/%{name}-%{version} |
---|
| 103 | |
---|
[7123] | 104 | sed 's,@libdir@,%{_libdir},;s,@prefix@,%{_prefix},;s,@exec_prefix@,%{_exec_prefix},' %{SOURCE1} > $RPM_BUILD_ROOT%{_libdir}/pkgconfig/pthread-stubs.pc |
---|
| 105 | |
---|
[521] | 106 | find $RPM_BUILD_ROOT -name '*.la' -delete |
---|
| 107 | |
---|
| 108 | %clean |
---|
| 109 | rm -rf $RPM_BUILD_ROOT |
---|
| 110 | |
---|
| 111 | %post -p /sbin/ldconfig |
---|
| 112 | %postun -p /sbin/ldconfig |
---|
| 113 | |
---|
| 114 | %post -n compat32-%{name} -p /sbin/ldconfig |
---|
| 115 | %postun -n compat32-%{name} -p /sbin/ldconfig |
---|
| 116 | |
---|
| 117 | %files |
---|
| 118 | %defattr(-,root,root,-) |
---|
| 119 | %{_libdir}/*.so.* |
---|
| 120 | |
---|
| 121 | %files devel |
---|
| 122 | %defattr(-,root,root,-) |
---|
| 123 | %{_includedir}/xcb |
---|
| 124 | %{_libdir}/*.so |
---|
| 125 | %{_libdir}/pkgconfig/*.pc |
---|
| 126 | |
---|
| 127 | %files doc |
---|
| 128 | %defattr(-,root,root,-) |
---|
| 129 | %{_datadir}/doc/%{name}-%{version} |
---|
[6918] | 130 | %{_mandir}/man3/* |
---|
[521] | 131 | |
---|
| 132 | %if %{build_compat32} |
---|
| 133 | %files -n compat32-%{name} |
---|
| 134 | %defattr(-,root,root,-) |
---|
| 135 | %{_libdir}/*.so.* |
---|
| 136 | |
---|
| 137 | %files -n compat32-%{name}-devel |
---|
| 138 | %defattr(-,root,root,-) |
---|
| 139 | %{_libdir}/*.so |
---|
| 140 | %endif |
---|
| 141 | |
---|
| 142 | %changelog |
---|
[9044] | 143 | * Fri Oct 31 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 1.11-1 |
---|
| 144 | - new upstream release |
---|
| 145 | |
---|
[8064] | 146 | * Thu Dec 26 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.10-1 |
---|
| 147 | - new upstream release |
---|
| 148 | |
---|
[7707] | 149 | * Sun Jun 02 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.9.1-1 |
---|
| 150 | - new upstream release |
---|
| 151 | (including security fix for CVE-2013-2064) |
---|
| 152 | |
---|
[7123] | 153 | * Sat Nov 17 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 1.9-2 |
---|
| 154 | - add Source1: pthread-stubs.pc, remove patch10 |
---|
| 155 | |
---|
[6918] | 156 | * Mon Oct 08 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.9-1 |
---|
| 157 | - new upstream release |
---|
| 158 | |
---|
[5870] | 159 | * Sat Mar 10 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.1-1 |
---|
| 160 | - new upstream release |
---|
| 161 | - update Patch10 (libxcb-1.8.1-no-pthread-stubs.patch) |
---|
| 162 | |
---|
[5549] | 163 | * Sun Jan 29 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8-1 |
---|
| 164 | - new upstream release |
---|
| 165 | - remove Source2 |
---|
| 166 | - remove python sub package |
---|
| 167 | |
---|
[2203] | 168 | * Sun Nov 07 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.7-1 |
---|
| 169 | - new upstream release |
---|
| 170 | - update Patch10 |
---|
| 171 | |
---|
[1863] | 172 | * Tue Sep 21 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.5-3 |
---|
| 173 | - add BuildRequires: python-devel |
---|
| 174 | |
---|
[1851] | 175 | * Tue Sep 21 2010 IWAI, Masaharu <iwai@alib.jp> 1.5-2 |
---|
| 176 | - build with rpm-4.8.1-1 for pkg-config file |
---|
| 177 | |
---|
[527] | 178 | * Mon Mar 08 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 1.5-1 |
---|
| 179 | - new upstream release |
---|
| 180 | |
---|
[521] | 181 | * Tue Feb 02 2010 Shu KONNO <owa@bg.wakwak.com> 1.4-2 |
---|
| 182 | - rebuild with python-2.6 |
---|
| 183 | |
---|
| 184 | * Tue Nov 17 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.4-1 |
---|
| 185 | - new upstream release |
---|
| 186 | - add libxcb python binding (xpyb) |
---|
| 187 | |
---|
| 188 | * Sun May 03 2009 NAKAMURA Kenta <kenta@vinelinux.org> 1.2-2 |
---|
| 189 | - added compat32 package for x86_64 arch support |
---|
| 190 | |
---|
| 191 | * Wed Mar 18 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2-1 |
---|
| 192 | - new upstream release |
---|
| 193 | |
---|
| 194 | * Mon Sep 29 2008 Shu KONNO <owa@bg.wakwak.com> 1.1-2 |
---|
| 195 | - spec in utf-8 |
---|
| 196 | - added japanese summary |
---|
| 197 | |
---|
| 198 | * Sun May 18 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.1-1 |
---|
| 199 | - new versioning policy |
---|
| 200 | |
---|
| 201 | * Sun Jan 13 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.1-0vl1 |
---|
| 202 | - initial build for Vine Linux |
---|
| 203 | |
---|
| 204 | * Mon Nov 12 2007 Adam Jackson <ajax@redhat.com> 1.1-1 |
---|
| 205 | - libxcb 1.1 |
---|
| 206 | |
---|
| 207 | * Fri Aug 24 2007 Adam Jackson <ajax@redhat.com> 1.0-3 |
---|
| 208 | - libxcb-1.0-abstract-socket.patch: When connecting to the X server, prefer |
---|
| 209 | abstract-namespace unix sockets to filesystem-bound sockets. |
---|
| 210 | |
---|
| 211 | * Wed Aug 22 2007 Adam Jackson <ajax@redhat.com> - 1.0-2 |
---|
| 212 | - Rebuild for PPC toolchain bug |
---|
| 213 | |
---|
| 214 | * Fri Jun 29 2007 Adam Jackson <ajax@redhat.com> 1.0-1 |
---|
| 215 | - Initial revision. |
---|