libxcb-vl.spec 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  2. %define xpyb_version 1.1
  3. Summary: A C binding to the X11 protocol
  4. Summary(ja): X11 プロトコルの C による実装
  5. Name: libxcb
  6. Version: 1.5
  7. Release: 3%{?_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.4-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. %clean
  89. rm -rf $RPM_BUILD_ROOT
  90. %post -p /sbin/ldconfig
  91. %postun -p /sbin/ldconfig
  92. %post -n compat32-%{name} -p /sbin/ldconfig
  93. %postun -n compat32-%{name} -p /sbin/ldconfig
  94. %files
  95. %defattr(-,root,root,-)
  96. %{_libdir}/*.so.*
  97. %files devel
  98. %defattr(-,root,root,-)
  99. %{_includedir}/xcb
  100. %{_libdir}/*.so
  101. %{_libdir}/pkgconfig/*.pc
  102. %files doc
  103. %defattr(-,root,root,-)
  104. %{_datadir}/doc/%{name}-%{version}
  105. %files python
  106. %defattr(-,root,root,-)
  107. %{python_sitearch}/xcb
  108. %if %{build_compat32}
  109. %files -n compat32-%{name}
  110. %defattr(-,root,root,-)
  111. %{_libdir}/*.so.*
  112. %files -n compat32-%{name}-devel
  113. %defattr(-,root,root,-)
  114. %{_libdir}/*.so
  115. %{_libdir}/pkgconfig/*.pc
  116. %endif
  117. %changelog
  118. * Tue Sep 21 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.5-3
  119. - add BuildRequires: python-devel
  120. * Tue Sep 21 2010 IWAI, Masaharu <iwai@alib.jp> 1.5-2
  121. - build with rpm-4.8.1-1 for pkg-config file
  122. * Mon Mar 08 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 1.5-1
  123. - new upstream release
  124. * Tue Feb 02 2010 Shu KONNO <owa@bg.wakwak.com> 1.4-2
  125. - rebuild with python-2.6
  126. * Tue Nov 17 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.4-1
  127. - new upstream release
  128. - add libxcb python binding (xpyb)
  129. * Sun May 03 2009 NAKAMURA Kenta <kenta@vinelinux.org> 1.2-2
  130. - added compat32 package for x86_64 arch support
  131. * Wed Mar 18 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2-1
  132. - new upstream release
  133. * Mon Sep 29 2008 Shu KONNO <owa@bg.wakwak.com> 1.1-2
  134. - spec in utf-8
  135. - added japanese summary
  136. * Sun May 18 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.1-1
  137. - new versioning policy
  138. * Sun Jan 13 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.1-0vl1
  139. - initial build for Vine Linux
  140. * Mon Nov 12 2007 Adam Jackson <ajax@redhat.com> 1.1-1
  141. - libxcb 1.1
  142. * Fri Aug 24 2007 Adam Jackson <ajax@redhat.com> 1.0-3
  143. - libxcb-1.0-abstract-socket.patch: When connecting to the X server, prefer
  144. abstract-namespace unix sockets to filesystem-bound sockets.
  145. * Wed Aug 22 2007 Adam Jackson <ajax@redhat.com> - 1.0-2
  146. - Rebuild for PPC toolchain bug
  147. * Fri Jun 29 2007 Adam Jackson <ajax@redhat.com> 1.0-1
  148. - Initial revision.