libxcb-vl.spec 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  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.7
  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. Source2: http://xcb.freedesktop.org/dist/xpyb-%{xpyb_version}.tar.bz2
  13. Patch10: libxcb-1.7-no-pthread-stubs.patch
  14. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  15. BuildRequires: autoconf automake libtool pkgconfig
  16. #BuildRequires: doxygen
  17. #BuildRequires: graphviz
  18. BuildRequires: libXau-devel
  19. BuildRequires: libxslt
  20. BuildRequires: xcb-proto >= 1.6
  21. BuildRequires: xorg-x11-proto-devel
  22. BuildRequires: xorg-x11-util-macros
  23. BuildRequires: python-devel
  24. %description
  25. The X protocol C-language Binding (XCB) is a replacement for Xlib featuring a
  26. small footprint, latency hiding, direct access to the protocol, improved
  27. threading support, and extensibility.
  28. %package devel
  29. Summary: Development files for %{name}
  30. Group: Development/Libraries
  31. Requires: %{name} = %{version}-%{release}
  32. Requires: pkgconfig
  33. %description devel
  34. The %{name}-devel package contains libraries and header files for
  35. developing applications that use %{name}.
  36. %package doc
  37. Summary: Documentation for %{name}
  38. Group: Documentation
  39. %description doc
  40. The %{name}-doc package contains documentation for the %{name} library.
  41. %package python
  42. Summary: Python bindings for %{name}
  43. Group: Development/Libraries
  44. Provides: xpyb
  45. %description python
  46. Python bindings for %{name}.
  47. %package -n compat32-%{name}
  48. Summary: A C binding to the X11 protocol
  49. Summary(ja): X11 プロトコルの C による実装
  50. Group: System Environment/Libraries
  51. %description -n compat32-%{name}
  52. The X protocol C-language Binding (XCB) is a replacement for Xlib featuring a
  53. small footprint, latency hiding, direct access to the protocol, improved
  54. threading support, and extensibility.
  55. %package -n compat32-%{name}-devel
  56. Summary: Development files for %{name}
  57. Group: Development/Libraries
  58. Requires: compat32-%{name} = %{version}-%{release}
  59. Requires: %{name}-devel = %{version}-%{release}
  60. %description -n compat32-%{name}-devel
  61. The %{name}-devel package contains libraries and header files for
  62. developing applications that use %{name}.
  63. %prep
  64. %setup -q -b2
  65. %patch10 -p1
  66. pushd ../xpyb-%{xpyb_version}
  67. # XXX fix me upstream please
  68. sed -i 's@$(pythondir)@$(pyexecdir)@' src/Makefile.am
  69. popd
  70. %build
  71. autoreconf -v --install
  72. %configure --disable-static --docdir=%{_datadir}/doc/%{name}-%{version} --disable-selinux
  73. make %{?_smp_mflags}
  74. pushd ../xpyb-%{xpyb_version}
  75. autoreconf -v --install
  76. %configure
  77. make %{?_smp_mflags}
  78. popd
  79. %install
  80. rm -rf $RPM_BUILD_ROOT
  81. make install DESTDIR=$RPM_BUILD_ROOT
  82. find $RPM_BUILD_ROOT -name '*.la' | xargs rm -f
  83. install -m 644 COPYING NEWS README $RPM_BUILD_ROOT/%{_datadir}/doc/%{name}-%{version}
  84. pushd ../xpyb-%{xpyb_version}
  85. make install DESTDIR=$RPM_BUILD_ROOT
  86. popd
  87. find $RPM_BUILD_ROOT -name '*.la' -delete
  88. # remove xml and txt file
  89. rm -rf $RPM_BUILD_ROOT%{_docdir}/xpyb
  90. %clean
  91. rm -rf $RPM_BUILD_ROOT
  92. %post -p /sbin/ldconfig
  93. %postun -p /sbin/ldconfig
  94. %post -n compat32-%{name} -p /sbin/ldconfig
  95. %postun -n compat32-%{name} -p /sbin/ldconfig
  96. %files
  97. %defattr(-,root,root,-)
  98. %{_libdir}/*.so.*
  99. %files devel
  100. %defattr(-,root,root,-)
  101. %{_includedir}/xcb
  102. %{_libdir}/*.so
  103. %{_libdir}/pkgconfig/*.pc
  104. %files doc
  105. %defattr(-,root,root,-)
  106. %{_datadir}/doc/%{name}-%{version}
  107. %files python
  108. %defattr(-,root,root,-)
  109. %{python_sitearch}/xcb
  110. %if %{build_compat32}
  111. %files -n compat32-%{name}
  112. %defattr(-,root,root,-)
  113. %{_libdir}/*.so.*
  114. %files -n compat32-%{name}-devel
  115. %defattr(-,root,root,-)
  116. %{_libdir}/*.so
  117. %{_libdir}/pkgconfig/*.pc
  118. %endif
  119. %changelog
  120. * Sun Nov 07 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.7-1
  121. - new upstream release
  122. - update Patch10
  123. * Tue Sep 21 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.5-3
  124. - add BuildRequires: python-devel
  125. * Tue Sep 21 2010 IWAI, Masaharu <iwai@alib.jp> 1.5-2
  126. - build with rpm-4.8.1-1 for pkg-config file
  127. * Mon Mar 08 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 1.5-1
  128. - new upstream release
  129. * Tue Feb 02 2010 Shu KONNO <owa@bg.wakwak.com> 1.4-2
  130. - rebuild with python-2.6
  131. * Tue Nov 17 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.4-1
  132. - new upstream release
  133. - add libxcb python binding (xpyb)
  134. * Sun May 03 2009 NAKAMURA Kenta <kenta@vinelinux.org> 1.2-2
  135. - added compat32 package for x86_64 arch support
  136. * Wed Mar 18 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2-1
  137. - new upstream release
  138. * Mon Sep 29 2008 Shu KONNO <owa@bg.wakwak.com> 1.1-2
  139. - spec in utf-8
  140. - added japanese summary
  141. * Sun May 18 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.1-1
  142. - new versioning policy
  143. * Sun Jan 13 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.1-0vl1
  144. - initial build for Vine Linux
  145. * Mon Nov 12 2007 Adam Jackson <ajax@redhat.com> 1.1-1
  146. - libxcb 1.1
  147. * Fri Aug 24 2007 Adam Jackson <ajax@redhat.com> 1.0-3
  148. - libxcb-1.0-abstract-socket.patch: When connecting to the X server, prefer
  149. abstract-namespace unix sockets to filesystem-bound sockets.
  150. * Wed Aug 22 2007 Adam Jackson <ajax@redhat.com> - 1.0-2
  151. - Rebuild for PPC toolchain bug
  152. * Fri Jun 29 2007 Adam Jackson <ajax@redhat.com> 1.0-1
  153. - Initial revision.