libxcb-vl.spec 6.3 KB

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