File NetworkManager-gnome.spec of Package NetworkManager-gnome

#
# spec file for package NetworkManager-gnome (Version 0.7.999_20100209)
#
# Copyright (c) 2009 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.7.999_20100209
Release:        3
License:        GPL v2 or later
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  NetworkManager-devel NetworkManager-glib dbus-1-devel dbus-1-glib gconf2-devel gnome-bluetooth-devel gnome-keyring-devel gtk2-devel intltool libglade2-devel libgudev-1_0-devel libiw-devel libnotify-devel libtool polkit-devel 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
Patch2:         0002-Autostart-nm-applet-in-GNOME-session-only.patch
Patch4:         0004-Fallback.patch
Patch5:         0005-CA-system-certificates.patch
Provides:       NetworkManager-client
Requires:       NetworkManager >= 0.7.999
%gconf_schemas_prereq

%description
This package contains GNOME utilities and applications for use with
NetworkManager, including a panel applet for wireless networks.



Authors:
--------
    Dan Williams <dcbw@redhat.com>
    Robert Love <rml@novell.com>

%prep
%setup -n network-manager-applet-0.7.999 -a 1
%patch2 -p1

%build
# -fno-strict-aliasing added 2009-04-28. Need for build with gcc 4.4 at that time.
CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
%configure \
    --with-notify
# parallel build is broken
# make %{?jobs:-j%jobs}
make

%install
%makeinstall
%suse_update_desktop_file nm-applet
%suse_update_desktop_file nm-connection-editor
%find_gconf_schemas
%find_lang nm-applet
cat %{name}.schemas_list nm-applet.lang > nm-applet.lst
cp -r nm-icons/* $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/

%clean
rm -rf "$RPM_BUILD_ROOT"

%pre -f %{name}.schemas_pre

%preun -f %{name}.schemas_preun

%posttrans -f %{name}.schemas_posttrans

%files -f nm-applet.lst
%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}/dbus-1/system.d/nm-applet.conf
%{_sysconfdir}/xdg/autostart/nm-applet.desktop
%{_datadir}/applications/nm-connection-editor.desktop

%changelog
openSUSE Build Service is sponsored by