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