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