2 # - fix pm-utils to store addons in non-arch dependant path so we could make this pkg noarch
3 # - package (acpid-XXX):
4 # /etc/acpi/resume.d/80-wicd-connect.sh
5 # /etc/acpi/suspend.d/50-wicd-suspend.sh
6 # - notes about translations:
7 # - duplicate fr and fr_FR exist, we prefer fr_FR
8 # - ar_PS (Palestine) isn't in glibc yet.
9 # - ar_EG (Egypt) isn't in glibc yet. using ar instead
10 Summary: wired and wireless network manager
11 Summary(hu.UTF-8): Vezeték és vezeték néklküli hálózati menedzser
12 Summary(pl.UTF-8): Zarządca sieci przewodowych i bezprzewodowych
17 Group: X11/Applications/Networking
18 Source0: http://downloads.sourceforge.net/wicd/%{name}-%{version}.tar.gz
19 # Source0-md5: 003d2e67240989db55934553437ba32a
21 Patch0: %{name}-init_status.patch
23 Patch2: %{name}-desktop.patch
24 URL: http://www.wicd.net/
25 # /etc/pld-release used to detect platform
27 BuildRequires: python-devel
28 BuildRequires: python-modules
29 BuildRequires: rpm-pythonprov
30 BuildRequires: rpmbuild(macros) >= 1.228
31 BuildRequires: sed >= 4.0
32 Requires(post,preun): /sbin/chkconfig
33 Requires: dbus(org.freedesktop.Notifications)
35 Requires: python-iwscan
36 Requires: python-pygobject
37 Requires: python-pygtk-glade >= 2:2.0
38 Requires: python-pygtk-gtk >= 2:2.0
39 Requires: python-wpactrl
40 # not noarch due pm-utils packaging stupidity
42 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
45 Wicd is an open source wired and wireless network manager for Linux
46 which aims to provide a simple interface to connect to networks with a
47 wide variety of settings.
49 %description -l hu.UTF-8
50 Wicd egy nyílt forráskódú vezeték és vezeték nélküli menedzser
51 Linuxhoz, maely egy egyszerű felületet biztosít hálózatokhoz való
52 csatlakozásokhoz a beállítások széles tárházával.
54 %description -l pl.UTF-8
55 Wicd jest zarządcą sieci przewodowych i bezprzewodowych dla Linuksa,
56 mającym zapewnić prosty interfejs do podłączania do sieci z
60 Summary: wicd CLI client
61 Summary(hu.UTF-8): wicd CLI kliens
62 Summary(pl.UTF-8): klient wicd CLI
63 Group: Applications/System
64 Requires: %{name} = %{version}-%{release}
65 Requires: python-urwid
67 %description client-cli
68 Wicd command line interface (ncurses) client.
70 %description client-cli -l hu.UTF-8
71 Wicd parancssoros (ncurses) kliens.
73 %description client-cli -l pl.UTF-8
74 Klient wicd z międzymordziem wiersza poleceń (ncurses).
76 %package client-curses
77 Summary: wicd TUI client
78 Summary(hu.UTF-8): wicd TUI kliens
79 Summary(pl.UTF-8): klient wicd z TUI
80 Group: Applications/System
81 Requires: %{name} = %{version}-%{release}
82 Requires: python-urwid
84 %description client-curses
85 Wicd text user interface (ncurses) client.
87 %description client-curses -l hu.UTF-8
88 Wicd szöveges (ncurses) kliens.
90 %description client-curses -l pl.UTF-8
91 Klient Wicd z tesktowym międzymordziem uzytkownika (ncurses).
94 Summary: wicd GUI client
95 Summary(hu.UTF-8): wicd GUI kliens
96 Summary(pl.UTF-8): klient wicd z GUI
97 Group: Applications/System
98 Requires: %{name} = %{version}-%{release}
100 %description client-gtk
101 Wicd graphical user interface (GTK+2) client.
103 %description client-gtk -l hu.UTF-8
104 Wicd grafikus (GTK+2) kliens.
106 %description client-gtk -l pl.UTF-8
107 Klient Wicd z graficznym międzymordziem użytkownika (GTK+2).
109 %package -n pm-utils-wicd
110 Summary: wicd script for pm-utils
111 Summary(hu.UTF-8): wicd szkript pm-utils-hoz
112 Summary(pl.UTF-8): Skrypt wicd dla pm-utils
113 Group: Applications/System
114 Requires: %{name} = %{version}-%{release}
117 %description -n pm-utils-wicd
118 Wicd script for pm-utils.
120 %description -n pm-utils-wicd -l hu.UTF-8
121 Wicd szkript pm-utils-hoz.
123 %description -n pm-utils-wicd -l pl.UTF-8
124 Skrypt wicd dla pm-utils.
132 mv translations/{ar_EG,ar}
133 rm -rf translations/ar_PS
134 mv translations/{de_DE,de}
135 mv translations/{es_ES,es}
136 rm -rf translations/fr
137 mv translations/{fr_FR,fr}
138 mv translations/{hr_HR,hr}
139 mv translations/{it_IT,it}
140 mv translations/{nl_NL,nl}
141 mv translations/{no,nb}
142 mv translations/{ru_RU,ru}
144 grep -r bin/env.*python -l . | xargs sed -i -e '1s,^#!.*env python,#!%{__python},'
147 %{__python} setup.py configure \
148 --pidfile /var/run/wicd.pid \
149 --pmutils %{_libdir}/pm-utils/sleep.d
151 %{__python} setup.py build
154 rm -rf $RPM_BUILD_ROOT
155 %{__python} setup.py install \
157 --root=$RPM_BUILD_ROOT
159 install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/wicd
161 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
162 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
167 rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
168 rm -f $RPM_BUILD_ROOT/var/lib/%{name}/configurations/.empty_on_purpose
169 rm -f $RPM_BUILD_ROOT/var/log/%{name}/.empty_on_purpose
172 rm -rf $RPM_BUILD_ROOT
175 /sbin/chkconfig --add %{name}
176 %service %{name} restart
179 if [ "$1" = "0" ]; then
180 %service -q %{name} stop
181 /sbin/chkconfig --del %{name}
184 %files -f %{name}.lang
185 %defattr(644,root,root,755)
186 %doc AUTHORS CHANGES INSTALL README
187 %attr(755,root,root) %{_bindir}/wicd-client
188 %attr(755,root,root) %{_sbindir}/wicd
189 %attr(754,root,root) /etc/rc.d/init.d/%{name}
190 %{_mandir}/man5/wicd-manager-settings.conf.5*
191 %lang(nl) %{_mandir}/nl/man5/wicd-manager-settings.conf.5*
192 %{_mandir}/man5/wicd-wired-settings.conf.5*
193 %lang(nl) %{_mandir}/nl/man5/wicd-wired-settings.conf.5*
194 %{_mandir}/man5/wicd-wireless-settings.conf.5*
195 %lang(nl) %{_mandir}/nl/man5/wicd-wireless-settings.conf.5*
196 %{_mandir}/man8/wicd.8*
197 %lang(nl) %{_mandir}/nl/man8/wicd.8*
198 /etc/dbus-1/system.d/wicd.conf
200 %dir %{_datadir}/%{name}
201 %dir %{_datadir}/%{name}/backends
202 %attr(755,root,root) %{_datadir}/%{name}/backends/*.py
203 %dir %{_datadir}/%{name}/daemon
204 %attr(755,root,root) %{_datadir}/%{name}/daemon/*.py
205 %dir %{py_sitescriptdir}/wicd
206 %{py_sitescriptdir}/wicd/*.py[co]
207 %{py_sitescriptdir}/Wicd-*.egg-info
208 %dir /var/lib/%{name}
209 %dir /var/lib/%{name}/configurations
210 /var/lib/%{name}/WHEREAREMYFILES
211 %dir /var/log/%{name}
214 %defattr(644,root,root,755)
215 %attr(755,root,root) %{_bindir}/wicd-cli
216 %dir %{_datadir}/%{name}/cli
217 %attr(755,root,root) %{_datadir}/%{name}/cli/*.py
218 %{_mandir}/man8/wicd-cli.8*
221 %defattr(644,root,root,755)
222 %attr(755,root,root) %{_bindir}/wicd-curses
223 %dir %{_datadir}/%{name}/curses
224 %attr(755,root,root) %{_datadir}/%{name}/curses/*.py
225 %{_mandir}/man8/wicd-curses.8*
226 %lang(nl) %{_mandir}/nl/man8/wicd-curses.8*
229 %defattr(644,root,root,755)
230 %attr(755,root,root) %{_bindir}/wicd-gtk
231 %{_sysconfdir}/xdg/autostart/wicd-tray.desktop
232 %dir %{_datadir}/%{name}/gtk
233 %{_datadir}/%{name}/gtk/%{name}.glade
234 %attr(755,root,root) %{_datadir}/%{name}/gtk/*.py
235 %{_datadir}/autostart/wicd-tray.desktop
236 %{_desktopdir}/wicd.desktop
237 %{_iconsdir}/hicolor/*/apps/wicd-gtk.*
238 %{_pixmapsdir}/%{name}
239 %{_pixmapsdir}/wicd-gtk.xpm
240 %{_mandir}/man1/wicd-client.1*
241 %lang(nl) %{_mandir}/nl/man1/wicd-client.1*
243 %files -n pm-utils-wicd
244 %defattr(644,root,root,755)
245 %attr(755,root,root) %{_libdir}/pm-utils/sleep.d/*wicd