1 | %define _unpackaged_files_terminate_build 1 |
---|
2 | |
---|
3 | %define dbus_version 1.4.20 |
---|
4 | %define dbus_glib_version 0.96 |
---|
5 | |
---|
6 | %define gtk3_version 3.10.0 |
---|
7 | %define wireless_tools_version 29 |
---|
8 | %define libnl3_version 3.4.0 |
---|
9 | %define ppp_version 2.4.7 |
---|
10 | |
---|
11 | #define snapshot .git20090414 |
---|
12 | #define applet_snapshot %{nil} |
---|
13 | |
---|
14 | Name: network-manager-applet |
---|
15 | Summary: GNOME applications for use with NetworkManager |
---|
16 | Summary(ja): NetworkManager 用 GNOME アプリケーション |
---|
17 | Version: 1.8.10 |
---|
18 | Release: 1%{?snapshot}%{?_dist_release} |
---|
19 | |
---|
20 | Group: Applications/Internet |
---|
21 | License: GPLv2+ |
---|
22 | URL: http://www.gnome.org/projects/NetworkManager/ |
---|
23 | |
---|
24 | Source: %{name}-%{version}.tar.gz |
---|
25 | |
---|
26 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
27 | BuildRequires: NetworkManager-glib-devel >= %{version} |
---|
28 | BuildRequires: ModemManager-glib-devel |
---|
29 | BuildRequires: dbus-devel >= %{dbus_version} |
---|
30 | BuildRequires: dbus-glib-devel >= %{dbus_glib_version} |
---|
31 | BuildRequires: gtk3-devel |
---|
32 | BuildRequires: GConf2-devel |
---|
33 | BuildRequires: libgnome-keyring-devel |
---|
34 | #BuildRequires: gettext |
---|
35 | BuildRequires: libnotify-devel >= 0.7 |
---|
36 | BuildRequires: libgudev1-devel |
---|
37 | BuildRequires: libsecret-devel |
---|
38 | BuildRequires: pkgconfig(jansson) |
---|
39 | BuildRequires: pygobject3 |
---|
40 | BuildRequires: iso-codes |
---|
41 | |
---|
42 | Requires(post): chkconfig |
---|
43 | Requires(preun): chkconfig |
---|
44 | |
---|
45 | Requires: libnm-gtk = %{version}-%{release} |
---|
46 | Requires: NetworkManager >= %{version} |
---|
47 | |
---|
48 | Requires: dbus |
---|
49 | Requires: dbus-glib |
---|
50 | Requires: libnotify |
---|
51 | Requires: gnome-keyring |
---|
52 | Requires: nss |
---|
53 | Requires: gnome-icon-theme |
---|
54 | |
---|
55 | Obsoletes: NetworkManager-gnome < 0.9.7.0 |
---|
56 | Provides: NetworkManager-gnome = 0.9.7.0 |
---|
57 | |
---|
58 | |
---|
59 | Vendor: Project Vine |
---|
60 | Distribution: Vine Linux |
---|
61 | |
---|
62 | %description |
---|
63 | This package contains GNOME utilities and applications for use with |
---|
64 | NetworkManager, including a panel applet for wireless networks. |
---|
65 | |
---|
66 | |
---|
67 | %package -n libnm-gtk |
---|
68 | Summary: Private libraries for NetworkManager GUI support |
---|
69 | Group: System Environment/Libraries |
---|
70 | Requires: gtk3 >= %{gtk3_version} |
---|
71 | Obsoletes: NetworkManager-gtk < 0.9.7.0 |
---|
72 | Provides: NetworkManager-gtk = 0.9.7.0 |
---|
73 | |
---|
74 | %description -n libnm-gtk |
---|
75 | This package contains private libraries to be used only by nm-applet and |
---|
76 | the GNOME Control Center. |
---|
77 | |
---|
78 | |
---|
79 | %package -n libnm-gtk-devel |
---|
80 | Summary: Private header files for NetworkManager GUI support |
---|
81 | Group: Development/Libraries |
---|
82 | Requires: libnm-gtk = %{version}-%{release} |
---|
83 | Requires: gtk3-devel |
---|
84 | Requires: dbus-glib-devel |
---|
85 | Requires: pkgconfig |
---|
86 | Obsoletes: NetworkManager-gtk-devel < 0.9.7.0 |
---|
87 | Provides: NetworkManager-gtk-devel = 0.9.7.0 |
---|
88 | |
---|
89 | %description -n libnm-gtk-devel |
---|
90 | This package contains private header and pkg-config files to be used only by |
---|
91 | nm-applet and the GNOME control center. |
---|
92 | |
---|
93 | |
---|
94 | %package -n libnma |
---|
95 | Summary: Private libraries for NetworkManager GUI support |
---|
96 | Group: System Environment/Libraries |
---|
97 | |
---|
98 | %description -n libnma |
---|
99 | This package contains private libraries to be used only by nm-applet, |
---|
100 | nm-connection editor, and the GNOME Control Center. |
---|
101 | |
---|
102 | |
---|
103 | %package -n libnma-devel |
---|
104 | Summary: Private header files for NetworkManager GUI support |
---|
105 | Group: Development/Libraries |
---|
106 | Requires: pkgconfig |
---|
107 | Requires: pkgconfig(libnm) |
---|
108 | Requires: libnma = %{version}-%{release} |
---|
109 | Requires: NetworkManager-devel |
---|
110 | Requires: NetworkManager-libnm-devel |
---|
111 | |
---|
112 | %description -n libnma-devel |
---|
113 | This package contains private header and pkg-config files to be used only by |
---|
114 | nm-applet, nm-connection-editor, and the GNOME control center. |
---|
115 | |
---|
116 | |
---|
117 | %prep |
---|
118 | %setup -q |
---|
119 | |
---|
120 | %build |
---|
121 | export CFLAGS="$CFLAGS -Wno-error=deprecated-declarations" |
---|
122 | NOCONFIGURE=1 ./autogen.sh |
---|
123 | %configure --disable-static --without-selinux |
---|
124 | make |
---|
125 | |
---|
126 | %install |
---|
127 | %{__rm} -rf $RPM_BUILD_ROOT |
---|
128 | |
---|
129 | # install the applet |
---|
130 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
131 | |
---|
132 | find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \; |
---|
133 | |
---|
134 | mkdir -p $RPM_BUILD_ROOT%{_datadir}/gnome-vpn-properties |
---|
135 | |
---|
136 | %find_lang nm-applet |
---|
137 | |
---|
138 | %clean |
---|
139 | rm -rf $RPM_BUILD_ROOT |
---|
140 | |
---|
141 | |
---|
142 | %post |
---|
143 | touch --no-create %{_datadir}/icons/hicolor |
---|
144 | if [ -x /usr/bin/gtk-update-icon-cache ]; then |
---|
145 | gtk-update-icon-cache -q %{_datadir}/icons/hicolor |
---|
146 | fi |
---|
147 | |
---|
148 | %postun |
---|
149 | touch --no-create %{_datadir}/icons/hicolor |
---|
150 | if [ -x /usr/bin/gtk-update-icon-cache ]; then |
---|
151 | gtk-update-icon-cache -q %{_datadir}/icons/hicolor |
---|
152 | fi |
---|
153 | if [ $1 -eq 0 ]; then |
---|
154 | glib-compile-schemas %{_datadir}/glib-2.0/schemas ||: |
---|
155 | fi |
---|
156 | |
---|
157 | %posttrans |
---|
158 | glib-compile-schemas %{_datadir}/glib-2.0/schemas ||: |
---|
159 | |
---|
160 | %post -n libnm-gtk -p /sbin/ldconfig |
---|
161 | |
---|
162 | %postun -n libnm-gtk -p /sbin/ldconfig |
---|
163 | |
---|
164 | |
---|
165 | %files -f nm-applet.lang |
---|
166 | %defattr(-,root,root,0755) |
---|
167 | %{_bindir}/nm-applet |
---|
168 | %{_bindir}/nm-connection-editor |
---|
169 | #{_libexecdir}/nm-applet-migration-tool |
---|
170 | %{_datadir}/appdata/nm-connection-editor.appdata.xml |
---|
171 | %{_datadir}/applications/*.desktop |
---|
172 | #{_datadir}/nm-applet/ |
---|
173 | %{_datadir}/GConf/gsettings/nm-applet.convert |
---|
174 | %{_datadir}/glib-2.0/schemas/org.gnome.nm-applet.gschema.xml |
---|
175 | %{_datadir}/icons/hicolor/16x16/apps/*.png |
---|
176 | %{_datadir}/icons/hicolor/22x22/apps/*.png |
---|
177 | %{_datadir}/icons/hicolor/32x32/apps/*.png |
---|
178 | %{_datadir}/icons/hicolor/48x48/apps/*.png |
---|
179 | %{_datadir}/icons/hicolor/scalable/apps/*.svg |
---|
180 | %{_sysconfdir}/xdg/autostart/nm-applet.desktop |
---|
181 | %dir %{_datadir}/gnome-vpn-properties |
---|
182 | ##%{_libdir}/gnome-bluetooth/plugins/libnma.so |
---|
183 | %{_mandir}/man1/nm-applet.1.gz |
---|
184 | %{_mandir}/man1/nm-connection-editor.1.gz |
---|
185 | |
---|
186 | %files -n libnm-gtk |
---|
187 | %defattr(-,root,root,-) |
---|
188 | %{_libdir}/libnm-gtk.so.* |
---|
189 | %{_libdir}/girepository-1.0/NMGtk-1.0.typelib |
---|
190 | #dir %{_datadir}/libnm-gtk |
---|
191 | #{_datadir}/libnm-gtk/*.ui |
---|
192 | |
---|
193 | %files -n libnm-gtk-devel |
---|
194 | %defattr(-,root,root,-) |
---|
195 | %{_includedir}/libnm-gtk |
---|
196 | %{_libdir}/pkgconfig/libnm-gtk.pc |
---|
197 | %{_libdir}/libnm-gtk.so |
---|
198 | %{_datadir}/gir-1.0/NMGtk-1.0.gir |
---|
199 | |
---|
200 | %files -n libnma |
---|
201 | %{_libdir}/girepository-1.0/NMA-1.0.typelib |
---|
202 | %{_libdir}/libnma.so.* |
---|
203 | |
---|
204 | %files -n libnma-devel |
---|
205 | %dir %{_includedir}/libnma |
---|
206 | %{_includedir}/libnma/* |
---|
207 | %{_libdir}/libnma.so |
---|
208 | %{_libdir}/pkgconfig/libnma.pc |
---|
209 | %{_datadir}/gir-1.0/NMA-1.0.gir |
---|
210 | |
---|
211 | |
---|
212 | %changelog |
---|
213 | * Sat Mar 03 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.8.10-1 |
---|
214 | - new upstream release. |
---|
215 | - added subpackages libnma{,-devel}. |
---|
216 | |
---|
217 | * Sun Dec 27 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.10-1 |
---|
218 | - new upstream release |
---|
219 | |
---|
220 | * Wed Nov 25 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.8-1 |
---|
221 | - new upstream release |
---|
222 | |
---|
223 | * Sun Aug 30 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.6-1 |
---|
224 | - new upstream release |
---|
225 | |
---|
226 | * Mon Jul 20 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.4-1 |
---|
227 | - new upstream release |
---|
228 | |
---|
229 | * Sat May 16 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.2-1 |
---|
230 | - new upstream release |
---|
231 | |
---|
232 | * Sun Apr 05 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.10.2-1 |
---|
233 | - new upstream release |
---|
234 | |
---|
235 | * Sun Oct 26 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.10.0-1 |
---|
236 | - new upstream release |
---|
237 | |
---|
238 | * Tue Oct 14 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.9.8.10-2 |
---|
239 | - moved libnm-gtk to System Environment/Libraries Group |
---|
240 | |
---|
241 | * Fri May 16 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.8.10-1 |
---|
242 | - new upstream release |
---|
243 | |
---|
244 | * Sun Apr 13 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.8.9-1 |
---|
245 | - new upstream release |
---|
246 | |
---|
247 | * Sun Nov 24 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.8.8-1 |
---|
248 | - new upstream release |
---|
249 | |
---|
250 | * Sat Oct 26 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.8.4-1 |
---|
251 | - new upstream release |
---|
252 | - remove Patch0 (network-manager-applet--0.9.8.2-git20130801.patch) |
---|
253 | - add BuildRequires: ModemManager-glib-devel |
---|
254 | |
---|
255 | * Sun Jun 09 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.8.2-2 |
---|
256 | - add Patch0 (network-manager-applet--0.9.8.2-git20130801.patch) |
---|
257 | |
---|
258 | * Sun Jun 09 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.8.2-1 |
---|
259 | - update to 0.9.8.2 |
---|
260 | - add BuildRequires: libsecret-devel |
---|
261 | |
---|
262 | * Sun Apr 21 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.8.0-1 |
---|
263 | - initial package split from NetworkManager |
---|
264 | |
---|