File gnome-phone-manager.spec of Package gnome-phone-manager
#
# spec file for package gnome-phone-manager
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: gnome-phone-manager
Version: 0.65
Release: 12
License: GPLv2+
Summary: Phone Manager for GNOME
Url: http://usefulinc.com/software/phonemgr
Group: Hardware/Mobile
Source: ftp://ftp.gnome.org/pub/gnome/sources/gnome-phone-manager/0.8/%{name}-%{version}.tar.bz2
# PATCH-FIX-OPENSUSE gnome-phone-manager-desktop-icon-check.patch bnc337219
Patch0: gnome-phone-manager-desktop-icon-check.patch
# PATCH-MISSING-TAG -- See http://en.opensuse.org/Packaging/Patches
Patch1: gnome-phone-manager-warnings.patch
BuildRequires: bluez-devel
BuildRequires: evolution-devel
BuildRequires: fdupes
BuildRequires: gnokii-devel
BuildRequires: gnome-bluetooth-devel
BuildRequires: gtkspell-devel
BuildRequires: intltool
BuildRequires: libcanberra-devel
BuildRequires: libglade2-devel
BuildRequires: telepathy-glib-devel
BuildRequires: update-desktop-files
Recommends: %{name}-lang
Obsoletes: phonemgr
Provides: phonemgr
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%gconf_schemas_prereq
%description
This program connects to your mobile phone over a serial port with a
cable, infrared, or Bluetooth connection. It listens for text messages
and, when they arrive, displays them on the desktop. A visual indicator
is displayed in the notification area, if available, in the panel.
%package -n telepathy-phoney
License: GPLv2+
Summary: Telepathy connection manager for GNOME Phone Manager
Group: Hardware/Mobile
Requires: %{name} = %{version}
Enhances: packageand(%{name}:telepathy-mission-control)
Provides: %{name}-telepathy = %{version}
Obsoletes: %{name}-telepathy < %{version}
%description -n telepathy-phoney
Provides connections to your phone for telepathy enabled applications.
%lang_package
%prep
%setup -q
%patch0
%patch1
%build
%configure \
--libexecdir=%{_prefix}/lib/%{name} \
--disable-schemas-install
%__make %{?jobs:-j%jobs}
%install
%makeinstall
%suse_update_desktop_file -N "GNOME Phone Manager" -G "Phone Manager" gnome-phone-manager
%find_lang %{name} %{?no_lang_C}
%find_gconf_schemas
# Work around for bnc 337219
for dir in 16x16 22x22 24x24; do
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/$dir/apps/
ln -s %{_datadir}/icons/gnome/$dir/devices/phone.png %{buildroot}%{_datadir}/icons/hicolor/$dir/apps/gnome-phone-manager.png
done
%fdupes %{buildroot}
%clean
rm -rf %{buildroot}
%pre -f %{name}.schemas_pre
%posttrans -f %{name}.schemas_posttrans
%preun -f %{name}.schemas_preun
%if 0%{?suse_version} > 1130
%post
%desktop_database_post
%icon_theme_cache_post
%endif
%if 0%{?suse_version} > 1130
%postun
%desktop_database_postun
%icon_theme_cache_postun
%endif
%files -f %{name}.schemas_list
%defattr (-, root, root)
%doc AUTHORS COPYING ChangeLog NEWS README TODO
%{_mandir}/man1/*
%{_bindir}/gnome-phone-manager
%{_datadir}/applications/gnome-phone-manager.desktop
%{_datadir}/gnome-phone-manager
%{_datadir}/icons/hicolor/*/apps/gnome-phone-manager.*
%files -n telepathy-phoney
%defattr (-, root, root)
%{_datadir}/dbus-1/services/*.service
%dir %{_datadir}/telepathy
%dir %{_datadir}/telepathy/managers
%{_datadir}/telepathy/managers/phoney.manager
%dir %{_libexecdir}/%{name}
%{_libexecdir}/%{name}/telepathy-phoney
%files lang -f %{name}.lang
%changelog