]>
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.20 | |
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: 06aafa851762146034351aa72ebb23d4 | |
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.38 | |
25 | BuildRequires: gobject-introspection-devel >= 0.9.6 | |
26 | BuildRequires: gtk+3-devel >= 3.10 | |
27 | BuildRequires: gtk-doc >= 1.0 | |
28 | BuildRequires: intltool >= 0.50.1 | |
29 | BuildRequires: iso-codes | |
30 | BuildRequires: jansson-devel >= 2.7 | |
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 >= 0.18 | |
35 | BuildRequires: libselinux-devel | |
36 | BuildRequires: libtool >= 2:2.2.6 | |
37 | BuildRequires: mobile-broadband-provider-info-devel | |
38 | BuildRequires: pkgconfig | |
39 | BuildRequires: rpmbuild(macros) >= 1.592 | |
40 | BuildRequires: tar >= 1:1.22 | |
41 | BuildRequires: udev-glib-devel >= 1:147 | |
42 | BuildRequires: xz | |
43 | Requires(post,postun): glib2 >= 1:2.38 | |
44 | Requires(post,postun): gtk-update-icon-cache | |
45 | Requires: NetworkManager >= %{nmversion} | |
46 | Requires: NetworkManager-gtk-lib = %{version}-%{release} | |
47 | Requires: dbus >= 1.2.6 | |
48 | Requires: dbus-glib >= 0.74 | |
49 | Requires: glib2 >= 1:2.38 | |
50 | Requires: hicolor-icon-theme | |
51 | Requires: jansson >= 2.7 | |
52 | Requires: libsecret >= 0.18 | |
53 | Requires: mobile-broadband-provider-info | |
54 | Requires: polkit-gnome | |
55 | Suggests: dbus(org.freedesktop.Notifications) | |
56 | Obsoletes: NetworkManager-applet-devel | |
57 | Obsoletes: gnome-bluetooth-plugin-nma < 1.2.2 | |
58 | # sr@Latn vs. sr@latin | |
59 | Conflicts: glibc-misc < 6:2.7 | |
60 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
61 | ||
62 | %description | |
63 | Network Manager Applet for GNOME. | |
64 | ||
65 | %description -l pl.UTF-8 | |
66 | Aplet zarządcy sieci dla GNOME. | |
67 | ||
68 | %package -n NetworkManager-gtk-lib | |
69 | Summary: GTK+ dialogs library for NetworkManager | |
70 | Summary(pl.UTF-8): Biblioteka okien dialogowych GTK+ dla NetworkManagera | |
71 | Group: X11/Libraries | |
72 | Requires: NetworkManager-libs >= %{nmversion} | |
73 | Requires: gcr >= 3.14 | |
74 | Requires: glib2 >= 1:2.38 | |
75 | Requires: gtk+3 >= 3.10 | |
76 | Requires: udev-glib >= 1:147 | |
77 | ||
78 | %description -n NetworkManager-gtk-lib | |
79 | GTK+ dialogs library for NetworkManager. | |
80 | ||
81 | %description -n NetworkManager-gtk-lib -l pl.UTF-8 | |
82 | Biblioteka okien dialogowych GTK+ dla NetworkManagera. | |
83 | ||
84 | %package -n NetworkManager-gtk-lib-devel | |
85 | Summary: Development package for NetworkManager GTK+ libraries | |
86 | Summary(pl.UTF-8): Pakiet programistyczny bibliotek GTK+ NetworkManagera | |
87 | Group: X11/Development/Libraries | |
88 | Requires: NetworkManager-devel >= %{nmversion} | |
89 | Requires: NetworkManager-gtk-lib = %{version}-%{release} | |
90 | Requires: glib2-devel >= 1:2.38 | |
91 | Requires: gtk+3-devel >= 3.10 | |
92 | ||
93 | %description -n NetworkManager-gtk-lib-devel | |
94 | Header files for NetworkManager GTK+ libraries. | |
95 | ||
96 | %description -n NetworkManager-gtk-lib-devel -l pl.UTF-8 | |
97 | Pakiet programistyczny bibliotek GTK+ NetworkManagera. | |
98 | ||
99 | %package -n NetworkManager-gtk-lib-apidocs | |
100 | Summary: API documentation for NMA (NetworkManager Applet) library | |
101 | Summary(pl.UTF-8): Dokumentacja API biblioteki NMA (NetworkManager Applet) | |
102 | Group: Documentation | |
103 | ||
104 | %description -n NetworkManager-gtk-lib-apidocs | |
105 | API documentation for NMA (NetworkManager Applet) library. | |
106 | ||
107 | %description -n NetworkManager-gtk-lib-apidocs -l pl.UTF-8 | |
108 | Dokumentacja API biblioteki NMA (NetworkManager Applet). | |
109 | ||
110 | %prep | |
111 | %setup -q -n network-manager-applet-%{version} | |
112 | ||
113 | %build | |
114 | %{__intltoolize} | |
115 | %{__libtoolize} | |
116 | %{__aclocal} -I m4 | |
117 | %{__autoconf} | |
118 | %{__autoheader} | |
119 | %{__automake} | |
120 | %configure \ | |
121 | --disable-silent-rules \ | |
122 | --disable-static \ | |
123 | --enable-more-warnings=yes \ | |
124 | %{?with_appindicator:--with-appindicator} \ | |
125 | --with-libnm-gtk \ | |
126 | --with-html-dir=%{_gtkdocdir} | |
127 | %{__make} | |
128 | ||
129 | %install | |
130 | rm -rf $RPM_BUILD_ROOT | |
131 | install -d $RPM_BUILD_ROOT%{_datadir}/gnome-vpn-properties | |
132 | ||
133 | %{__make} install \ | |
134 | DESTDIR=$RPM_BUILD_ROOT | |
135 | ||
136 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/{libnm-gtk,libnma}.la | |
137 | ||
138 | %find_lang %{name} --with-gnome --all-name | |
139 | ||
140 | %clean | |
141 | rm -rf $RPM_BUILD_ROOT | |
142 | ||
143 | %post | |
144 | %update_icon_cache hicolor | |
145 | %glib_compile_schemas | |
146 | ||
147 | %postun | |
148 | %update_icon_cache hicolor | |
149 | if [ "$1" = "0" ]; then | |
150 | %glib_compile_schemas | |
151 | fi | |
152 | ||
153 | %post -n NetworkManager-gtk-lib -p /sbin/ldconfig | |
154 | %postun -n NetworkManager-gtk-lib -p /sbin/ldconfig | |
155 | ||
156 | %files -f %{name}.lang | |
157 | %defattr(644,root,root,755) | |
158 | %doc AUTHORS CONTRIBUTING ChangeLog | |
159 | %attr(755,root,root) %{_bindir}/nm-applet | |
160 | %attr(755,root,root) %{_bindir}/nm-connection-editor | |
161 | %{_datadir}/GConf/gsettings/nm-applet.convert | |
162 | %{_datadir}/glib-2.0/schemas/org.gnome.nm-applet.gschema.xml | |
163 | %dir %{_datadir}/gnome-vpn-properties | |
164 | %{_datadir}/metainfo/nm-connection-editor.appdata.xml | |
165 | %{_sysconfdir}/xdg/autostart/nm-applet.desktop | |
166 | %{_desktopdir}/nm-applet.desktop | |
167 | %{_desktopdir}/nm-connection-editor.desktop | |
168 | %{_mandir}/man1/nm-applet.1* | |
169 | %{_mandir}/man1/nm-connection-editor.1* | |
170 | %{_iconsdir}/hicolor/*x*/apps/nm-*.png | |
171 | %{_iconsdir}/hicolor/scalable/apps/nm-*.svg | |
172 | ||
173 | %files -n NetworkManager-gtk-lib | |
174 | %defattr(644,root,root,755) | |
175 | %attr(755,root,root) %{_libdir}/libnm-gtk.so.*.*.* | |
176 | %attr(755,root,root) %ghost %{_libdir}/libnm-gtk.so.0 | |
177 | %attr(755,root,root) %{_libdir}/libnma.so.*.*.* | |
178 | %attr(755,root,root) %ghost %{_libdir}/libnma.so.0 | |
179 | %{_libdir}/girepository-1.0/NMA-1.0.typelib | |
180 | %{_libdir}/girepository-1.0/NMGtk-1.0.typelib | |
181 | ||
182 | %files -n NetworkManager-gtk-lib-devel | |
183 | %defattr(644,root,root,755) | |
184 | %attr(755,root,root) %{_libdir}/libnm-gtk.so | |
185 | %attr(755,root,root) %{_libdir}/libnma.so | |
186 | %{_datadir}/gir-1.0/NMA-1.0.gir | |
187 | %{_datadir}/gir-1.0/NMGtk-1.0.gir | |
188 | %{_includedir}/libnm-gtk | |
189 | %{_includedir}/libnma | |
190 | %{_pkgconfigdir}/libnm-gtk.pc | |
191 | %{_pkgconfigdir}/libnma.pc | |
192 | ||
193 | %files -n NetworkManager-gtk-lib-apidocs | |
194 | %defattr(644,root,root,755) | |
195 | %{_gtkdocdir}/libnma |