File NetworkManager-gnome.spec of Package NetworkManager-gnome
#
# spec file for package NetworkManager-gnome
#
# 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: NetworkManager-gnome
Url: http://www.gnome.org/projects/NetworkManager/
Version: 0.8.2
Release: 3
License: GPLv2+
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: NetworkManager-devel
BuildRequires: NetworkManager-glib
BuildRequires: dbus-1-devel
BuildRequires: dbus-1-glib
BuildRequires: gconf2-devel
BuildRequires: gnome-bluetooth-devel
BuildRequires: gtk2-devel
BuildRequires: intltool
BuildRequires: libglade2-devel
BuildRequires: libgnome-keyring-devel
BuildRequires: libgudev-1_0-devel
BuildRequires: libiw-devel
BuildRequires: libnotify-devel
BuildRequires: libtool
BuildRequires: polkit-devel
BuildRequires: update-desktop-files
Group: System/GUI/GNOME
Summary: GNOME applications for use with NetworkManager
Source: network-manager-applet-%{version}.tar.bz2
Source1: nm-icons.tar.gz
# PATCH-FIX-OPENSUSE NetworkManager-gnome-OnlyShowIn.patch -- Add OnlyShowIn key to autostart file
Patch1: NetworkManager-gnome-OnlyShowIn.patch
Provides: NetworkManager-client
Requires: NetworkManager >= 0.8.0.998 timezone
# mobile-broadband-provider-info is required for DUN capabilities. The BT plugin crashes without it.
Requires: mobile-broadband-provider-info
Recommends: %{name}-lang
%gconf_schemas_prereq
%description
This package contains GNOME utilities and applications for use with
NetworkManager, including a panel applet for wireless networks.
%lang_package
%prep
%setup -n network-manager-applet-%{version} -a 1
%patch1 -p1
%build
%configure \
--disable-static \
--disable-maintainer-mode
%__make %{?_smp_flags}
%install
%makeinstall
find %{buildroot}%{_libdir} -name '*.la' -delete -print
%suse_update_desktop_file nm-applet
%suse_update_desktop_file nm-connection-editor X-SuSE-ControlCenter-Hardware
%find_gconf_schemas
# Add a general frontend dbus configuration in NetworkManager
# so delete the conf in nm-applet, bili@novell.com(bnc#476502).
rm $RPM_BUILD_ROOT%{_sysconfdir}/dbus-1/system.d/nm-applet.conf
%find_lang nm-applet %{?no_lang_C}
cp -r nm-icons/* $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/
%clean
rm -rf "$RPM_BUILD_ROOT"
%pre -f %{name}.schemas_pre
%post
%desktop_database_post
%icon_theme_cache_post
%preun -f %{name}.schemas_preun
%postun
%desktop_database_postun
%icon_theme_cache_postun
%posttrans -f %{name}.schemas_posttrans
%files -f %{name}.schemas_list
%defattr(-,root,root)
%doc COPYING ChangeLog NEWS AUTHORS README CONTRIBUTING
%{_bindir}/nm-applet
%{_bindir}/nm-connection-editor
%{_libdir}/gnome-bluetooth/plugins/libnma.*
%{_datadir}/nm-applet
%{_datadir}/icons/hicolor/*/apps/*.png
%{_datadir}/icons/hicolor/*/apps/*.svg
%{_sysconfdir}/xdg/autostart/nm-applet.desktop
%{_datadir}/applications/nm-connection-editor.desktop
%files lang -f nm-applet.lang
%changelog