libbtctl-vl.spec 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260
  1. %ifarch %ix86 x86_64 ppc ia64 armv4l sparc s390 s390x
  2. # defined to zero, because beehive doesn't do macros for BuildRequires
  3. %define with_mono 0
  4. %else
  5. %define with_mono 0
  6. %endif
  7. ExcludeArch: s390 s390x
  8. Summary: Library for the GNOME Bluetooth Subsystem
  9. Summary(ja): GNOME Bluetooth サブシステム用ライブラリ
  10. Name: libbtctl
  11. Version: 0.10.0
  12. Release: 6%{?_dist_release}
  13. License: GPL+
  14. Group: System Environment/Libraries
  15. URL: http://live.gnome.org/GnomeBluetooth
  16. Source: http://ftp.gnome.org/pub/gnome/sources/libbtctl/0.10/%{name}-%{version}.tar.bz2
  17. #----------------------------------------------------------------------------
  18. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  19. #----------------------------------------------------------------------------
  20. BuildRequires: autoconf >= 0:2.57, bluez-libs-devel, glib2-devel, gtk-doc
  21. BuildRequires: openobex-devel >= 0:1.1, pygtk2-devel, gtk2-devel
  22. BuildRequires: python, python-devel, gettext, automake, libtool, intltool
  23. %if %{with_mono}
  24. %{expand BuildRequires: mono-devel gtk-sharp-gapi gtk-sharp}
  25. %endif
  26. Patch1: libbtctl-bluez4.patch
  27. Patch2: libbtctl-0.4.1-pydir.patch
  28. ## Patch4: libbtctl-0.6.0-print.patch
  29. #----------------------------------------------------------------------------
  30. %description
  31. Library for the GNOME Bluetooth Subsystem
  32. %description -l ja
  33. GNOME Bluetooth サブシステム用ライブラリ
  34. #----------------------------------------------------------------------------
  35. %package devel
  36. Summary: Development files for libbtctl.
  37. Summary(ja): libbtctl 開発のためのDEVELパッケージ
  38. Group: Development/Libraries
  39. Requires: %{name} = %{version}-%{release}
  40. Requires: glib2-devel
  41. %description devel
  42. This package contains the files needed for developing applications,
  43. which use libbtctl.
  44. %description devel -l ja
  45. libbtctl を使用するアプリケーション開発のために必要な
  46. ヘッダー類のパッケージ
  47. #----------------------------------------------------------------------------
  48. %prep
  49. %setup -q
  50. %patch1 -p0 -b .bluez4
  51. %patch2 -p1 -b .pydir
  52. ## %patch4 -p1 -b .print
  53. aclocal
  54. automake -a
  55. intltoolize -c -f
  56. autoconf
  57. %build
  58. %configure \
  59. %if %{with_mono}
  60. ;
  61. %else
  62. --disable-mono
  63. %endif
  64. # %%{?_smp_mflags} does not work
  65. make
  66. #----------------------------------------------------------------------------
  67. %install
  68. rm -rf $RPM_BUILD_ROOT
  69. make DESTDIR=$RPM_BUILD_ROOT install
  70. # we do not want .la files
  71. rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
  72. rm -f $RPM_BUILD_ROOT/%{_libdir}/python?.?/site-packages/*.a
  73. rm -f $RPM_BUILD_ROOT/%{_libdir}/python?.?/site-packages/*.la
  74. %find_lang %name
  75. %clean
  76. rm -rf $RPM_BUILD_ROOT
  77. %post -p /sbin/ldconfig
  78. %postun -p /sbin/ldconfig
  79. #----------------------------------------------------------------------------
  80. %files -f %{name}.lang
  81. %defattr(-, root, root)
  82. %doc AUTHORS ChangeLog NEWS README
  83. %{_libdir}/lib*.so.*
  84. %{_libdir}/python?.?/site-packages/*btctl*
  85. %if %{with_mono}
  86. %{_libdir}/mono/gac/btctl/*/btctl.dll
  87. %{_libdir}/mono/libbtctl/btctl.dll
  88. %{_datadir}/gapi/btctl-api.xml
  89. %endif
  90. %files devel
  91. %defattr(-, root, root)
  92. %{_libdir}/lib*.so
  93. %{_libdir}/lib*.a
  94. %{_libdir}/pkgconfig/libbtctl.pc
  95. %{_includedir}/libbtctl
  96. %{_datadir}/gtk-doc/html/libbtctl
  97. %if %{with_mono}
  98. %{_libdir}/pkgconfig/libbtctl-sharp.pc
  99. %endif
  100. #----------------------------------------------------------------------------
  101. # Maintainers: babasaki@mindgear.org
  102. #
  103. #----------------------------------------------------------------------------
  104. %changelog
  105. * Fri Oct 24 2008 Seiichirou Babasaki 0.10.0-6
  106. - Update to 0.10.0 (VineSeed)
  107. - added "# Maintainers: " comments.
  108. - changed UTF-8 encode at libbtctl.vs.spec
  109. - FedoraCore - LOGS
  110. -- 0.10.0-5
  111. - Rebuild with patch for BlueZ 4.x
  112. -- 0.10.0-3
  113. -- made doc subpackage to avoid conflict on multiarch env.
  114. -- Resolves: #341931
  115. -- 0.10.0-2
  116. -- gcc43 rebuild
  117. -- 0.10.0-1
  118. -- Update to 0.10.0
  119. * Wed Jan 16 2008 Seiichirou Babasaki 0.9.0-4
  120. - Import bluez-libbtctl - Packager: Babasaki
  121. - fixed wrong Source URL
  122. - Updated specfile
  123. #----------------------------------------------------------------------------
  124. * Tue Sep 18 2007 - Ondrej Vasik <ovasik@redhat.com> - 0.9.0-3
  125. - fixed wrong Source URL
  126. * Thu Aug 23 2007 - Ondrej Vasik <ovasik@redhat.com> - 0.9.0-2
  127. - rebuilt for F8
  128. - changed License tag to GPL+
  129. * Thu Jul 12 2007 - Bastien Nocera <bnocera@redhat.com> - 0.9.0-1
  130. - Update to 0.9.0
  131. - Remove out-dated patches
  132. * Wed Feb 28 2007 Harald Hoyer <harald@redhat.com> - 0.8.2-3%{?dist}
  133. - specfile review
  134. - portet crash patch to 0.8.2
  135. * Thu Dec 7 2006 Jeremy Katz <katzj@redhat.com> - 0.8.2-2%{?dist}
  136. - rebuild for python 2.5
  137. * Mon Nov 13 2006 Harald Hoyer <harald@redhat.com> - 0.8.2-1%{?dist}
  138. - version 0.8.2
  139. - Resolves: rhbz#215230
  140. * Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0.6.0-9.1
  141. - rebuild
  142. * Wed Jun 14 2006 Harald Hoyer <harald@redhat.com> - 0.6.0-9
  143. - rebuilt for openobex
  144. * Sun Jun 11 2006 Jesse Keating <jkeating@redhat.com> - 0.6.0-8
  145. - Bump for new libbluetooth
  146. * Wed Jun 7 2006 Harald Hoyer <harald@redhat.com> - 0.6.0-7
  147. - printf format corrected
  148. - more build requires
  149. * Wed May 17 2006 Harald Hoyer <harald@redhat.com> 0.6.0-6
  150. - added more build requirements (bug #191981)
  151. * Thu Feb 23 2006 Matthias Clasen <mclasen@redhat.com> 0.6.0-5
  152. - try a fix for (#179413)
  153. * Thu Feb 23 2006 Harald Hoyer <harald@redhat.com> 0.6.0-2
  154. - rebuild
  155. * Thu Feb 16 2006 Harald Hoyer <harald@redhat.com> 0.6.0-1
  156. - version 0.6.0
  157. * Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 0.5.0-1.2.1
  158. - bump again for double-long bug on ppc(64)
  159. * Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 0.5.0-1.2
  160. - rebuilt for new gcc4.1 snapshot and glibc changes
  161. * Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
  162. - rebuilt
  163. * Wed Sep 28 2005 Harald Hoyer <harald@redhat.com> 0.5.0-1
  164. - new version 0.5.0
  165. * Tue Jul 19 2005 Harald Hoyer <harald@redhat.com> 0.4.1-8
  166. - added gtk2-devel to BuildRequires
  167. * Thu Apr 21 2005 Harald Hoyer <harald@redhat.com> 0.4.1-7
  168. - rebuild with requires python-abi
  169. * Wed Mar 30 2005 Warren Togami <wtogami@redhat.com> 0.4.1-6
  170. - devel req glib2-devel for pkgconfig (#152497)
  171. * Wed Mar 02 2005 Harald Hoyer <harald@redhat.com>
  172. - rebuilt
  173. * Wed Feb 09 2005 Harald Hoyer <harald@redhat.com>
  174. - rebuilt
  175. * Fri Oct 08 2004 Harald Hoyer <harald@redhat.de> 0.4.1-3
  176. - buildrequires pygtk2-devel
  177. * Fri Sep 24 2004 Harald Hoyer <harald@redhat.de> 0.4.1-2
  178. - split out devel package
  179. - require openobex >= 1.0.1
  180. - patch for lib64 python path
  181. * Thu Jul 22 2004 Harald Hoyer <harald@redhat.de> 0.4.1-1
  182. - version 0.4.1
  183. * Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
  184. - rebuilt
  185. * Tue May 25 2004 Harald Hoyer <harald@redhat.de> 0.3-6
  186. - buildrequire bluez-libs-devel and glib2-devel
  187. * Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
  188. - rebuilt
  189. * Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
  190. - rebuilt
  191. * Tue Aug 5 2003 Harald Hoyer <harald@redhat.de> 0.3-4
  192. - make shared library
  193. * Tue Aug 5 2003 Harald Hoyer <harald@redhat.de> 0.3-3
  194. - BuildRequires bluez-sdp
  195. * Tue Jun 24 2003 Harald Hoyer <harald@redhat.de> 0.3-2
  196. - exclude arch s390
  197. * Wed Jun 5 2003 Harald Hoyer <harald@redhat.de> 0.3-1
  198. - initial RPM