]>
Commit | Line | Data |
---|---|---|
1 | # TODO | |
2 | # - gtk+2 applet possible as well | |
3 | ||
4 | # Conditional build: | |
5 | %bcond_without gnomebt # GNOME-Bluetooth plugin | |
6 | # | |
7 | %define nmversion 2:0.9.6.0 | |
8 | Summary: Network Manager for GNOME | |
9 | Summary(pl.UTF-8): Zarządca sieci dla GNOME | |
10 | Name: NetworkManager-applet | |
11 | Version: 0.9.6.4 | |
12 | Release: 1 | |
13 | License: GPL v2 | |
14 | Group: X11/Applications | |
15 | Source0: http://ftp.gnome.org/pub/GNOME/sources/network-manager-applet/0.9/network-manager-applet-%{version}.tar.xz | |
16 | # Source0-md5: 8750d83a1151f5f9b0edd2ffcd4e8fc6 | |
17 | URL: http://projects.gnome.org/NetworkManager/ | |
18 | BuildRequires: GConf2-devel >= 2.20.0 | |
19 | BuildRequires: NetworkManager-devel >= %{nmversion} | |
20 | BuildRequires: autoconf >= 2.63 | |
21 | BuildRequires: automake >= 1:1.10 | |
22 | BuildRequires: dbus-devel >= 1.2.6 | |
23 | BuildRequires: dbus-glib-devel >= 0.74 | |
24 | BuildRequires: gettext-devel | |
25 | BuildRequires: glib2-devel >= 1:2.26.0 | |
26 | %{?with_gnomebt:BuildRequires: gnome-bluetooth-devel >= 2.28.0} | |
27 | BuildRequires: gnome-common | |
28 | BuildRequires: gtk+3-devel >= 3.2.0 | |
29 | BuildRequires: intltool >= 0.40.0 | |
30 | BuildRequires: iso-codes | |
31 | BuildRequires: libgnome-keyring-devel >= 2.20.0 | |
32 | BuildRequires: libnotify-devel >= 0.4.3 | |
33 | BuildRequires: libtool >= 2:2.2.6 | |
34 | BuildRequires: pkgconfig | |
35 | BuildRequires: rpmbuild(macros) >= 1.592 | |
36 | BuildRequires: tar >= 1:1.22 | |
37 | BuildRequires: xz | |
38 | Requires(post,postun): gtk-update-icon-cache | |
39 | Requires(post,postun): hicolor-icon-theme | |
40 | Requires(post,preun): GConf2 | |
41 | Requires: NetworkManager >= %{nmversion} | |
42 | Requires: NetworkManager-gtk-lib = %{version}-%{release} | |
43 | Requires: dbus >= 1.2.6 | |
44 | Requires: glib2 >= 1:2.26.0 | |
45 | Requires: mobile-broadband-provider-info | |
46 | Requires: polkit-gnome | |
47 | Suggests: dbus(org.freedesktop.Notifications) | |
48 | Obsoletes: NetworkManager-applet-devel | |
49 | # sr@Latn vs. sr@latin | |
50 | Conflicts: glibc-misc < 6:2.7 | |
51 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
52 | ||
53 | %description | |
54 | Network Manager Applet for GNOME. | |
55 | ||
56 | %description -l pl.UTF-8 | |
57 | Aplet zarządcy sieci dla GNOME. | |
58 | ||
59 | %package -n NetworkManager-gtk-lib | |
60 | Summary: GTK+ dialogs library for NetworkManager | |
61 | Summary(pl.UTF-8): Biblioteka okien dialogowych GTK+ dla NetworkManagera | |
62 | Group: X11/Libraries | |
63 | Requires: GConf2-libs >= 2.20.0 | |
64 | Requires: NetworkManager-libs >= %{nmversion} | |
65 | Requires: glib2 >= 1:2.26.0 | |
66 | Requires: gtk+3 >= 3.0.0 | |
67 | ||
68 | %description -n NetworkManager-gtk-lib | |
69 | GTK+ dialogs library for NetworkManager. | |
70 | ||
71 | %description -n NetworkManager-gtk-lib -l pl.UTF-8 | |
72 | Biblioteka okien dialogowych GTK+ dla NetworkManagera. | |
73 | ||
74 | %package -n NetworkManager-gtk-lib-devel | |
75 | Summary: Development package for NetworkManager-gtk-lib | |
76 | Summary(pl.UTF-8): Pakiet programistyczny dla NetworkManager-gtk-lib | |
77 | Group: X11/Development/Libraries | |
78 | Requires: NetworkManager-gtk-lib = %{version}-%{release} | |
79 | Requires: GConf2-devel >= 2.20.0 | |
80 | Requires: NetworkManager-devel >= %{nmversion} | |
81 | Requires: glib2-devel >= 1:2.26.0 | |
82 | Requires: gtk+3-devel >= 3.0.0 | |
83 | ||
84 | %description -n NetworkManager-gtk-lib-devel | |
85 | Header files and libraries for NetworkManager-gtk-lib. | |
86 | ||
87 | %description -n NetworkManager-gtk-lib-devel -l pl.UTF-8 | |
88 | Pakiet programistyczny dla NetworkManager-gtk-lib. | |
89 | ||
90 | %package -n gnome-bluetooth-plugin-nma | |
91 | Summary: NetworkManager applet plugin for GNOME Bluetooth | |
92 | Summary(pl.UTF-8): Wtyczka NetworkManager Applet dla GNOME Bluetooth | |
93 | Group: X11/Applications | |
94 | Requires: %{name} = %{version}-%{release} | |
95 | Requires: gnome-bluetooth >= 2.28.0 | |
96 | ||
97 | %description -n gnome-bluetooth-plugin-nma | |
98 | NetworkManager applet plugin for GNOME Bluetooth. | |
99 | ||
100 | %description -n gnome-bluetooth-plugin-nma -l pl.UTF-8 | |
101 | Wtyczka NetworkManager Applet dla GNOME Bluetooth. | |
102 | ||
103 | %prep | |
104 | %setup -q -n network-manager-applet-%{version} | |
105 | ||
106 | %build | |
107 | %{__intltoolize} | |
108 | %{__libtoolize} | |
109 | %{__aclocal} -I m4 | |
110 | %{__autoconf} | |
111 | %{__autoheader} | |
112 | %{__automake} | |
113 | %configure \ | |
114 | --with-gtkver=3 \ | |
115 | --disable-silent-rules \ | |
116 | --disable-static \ | |
117 | --enable-more-warnings=yes \ | |
118 | %{!?with_gnomebt:--without-bluetooth} | |
119 | %{__make} | |
120 | ||
121 | %install | |
122 | rm -rf $RPM_BUILD_ROOT | |
123 | install -d $RPM_BUILD_ROOT%{_datadir}/gnome-vpn-properties | |
124 | ||
125 | %{__make} install \ | |
126 | DESTDIR=$RPM_BUILD_ROOT | |
127 | ||
128 | %if %{with gnomebt} | |
129 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/gnome-bluetooth/plugins/*.la | |
130 | %endif | |
131 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libnm-gtk.la | |
132 | ||
133 | %find_lang %{name} --with-gnome --all-name | |
134 | ||
135 | %clean | |
136 | rm -rf $RPM_BUILD_ROOT | |
137 | ||
138 | %post | |
139 | %update_icon_cache hicolor | |
140 | %glib_compile_schemas | |
141 | ||
142 | %postun | |
143 | %update_icon_cache hicolor | |
144 | if [ "$1" = "0" ]; then | |
145 | %glib_compile_schemas | |
146 | fi | |
147 | ||
148 | %post -n NetworkManager-gtk-lib -p /sbin/ldconfig | |
149 | %postun -n NetworkManager-gtk-lib -p /sbin/ldconfig | |
150 | ||
151 | %files -f %{name}.lang | |
152 | %defattr(644,root,root,755) | |
153 | %doc AUTHORS CONTRIBUTING ChangeLog | |
154 | %attr(755,root,root) %{_bindir}/nm-applet | |
155 | %attr(755,root,root) %{_bindir}/nm-connection-editor | |
156 | %attr(755,root,root) %{_libexecdir}/nm-applet-migration-tool | |
157 | %{_datadir}/GConf/gsettings/nm-applet.convert | |
158 | %{_datadir}/glib-2.0/schemas/org.gnome.nm-applet.gschema.xml | |
159 | %dir %{_datadir}/gnome-vpn-properties | |
160 | %{_datadir}/nm-applet | |
161 | %{_sysconfdir}/xdg/autostart/nm-applet.desktop | |
162 | %{_desktopdir}/nm-applet.desktop | |
163 | %{_desktopdir}/nm-connection-editor.desktop | |
164 | %{_iconsdir}/hicolor/*/apps/*.png | |
165 | %{_iconsdir}/hicolor/*/apps/*.svg | |
166 | ||
167 | %files -n NetworkManager-gtk-lib | |
168 | %defattr(644,root,root,755) | |
169 | %attr(755,root,root) %{_libdir}/libnm-gtk.so.*.*.* | |
170 | %attr(755,root,root) %ghost %{_libdir}/libnm-gtk.so.0 | |
171 | %{_datadir}/libnm-gtk | |
172 | ||
173 | %files -n NetworkManager-gtk-lib-devel | |
174 | %defattr(644,root,root,755) | |
175 | %{_includedir}/libnm-gtk | |
176 | %{_libdir}/libnm-gtk.so | |
177 | %{_pkgconfigdir}/libnm-gtk.pc | |
178 | ||
179 | %if %{with gnomebt} | |
180 | %files -n gnome-bluetooth-plugin-nma | |
181 | %defattr(644,root,root,755) | |
182 | %attr(755,root,root) %{_libdir}/gnome-bluetooth/plugins/libnma.so | |
183 | %endif |