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