blueman-vl.spec 5.7 KB

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