1 Summary: wired and wireless network manager
2 Summary(pl.UTF-8): Zarządca sieci przewodowych i bezprzewodowych
7 Group: X11/Applications/Networking
8 Source0: http://dl.sourceforge.net/wicd/%{name}-%{version}.tar.gz
9 # Source0-md5: acbbe695abf7ff83161c62317dfc7509
11 Patch0: %{name}-init_status.patch
13 URL: http://www.wicd.net/
14 # /etc/pld-release used to detect platform
16 BuildRequires: python-devel
17 BuildRequires: python-modules
18 BuildRequires: rpm-pythonprov
19 BuildRequires: sed >= 4.0
20 BuildRequires: rpmbuild(macros) >= 1.228
21 Requires(post,preun): /sbin/chkconfig
22 Requires: dbus(org.freedesktop.Notifications)
24 Requires: python-iwscan
25 Requires: python-pygobject
26 Requires: python-pygtk-glade >= 2:2.0
27 Requires: python-pygtk-gtk >= 2:2.0
28 Requires: python-wpactrl
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 Wicd is an open source wired and wireless network manager for Linux
34 which aims to provide a simple interface to connect to networks with a
35 wide variety of settings.
37 %description -l pl.UTF-8
38 Wicd jest zarządcą sieci przewodowych i bezprzewodowych dla Linuksa,
39 mającym zapewnić prosty interfejs do podłączania do sieci z
42 %package client-curses
43 Summary: wicd console client
44 Summary(pl.UTF-8): klient wicd dla konsoli
45 Group: Applications/System
46 Requires: %{name} = %{version}-%{release}
47 Requires: python-urwid
49 %description client-curses
52 %description client-curses -l pl.UTF-8
53 Klient wicd dla konsoli.
55 %package -n pm-utils-wicd
56 Summary: wicd script for pm-utils
57 Summary(pl.UTF-8): Skrypt wicd dla pm-utils
58 Group: Applications/System
59 Requires: %{name} = %{version}-%{release}
62 %description -n pm-utils-wicd
63 wicd script for pm-utils.
65 %description -n pm-utils-wicd -l pl.UTF-8
66 Skrypt wicd dla pm-utils.
73 mv translations/{ar_EG,ar}
74 mv translations/{de_DE,de}
75 mv translations/{es_ES,es}
76 mv translations/{it_IT,it}
77 mv translations/{nl_NL,nl}
78 mv translations/{no,nb}
79 mv translations/{ru_RU,ru}
81 grep -r bin/env.*python -l . | xargs sed -i -e '1s,^#!.*env python,#!%{__python},'
84 %{__python} setup.py configure \
85 --backends %{_libdir}/%{name}/backends \
86 --lib %{_libdir}/%{name} \
87 --pidfile /var/run/wicd.pid \
88 --pmutils %{_libdir}/pm-utils/sleep.d
90 %{__python} setup.py build
93 rm -rf $RPM_BUILD_ROOT
94 %{__python} setup.py install \
96 --root=$RPM_BUILD_ROOT
98 install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/wicd
100 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
101 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
106 rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
109 rm -rf $RPM_BUILD_ROOT
112 /sbin/chkconfig --add %{name}
113 %service %{name} restart
116 if [ "$1" = "0" ]; then
117 %service -q %{name} stop
118 /sbin/chkconfig --del %{name}
121 %files -f %{name}.lang
122 %defattr(644,root,root,755)
123 %doc AUTHORS CHANGES INSTALL README
124 %attr(755,root,root) %{_bindir}/wicd-client
125 %attr(755,root,root) %{_sbindir}/wicd
126 %attr(754,root,root) /etc/rc.d/init.d/%{name}
127 %{_mandir}/man1/wicd-client.1*
128 %{_mandir}/man5/wicd-manager-settings.conf.5*
129 %{_mandir}/man5/wicd-wired-settings.conf.5*
130 %{_mandir}/man5/wicd-wireless-settings.conf.5*
131 %{_mandir}/man8/wicd.8*
132 /etc/dbus-1/system.d/wicd.conf
134 %{_sysconfdir}/xdg/autostart/wicd-tray.desktop
136 %dir %{_libdir}/%{name}
137 %dir %{_libdir}/%{name}/backends
138 %attr(755,root,root) %{_libdir}/%{name}/*.py
139 %attr(755,root,root) %{_libdir}/%{name}/backends/*.py
140 %exclude %{_libdir}/%{name}/*curses*.py
143 %{_datadir}/autostart/wicd-tray.desktop
145 %{_desktopdir}/wicd.desktop
146 %{_iconsdir}/hicolor/*/apps/wicd-client.*
147 %{_pixmapsdir}/%{name}
149 %dir %{py_sitescriptdir}/wicd
150 %{py_sitescriptdir}/wicd/*.py[co]
151 %{py_sitescriptdir}/Wicd-*.egg-info
153 %dir /var/lib/%{name}
154 /var/lib/%{name}/WHEREAREMYFILES
156 %dir /var/log/%{name}
159 %defattr(644,root,root,755)
160 %attr(755,root,root) %{_bindir}/wicd-curses
161 %attr(755,root,root) %{_libdir}/%{name}/*curses*.py
162 %{_mandir}/man8/wicd-curses.8*
164 %files -n pm-utils-wicd
165 %defattr(644,root,root,755)
166 %attr(755,root,root) %{_libdir}/pm-utils/sleep.d/*wicd