1 | %define dbus_version 1.4.20 |
---|
2 | %define dbus_glib_version 0.96 |
---|
3 | |
---|
4 | %define gtk3_version 3.10.0 |
---|
5 | %define wireless_tools_version 29 |
---|
6 | %define libnl3_version 3.2.14 |
---|
7 | %define ppp_version 2.4.5 |
---|
8 | |
---|
9 | %define applet_version 1.0.2 |
---|
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.0.2 |
---|
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.xz |
---|
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: iso-codes |
---|
39 | |
---|
40 | Requires(post): chkconfig |
---|
41 | Requires(preun): chkconfig |
---|
42 | |
---|
43 | Requires: libnm-gtk = %{version}-%{release} |
---|
44 | Requires: NetworkManager >= %{version} |
---|
45 | |
---|
46 | Requires: dbus |
---|
47 | Requires: dbus-glib |
---|
48 | Requires: libnotify |
---|
49 | Requires: gnome-keyring |
---|
50 | Requires: nss |
---|
51 | Requires: gnome-icon-theme |
---|
52 | |
---|
53 | Obsoletes: NetworkManager-gnome < 0.9.7.0 |
---|
54 | Provides: NetworkManager-gnome = 0.9.7.0 |
---|
55 | |
---|
56 | |
---|
57 | Vendor: Project Vine |
---|
58 | Distribution: Vine Linux |
---|
59 | Packager: Takemikaduchi |
---|
60 | |
---|
61 | %description |
---|
62 | This package contains GNOME utilities and applications for use with |
---|
63 | NetworkManager, including a panel applet for wireless networks. |
---|
64 | |
---|
65 | |
---|
66 | %package -n libnm-gtk |
---|
67 | Summary: Private libraries for NetworkManager GUI support |
---|
68 | Group: System Environment/Libraries |
---|
69 | Requires: gtk3 >= %{gtk3_version} |
---|
70 | Obsoletes: NetworkManager-gtk < 0.9.7.0 |
---|
71 | Provides: NetworkManager-gtk = 0.9.7.0 |
---|
72 | |
---|
73 | %description -n libnm-gtk |
---|
74 | This package contains private libraries to be used only by nm-applet and |
---|
75 | the GNOME Control Center. |
---|
76 | |
---|
77 | |
---|
78 | %package -n libnm-gtk-devel |
---|
79 | Summary: Private header files for NetworkManager GUI support |
---|
80 | Group: Development/Libraries |
---|
81 | Requires: libnm-gtk = %{version}-%{release} |
---|
82 | Requires: gtk3-devel |
---|
83 | Requires: dbus-glib-devel |
---|
84 | Requires: pkgconfig |
---|
85 | Obsoletes: NetworkManager-gtk-devel < 0.9.7.0 |
---|
86 | Provides: NetworkManager-gtk-devel = 0.9.7.0 |
---|
87 | |
---|
88 | %description -n libnm-gtk-devel |
---|
89 | This package contains private header and pkg-config files to be used only by |
---|
90 | nm-applet and the GNOME control center. |
---|
91 | |
---|
92 | |
---|
93 | %prep |
---|
94 | %setup -q |
---|
95 | |
---|
96 | %build |
---|
97 | export CFLAGS="$CFLAGS -Wno-error=deprecated-declarations" |
---|
98 | NOCONFIGURE=1 ./autogen.sh |
---|
99 | %configure --disable-static |
---|
100 | make |
---|
101 | |
---|
102 | %install |
---|
103 | %{__rm} -rf $RPM_BUILD_ROOT |
---|
104 | |
---|
105 | # install the applet |
---|
106 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
107 | |
---|
108 | find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \; |
---|
109 | |
---|
110 | mkdir -p $RPM_BUILD_ROOT%{_datadir}/gnome-vpn-properties |
---|
111 | |
---|
112 | %find_lang nm-applet |
---|
113 | |
---|
114 | %clean |
---|
115 | rm -rf $RPM_BUILD_ROOT |
---|
116 | |
---|
117 | |
---|
118 | %post |
---|
119 | touch --no-create %{_datadir}/icons/hicolor |
---|
120 | if [ -x /usr/bin/gtk-update-icon-cache ]; then |
---|
121 | gtk-update-icon-cache -q %{_datadir}/icons/hicolor |
---|
122 | fi |
---|
123 | |
---|
124 | %postun |
---|
125 | touch --no-create %{_datadir}/icons/hicolor |
---|
126 | if [ -x /usr/bin/gtk-update-icon-cache ]; then |
---|
127 | gtk-update-icon-cache -q %{_datadir}/icons/hicolor |
---|
128 | fi |
---|
129 | if [ $1 -eq 0 ]; then |
---|
130 | glib-compile-schemas %{_datadir}/glib-2.0/schemas ||: |
---|
131 | fi |
---|
132 | |
---|
133 | %posttrans |
---|
134 | glib-compile-schemas %{_datadir}/glib-2.0/schemas ||: |
---|
135 | |
---|
136 | %post -n libnm-gtk -p /sbin/ldconfig |
---|
137 | |
---|
138 | %postun -n libnm-gtk -p /sbin/ldconfig |
---|
139 | |
---|
140 | |
---|
141 | %files -f nm-applet.lang |
---|
142 | %defattr(-,root,root,0755) |
---|
143 | %{_bindir}/nm-applet |
---|
144 | %{_bindir}/nm-connection-editor |
---|
145 | %{_libexecdir}/nm-applet-migration-tool |
---|
146 | %{_datadir}/applications/*.desktop |
---|
147 | %{_datadir}/nm-applet/ |
---|
148 | %{_datadir}/GConf/gsettings/nm-applet.convert |
---|
149 | %{_datadir}/glib-2.0/schemas/org.gnome.nm-applet.gschema.xml |
---|
150 | %{_datadir}/icons/hicolor/16x16/apps/*.png |
---|
151 | %{_datadir}/icons/hicolor/22x22/apps/*.png |
---|
152 | %{_datadir}/icons/hicolor/32x32/apps/*.png |
---|
153 | %{_datadir}/icons/hicolor/48x48/apps/*.png |
---|
154 | %{_datadir}/icons/hicolor/scalable/apps/*.svg |
---|
155 | %{_sysconfdir}/xdg/autostart/nm-applet.desktop |
---|
156 | %dir %{_datadir}/gnome-vpn-properties |
---|
157 | ##%{_libdir}/gnome-bluetooth/plugins/libnma.so |
---|
158 | %{_mandir}/man1/nm-applet.1.gz |
---|
159 | %{_mandir}/man1/nm-connection-editor.1.gz |
---|
160 | |
---|
161 | %files -n libnm-gtk |
---|
162 | %defattr(-,root,root,-) |
---|
163 | %{_libdir}/libnm-gtk.so.* |
---|
164 | %{_libdir}/girepository-1.0/NMGtk-1.0.typelib |
---|
165 | %dir %{_datadir}/libnm-gtk |
---|
166 | %{_datadir}/libnm-gtk/*.ui |
---|
167 | |
---|
168 | %files -n libnm-gtk-devel |
---|
169 | %defattr(-,root,root,-) |
---|
170 | %{_includedir}/libnm-gtk |
---|
171 | %{_libdir}/pkgconfig/libnm-gtk.pc |
---|
172 | %{_libdir}/libnm-gtk.so |
---|
173 | %{_datadir}/gir-1.0/NMGtk-1.0.gir |
---|
174 | |
---|
175 | |
---|
176 | %changelog |
---|
177 | * Sat May 16 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.2-1 |
---|
178 | - new upstream release |
---|
179 | |
---|
180 | * Sun Apr 05 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.10.2-1 |
---|
181 | - new upstream release |
---|
182 | |
---|
183 | * Sun Oct 26 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.10.0-1 |
---|
184 | - new upstream release |
---|
185 | |
---|
186 | * Tue Oct 14 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.9.8.10-2 |
---|
187 | - moved libnm-gtk to System Environment/Libraries Group |
---|
188 | |
---|
189 | * Fri May 16 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.8.10-1 |
---|
190 | - new upstream release |
---|
191 | |
---|
192 | * Sun Apr 13 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.8.9-1 |
---|
193 | - new upstream release |
---|
194 | |
---|
195 | * Sun Nov 24 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.8.8-1 |
---|
196 | - new upstream release |
---|
197 | |
---|
198 | * Sat Oct 26 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.8.4-1 |
---|
199 | - new upstream release |
---|
200 | - remove Patch0 (network-manager-applet--0.9.8.2-git20130801.patch) |
---|
201 | - add BuildRequires: ModemManager-glib-devel |
---|
202 | |
---|
203 | * Sun Jun 09 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.8.2-2 |
---|
204 | - add Patch0 (network-manager-applet--0.9.8.2-git20130801.patch) |
---|
205 | |
---|
206 | * Sun Jun 09 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.8.2-1 |
---|
207 | - update to 0.9.8.2 |
---|
208 | - add BuildRequires: libsecret-devel |
---|
209 | |
---|
210 | * Sun Apr 21 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.8.0-1 |
---|
211 | - initial package split from NetworkManager |
---|
212 | |
---|