File NetworkManager-gnome.spec of Package NetworkManager-gnome

#
# spec file for package NetworkManager-gnome (Version 0.7.1)
#
# Copyright (c) 2010 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.1
Release:        5.<RELEASE5>
License:        GPLv2+
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  NetworkManager-devel NetworkManager-glib PolicyKit-gnome-devel dbus-1-devel dbus-1-glib gconf2-devel gnome-keyring-devel gtk2-devel hal-devel intltool libglade2-devel libnotify-devel libtool 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
Patch1:         0001-Build-fix.patch
Patch2:         0002-Autostart-nm-applet-in-GNOME-LXDE-session-only.patch
Patch3:         0003-Use-ModemManager.patch
Patch4:         0004-Fallback.patch
Patch5:         0005-CA-system-certificates.patch
Patch6:         0006-No-show-password.patch
Patch7:         0007-Fix-a-segfault-on-WPA-EAP-TTLS-connections-with-CHAP.patch
Patch8:         0008-2009-04-15-Alexander-Sack-asac-ubuntu.com.patch
Patch9:         nma-mm-api-change.patch
Patch10:        nma-wired-8021x-authentication.patch
Patch11:        nma-brc546793.patch
Patch12:        nma-brc546117.patch
#Fix nm-connection-editor crash when edit/add VPN connection, bnc#611630, bili@novell.com
Patch13:        nma-gconf-new-crash.patch
Provides:       NetworkManager-client
Requires:       NetworkManager >= 0.7.1
Requires:       hal >= 0.5.0

%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.1 -a 1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1
%patch9 -p1
%patch10 -p1
%patch11 -p1
%patch12 -p1
%patch13 -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"
autoreconf -f -i
%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
# Change sr@Latn to sr@latin
mv %{buildroot}%{_datadir}/locale/sr@Latn %{buildroot}%{_datadir}/locale/sr@latin
%find_lang nm-applet
cp -r nm-icons/* $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/

%clean
rm -rf "$RPM_BUILD_ROOT"

%files -f nm-applet.lang
%defattr(-,root,root)
%doc COPYING ChangeLog NEWS AUTHORS README CONTRIBUTING
%{_bindir}/nm-applet
%{_bindir}/nm-connection-editor
%{_bindir}/nm-modem-properties
%{_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