3 %bcond_without gnomebt # GNOME-Bluetooth plugin
5 %define nmversion 2:%{version}
6 Summary: Network Manager for GNOME
7 Summary(pl.UTF-8): Zarządca sieci dla GNOME
8 Name: NetworkManager-applet
12 Group: X11/Applications
13 Source0: http://ftp.gnome.org/pub/GNOME/sources/network-manager-applet/0.9/network-manager-applet-%{version}.tar.xz
14 # Source0-md5: 9623aeb6c782a8d782500cf12c887b5b
15 URL: http://projects.gnome.org/NetworkManager/
16 BuildRequires: GConf2-devel >= 2.20.0
17 BuildRequires: NetworkManager-devel >= %{nmversion}
18 BuildRequires: autoconf >= 2.63
19 BuildRequires: automake >= 1:1.10
20 BuildRequires: dbus-devel >= 1.2.6
21 BuildRequires: dbus-glib-devel >= 0.74
22 BuildRequires: gettext-devel
23 BuildRequires: glib2-devel >= 1:2.16.0
24 %{?with_gnomebt:BuildRequires: gnome-bluetooth-devel >= 2.28.0}
25 BuildRequires: gnome-common
26 BuildRequires: gtk+3-devel >= 3.0.0
27 BuildRequires: intltool >= 0.40.0
28 BuildRequires: iso-codes
29 BuildRequires: libgnome-keyring-devel >= 2.20.0
30 BuildRequires: libiw-devel >= 1:28-0.pre9.1
31 BuildRequires: libnotify-devel >= 0.4.3
32 BuildRequires: libtool >= 2:2.2.6
33 BuildRequires: pkgconfig
34 BuildRequires: polkit-devel >= 0.92
35 BuildRequires: rpmbuild(macros) >= 1.311
36 BuildRequires: tar >= 1:1.22
38 Requires(post,postun): gtk-update-icon-cache
39 Requires(post,postun): hicolor-icon-theme
40 Requires(post,preun): GConf2
41 Requires: NetworkManager >= %{nmversion}
42 Requires: NetworkManager-gtk-lib = %{version}-%{release}
43 Requires: dbus >= 1.2.6
44 Requires: mobile-broadband-provider-info
45 Requires: polkit-gnome
46 Suggests: dbus(org.freedesktop.Notifications)
47 Obsoletes: NetworkManager-applet-devel
48 # sr@Latn vs. sr@latin
49 Conflicts: glibc-misc < 6:2.7
50 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
53 Network Manager Applet for GNOME.
55 %description -l pl.UTF-8
56 Aplet zarządcy sieci dla GNOME.
58 %package -n NetworkManager-gtk-lib
59 Summary: GTK+ dialogs for NetworkManager
62 %description -n NetworkManager-gtk-lib
63 GTK+ dialogs for NetworkManager
65 %package -n NetworkManager-gtk-lib-devel
66 Summary: Development package for NetworkManager-gtk-lib
67 Group: X11/Development/Libraries
68 Requires: NetworkManager-gtk-lib = %{version}-%{release}
70 %description -n NetworkManager-gtk-lib-devel
71 Header files and libraries for NetworkManager-gtk-lib.
73 %package -n gnome-bluetooth-plugin-nma
74 Summary: NetworkManager applet plugin for GNOME Bluetooth
75 Summary(pl.UTF-8): Wtyczka NetworkManager Applet dla GNOME Bluetooth
76 Group: X11/Applications
77 Requires: %{name} = %{version}-%{release}
78 Requires: gnome-bluetooth >= 2.28.0
80 %description -n gnome-bluetooth-plugin-nma
81 NetworkManager applet plugin for GNOME Bluetooth.
83 %description -n gnome-bluetooth-plugin-nma -l pl.UTF-8
84 Wtyczka NetworkManager Applet dla GNOME Bluetooth.
87 %setup -q -n network-manager-applet-%{version}
97 --disable-silent-rules \
99 %{!?with_gnomebt:--without-bluetooth}
103 rm -rf $RPM_BUILD_ROOT
104 install -d $RPM_BUILD_ROOT%{_datadir}/gnome-vpn-properties
107 DESTDIR=$RPM_BUILD_ROOT
110 %{__rm} $RPM_BUILD_ROOT%{_libdir}/gnome-bluetooth/plugins/*.la
112 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libnm-gtk.la
114 %find_lang %{name} --with-gnome --all-name
117 rm -rf $RPM_BUILD_ROOT
120 %update_icon_cache hicolor
121 %gconf_schema_install nm-applet.schemas
124 %gconf_schema_uninstall nm-applet.schemas
127 %update_icon_cache hicolor
129 %post -n NetworkManager-gtk-lib -p /sbin/ldconfig
130 %postun -n NetworkManager-gtk-lib -p /sbin/ldconfig
132 %files -f %{name}.lang
133 %defattr(644,root,root,755)
134 %doc AUTHORS CONTRIBUTING ChangeLog
135 %attr(755,root,root) %{_bindir}/nm-applet
136 %attr(755,root,root) %{_bindir}/nm-connection-editor
137 %{_sysconfdir}/gconf/schemas/nm-applet.schemas
138 %dir %{_datadir}/gnome-vpn-properties
139 %{_datadir}/nm-applet
140 %{_sysconfdir}/xdg/autostart/nm-applet.desktop
141 %{_desktopdir}/nm-applet.desktop
142 %{_desktopdir}/nm-connection-editor.desktop
143 %{_iconsdir}/hicolor/*/apps/*.png
144 %{_iconsdir}/hicolor/*/apps/*.svg
146 %files -n NetworkManager-gtk-lib
147 %defattr(644,root,root,755)
148 %attr(755,root,root) %{_libdir}/libnm-gtk.so.*.*.*
149 %attr(755,root,root) %ghost %{_libdir}/libnm-gtk.so.0
150 %{_datadir}/libnm-gtk
152 %files -n NetworkManager-gtk-lib-devel
153 %defattr(644,root,root,755)
154 %{_includedir}/libnm-gtk
155 %{_libdir}/libnm-gtk.so
156 %{_pkgconfigdir}/libnm-gtk.pc
159 %files -n gnome-bluetooth-plugin-nma
160 %defattr(644,root,root,755)
161 %attr(755,root,root) %{_libdir}/gnome-bluetooth/plugins/libnma.so