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