blueman-vl.spec 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. %bcond_with systemd
  2. Summary: Full featured bluetooth manager for GNOME/GTK
  3. Summary(ja): GNOME/GTK 用の高機能な Bluetooth マネージャ
  4. Name: blueman
  5. Version: 2.1.4
  6. Release: 1%{?_dist_release}%{?with_systemd:.systemd}
  7. Group: system
  8. Vendor: Project Vine
  9. Distribution: Vine Linux
  10. Packager: daisuke
  11. License: GPLv2+
  12. URL: https://github.com/blueman-project/blueman
  13. Source0: https://github.com/blueman-project/blueman/releases/download/%{version}/%{name}-%{version}.tar.xz
  14. Buildroot: %{_tmppath}/%{name}-%{version}
  15. BuildRequires: bluez-libs-devel >= 4.37
  16. BuildRequires: desktop-file-utils
  17. BuildRequires: gdk-pixbuf2-devel
  18. BuildRequires: glib2-devel
  19. BuildRequires: gtk3-devel
  20. BuildRequires: intltool
  21. BuildRequires: libappindicator-devel
  22. BuildRequires: NetworkManager-libnm-devel
  23. BuildRequires: polkit-devel
  24. BuildRequires: pygobject3-devel
  25. BuildRequires: python3-Cython
  26. BuildRequires: python3-dbus
  27. BuildRequires: python3-devel
  28. BuildRequires: python3-pycairo-devel
  29. Requires: bluez
  30. Requires: obex-data-server
  31. Requires: python3-dbus
  32. Requires: python3-pygobject
  33. Requires: polkit
  34. Provides: dbus-bluez-pin-helper
  35. Obsoletes: bluez-gnome < 1.9
  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. %debug_package
  48. %prep
  49. %setup -q
  50. sed -e 's|/usr/sbin/bluetoothd|%{_libexecdir}/bluetooth/bluetoothd|g' -i apps/blueman-report.in
  51. %build
  52. export PYTHON=%{_bindir}/python3
  53. # Override the "_configure" macro - the name of the script
  54. # in this repo is ./autogen.sh, not ./configure
  55. %global _configure ./autogen.sh
  56. %configure \
  57. --disable-static \
  58. --enable-thunar-sendto=no \
  59. --disable-schemas-compile
  60. %make_build
  61. %install
  62. rm -rf %{buildroot}
  63. %{make_install}
  64. find %{buildroot} -name '*.la' -exec rm -f {} ';'
  65. rm -rf %{buildroot}%{_datadir}/doc/blueman/
  66. %find_lang blueman
  67. # we need to own this, not only because of SELinux
  68. mkdir -p %{buildroot}/var/lib/blueman
  69. touch %{buildroot}/var/lib/blueman/network.state
  70. %if !%{with systemd}
  71. rm -rf %{buildroot}/usr/lib/systemd
  72. %endif
  73. %clean
  74. rm -rf %{buildroot}
  75. %if %{with systemd}
  76. %post
  77. %systemd_post blueman-mechanism.service
  78. %systemd_user_post blueman-applet.service
  79. %postun
  80. %systemd_postun_with_restart blueman-mechanism.service
  81. %preun
  82. %systemd_preun blueman-mechanism.service
  83. %systemd_user_preun blueman-applet.service
  84. %endif
  85. %files -f %{name}.lang
  86. %license COPYING
  87. %doc CHANGELOG.md FAQ README.md
  88. %defattr(-,root,root)
  89. %{_bindir}/*
  90. %{_libexecdir}/%{name}-*
  91. %config(noreplace) %{_sysconfdir}/dbus-1/system.d/org.%{name}*.conf
  92. %{_sysconfdir}/xdg/autostart/%{name}.desktop
  93. %{_datadir}/applications/%{name}-*.desktop
  94. %{_datadir}/icons/hicolor/*/*/*
  95. %{_datadir}/pixmaps/%{name}
  96. %{_datadir}/%{name}
  97. %{_datadir}/dbus-1/services/*.service
  98. %{_datadir}/dbus-1/system-services/*.service
  99. %{_datadir}/glib-2.0/schemas/*
  100. %{_datadir}/polkit-1/actions/org.%{name}.policy
  101. %{_datadir}/polkit-1/rules.d/%{name}.rules
  102. %{_mandir}/man1/%{name}*1.*
  103. %{python3_sitelib}/*
  104. %if "%_lib" == "lib64"
  105. %{python3_sitearch}/*
  106. %endif
  107. %dir /var/lib/blueman
  108. %ghost %attr(0644,root,root) /var/lib/blueman/network.state
  109. %if %{with systemd}
  110. %{_unitdir}/blueman-mechanism.service
  111. %{_userunitdir}/blueman-applet.service
  112. %endif
  113. %changelog
  114. * Tue Mar 09 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.1.4-1
  115. - new upstream release.
  116. - dropped scriptlets.
  117. - added systemd support (disabled as default).
  118. * Wed Jun 15 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.0.4-1
  119. - new upstream release
  120. * Tue Jan 26 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.0.3-1
  121. - new upstream release
  122. (including security fix for CVE-2015-8612)
  123. * Sun Nov 01 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.0.1-2
  124. - rebuild with bluez-5.36
  125. * Sat Oct 10 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.0.1-1
  126. - new upstream release
  127. * Sun Sep 06 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.0-2
  128. - remove Requires: polkit-gnome, gnome-python
  129. - add Requires: polkit
  130. * Sun Jul 05 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.0-1
  131. - update to 2.0
  132. - add BuildRequires: polkit-devel, pygobject3-devel, Cython
  133. - remove BuildRequires: pygobject-devel
  134. * Sat Jan 04 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.23-4
  135. - rebuild with VineSeed environment
  136. * Sat Oct 06 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.23-3
  137. - change Requires: polkit-gnome instead of PolicyKit-gnome
  138. * Sun Feb 19 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.23-2
  139. - rebuild with python-2.7.2
  140. * Tue Jan 03 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.23-1
  141. - new upstream release
  142. * Mon Apr 18 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.21-4
  143. - rebuild with rpm-4.8.1
  144. * Sun Feb 07 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.21-3
  145. - add BuildRequires: gtk2-devel
  146. * Wed Feb 03 2010 Shu KONNO <owa@bg.wakwak.com> 1.21-2
  147. - rebuilt with python-2.6.4
  148. * Mon Jan 04 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 1.21-1
  149. - new upstream release
  150. * Mon Jan 04 2010 Shu KONNO <owa@bg.wakwak.com> 1.10-2
  151. - added _blueman to %%files (if lib64)
  152. * Tue May 26 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.10-1
  153. - initial build for Vine Linux
  154. * Fri Mar 27 2009 Emmanuel Andry <eandry@mandriva.org> 1.02-4mdv2009.1
  155. + Revision: 361574
  156. - don't explicitely requires notification-daemon
  157. * Mon Mar 02 2009 Emmanuel Andry <eandry@mandriva.org> 1.02-3mdv2009.1
  158. + Revision: 347587
  159. - requires python-blueman
  160. * Mon Mar 02 2009 Emmanuel Andry <eandry@mandriva.org> 1.02-2mdv2009.1
  161. + Revision: 347346
  162. - fix files
  163. - BR python-dbus
  164. - fix BR
  165. - BR python-devel
  166. - import blueman