]> git.pld-linux.org Git - packages/NetworkManager-applet.git/blob - NetworkManager-applet.spec
up to 1.20.0
[packages/NetworkManager-applet.git] / NetworkManager-applet.spec
1 #
2 # Conditional build:
3 %bcond_with     appindicator    # application indicators instead of xembed systray support
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.20.0
10 Release:        1
11 License:        GPL v2
12 Group:          X11/Applications
13 Source0:        http://ftp.gnome.org/pub/GNOME/sources/network-manager-applet/1.20/network-manager-applet-%{version}.tar.xz
14 # Source0-md5:  33dc7ec7170b12fd8595acbf53055870
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.38
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:     libappindicator-gtk3-devel >= 0.1}
29 %{?with_appindicator:BuildRequires:     libdbusmenu-gtk3-devel >= 16.04.0}
30 BuildRequires:  libnma-devel >= 1.8.27
31 BuildRequires:  libnotify-devel >= 0.7.0
32 BuildRequires:  libsecret-devel >= 0.18
33 BuildRequires:  libselinux-devel
34 BuildRequires:  meson >= 0.46.0
35 BuildRequires:  ninja >= 1.5
36 BuildRequires:  pkgconfig
37 BuildRequires:  rpmbuild(macros) >= 1.736
38 BuildRequires:  tar >= 1:1.22
39 BuildRequires:  udev-glib-devel >= 1:147
40 BuildRequires:  xz
41 Requires(post,postun):  glib2 >= 1:2.38
42 Requires(post,postun):  gtk-update-icon-cache
43 Requires:       NetworkManager >= %{nmversion}
44 Requires:       dbus >= 1.2.6
45 Requires:       dbus-glib >= 0.74
46 Requires:       glib2 >= 1:2.38
47 Requires:       hicolor-icon-theme
48 Requires:       jansson >= 2.7
49 Requires:       libnma >= 1.8.27
50 Requires:       libsecret >= 0.18
51 Requires:       mobile-broadband-provider-info
52 Requires:       polkit-gnome
53 Suggests:       dbus(org.freedesktop.Notifications)
54 Obsoletes:      NetworkManager-applet-devel
55 Obsoletes:      gnome-bluetooth-plugin-nma < 1.2.2
56 # sr@Latn vs. sr@latin
57 Conflicts:      glibc-misc < 6:2.7
58 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
59
60 %description
61 Network Manager Applet for GNOME.
62
63 %description -l pl.UTF-8
64 Aplet zarządcy sieci dla GNOME.
65
66 %prep
67 %setup -q -n network-manager-applet-%{version}
68
69 %build
70 %meson build \
71         -Dappindicator=%{?with_appindicator:yes}%{!?with_appindicator:no}
72
73 %ninja_build -C build
74
75 %install
76 rm -rf $RPM_BUILD_ROOT
77 install -d $RPM_BUILD_ROOT%{_datadir}/gnome-vpn-properties
78
79 %ninja_install -C build
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 ChangeLog
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 %{_sysconfdir}/xdg/autostart/nm-applet.desktop
105 %{_desktopdir}/nm-applet.desktop
106 %{_desktopdir}/nm-connection-editor.desktop
107 %{_mandir}/man1/nm-applet.1*
108 %{_mandir}/man1/nm-connection-editor.1*
109 %{_iconsdir}/hicolor/*x*/apps/nm-*.png
110 %{_iconsdir}/hicolor/scalable/apps/nm-*.svg
This page took 0.071517 seconds and 4 git commands to generate.