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