2012-03-20 02:48:09 +00:00
|
|
|
%define gtk3_version 3.0.1
|
2012-03-20 03:07:37 +00:00
|
|
|
%define glib2_version 2.26.0
|
2012-03-20 02:48:09 +00:00
|
|
|
%define dbus_version 1.4
|
|
|
|
%define dbus_glib_version 0.86
|
2012-07-13 08:02:24 +00:00
|
|
|
%define nm_version 1:0.9.5.95
|
2012-03-28 13:26:07 +00:00
|
|
|
%define obsoletes_ver 1:0.9.3.997-2
|
2012-03-20 02:48:09 +00:00
|
|
|
|
2012-07-13 08:02:24 +00:00
|
|
|
%define snapshot .git20120713
|
|
|
|
%define realversion 0.9.5.95
|
2012-03-20 02:48:09 +00:00
|
|
|
|
|
|
|
Name: network-manager-applet
|
|
|
|
Summary: A network control and status applet for NetworkManager
|
2012-07-13 08:02:24 +00:00
|
|
|
Version: 0.9.5.95
|
|
|
|
Release: 1%{snapshot}%{?dist}
|
2012-03-20 02:48:09 +00:00
|
|
|
Group: Applications/System
|
|
|
|
License: GPLv2+
|
|
|
|
URL: http://www.gnome.org/projects/NetworkManager/
|
|
|
|
Obsoletes: NetworkManager-gnome <= %{obsoletes_ver}
|
|
|
|
|
|
|
|
Source: http://ftp.gnome.org/pub/GNOME/sources/network-manager-applet/0.9/%{name}-%{realversion}%{snapshot}.tar.bz2
|
|
|
|
Patch0: nm-applet-no-notifications.patch
|
|
|
|
Patch1: nm-applet-wifi-dialog-ui-fixes.patch
|
|
|
|
Patch2: applet-ignore-deprecated.patch
|
|
|
|
|
|
|
|
Requires: NetworkManager >= %{nm_version}
|
|
|
|
Requires: NetworkManager-glib >= %{nm_version}
|
|
|
|
Requires: libnm-gtk = %{version}-%{release}
|
|
|
|
Requires: dbus >= 1.4
|
|
|
|
Requires: dbus-glib >= 0.86
|
|
|
|
Requires: libnotify >= 0.4.3
|
|
|
|
Requires: gnome-keyring
|
|
|
|
Requires: gnome-icon-theme
|
|
|
|
Requires: nm-connection-editor = %{version}-%{release}
|
2012-05-07 21:00:10 +00:00
|
|
|
|
2012-03-20 02:48:09 +00:00
|
|
|
BuildRequires: NetworkManager-devel >= %{nm_version}
|
|
|
|
BuildRequires: NetworkManager-glib-devel >= %{nm_version}
|
|
|
|
BuildRequires: dbus-devel >= %{dbus_version}
|
|
|
|
BuildRequires: dbus-glib-devel >= %{dbus_glib_version}
|
|
|
|
BuildRequires: glib2-devel >= %{glib2_version}
|
|
|
|
BuildRequires: gtk3-devel >= %{gtk3_version}
|
|
|
|
BuildRequires: GConf2-devel
|
|
|
|
%if 0%{?fedora} > 16
|
|
|
|
BuildRequires: libgnome-keyring-devel
|
|
|
|
%else
|
|
|
|
BuildRequires: gnome-keyring-devel
|
|
|
|
%endif
|
|
|
|
BuildRequires: gobject-introspection-devel >= 0.10.3
|
|
|
|
BuildRequires: gettext-devel
|
|
|
|
BuildRequires: /usr/bin/autopoint
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: libnotify-devel >= 0.4
|
|
|
|
BuildRequires: automake autoconf intltool libtool
|
|
|
|
BuildRequires: gtk-doc
|
|
|
|
BuildRequires: desktop-file-utils
|
|
|
|
# No bluetooth on s390
|
|
|
|
%ifnarch s390 s390x
|
|
|
|
BuildRequires: gnome-bluetooth-libs-devel >= 2.27.7.1-1
|
|
|
|
%endif
|
|
|
|
BuildRequires: iso-codes-devel
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
This package contains a network control and status notification area applet
|
|
|
|
for use with NetworkManager.
|
|
|
|
|
|
|
|
%package -n nm-connection-editor
|
|
|
|
Summary: A network connection configuration editor for NetworkManager
|
|
|
|
Requires: NetworkManager-glib >= %{nm_version}
|
|
|
|
Requires: libnm-gtk = %{version}-%{release}
|
|
|
|
Requires: dbus >= 1.4
|
|
|
|
Requires: dbus-glib >= 0.86
|
|
|
|
Requires: gnome-keyring
|
|
|
|
Requires: gnome-icon-theme
|
|
|
|
Requires(post): /usr/bin/gtk-update-icon-cache
|
|
|
|
|
|
|
|
%description -n nm-connection-editor
|
|
|
|
This package contains a network configuration editor and Bluetooth modem
|
|
|
|
utility for use with NetworkManager.
|
|
|
|
|
|
|
|
|
|
|
|
%package -n libnm-gtk
|
|
|
|
Summary: Private libraries for NetworkManager GUI support
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: gtk3 >= %{gtk3_version}
|
2012-05-07 21:00:10 +00:00
|
|
|
Requires: mobile-broadband-provider-info >= 0.20090602
|
2012-03-20 02:48:09 +00:00
|
|
|
Obsoletes: NetworkManager-gtk <= %{obsoletes_ver}
|
|
|
|
|
|
|
|
%description -n libnm-gtk
|
|
|
|
This package contains private libraries to be used only by nm-applet,
|
|
|
|
nm-connection editor, and the GNOME Control Center.
|
|
|
|
|
|
|
|
%package -n libnm-gtk-devel
|
|
|
|
Summary: Private header files for NetworkManager GUI support
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: NetworkManager-devel >= %{nm_version}
|
|
|
|
Requires: NetworkManager-glib-devel >= %{nm_version}
|
2012-03-20 03:07:37 +00:00
|
|
|
Obsoletes: NetworkManager-gtk-devel <= %{obsoletes_ver}
|
2012-03-20 02:48:09 +00:00
|
|
|
Requires: libnm-gtk = %{version}-%{release}
|
|
|
|
Requires: gtk3-devel
|
|
|
|
Requires: pkgconfig
|
|
|
|
|
|
|
|
%description -n libnm-gtk-devel
|
|
|
|
This package contains private header and pkg-config files to be used only by
|
|
|
|
nm-applet, nm-connection-editor, and the GNOME control center.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n network-manager-applet-%{realversion}
|
|
|
|
|
|
|
|
%patch0 -p1 -b .no-notifications
|
|
|
|
%patch1 -p1 -b .applet-wifi-ui
|
|
|
|
%patch2 -p1 -b .no-deprecated
|
|
|
|
|
|
|
|
%build
|
|
|
|
autoreconf -i -f
|
|
|
|
intltoolize --force
|
|
|
|
%configure \
|
|
|
|
--disable-static \
|
|
|
|
--with-bluetooth \
|
|
|
|
--enable-more-warnings=yes \
|
|
|
|
--with-gtkver=3
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_datadir}/gnome-vpn-properties
|
|
|
|
|
|
|
|
%find_lang nm-applet
|
|
|
|
cat nm-applet.lang >> %{name}.lang
|
|
|
|
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/gnome-bluetooth/plugins/*.la
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
|
|
|
|
|
|
|
# validate .desktop and autostart files
|
|
|
|
desktop-file-validate $RPM_BUILD_ROOT%{_sysconfdir}/xdg/autostart/nm-applet.desktop
|
|
|
|
desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/nm-connection-editor.desktop
|
|
|
|
|
|
|
|
|
|
|
|
%post -n libnm-gtk -p /sbin/ldconfig
|
|
|
|
%postun -n libnm-gtk -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%post
|
|
|
|
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
|
|
|
|
|
|
|
|
%postun
|
|
|
|
if [ $1 -eq 0 ] ; then
|
|
|
|
touch --no-create %{_datadir}/icons/hicolor &>/dev/null
|
|
|
|
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
2012-07-13 08:02:24 +00:00
|
|
|
glib-compile-schemas %{_datadir}/glib-2.0/schemas >&/dev/null || :
|
2012-03-20 02:48:09 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
%posttrans
|
|
|
|
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
2012-07-13 08:02:24 +00:00
|
|
|
glib-compile-schemas %{_datadir}/glib-2.0/schemas >&/dev/null || :
|
2012-03-20 02:48:09 +00:00
|
|
|
|
|
|
|
|
|
|
|
%post -n nm-connection-editor
|
|
|
|
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
|
|
|
|
|
|
|
|
%postun -n nm-connection-editor
|
|
|
|
if [ $1 -eq 0 ] ; then
|
|
|
|
touch --no-create %{_datadir}/icons/hicolor &>/dev/null
|
|
|
|
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
|
|
|
fi
|
|
|
|
|
|
|
|
%posttrans -n nm-connection-editor
|
|
|
|
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,0755)
|
|
|
|
%doc COPYING NEWS AUTHORS README CONTRIBUTING
|
|
|
|
%dir %{_datadir}/nm-applet
|
|
|
|
%{_bindir}/nm-applet
|
2012-07-13 08:02:24 +00:00
|
|
|
%{_libexecdir}/nm-applet-migration-tool
|
2012-03-20 02:48:09 +00:00
|
|
|
%{_datadir}/applications/nm-applet.desktop
|
|
|
|
%{_datadir}/nm-applet/wired-8021x.ui
|
|
|
|
%{_datadir}/nm-applet/info.ui
|
|
|
|
%{_datadir}/nm-applet/gsm-unlock.ui
|
|
|
|
%{_datadir}/nm-applet/keyring.png
|
|
|
|
%{_datadir}/icons/hicolor/22x22/apps/nm-adhoc.png
|
|
|
|
%{_datadir}/icons/hicolor/22x22/apps/nm-mb-roam.png
|
|
|
|
%{_datadir}/icons/hicolor/22x22/apps/nm-secure-lock.png
|
|
|
|
%{_datadir}/icons/hicolor/22x22/apps/nm-signal-*.png
|
|
|
|
%{_datadir}/icons/hicolor/22x22/apps/nm-stage*-connecting*.png
|
|
|
|
%{_datadir}/icons/hicolor/22x22/apps/nm-tech-*.png
|
|
|
|
%{_datadir}/icons/hicolor/22x22/apps/nm-vpn-active-lock.png
|
|
|
|
%{_datadir}/icons/hicolor/22x22/apps/nm-vpn-connecting*.png
|
|
|
|
%{_datadir}/icons/hicolor/22x22/apps/nm-wwan-tower.png
|
2012-07-13 08:02:24 +00:00
|
|
|
%{_datadir}/glib-2.0/schemas/org.gnome.nm-applet.gschema.xml
|
|
|
|
%{_datadir}/GConf/gsettings/nm-applet.convert
|
2012-03-20 02:48:09 +00:00
|
|
|
%{_sysconfdir}/xdg/autostart/nm-applet.desktop
|
|
|
|
|
|
|
|
# Yes, lang files for the applet go in nm-connection-editor RPM since it
|
|
|
|
# is the RPM that everything else depends on
|
|
|
|
%files -n nm-connection-editor -f %{name}.lang
|
|
|
|
%dir %{_datadir}/nm-applet
|
|
|
|
%{_bindir}/nm-connection-editor
|
|
|
|
%{_datadir}/applications/nm-connection-editor.desktop
|
|
|
|
%{_datadir}/nm-applet/ce-*.ui
|
|
|
|
%{_datadir}/nm-applet/eap-method-*.ui
|
|
|
|
%{_datadir}/nm-applet/ws-*.ui
|
|
|
|
%{_datadir}/nm-applet/nag-user-dialog.ui
|
|
|
|
%{_datadir}/nm-applet/nm-connection-editor.ui
|
|
|
|
%{_datadir}/icons/hicolor/*/apps/nm-device-*.*
|
|
|
|
%{_datadir}/icons/hicolor/*/apps/nm-no-connection.*
|
|
|
|
%{_datadir}/icons/hicolor/16x16/apps/nm-vpn-standalone-lock.png
|
|
|
|
%dir %{_datadir}/gnome-vpn-properties
|
|
|
|
%ifnarch s390 s390x
|
|
|
|
%{_libdir}/gnome-bluetooth/plugins/*
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%files -n libnm-gtk
|
|
|
|
%defattr(-,root,root,0755)
|
|
|
|
%{_libdir}/libnm-gtk.so.*
|
|
|
|
%dir %{_datadir}/libnm-gtk
|
|
|
|
%{_datadir}/libnm-gtk/*.ui
|
|
|
|
|
|
|
|
%files -n libnm-gtk-devel
|
|
|
|
%defattr(-,root,root,0755)
|
|
|
|
%dir %{_includedir}/libnm-gtk
|
|
|
|
%{_includedir}/libnm-gtk/*.h
|
|
|
|
%{_libdir}/pkgconfig/libnm-gtk.pc
|
|
|
|
%{_libdir}/libnm-gtk.so
|
|
|
|
|
|
|
|
%changelog
|
2012-07-13 08:02:24 +00:00
|
|
|
* Fri Jul 13 2012 Jiří Klimeš <jklimes@redhat.com> - 0.9.5.95-1.git20120713
|
|
|
|
- update to 0.9.5.95 (0.9.6-rc1) snapshot
|
|
|
|
- editor: fixed UI mnemonics
|
|
|
|
- editor: fix defaults for PPP echo values
|
|
|
|
- applet: various crash and stability fixes
|
|
|
|
- applet: show IPv6 addressing page for VPN plugins that support it
|
|
|
|
- applet: port to GSettings and split out 0.8 -> 0.9 migration code into standalone tool
|
|
|
|
|
2012-05-21 14:17:18 +00:00
|
|
|
* Mon May 21 2012 Jiří Klimeš <jklimes@redhat.com> - 0.9.4-4
|
|
|
|
- update to git snapshot
|
|
|
|
|
2012-05-02 08:22:35 +00:00
|
|
|
* Wed May 2 2012 Jiří Klimeš <jklimes@redhat.com> - 0.9.4-3
|
|
|
|
- update to git snapshot
|
|
|
|
|
2012-03-20 02:48:09 +00:00
|
|
|
* Mon Mar 19 2012 Dan Williams <dcbw@redhat.com> - 0.9.3.997-1
|
|
|
|
- Initial package split from NetworkManager
|
|
|
|
|