]>
Commit | Line | Data |
---|---|---|
849fe7b0 | 1 | %define nmversion %{version} |
c939647d PZ |
2 | Summary: Network Manager for GNOME |
3 | Summary(pl.UTF-8): Zarządca sieci dla GNOME | |
4 | Name: NetworkManager-applet | |
5d2be942 | 5 | Version: 0.8.1 |
72b396b4 | 6 | Release: 3 |
c939647d PZ |
7 | License: GPL v2 |
8 | Group: X11/Applications | |
8c14a52a | 9 | Source0: http://ftp.gnome.org/pub/GNOME/sources/network-manager-applet/0.8/network-manager-applet-%{version}.tar.bz2 |
5d2be942 | 10 | # Source0-md5: b709808c1a5cfe8236061b5da4907313 |
72b396b4 | 11 | Patch0: %{name}-build.patch |
a66e03ae | 12 | URL: http://projects.gnome.org/NetworkManager/ |
30e5fda0 | 13 | BuildRequires: GConf2-devel >= 2.20.0 |
849fe7b0 | 14 | BuildRequires: NetworkManager-devel >= %{nmversion} |
5d2be942 MB |
15 | BuildRequires: autoconf >= 2.63 |
16 | BuildRequires: automake >= 1:1.10 | |
c979ae9c | 17 | BuildRequires: dbus-devel >= 1.2.6 |
f2102cc8 | 18 | BuildRequires: dbus-glib-devel >= 0.74 |
c939647d | 19 | BuildRequires: gettext-devel |
8c14a52a | 20 | BuildRequires: gnome-bluetooth-devel >= 2.28.0 |
f2102cc8 | 21 | BuildRequires: gtk+2-devel >= 2:2.14.0 |
91494482 MB |
22 | BuildRequires: intltool >= 0.36.2 |
23 | BuildRequires: libglade2-devel | |
bc40000d | 24 | BuildRequires: libgnome-keyring-devel >= 2.20.0 |
91494482 MB |
25 | BuildRequires: libiw-devel >= 1:28-0.pre9.1 |
26 | BuildRequires: libnotify-devel >= 0.4.3 | |
e75f8dce | 27 | BuildRequires: libtool |
c939647d | 28 | BuildRequires: pkgconfig |
8c14a52a | 29 | BuildRequires: polkit-devel >= 0.92 |
30e5fda0 | 30 | BuildRequires: rpmbuild(macros) >= 1.311 |
30e5fda0 | 31 | Requires(post,postun): gtk+2 |
9a72a4c2 | 32 | Requires(post,postun): hicolor-icon-theme |
849fe7b0 | 33 | Requires(post,preun): GConf2 |
34 | Requires: NetworkManager >= %{nmversion} | |
c979ae9c | 35 | Requires: dbus >= 1.2.6 |
5d2be942 | 36 | Requires: mobile-broadband-provider-info |
8c14a52a | 37 | Requires: polkit-gnome |
1e04e7c7 | 38 | Suggests: dbus(org.freedesktop.Notifications) |
91494482 | 39 | Obsoletes: NetworkManager-applet-devel |
ba7c8693 | 40 | # sr@Latn vs. sr@latin |
41 | Conflicts: glibc-misc < 6:2.7 | |
c939647d PZ |
42 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
43 | ||
44 | %description | |
45 | Network Manager Applet for GNOME. | |
46 | ||
47 | %description -l pl.UTF-8 | |
48 | Aplet zarządcy sieci dla GNOME. | |
49 | ||
8c14a52a MB |
50 | %package -n gnome-bluetooth-plugin-nma |
51 | Summary: NetworkManager applet plugin for GNOME Bluetooth | |
52 | Summary(pl.UTF-8): Wtyczka NetworkManager Applet dla GNOME Bluetooth | |
53 | Group: X11/Applications | |
54 | Requires: NetworkManager-applet >= %{nmversion} | |
55 | Requires: gnome-bluetooth >= 2.28.0 | |
56 | ||
57 | %description -n gnome-bluetooth-plugin-nma | |
58 | NetworkManager applet plugin for GNOME Bluetooth. | |
59 | ||
60 | %description -n gnome-bluetooth-plugin-nma -l pl.UTF-8 | |
61 | Wtyczka NetworkManager Applet dla GNOME Bluetooth. | |
62 | ||
c939647d | 63 | %prep |
c979ae9c | 64 | %setup -q -n network-manager-applet-%{version} |
72b396b4 | 65 | %patch0 -p1 |
c939647d PZ |
66 | |
67 | %build | |
30e5fda0 | 68 | %{__intltoolize} |
e75f8dce | 69 | %{__libtoolize} |
8c14a52a | 70 | %{__aclocal} -I m4 |
e75f8dce JB |
71 | %{__autoconf} |
72 | %{__autoheader} | |
73 | %{__automake} | |
c939647d PZ |
74 | %configure |
75 | %{__make} | |
76 | ||
77 | %install | |
78 | rm -rf $RPM_BUILD_ROOT | |
ec2ae91b | 79 | install -d $RPM_BUILD_ROOT%{_datadir}/gnome-vpn-properties |
c939647d PZ |
80 | |
81 | %{__make} install \ | |
82 | DESTDIR=$RPM_BUILD_ROOT | |
83 | ||
8c14a52a | 84 | rm -f $RPM_BUILD_ROOT%{_libdir}/gnome-bluetooth/plugins/*.{a,la} |
91494482 MB |
85 | |
86 | %find_lang %{name} --with-gnome --all-name | |
c939647d PZ |
87 | |
88 | %clean | |
89 | rm -rf $RPM_BUILD_ROOT | |
90 | ||
91 | %post | |
9a72a4c2 | 92 | %update_icon_cache hicolor |
f2102cc8 MB |
93 | %gconf_schema_install nm-applet.schemas |
94 | ||
95 | %preun | |
96 | %gconf_schema_uninstall nm-applet.schemas | |
c939647d | 97 | |
30e5fda0 MB |
98 | %postun |
99 | %update_icon_cache hicolor | |
100 | ||
91494482 | 101 | %files -f %{name}.lang |
c939647d | 102 | %defattr(644,root,root,755) |
91494482 | 103 | %doc AUTHORS CONTRIBUTING ChangeLog NEWS README |
30e5fda0 | 104 | %attr(755,root,root) %{_bindir}/nm-applet |
91494482 | 105 | %attr(755,root,root) %{_bindir}/nm-connection-editor |
f2102cc8 | 106 | %{_sysconfdir}/gconf/schemas/nm-applet.schemas |
ec2ae91b | 107 | %dir %{_datadir}/gnome-vpn-properties |
91494482 | 108 | %{_datadir}/nm-applet |
30e5fda0 | 109 | %{_sysconfdir}/xdg/autostart/nm-applet.desktop |
91494482 MB |
110 | %{_desktopdir}/nm-connection-editor.desktop |
111 | %{_iconsdir}/hicolor/*/apps/*.png | |
c979ae9c | 112 | %{_iconsdir}/hicolor/*/apps/*.svg |
a66e03ae | 113 | %config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/nm-applet.conf |
8c14a52a MB |
114 | |
115 | %files -n gnome-bluetooth-plugin-nma | |
116 | %defattr(644,root,root,755) | |
117 | %attr(755,root,root) %{_libdir}/gnome-bluetooth/plugins/libnma.so |