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 Patch3: no-deepcopy.patch
25 URL: http://www.wicd.net/
26 # /etc/pld-release used to detect platform
28 BuildRequires: python-devel
29 BuildRequires: python-modules
30 BuildRequires: rpm-pythonprov
31 BuildRequires: rpmbuild(macros) >= 1.228
32 BuildRequires: sed >= 4.0
33 Requires(post,preun): /sbin/chkconfig
34 Requires: dbus(org.freedesktop.Notifications)
36 Requires: python-iwscan
37 Requires: python-pygobject
38 Requires: python-pygtk-glade >= 2:2.0
39 Requires: python-pygtk-gtk >= 2:2.0
40 Requires: python-wpactrl
41 # not noarch due pm-utils packaging stupidity
43 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
46 Wicd is an open source wired and wireless network manager for Linux
47 which aims to provide a simple interface to connect to networks with a
48 wide variety of settings.
50 %description -l hu.UTF-8
51 Wicd egy nyílt forráskódú vezeték és vezeték nélküli menedzser
52 Linuxhoz, maely egy egyszerű felületet biztosít hálózatokhoz való
53 csatlakozásokhoz a beállítások széles tárházával.
55 %description -l pl.UTF-8
56 Wicd jest zarządcą sieci przewodowych i bezprzewodowych dla Linuksa,
57 mającym zapewnić prosty interfejs do podłączania do sieci z
61 Summary: wicd CLI client
62 Summary(hu.UTF-8): wicd CLI kliens
63 Summary(pl.UTF-8): klient wicd CLI
64 Group: Applications/System
65 Requires: %{name} = %{version}-%{release}
66 Requires: python-urwid
68 %description client-cli
69 Wicd command line interface (ncurses) client.
71 %description client-cli -l hu.UTF-8
72 Wicd parancssoros (ncurses) kliens.
74 %description client-cli -l pl.UTF-8
75 Klient wicd z międzymordziem wiersza poleceń (ncurses).
77 %package client-curses
78 Summary: wicd TUI client
79 Summary(hu.UTF-8): wicd TUI kliens
80 Summary(pl.UTF-8): klient wicd z TUI
81 Group: Applications/System
82 Requires: %{name} = %{version}-%{release}
83 Requires: python-urwid
85 %description client-curses
86 Wicd text user interface (ncurses) client.
88 %description client-curses -l hu.UTF-8
89 Wicd szöveges (ncurses) kliens.
91 %description client-curses -l pl.UTF-8
92 Klient Wicd z tesktowym międzymordziem uzytkownika (ncurses).
95 Summary: wicd GUI client
96 Summary(hu.UTF-8): wicd GUI kliens
97 Summary(pl.UTF-8): klient wicd z GUI
98 Group: Applications/System
99 Requires: %{name} = %{version}-%{release}
101 %description client-gtk
102 Wicd graphical user interface (GTK+2) client.
104 %description client-gtk -l hu.UTF-8
105 Wicd grafikus (GTK+2) kliens.
107 %description client-gtk -l pl.UTF-8
108 Klient Wicd z graficznym międzymordziem użytkownika (GTK+2).
110 %package -n pm-utils-wicd
111 Summary: wicd script for pm-utils
112 Summary(hu.UTF-8): wicd szkript pm-utils-hoz
113 Summary(pl.UTF-8): Skrypt wicd dla pm-utils
114 Group: Applications/System
115 Requires: %{name} = %{version}-%{release}
118 %description -n pm-utils-wicd
119 Wicd script for pm-utils.
121 %description -n pm-utils-wicd -l hu.UTF-8
122 Wicd szkript pm-utils-hoz.
124 %description -n pm-utils-wicd -l pl.UTF-8
125 Skrypt wicd dla pm-utils.
134 mv translations/{ar_EG,ar}
135 rm -rf translations/ar_PS
136 mv translations/{de_DE,de}
137 mv translations/{es_ES,es}
138 rm -rf translations/fr
139 mv translations/{fr_FR,fr}
140 mv translations/{hr_HR,hr}
141 mv translations/{it_IT,it}
142 mv translations/{nl_NL,nl}
143 mv translations/{no,nb}
144 mv translations/{ru_RU,ru}
146 grep -r bin/env.*python -l . | xargs sed -i -e '1s,^#!.*env python,#!%{__python},'
149 %{__python} setup.py configure \
150 --pidfile /var/run/wicd.pid \
151 --pmutils %{_libdir}/pm-utils/sleep.d
153 %{__python} setup.py build
156 rm -rf $RPM_BUILD_ROOT
157 %{__python} setup.py install \
159 --root=$RPM_BUILD_ROOT
161 install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/wicd
163 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
164 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
169 rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
170 rm -f $RPM_BUILD_ROOT/var/lib/%{name}/configurations/.empty_on_purpose
171 rm -f $RPM_BUILD_ROOT/var/log/%{name}/.empty_on_purpose
174 rm -rf $RPM_BUILD_ROOT
177 /sbin/chkconfig --add %{name}
178 %service %{name} restart
181 if [ "$1" = "0" ]; then
182 %service -q %{name} stop
183 /sbin/chkconfig --del %{name}
186 %files -f %{name}.lang
187 %defattr(644,root,root,755)
188 %doc AUTHORS CHANGES INSTALL README
189 %attr(755,root,root) %{_bindir}/wicd-client
190 %attr(755,root,root) %{_sbindir}/wicd
191 %attr(754,root,root) /etc/rc.d/init.d/%{name}
192 %{_mandir}/man5/wicd-manager-settings.conf.5*
193 %lang(nl) %{_mandir}/nl/man5/wicd-manager-settings.conf.5*
194 %{_mandir}/man5/wicd-wired-settings.conf.5*
195 %lang(nl) %{_mandir}/nl/man5/wicd-wired-settings.conf.5*
196 %{_mandir}/man5/wicd-wireless-settings.conf.5*
197 %lang(nl) %{_mandir}/nl/man5/wicd-wireless-settings.conf.5*
198 %{_mandir}/man8/wicd.8*
199 %lang(nl) %{_mandir}/nl/man8/wicd.8*
200 /etc/dbus-1/system.d/wicd.conf
202 %dir %{_datadir}/%{name}
203 %dir %{_datadir}/%{name}/backends
204 %attr(755,root,root) %{_datadir}/%{name}/backends/*.py
205 %dir %{_datadir}/%{name}/daemon
206 %attr(755,root,root) %{_datadir}/%{name}/daemon/*.py
207 %dir %{py_sitescriptdir}/wicd
208 %{py_sitescriptdir}/wicd/*.py[co]
209 %{py_sitescriptdir}/Wicd-*.egg-info
210 %dir /var/lib/%{name}
211 %dir /var/lib/%{name}/configurations
212 /var/lib/%{name}/WHEREAREMYFILES
213 %dir /var/log/%{name}
216 %defattr(644,root,root,755)
217 %attr(755,root,root) %{_bindir}/wicd-cli
218 %dir %{_datadir}/%{name}/cli
219 %attr(755,root,root) %{_datadir}/%{name}/cli/*.py
220 %{_mandir}/man8/wicd-cli.8*
223 %defattr(644,root,root,755)
224 %attr(755,root,root) %{_bindir}/wicd-curses
225 %dir %{_datadir}/%{name}/curses
226 %attr(755,root,root) %{_datadir}/%{name}/curses/*.py
227 %{_mandir}/man8/wicd-curses.8*
228 %lang(nl) %{_mandir}/nl/man8/wicd-curses.8*
231 %defattr(644,root,root,755)
232 %attr(755,root,root) %{_bindir}/wicd-gtk
233 %{_sysconfdir}/xdg/autostart/wicd-tray.desktop
234 %dir %{_datadir}/%{name}/gtk
235 %{_datadir}/%{name}/gtk/%{name}.glade
236 %attr(755,root,root) %{_datadir}/%{name}/gtk/*.py
237 %{_datadir}/autostart/wicd-tray.desktop
238 %{_desktopdir}/wicd.desktop
239 %{_iconsdir}/hicolor/*/apps/wicd-gtk.*
240 %{_pixmapsdir}/%{name}
241 %{_pixmapsdir}/wicd-gtk.xpm
242 %{_mandir}/man1/wicd-client.1*
243 %lang(nl) %{_mandir}/nl/man1/wicd-client.1*
245 %files -n pm-utils-wicd
246 %defattr(644,root,root,755)
247 %attr(755,root,root) %{_libdir}/pm-utils/sleep.d/*wicd