]>
Commit | Line | Data |
---|---|---|
6df2ef36 | 1 | # TODO: Needs review |
6df2ef36 | 2 | # TODO: Fix daemon status and stop (wicd dead but subsys locked but daemon running) |
6df2ef36 MK |
3 | Summary: wired and wireless network manager |
4 | Summary(pl.UTF-8): Zarządca sieci przewodowych i bezprzewodowych | |
5 | Name: wicd | |
6 | Version: 1.5.1 | |
dac05ee0 | 7 | Release: 5 |
6df2ef36 | 8 | License: GPL v2 |
3e78e272 JB |
9 | Group: X11/Applications |
10 | Source0: http://dl.sourceforge.net/wicd/%{name}-%{version}.tar.gz | |
6df2ef36 MK |
11 | # Source0-md5: dda372b0778de24552850d3d877d1b65 |
12 | URL: http://wicd.net/ | |
e0f958bd | 13 | # /etc/pld-release used to detect platform |
8bacc5cc | 14 | BuildRequires: issue |
6df2ef36 MK |
15 | BuildRequires: python-modules |
16 | BuildRequires: rpm-pythonprov | |
17 | BuildRequires: rpmbuild(macros) >= 1.228 | |
18 | Requires(post,preun): /sbin/chkconfig | |
dac05ee0 | 19 | Requires: python-dbus |
a90367ce | 20 | Requires: python-pygobject |
3e78e272 JB |
21 | Requires: python-pygtk-glade >= 2:2.0 |
22 | Requires: python-pygtk-gtk >= 2:2.0 | |
6df2ef36 MK |
23 | BuildArch: noarch |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
25 | ||
26 | %description | |
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. | |
30 | ||
31 | %description -l pl.UTF-8 | |
478429ab JB |
32 | Wicd jest zarządcą sieci przewodowych i bezprzewodowych dla Linuksa, |
33 | mającym zapewnić prosty interfejs do podłączania do sieci z | |
34 | różnorakimi opcjami. | |
6df2ef36 MK |
35 | |
36 | %prep | |
37 | %setup -q | |
38 | %{__python} setup.py configure | |
39 | ||
40 | %build | |
41 | %{__python} setup.py build | |
42 | ||
6df2ef36 MK |
43 | %install |
44 | rm -rf $RPM_BUILD_ROOT | |
45 | %{__python} setup.py install \ | |
46 | --optimize=2 \ | |
47 | --root=$RPM_BUILD_ROOT | |
224731e9 | 48 | |
6df2ef36 MK |
49 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} |
50 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} | |
51 | %py_postclean | |
52 | ||
224731e9 JB |
53 | %find_lang %{name} |
54 | ||
6df2ef36 MK |
55 | %clean |
56 | rm -rf $RPM_BUILD_ROOT | |
57 | ||
6df2ef36 MK |
58 | %post |
59 | /sbin/chkconfig --add %{name} | |
60 | %service %{name} restart | |
61 | ||
62 | %preun | |
63 | if [ "$1" = "0" ]; then | |
64 | %service -q %{name} stop | |
65 | /sbin/chkconfig --del %{name} | |
66 | fi | |
67 | ||
224731e9 | 68 | %files -f %{name}.lang |
6df2ef36 MK |
69 | %defattr(644,root,root,755) |
70 | %doc AUTHORS README | |
6df2ef36 MK |
71 | %attr(755,root,root) %{_bindir}/wicd-client |
72 | %attr(755,root,root) %{_sbindir}/wicd | |
224731e9 JB |
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 | |
cf676923 JB |
77 | %{py_sitescriptdir}/wicd/*.py[co] |
78 | %{py_sitescriptdir}/Wicd-*.egg-info | |
224731e9 | 79 | %{_datadir}/%{name} |
6df2ef36 | 80 | %{_datadir}/autostart/wicd-tray.desktop |
224731e9 JB |
81 | %{_desktopdir}/wicd.desktop |
82 | %{_iconsdir}/hicolor/*/apps/wicd-client.* | |
83 | %{_pixmapsdir}/%{name} | |
84 | %{_sysconfdir}/wicd | |
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} | |
6df2ef36 | 88 | /var/lib/%{name} |
a90367ce | 89 | /var/log/%{name} |
224731e9 JB |
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* |