libxcb-vl.spec 4.9 KB

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