blueman-vl.spec 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. Summary: Full featured bluetooth manager for GNOME/GTK
  2. Summary(ja): GNOME/GTK 用の高機能な Bluetooth マネージャ
  3. Name: blueman
  4. Version: 1.23
  5. Release: 1%{?_dist_release}
  6. License: GPLv2+
  7. Group: Applications/System
  8. Url: http://blueman-project.org/
  9. Source0: %{name}-%{version}.tar.gz
  10. Buildroot: %{_tmppath}/%{name}-%{version}
  11. BuildRequires: desktop-file-utils
  12. BuildRequires: perl(XML::Parser)
  13. BuildRequires: glib2-devel
  14. BuildRequires: gtk2-devel
  15. BuildRequires: GConf2-devel
  16. BuildRequires: pygtk2-devel
  17. BuildRequires: intltool
  18. BuildRequires: startup-notification-devel
  19. BuildRequires: pygobject-devel
  20. BuildRequires: notify-python
  21. BuildRequires: bluez-libs-devel >= 4.37
  22. BuildRequires: python-devel
  23. BuildRequires: python-pyrex
  24. BuildRequires: dbus-python
  25. Requires: obex-data-server
  26. Requires: notify-python
  27. Requires: pygtk2
  28. Requires: gnome-python
  29. Requires: dbus-python
  30. Requires: pygobject
  31. Requires: PolicyKit-gnome
  32. Provides: dbus-bluez-pin-helper
  33. Vendor: Project Vine
  34. Distribution: Vine Linux
  35. Packager: daisuke
  36. %description
  37. Blueman is designed to provide simple, yet effective means for
  38. controlling BlueZ API and simplifying bluetooth tasks such as:
  39. * Connecting to 3G/EDGE/GPRS via dial-up
  40. * Connecting to/Creating bluetooth networks
  41. * Connecting to input devices
  42. * Connecting to audio devices
  43. * Sending/Receiving/Browsing files via OBEX
  44. * Pairing
  45. Blueman also integrates with Network Manager 0.7, so any Dialup/Network
  46. connections will be made available (via HAL) to Network Manager.
  47. %prep
  48. %setup -q
  49. %build
  50. sed -i 's|2.7|2.6|g' configure.ac
  51. autoreconf -if
  52. %configure --disable-desktop-update --disable-icon-update --disable-schemas-install
  53. %__make %{?_smp_mflags}
  54. %install
  55. rm -rf %{buildroot}
  56. %__make install DESTDIR=${RPM_BUILD_ROOT}
  57. mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/scalable/devices
  58. cp $RPM_BUILD_ROOT%{_datadir}/blueman/icons/hicolor/scalable/devices/* \
  59. $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/scalable/devices/
  60. desktop-file-install --vendor="" \
  61. --add-category="GNOME;GTK" \
  62. --add-category="Settings;HardwareSettings" \
  63. --dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/%{name}-manager.desktop
  64. find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} \;
  65. find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \;
  66. %find_lang %{name}
  67. %clean
  68. rm -rf %{buildroot}
  69. %post
  70. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  71. gconftool-2 --makefile-install-rule \
  72. %{_sysconfdir}/gconf/schemas/blueman-manager.schemas >& /dev/null ||:
  73. update-desktop-database %{_datadir}/applications >& /dev/null || :
  74. touch --no-create %{_datadir}/icons/hicolor
  75. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  76. /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||:
  77. fi
  78. %pre
  79. if [ "$1" -gt 1 ]; then
  80. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  81. gconftool-2 --makefile-uninstall-rule \
  82. %{_sysconfdir}/gconf/schemas/blueman-manager.schemas >& /dev/null ||:
  83. fi
  84. %preun
  85. if [ "$1" -eq 0 ]; then
  86. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  87. gconftool-2 --makefile-uninstall-rule \
  88. %{_sysconfdir}/gconf/schemas/blueman-manager.schemas >& /dev/null ||:
  89. fi
  90. %postun
  91. update-desktop-database %{_datadir}/applications >& /dev/null || :
  92. touch --no-create %{_datadir}/icons/hicolor
  93. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  94. /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||:
  95. fi
  96. %files -f %{name}.lang
  97. %defattr(-,root,root)
  98. %{_sysconfdir}/dbus-1/system.d/org.%{name}*.conf
  99. %{_sysconfdir}/xdg/autostart/%{name}.desktop
  100. %{_bindir}/%{name}-*
  101. %{_libdir}/nautilus-sendto/plugins/libnstblueman.so
  102. %{_datadir}/applications/%{name}-manager.desktop
  103. %{_datadir}/%{name}/ui/*.ui
  104. %{_datadir}/%{name}/icons/hicolor/*/*s/*.png
  105. %{_datadir}/%{name}/icons/hicolor/scalable/status/*.svg
  106. %{_datadir}/%{name}/icons/hicolor/scalable/actions/*.svg
  107. %{_datadir}/icons/hicolor/scalable/devices/*.svg
  108. %{_datadir}/icons/hicolor/*/apps/*.png
  109. %{_datadir}/icons/hicolor/scalable/apps/*.svg
  110. %{_datadir}/blueman/icons/hicolor/scalable/devices/blueman-device.svg
  111. %{_datadir}/blueman/icons/hicolor/scalable/devices/blueman-serial.svg
  112. %{_datadir}/dbus-1/services/%{name}-applet.service
  113. %{_datadir}/dbus-1/system-services/org.%{name}*.service
  114. %{_datadir}/polkit-1/actions/org.blueman.policy
  115. %{_mandir}/man1/%{name}*1.*
  116. %{python_sitelib}/*
  117. %if %_lib == lib64
  118. %{python_sitearch}/*
  119. %endif
  120. %{_libexecdir}/%{name}-*
  121. %changelog
  122. * Tue Jan 03 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.23-1
  123. - new upstream release
  124. * Mon Apr 18 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.21-4
  125. - rebuild with rpm-4.8.1
  126. * Sun Feb 07 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.21-3
  127. - add BuildRequires: gtk2-devel
  128. * Wed Feb 03 2010 Shu KONNO <owa@bg.wakwak.com> 1.21-2
  129. - rebuilt with python-2.6.4
  130. * Mon Jan 04 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 1.21-1
  131. - new upstream release
  132. * Mon Jan 04 2010 Shu KONNO <owa@bg.wakwak.com> 1.10-2
  133. - added _blueman to %%files (if lib64)
  134. * Tue May 26 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.10-1
  135. - initial build for Vine Linux
  136. * Fri Mar 27 2009 Emmanuel Andry <eandry@mandriva.org> 1.02-4mdv2009.1
  137. + Revision: 361574
  138. - don't explicitely requires notification-daemon
  139. * Mon Mar 02 2009 Emmanuel Andry <eandry@mandriva.org> 1.02-3mdv2009.1
  140. + Revision: 347587
  141. - requires python-blueman
  142. * Mon Mar 02 2009 Emmanuel Andry <eandry@mandriva.org> 1.02-2mdv2009.1
  143. + Revision: 347346
  144. - fix files
  145. - BR python-dbus
  146. - fix BR
  147. - BR python-devel
  148. - import blueman