+# TODO locale file
Summary: Bluetooth PIN manager for GNOME
Summary(pl.UTF-8): Zarządca kodów PIN Bluetootha dla GNOME
Name: bluez-gnome
-Version: 0.9
+Version: 0.25
Release: 1
License: GPL v2+
Group: X11/Applications
#Source0Download: http://www.bluez.org/download.html
Source0: http://bluez.sourceforge.net/download/%{name}-%{version}.tar.gz
-# Source0-md5: 1a6efed67cb0165e76582d3452b4148a
+# Source0-md5: 4acb0c83b351e4f36e88c6d775f15837
URL: http://www.bluez.org/
BuildRequires: GConf2-devel >= 2.6
BuildRequires: autoconf >= 2.50
BuildRequires: hal-devel >= 0.5.8
BuildRequires: libnotify-devel >= 0.3.2
BuildRequires: pkgconfig
-BuildRequires: rpmbuild(macros) >= 1.198
+BuildRequires: rpmbuild(macros) >= 1.311
Requires(post,preun): GConf2 >= 2.6
+Requires(post,postun): hicolor-icon-theme
+Requires(post,postun): shared-mime-info
Requires: dbus-glib >= 0.60
Requires: gtk+2 >= 2:2.10.0
+Suggests: gnome-vfs-obexftp
Obsoletes: bluez-pin
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%setup -q
%build
+%{__intltoolize}
%{__aclocal}
%{__automake}
%{__autoheader}
%{__autoconf}
-%configure
+%configure \
+ --disable-desktop-update \
+ --disable-mime-update
%{__make}
%install
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT \
- autostartdir=%{_datadir}/gnome/autostart
+ autostartdir=%{_sysconfdir}/xdg/autostart
%find_lang bluetooth-manager
%post
%gconf_schema_install bluetooth-manager.schemas
+%update_mime_database
+%update_icon_cache hicolor
%preun
%gconf_schema_uninstall bluetooth-manager.schemas
+%postun
+%update_mime_database
+%update_icon_cache hicolor
+
%files -f bluetooth-manager.lang
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog README
+%attr(755,root,root) %{_bindir}/bluetooth-analyzer
%attr(755,root,root) %{_bindir}/bluetooth-applet
%attr(755,root,root) %{_bindir}/bluetooth-properties
-%{_datadir}/gnome/autostart/bluetooth-applet.desktop
+%attr(755,root,root) %{_bindir}/bluetooth-sendto
+%{_sysconfdir}/xdg/autostart/bluetooth-applet.desktop
%{_desktopdir}/bluetooth-properties.desktop
%{_sysconfdir}/gconf/schemas/bluetooth-manager.schemas
+%{_mandir}/man1/bluetooth-analyzer.1*
%{_mandir}/man1/bluetooth-applet.1*
%{_mandir}/man1/bluetooth-properties.1*
+%{_mandir}/man1/bluetooth-sendto.1*
+%{_desktopdir}/bluetooth-analyzer.desktop
+%{_datadir}/mime/packages/*.xml
+%{_iconsdir}/hicolor/*/apps/bluetooth.png
+%{_iconsdir}/hicolor/*/apps/bluetooth.svg