1 | #define python_sitelib %(%{__python} -c 'from distutils import sysconfig; print sysconfig.get_python_lib(1)') |
---|
2 | |
---|
3 | Summary: A wireless and wired network manager |
---|
4 | Summary(ja): 無線・有線ネットワークマネージャ |
---|
5 | Name: wicd |
---|
6 | Version: 1.7.2.4 |
---|
7 | Release: 1%{?_dist_release} |
---|
8 | Source0: %{name}-%{version}.tar.gz |
---|
9 | Patch0: wicd-desktop.patch |
---|
10 | Patch1: 02-workaround_dhclient_bug.patch |
---|
11 | #Patch2: 26-support_etc-network_scripts.patch |
---|
12 | Patch3: 770_769.diff |
---|
13 | Patch100: add_fix_ja.patch |
---|
14 | |
---|
15 | License: GPLv2 |
---|
16 | Group: System Environment/Base |
---|
17 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
18 | URL: https://launchpad.net/wicd |
---|
19 | BuildArch: noarch |
---|
20 | |
---|
21 | BuildRequires: gettext |
---|
22 | BuildRequires: desktop-file-utils |
---|
23 | BuildRequires: python >= 2.4 python-devel >= 2.4 |
---|
24 | BuildRequires: python-babel |
---|
25 | BuildRequires: python-setuptools |
---|
26 | |
---|
27 | Requires: pm-utils >= 1.2.4 |
---|
28 | |
---|
29 | Requires: %{name}-common |
---|
30 | Requires: %{name}-curses |
---|
31 | Requires: %{name}-gtk |
---|
32 | |
---|
33 | #Requires(post): chkconfig |
---|
34 | #Requires(preun): chkconfig |
---|
35 | #Requires(preun): /sbin/service |
---|
36 | #Requires(postun): /sbin/service |
---|
37 | |
---|
38 | Conflicts: NetworkManager |
---|
39 | |
---|
40 | %description |
---|
41 | A complete network connection manager |
---|
42 | Wicd supports wired and wireless networks, and capable of |
---|
43 | creating and tracking profiles for both. It has a |
---|
44 | template-based wireless encryption system, which allows the user |
---|
45 | to easily add encryption methods used. It ships with some common |
---|
46 | encryption types, such as WPA and WEP. Wicd will automatically |
---|
47 | connect at startup to any preferred network within range. |
---|
48 | |
---|
49 | %package common |
---|
50 | Summary: Wicd common files |
---|
51 | Summary(ja): Wicd の共通ファイル |
---|
52 | Group: System Environment/Base |
---|
53 | BuildArch: noarch |
---|
54 | Requires: dbus |
---|
55 | Requires: dbus-python |
---|
56 | Requires: dhclient |
---|
57 | Requires: ethtool |
---|
58 | Requires: iproute |
---|
59 | Requires: logrotate |
---|
60 | Requires: net-tools |
---|
61 | Requires: pm-utils |
---|
62 | Requires: wireless-tools |
---|
63 | Requires: wpa_supplicant |
---|
64 | |
---|
65 | Requires(post): chkconfig |
---|
66 | Requires(preun): chkconfig |
---|
67 | Requires(preun): /sbin/service |
---|
68 | Requires(postun): /sbin/service |
---|
69 | #Requires(preun): initscripts |
---|
70 | #Requires(postun): initscripts |
---|
71 | |
---|
72 | %description common |
---|
73 | This package provides the main wicd daemon and the wicd-cli front-end. |
---|
74 | |
---|
75 | %package curses |
---|
76 | Summary: Curses client for Wicd |
---|
77 | Summary(ja): Wicd の Curse クライアント |
---|
78 | Group: Applications/System |
---|
79 | BuildArch: noarch |
---|
80 | Requires: %{name}-common = %{version}-%{release} |
---|
81 | Requires: python-urwid >= 0.9.8.3 |
---|
82 | |
---|
83 | %description curses |
---|
84 | Client program for wicd that uses a curses interface. |
---|
85 | |
---|
86 | %package gtk |
---|
87 | Summary: GTK+ client for Wicd |
---|
88 | Summary(ja): Wicd の GTK+ クライアント |
---|
89 | Group: Applications/Internet |
---|
90 | BuildArch: noarch |
---|
91 | Requires: %{name}-common = %{version}-%{release} |
---|
92 | Requires: pygtk2 >= 2.10 |
---|
93 | Requires: pygtk2-libglade >= 2.10 |
---|
94 | Requires: gksu |
---|
95 | |
---|
96 | %description gtk |
---|
97 | Client program for wicd that uses a GTK+ interface. |
---|
98 | |
---|
99 | |
---|
100 | %prep |
---|
101 | %setup -q |
---|
102 | %patch0 -p1 |
---|
103 | %patch1 -p1 |
---|
104 | #%patch2 -p1 |
---|
105 | %patch3 -p0 |
---|
106 | %patch100 -p1 |
---|
107 | |
---|
108 | %{__sed} -i 's/\r//' wicd/logfile.py |
---|
109 | |
---|
110 | %build |
---|
111 | python setup.py compile_translations |
---|
112 | |
---|
113 | %{__python} setup.py configure --share=%{_datadir}/%{name} \ |
---|
114 | --etc=%{_sysconfdir}/%{name} \ |
---|
115 | --bin=%{_bindir} \ |
---|
116 | --sbin=%{_sbindir} \ |
---|
117 | --mandir=%{_mandir} \ |
---|
118 | --varlib=%{_sharedstatedir}/wicd \ |
---|
119 | --pmutils=%{_libdir}/pm-utils/sleep.d \ |
---|
120 | --resume=%{_sysconfdir}/acpi/resume.d \ |
---|
121 | --suspend=%{_sysconfdir}/acpi/suspend.d \ |
---|
122 | --docdir=%{_docdir}/%{name}-%{version} \ |
---|
123 | --log %{_localstatedir}/log \ |
---|
124 | --no-install-kde \ |
---|
125 | --no-install-docs |
---|
126 | |
---|
127 | python setup.py build |
---|
128 | # python-babel currently doesn't support Asturian, using gettext |
---|
129 | msgfmt po/ast.po -o translations/ast/LC_MESSAGES/wicd.mo |
---|
130 | |
---|
131 | %install |
---|
132 | rm -rf %{buildroot} |
---|
133 | python setup.py install -O1 --skip-build --root=%{buildroot} |
---|
134 | install -D init/redhat/%{name} %{buildroot}%{_initddir}/%{name} |
---|
135 | |
---|
136 | find %{buildroot} -type f -name ".empty_on_purpose" | xargs rm |
---|
137 | |
---|
138 | desktop-file-install \ |
---|
139 | --remove-category="Application" \ |
---|
140 | --delete-original \ |
---|
141 | --dir=%{buildroot}%{_datadir}/applications \ |
---|
142 | %{buildroot}%{_datadir}/applications/wicd.desktop |
---|
143 | |
---|
144 | desktop-file-install \ |
---|
145 | --dir=%{buildroot}%{_sysconfdir}/xdg/autostart \ |
---|
146 | %{buildroot}%{_sysconfdir}/xdg/autostart/wicd-tray.desktop |
---|
147 | |
---|
148 | %find_lang %{name} |
---|
149 | |
---|
150 | %post common |
---|
151 | touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : |
---|
152 | /sbin/service %{name} restart >/dev/null 2>&1 |
---|
153 | /sbin/chkconfig --add %{name} |
---|
154 | /sbin/chkconfig --level 345 %{name} on |
---|
155 | |
---|
156 | %preun common |
---|
157 | if [ $1 = 0 ] ; then |
---|
158 | /sbin/service %{name} stop >/dev/null 2>&1 |
---|
159 | /sbin/chkconfig --del %{name} |
---|
160 | fi |
---|
161 | |
---|
162 | %postun common |
---|
163 | if [ "$1" -ge "1" ] ; then |
---|
164 | /sbin/service %{name} condrestart >/dev/null 2>&1 || : |
---|
165 | fi |
---|
166 | |
---|
167 | if [ $1 -eq 0 ] ; then |
---|
168 | touch --no-create %{_datadir}/icons/hicolor &>/dev/null |
---|
169 | gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : |
---|
170 | fi |
---|
171 | |
---|
172 | %post gtk |
---|
173 | touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : |
---|
174 | |
---|
175 | %postun gtk |
---|
176 | if [ $1 -eq 0 ]; then |
---|
177 | touch --no-create %{_datadir}/icons/hicolor &>/dev/null |
---|
178 | gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : |
---|
179 | fi |
---|
180 | |
---|
181 | %posttrans gtk |
---|
182 | gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : |
---|
183 | |
---|
184 | %clean |
---|
185 | [ -d "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT |
---|
186 | |
---|
187 | %files |
---|
188 | %defattr(-,root,root) |
---|
189 | %doc AUTHORS CHANGES INSTALL LICENSE NEWS README other/WHEREAREMYFILES |
---|
190 | %{_libdir}/pm-utils/sleep.d/55wicd |
---|
191 | |
---|
192 | %files common -f %{name}.lang |
---|
193 | %{_bindir}/wicd-cli |
---|
194 | %{_bindir}/wicd-client |
---|
195 | %{python_sitelib}/wicd |
---|
196 | %{python_sitelib}/*.egg-info |
---|
197 | %{_datadir}/applications/wicd.desktop |
---|
198 | %{_datadir}/dbus-1/system-services/ |
---|
199 | %{_datadir}/man/man1/wicd-client.1* |
---|
200 | %{_datadir}/man/man5/wicd-manager-settings.conf.5* |
---|
201 | %{_datadir}/man/man5/wicd-wired-settings.conf.5* |
---|
202 | %{_datadir}/man/man5/wicd-wireless-settings.conf.5* |
---|
203 | %{_datadir}/man/man8/wicd-cli.8* |
---|
204 | %{_datadir}/man/man8/wicd.8* |
---|
205 | %{_datadir}/pixmaps/wicd* |
---|
206 | %dir %{_datadir}/wicd |
---|
207 | %dir %{_datadir}/wicd/backends |
---|
208 | %dir %{_datadir}/wicd/cli |
---|
209 | %dir %{_datadir}/wicd/daemon |
---|
210 | %{_datadir}/wicd/backends/* |
---|
211 | %{_datadir}/wicd/cli/* |
---|
212 | %{_datadir}/wicd/daemon/* |
---|
213 | %{_mandir}/nl/man?/%{name}* |
---|
214 | %{_sysconfdir}/%{name} |
---|
215 | %{_sysconfdir}/acpi/resume.d/80-wicd-connect.sh |
---|
216 | %{_sysconfdir}/acpi/suspend.d/50-wicd-suspend.sh |
---|
217 | %{_sysconfdir}/dbus-1/system.d/wicd.conf |
---|
218 | %{_sysconfdir}/logrotate.d/ |
---|
219 | %{_sysconfdir}/rc.d/init.d/wicd |
---|
220 | %{_sysconfdir}/xdg/autostart/wicd-tray.desktop |
---|
221 | %{_sbindir}/wicd |
---|
222 | %{_localstatedir}/lib/wicd |
---|
223 | %exclude /lib/systemd/system/wicd.service |
---|
224 | |
---|
225 | %files curses |
---|
226 | %defattr(-,root,root,-) |
---|
227 | %dir %{_datadir}/wicd/curses |
---|
228 | %{_datadir}/wicd/curses/* |
---|
229 | %{_bindir}/wicd-curses |
---|
230 | %{_datadir}/man/man8/wicd-curses.8* |
---|
231 | %lang(nl) %{_datadir}/man/nl/man8/wicd-curses.8* |
---|
232 | |
---|
233 | %files gtk |
---|
234 | %defattr(-,root,root,-) |
---|
235 | %dir %{_datadir}/wicd/gtk |
---|
236 | %dir %{_datadir}/pixmaps/wicd |
---|
237 | %{_sysconfdir}/xdg/autostart/wicd-tray.desktop |
---|
238 | %{_datadir}/wicd/gtk/* |
---|
239 | %{_datadir}/pixmaps/wicd/* |
---|
240 | %{_datadir}/pixmaps/wicd-gtk.xpm |
---|
241 | %{_bindir}/wicd-gtk |
---|
242 | %{_datadir}/icons/hicolor/*/apps/wicd-gtk.png |
---|
243 | %{_datadir}/icons/hicolor/scalable/apps/wicd-gtk.svg |
---|
244 | |
---|
245 | %changelog |
---|
246 | * Sat May 05 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.7.2.4-1 |
---|
247 | - new upstream release |
---|
248 | - dropt patch2 |
---|
249 | - added Patch3 from upstream |
---|
250 | - fixed patch100 |
---|
251 | - added Requires: %%{name}-common, %%{name}-curses %%{name}-gtk in wicd |
---|
252 | - changed URL: https://launchpad.net/wicd |
---|
253 | |
---|
254 | * Sat Feb 18 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.7.1-1 |
---|
255 | - dropt almost pathces |
---|
256 | - enabled patch is wicd-desktop.patch (Patch0) |
---|
257 | - added patch1 and patch2 from Debian sid |
---|
258 | - added patch100 to fix Japanese translation |
---|
259 | - added BuildRequires: python-babel |
---|
260 | |
---|
261 | * Sun May 22 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.7.0-6 |
---|
262 | - changed BuildArch to noarch |
---|
263 | - updated spec |
---|
264 | - splitted -common, -curses, -gtk packages |
---|
265 | - Added Patch4,5,6,7,8 from Debian |
---|
266 | |
---|
267 | * Wed Jun 9 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.7.0-5 |
---|
268 | - improved service start process in %%post section |
---|
269 | - changed daemon start runlevel |
---|
270 | |
---|
271 | * Mon Jun 07 2010 Shu KONNO <owa@bg.wakwak.com> - 1.7.0-4 |
---|
272 | - fixed %%python_sitelib |
---|
273 | |
---|
274 | * Sat Jun 5 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.7.0-3 |
---|
275 | - added Rerquires: gksu |
---|
276 | - added Patch2,3 from Debian |
---|
277 | - to stop running unexpected files in scripts |
---|
278 | - to fix resolv.conf permission |
---|
279 | |
---|
280 | * Fri Jun 4 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.7.0-2 |
---|
281 | - added chkconfig in %post |
---|
282 | - added Patch1 to add Japanese description for desktop file |
---|
283 | |
---|
284 | * Fri May 28 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.7.0-1 |
---|
285 | - initial build for VineSeed |
---|