]>
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 | |
68dc4938 MB |
5 | Version: 0.8.2 |
6 | Release: 1 | |
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 |
68dc4938 | 10 | # Source0-md5: e35d3c391edca440c24032e05870c130 |
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} | |
68dc4938 MB |
72 | %configure \ |
73 | --disable-silent-rules | |
c939647d PZ |
74 | %{__make} |
75 | ||
76 | %install | |
77 | rm -rf $RPM_BUILD_ROOT | |
ec2ae91b | 78 | install -d $RPM_BUILD_ROOT%{_datadir}/gnome-vpn-properties |
c939647d PZ |
79 | |
80 | %{__make} install \ | |
81 | DESTDIR=$RPM_BUILD_ROOT | |
82 | ||
8c14a52a | 83 | rm -f $RPM_BUILD_ROOT%{_libdir}/gnome-bluetooth/plugins/*.{a,la} |
91494482 MB |
84 | |
85 | %find_lang %{name} --with-gnome --all-name | |
c939647d PZ |
86 | |
87 | %clean | |
88 | rm -rf $RPM_BUILD_ROOT | |
89 | ||
90 | %post | |
9a72a4c2 | 91 | %update_icon_cache hicolor |
f2102cc8 MB |
92 | %gconf_schema_install nm-applet.schemas |
93 | ||
94 | %preun | |
95 | %gconf_schema_uninstall nm-applet.schemas | |
c939647d | 96 | |
30e5fda0 MB |
97 | %postun |
98 | %update_icon_cache hicolor | |
99 | ||
91494482 | 100 | %files -f %{name}.lang |
c939647d | 101 | %defattr(644,root,root,755) |
91494482 | 102 | %doc AUTHORS CONTRIBUTING ChangeLog NEWS README |
30e5fda0 | 103 | %attr(755,root,root) %{_bindir}/nm-applet |
91494482 | 104 | %attr(755,root,root) %{_bindir}/nm-connection-editor |
f2102cc8 | 105 | %{_sysconfdir}/gconf/schemas/nm-applet.schemas |
ec2ae91b | 106 | %dir %{_datadir}/gnome-vpn-properties |
91494482 | 107 | %{_datadir}/nm-applet |
30e5fda0 | 108 | %{_sysconfdir}/xdg/autostart/nm-applet.desktop |
91494482 MB |
109 | %{_desktopdir}/nm-connection-editor.desktop |
110 | %{_iconsdir}/hicolor/*/apps/*.png | |
c979ae9c | 111 | %{_iconsdir}/hicolor/*/apps/*.svg |
a66e03ae | 112 | %config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/nm-applet.conf |
8c14a52a MB |
113 | |
114 | %files -n gnome-bluetooth-plugin-nma | |
115 | %defattr(644,root,root,755) | |
116 | %attr(755,root,root) %{_libdir}/gnome-bluetooth/plugins/libnma.so |