]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_without appindicator # without application indicators | |
4 | # | |
5 | %define nmversion 2:1.8 | |
6 | Summary: Network Manager for GNOME | |
7 | Summary(pl.UTF-8): Zarządca sieci dla GNOME | |
8 | Name: NetworkManager-applet | |
9 | Version: 1.32.0 | |
10 | Release: 2 | |
11 | License: GPL v2 | |
12 | Group: X11/Applications | |
13 | Source0: https://download.gnome.org/sources/network-manager-applet/1.32/network-manager-applet-%{version}.tar.xz | |
14 | # Source0-md5: ba0de3589b2975a181a21a74bcb62447 | |
15 | URL: https://wiki.gnome.org/Projects/NetworkManager | |
16 | BuildRequires: ModemManager-devel >= 1.0.0 | |
17 | BuildRequires: NetworkManager-devel >= %{nmversion} | |
18 | BuildRequires: dbus-devel >= 1.2.6 | |
19 | BuildRequires: dbus-glib-devel >= 0.74 | |
20 | BuildRequires: gcr-devel >= 3.14 | |
21 | BuildRequires: gcr-ui-devel >= 3.14 | |
22 | BuildRequires: gettext-tools >= 0.19.8 | |
23 | BuildRequires: glib2-devel >= 1:2.40 | |
24 | BuildRequires: gobject-introspection-devel >= 0.9.6 | |
25 | BuildRequires: gtk+3-devel >= 3.10 | |
26 | BuildRequires: iso-codes | |
27 | BuildRequires: jansson-devel >= 2.7 | |
28 | %{?with_appindicator:BuildRequires: libayatana-appindicator-gtk3-devel >= 0.1} | |
29 | %{?with_appindicator:BuildRequires: libdbusmenu-gtk3-devel >= 16.04.0} | |
30 | BuildRequires: libnma-devel >= 1.8.27 | |
31 | BuildRequires: libsecret-devel >= 0.18 | |
32 | BuildRequires: libselinux-devel | |
33 | BuildRequires: meson >= 0.46.0 | |
34 | BuildRequires: ninja >= 1.5 | |
35 | BuildRequires: pkgconfig | |
36 | BuildRequires: rpmbuild(macros) >= 1.736 | |
37 | BuildRequires: tar >= 1:1.22 | |
38 | BuildRequires: udev-glib-devel >= 1:147 | |
39 | BuildRequires: xz | |
40 | Requires(post,postun): glib2 >= 1:2.40 | |
41 | Requires(post,postun): gtk-update-icon-cache | |
42 | Requires: NetworkManager >= %{nmversion} | |
43 | Requires: dbus >= 1.2.6 | |
44 | Requires: dbus-glib >= 0.74 | |
45 | Requires: glib2 >= 1:2.40 | |
46 | Requires: hicolor-icon-theme | |
47 | Requires: jansson >= 2.7 | |
48 | Requires: libnma >= 1.8.27 | |
49 | Requires: libsecret >= 0.18 | |
50 | Requires: mobile-broadband-provider-info | |
51 | Requires: polkit-gnome | |
52 | Suggests: dbus(org.freedesktop.Notifications) | |
53 | Obsoletes: NetworkManager-applet-devel < 0.7.0 | |
54 | Obsoletes: gnome-bluetooth-plugin-nma < 1.2.2 | |
55 | Conflicts: libnma-data < 1.10.4 | |
56 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
57 | ||
58 | %description | |
59 | Network Manager Applet for GNOME. | |
60 | ||
61 | %description -l pl.UTF-8 | |
62 | Aplet zarządcy sieci dla GNOME. | |
63 | ||
64 | %prep | |
65 | %setup -q -n network-manager-applet-%{version} | |
66 | ||
67 | %build | |
68 | %meson build \ | |
69 | -Dappindicator=%{?with_appindicator:ayatana}%{!?with_appindicator:no} | |
70 | ||
71 | %ninja_build -C build | |
72 | ||
73 | %install | |
74 | rm -rf $RPM_BUILD_ROOT | |
75 | install -d $RPM_BUILD_ROOT%{_datadir}/gnome-vpn-properties | |
76 | ||
77 | %ninja_install -C build | |
78 | ||
79 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/ie | |
80 | ||
81 | %find_lang %{name} --with-gnome --all-name | |
82 | ||
83 | %clean | |
84 | rm -rf $RPM_BUILD_ROOT | |
85 | ||
86 | %post | |
87 | %update_icon_cache hicolor | |
88 | %glib_compile_schemas | |
89 | ||
90 | %postun | |
91 | %update_icon_cache hicolor | |
92 | if [ "$1" = "0" ]; then | |
93 | %glib_compile_schemas | |
94 | fi | |
95 | ||
96 | %files -f %{name}.lang | |
97 | %defattr(644,root,root,755) | |
98 | %doc AUTHORS CONTRIBUTING NEWS | |
99 | %attr(755,root,root) %{_bindir}/nm-applet | |
100 | %attr(755,root,root) %{_bindir}/nm-connection-editor | |
101 | %{_datadir}/GConf/gsettings/nm-applet.convert | |
102 | %dir %{_datadir}/gnome-vpn-properties | |
103 | %{_datadir}/metainfo/nm-connection-editor.appdata.xml | |
104 | %{_datadir}/glib-2.0/schemas/org.gnome.nm-applet.gschema.xml | |
105 | %{_sysconfdir}/xdg/autostart/nm-applet.desktop | |
106 | %{_desktopdir}/nm-applet.desktop | |
107 | %{_desktopdir}/nm-connection-editor.desktop | |
108 | %{_mandir}/man1/nm-applet.1* | |
109 | %{_mandir}/man1/nm-connection-editor.1* | |
110 | %{_iconsdir}/hicolor/*x*/apps/nm-*.png | |
111 | %{_iconsdir}/hicolor/scalable/apps/nm-*.svg |