]>
Commit | Line | Data |
---|---|---|
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.8.16 | |
10 | Release: 1 | |
11 | License: GPL v2 | |
12 | Group: X11/Applications | |
13 | Source0: http://ftp.gnome.org/pub/GNOME/sources/network-manager-applet/1.8/network-manager-applet-%{version}.tar.xz | |
14 | # Source0-md5: 9f27c962b28bb156dc8a3d10d949afc5 | |
15 | URL: https://wiki.gnome.org/Projects/NetworkManager | |
16 | BuildRequires: ModemManager-devel >= 1.0.0 | |
17 | BuildRequires: NetworkManager-devel >= %{nmversion} | |
18 | BuildRequires: autoconf >= 2.63 | |
19 | BuildRequires: automake >= 1:1.11 | |
20 | BuildRequires: dbus-devel >= 1.2.6 | |
21 | BuildRequires: dbus-glib-devel >= 0.74 | |
22 | BuildRequires: gcr-devel >= 3.14 | |
23 | BuildRequires: gettext-tools | |
24 | BuildRequires: glib2-devel >= 1:2.32 | |
25 | BuildRequires: gobject-introspection-devel >= 0.9.6 | |
26 | BuildRequires: gtk+3-devel >= 3.4 | |
27 | BuildRequires: gtk-doc >= 1.0 | |
28 | BuildRequires: intltool >= 0.50.1 | |
29 | BuildRequires: iso-codes | |
30 | BuildRequires: jansson-devel >= 2.3 | |
31 | %{?with_appindicator:BuildRequires: libappindicator-gtk3-devel >= 0.1} | |
32 | %{?with_appindicator:BuildRequires: libdbusmenu-gtk3-devel >= 16.04.0} | |
33 | BuildRequires: libnotify-devel >= 0.7.0 | |
34 | BuildRequires: libsecret-devel | |
35 | BuildRequires: libtool >= 2:2.2.6 | |
36 | BuildRequires: mobile-broadband-provider-info-devel | |
37 | BuildRequires: pkgconfig | |
38 | BuildRequires: rpmbuild(macros) >= 1.592 | |
39 | BuildRequires: tar >= 1:1.22 | |
40 | BuildRequires: udev-glib-devel >= 1:147 | |
41 | BuildRequires: xz | |
42 | Requires(post,postun): glib2 >= 1:2.32 | |
43 | Requires(post,postun): gtk-update-icon-cache | |
44 | Requires: NetworkManager >= %{nmversion} | |
45 | Requires: NetworkManager-gtk-lib = %{version}-%{release} | |
46 | Requires: dbus >= 1.2.6 | |
47 | Requires: dbus-glib >= 0.74 | |
48 | Requires: glib2 >= 1:2.32 | |
49 | Requires: hicolor-icon-theme | |
50 | Requires: jansson >= 2.3 | |
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 | %package -n NetworkManager-gtk-lib | |
67 | Summary: GTK+ dialogs library for NetworkManager | |
68 | Summary(pl.UTF-8): Biblioteka okien dialogowych GTK+ dla NetworkManagera | |
69 | Group: X11/Libraries | |
70 | Requires: NetworkManager-libs >= %{nmversion} | |
71 | Requires: gcr >= 3.14 | |
72 | Requires: glib2 >= 1:2.32 | |
73 | Requires: gtk+3 >= 3.4 | |
74 | Requires: udev-glib >= 1:147 | |
75 | ||
76 | %description -n NetworkManager-gtk-lib | |
77 | GTK+ dialogs library for NetworkManager. | |
78 | ||
79 | %description -n NetworkManager-gtk-lib -l pl.UTF-8 | |
80 | Biblioteka okien dialogowych GTK+ dla NetworkManagera. | |
81 | ||
82 | %package -n NetworkManager-gtk-lib-devel | |
83 | Summary: Development package for NetworkManager GTK+ libraries | |
84 | Summary(pl.UTF-8): Pakiet programistyczny bibliotek GTK+ NetworkManagera | |
85 | Group: X11/Development/Libraries | |
86 | Requires: NetworkManager-devel >= %{nmversion} | |
87 | Requires: NetworkManager-gtk-lib = %{version}-%{release} | |
88 | Requires: glib2-devel >= 1:2.32 | |
89 | Requires: gtk+3-devel >= 3.4 | |
90 | ||
91 | %description -n NetworkManager-gtk-lib-devel | |
92 | Header files for NetworkManager GTK+ libraries. | |
93 | ||
94 | %description -n NetworkManager-gtk-lib-devel -l pl.UTF-8 | |
95 | Pakiet programistyczny bibliotek GTK+ NetworkManagera. | |
96 | ||
97 | %package -n NetworkManager-gtk-lib-apidocs | |
98 | Summary: API documentation for NMA (NetworkManager Applet) library | |
99 | Summary(pl.UTF-8): Dokumentacja API biblioteki NMA (NetworkManager Applet) | |
100 | Group: Documentation | |
101 | ||
102 | %description -n NetworkManager-gtk-lib-apidocs | |
103 | API documentation for NMA (NetworkManager Applet) library. | |
104 | ||
105 | %description -n NetworkManager-gtk-lib-apidocs -l pl.UTF-8 | |
106 | Dokumentacja API biblioteki NMA (NetworkManager Applet). | |
107 | ||
108 | %prep | |
109 | %setup -q -n network-manager-applet-%{version} | |
110 | ||
111 | %build | |
112 | %{__intltoolize} | |
113 | %{__libtoolize} | |
114 | %{__aclocal} -I m4 | |
115 | %{__autoconf} | |
116 | %{__autoheader} | |
117 | %{__automake} | |
118 | %configure \ | |
119 | --disable-silent-rules \ | |
120 | --disable-static \ | |
121 | --enable-more-warnings=yes \ | |
122 | %{?with_appindicator:--with-appindicator} \ | |
123 | --with-html-dir=%{_gtkdocdir} | |
124 | %{__make} | |
125 | ||
126 | %install | |
127 | rm -rf $RPM_BUILD_ROOT | |
128 | install -d $RPM_BUILD_ROOT%{_datadir}/gnome-vpn-properties | |
129 | ||
130 | %{__make} install \ | |
131 | DESTDIR=$RPM_BUILD_ROOT | |
132 | ||
133 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/{libnm-gtk,libnma}.la | |
134 | ||
135 | %find_lang %{name} --with-gnome --all-name | |
136 | ||
137 | %clean | |
138 | rm -rf $RPM_BUILD_ROOT | |
139 | ||
140 | %post | |
141 | %update_icon_cache hicolor | |
142 | %glib_compile_schemas | |
143 | ||
144 | %postun | |
145 | %update_icon_cache hicolor | |
146 | if [ "$1" = "0" ]; then | |
147 | %glib_compile_schemas | |
148 | fi | |
149 | ||
150 | %post -n NetworkManager-gtk-lib -p /sbin/ldconfig | |
151 | %postun -n NetworkManager-gtk-lib -p /sbin/ldconfig | |
152 | ||
153 | %files -f %{name}.lang | |
154 | %defattr(644,root,root,755) | |
155 | %doc AUTHORS CONTRIBUTING ChangeLog | |
156 | %attr(755,root,root) %{_bindir}/nm-applet | |
157 | %attr(755,root,root) %{_bindir}/nm-connection-editor | |
158 | %{_datadir}/GConf/gsettings/nm-applet.convert | |
159 | %{_datadir}/glib-2.0/schemas/org.gnome.nm-applet.gschema.xml | |
160 | %dir %{_datadir}/gnome-vpn-properties | |
161 | %{_datadir}/metainfo/nm-connection-editor.appdata.xml | |
162 | %{_sysconfdir}/xdg/autostart/nm-applet.desktop | |
163 | %{_desktopdir}/nm-applet.desktop | |
164 | %{_desktopdir}/nm-connection-editor.desktop | |
165 | %{_mandir}/man1/nm-applet.1* | |
166 | %{_mandir}/man1/nm-connection-editor.1* | |
167 | %{_iconsdir}/hicolor/*x*/apps/nm-*.png | |
168 | %{_iconsdir}/hicolor/scalable/apps/nm-*.svg | |
169 | ||
170 | %files -n NetworkManager-gtk-lib | |
171 | %defattr(644,root,root,755) | |
172 | %attr(755,root,root) %{_libdir}/libnm-gtk.so.*.*.* | |
173 | %attr(755,root,root) %ghost %{_libdir}/libnm-gtk.so.0 | |
174 | %attr(755,root,root) %{_libdir}/libnma.so.*.*.* | |
175 | %attr(755,root,root) %ghost %{_libdir}/libnma.so.0 | |
176 | %{_libdir}/girepository-1.0/NMA-1.0.typelib | |
177 | %{_libdir}/girepository-1.0/NMGtk-1.0.typelib | |
178 | ||
179 | %files -n NetworkManager-gtk-lib-devel | |
180 | %defattr(644,root,root,755) | |
181 | %attr(755,root,root) %{_libdir}/libnm-gtk.so | |
182 | %attr(755,root,root) %{_libdir}/libnma.so | |
183 | %{_datadir}/gir-1.0/NMA-1.0.gir | |
184 | %{_datadir}/gir-1.0/NMGtk-1.0.gir | |
185 | %{_includedir}/libnm-gtk | |
186 | %{_includedir}/libnma | |
187 | %{_pkgconfigdir}/libnm-gtk.pc | |
188 | %{_pkgconfigdir}/libnma.pc | |
189 | ||
190 | %files -n NetworkManager-gtk-lib-apidocs | |
191 | %defattr(644,root,root,755) | |
192 | %{_gtkdocdir}/libnma |