xcb-util-vl.spec 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  2. Name: xcb-util
  3. Version: 0.3.6
  4. Release: 3%{?_dist_release}
  5. Summary: Convenience libraries sitting on top of libxcb
  6. Group: System Environment/Libraries
  7. License: MIT
  8. URL: http://xcb.freedesktop.org
  9. Source0: http://xcb.freedesktop.org/dist/%{name}-%{version}.tar.bz2
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  11. BuildRequires: gperf, pkgconfig, libxcb-devel >= 1.4, m4, xorg-x11-proto-devel
  12. BuildRequires: chrpath
  13. %description
  14. The xcb-util module provides a number of libraries which sit on top of
  15. libxcb, the core X protocol library, and some of the extension
  16. libraries. These experimental libraries provide convenience functions
  17. and interfaces which make the raw X protocol more usable. Some of the
  18. libraries also provide client-side code which is not strictly part of
  19. the X protocol but which have traditionally been provided by Xlib.
  20. %package devel
  21. Summary: Development and header files for xcb-util
  22. Group: System Environment/Libraries
  23. Requires: %{name} = %{version}-%{release}, pkgconfig
  24. %description devel
  25. Development files for xcb-util.
  26. # compat32
  27. %package -n compat32-%{name}
  28. Summary: Convenience libraries sitting on top of libxcb
  29. Group: System Environment/Libraries
  30. Requires: %{name} = %{version}-%{release}
  31. %description -n compat32-%{name}
  32. The xcb-util module provides a number of libraries which sit on top of
  33. libxcb, the core X protocol library, and some of the extension
  34. libraries. These experimental libraries provide convenience functions
  35. and interfaces which make the raw X protocol more usable. Some of the
  36. libraries also provide client-side code which is not strictly part of
  37. the X protocol but which have traditionally been provided by Xlib.
  38. %package -n compat32-%{name}-devel
  39. Summary: Development and header files for xcb-util
  40. Group: System Environment/Libraries
  41. Requires: compat32-%{name} = %{version}-%{release}
  42. Requires: %{name}-devel = %{version}-%{release}
  43. %description -n compat32-%{name}-devel
  44. Development files for xcb-util.
  45. %prep
  46. %setup -q
  47. %build
  48. %configure --with-pic --disable-static
  49. make %{?_smp_mflags}
  50. %check
  51. make check
  52. %install
  53. rm -rf %{buildroot}
  54. make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
  55. # remove RPATH
  56. chrpath --delete $RPM_BUILD_ROOT%{_prefix}/%{_lib}/libxcb-*.so.*
  57. rm %{buildroot}%{_libdir}/*.la
  58. %post -p /sbin/ldconfig
  59. %postun -p /sbin/ldconfig
  60. %post -n compat32-%{name} -p /sbin/ldconfig
  61. %postun -n compat32-%{name} -p /sbin/ldconfig
  62. %clean
  63. rm -rf %{buildroot}
  64. %files
  65. %defattr(-,root,root,-)
  66. %doc README
  67. %{_libdir}/libxcb-atom.so.1*
  68. %{_libdir}/libxcb-aux.so.0*
  69. %{_libdir}/libxcb-event.so.1*
  70. %{_libdir}/libxcb-icccm.so.1*
  71. %{_libdir}/libxcb-image.so.0*
  72. %{_libdir}/libxcb-keysyms.so.1*
  73. %{_libdir}/libxcb-property.so.1*
  74. %{_libdir}/libxcb-render-util.so.0*
  75. %{_libdir}/libxcb-reply.so.1*
  76. %files devel
  77. %defattr(-,root,root,-)
  78. %{_libdir}/pkgconfig/*.pc
  79. %{_libdir}/*.so
  80. %{_includedir}/xcb/*.h
  81. # compat32
  82. %if %{build_compat32}
  83. %files -n compat32-%{name}
  84. %defattr(-,root,root,-)
  85. %{_libdir}/libxcb-atom.so.1*
  86. %{_libdir}/libxcb-aux.so.0*
  87. %{_libdir}/libxcb-event.so.1*
  88. %{_libdir}/libxcb-icccm.so.1*
  89. %{_libdir}/libxcb-image.so.0*
  90. %{_libdir}/libxcb-keysyms.so.1*
  91. %{_libdir}/libxcb-property.so.1*
  92. %{_libdir}/libxcb-render-util.so.0*
  93. %{_libdir}/libxcb-reply.so.1*
  94. %files -n compat32-%{name}-devel
  95. %defattr(-,root,root,-)
  96. %{_libdir}/pkgconfig/*.pc
  97. %{_libdir}/*.so
  98. %endif
  99. %changelog
  100. * Wed Dec 15 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.3.6-3
  101. - create compat32-xcb-util sub package
  102. * Sun Sep 26 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.3.6-2
  103. - rebuild with rpm-4.8.1 for pkg-config file
  104. * Mon Mar 08 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 0.3.6-1
  105. - initial build for Vine Linux
  106. * Fri Aug 28 2009 Michal Nowak <mnowak@redhat.com> - 0.3.6-1
  107. - 0.3.6
  108. * Mon Jul 27 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.5-2
  109. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  110. * Mon Jul 13 2009 Adam Jackson <ajax@redhat.com> 0.3.5-1
  111. - xcb-util 0.3.5
  112. * Mon Jul 06 2009 Adam Jackson <ajax@redhat.com> 0.3.4-2
  113. - Explicitly list DSOs so we're notified of version changes.
  114. * Sat Jun 13 2009 Michal Nowak <mnowak@redhat.com> - 0.3.4-1
  115. - 0.3.4; needed for Awesome 3.3
  116. * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.3-2
  117. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  118. * Fri Feb 20 2009 Michal Nowak <mnowak@redhat.com> - 0.3.3-1
  119. - 0.3.3
  120. - removed patches already in git (and 0.3.3)
  121. * Fri Dec 19 2008 Michal Nowak <mnowak@redhat.com> - 0.3.2-2
  122. - hack the sed lines after %%configure out and hack chrpath in
  123. - make check is running again
  124. * Thu Dec 18 2008 Michal Nowak <mnowak@redhat.com> - 0.3.2-1
  125. - 0.3.2
  126. - remove rpath (x86-64)
  127. - xcb_keysyms: remove xcb_lookup_t
  128. - Revert "keysyms: use xcb_key_lookup_t type for col paramter"
  129. - temporary disabled %%check due to RPATH regression
  130. * Thu Dec 4 2008 Michal Nowak <mnowak@redhat.com> - 0.3.1-2
  131. - patch for exit() in aux library (Peter Harris)
  132. - slight changes in spec file
  133. * Mon Nov 24 2008 Michal Nowak <mnowak@redhat.com> - 0.3.1-1
  134. - 0.3.1
  135. - fix license issue (Jonathan Landis)
  136. * Fri Sep 19 2008 Michal Nowak <mnowak@redhat.com> - 0.3.0-1
  137. - bump to 0.3.0
  138. * Sun Aug 17 2008 Michal Nowak <mnowak@redhat.com> - 0.2.1-2
  139. - new build deps: gperf, pkgconfig, libxcb, m4, xorg-x11-proto-devel
  140. - not installing *.a files anymore
  141. - configure with --with-pic
  142. * Mon Aug 04 2008 Michal Nowak <mnowak@redhat.com> - 0.2.1-1
  143. - initial package