2 # TODO: Fix daemon status and stop (wicd dead but subsys locked but daemon running)
3 Summary: wired and wireless network manager
4 Summary(pl.UTF-8): Zarządca sieci przewodowych i bezprzewodowych
9 Group: X11/Applications
10 Source0: http://dl.sourceforge.net/wicd/%{name}-%{version}.tar.gz
11 # Source0-md5: dda372b0778de24552850d3d877d1b65
13 # /etc/pld-release used to detect platform
15 BuildRequires: python-modules
16 BuildRequires: rpm-pythonprov
17 BuildRequires: rpmbuild(macros) >= 1.228
18 Requires(post,preun): /sbin/chkconfig
20 Requires: python-pygobject
21 Requires: python-pygtk-glade >= 2:2.0
22 Requires: python-pygtk-gtk >= 2:2.0
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 Wicd is an open source wired and wireless network manager for Linux
28 which aims to provide a simple interface to connect to networks with a
29 wide variety of settings.
31 %description -l pl.UTF-8
32 Wicd jest zarządcą sieci przewodowych i bezprzewodowych dla Linuksa,
33 mającym zapewnić prosty interfejs do podłączania do sieci z
38 %{__python} setup.py configure
41 %{__python} setup.py build
44 rm -rf $RPM_BUILD_ROOT
45 %{__python} setup.py install \
47 --root=$RPM_BUILD_ROOT
49 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
50 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
56 rm -rf $RPM_BUILD_ROOT
59 /sbin/chkconfig --add %{name}
60 %service %{name} restart
63 if [ "$1" = "0" ]; then
64 %service -q %{name} stop
65 /sbin/chkconfig --del %{name}
68 %files -f %{name}.lang
69 %defattr(644,root,root,755)
71 %attr(755,root,root) %{_bindir}/wicd-client
72 %attr(755,root,root) %{_sbindir}/wicd
73 # NOTE: must be in /usr/lib even on 64bit systems
74 %{_prefix}/lib/%{name}
75 %attr(755,root,root) %{_prefix}/lib/%{name}/*.py
76 %dir %{py_sitescriptdir}/wicd
77 %{py_sitescriptdir}/wicd/*.py[co]
78 %{py_sitescriptdir}/Wicd-*.egg-info
80 %{_datadir}/autostart/wicd-tray.desktop
81 %{_desktopdir}/wicd.desktop
82 %{_iconsdir}/hicolor/*/apps/wicd-client.*
83 %{_pixmapsdir}/%{name}
85 %{_sysconfdir}/xdg/autostart/wicd-tray.desktop
86 /etc/dbus-1/system.d/wicd.conf
87 %attr(754,root,root) /etc/rc.d/init.d/%{name}
90 %{_mandir}/man5/wicd-manager-settings.conf.5*
91 %{_mandir}/man5/wicd-wired-settings.conf.5*
92 %{_mandir}/man5/wicd-wireless-settings.conf.5*
93 %{_mandir}/man8/wicd.8*