]>
Commit | Line | Data |
---|---|---|
6df2ef36 MK |
1 | # TODO: Needs review |
2 | # TODO: Fix files list | |
3 | # TODO: Fix daemon status and stop (wicd dead but subsys locked but daemon running) | |
4 | %define module wicd | |
5 | Summary: wired and wireless network manager | |
6 | Summary(pl.UTF-8): Zarządca sieci przewodowych i bezprzewodowych | |
7 | Name: wicd | |
8 | Version: 1.5.1 | |
9 | Release: 1 | |
10 | License: GPL v2 | |
11 | Group: Applications | |
fb05d90f | 12 | Source0: http://master.dl.sourceforge.net/sourceforge/wicd/%{name}-%{version}.tar.gz |
6df2ef36 MK |
13 | # Source0-md5: dda372b0778de24552850d3d877d1b65 |
14 | URL: http://wicd.net/ | |
15 | BuildRequires: python-modules | |
16 | BuildRequires: rpm-pythonprov | |
17 | BuildRequires: rpmbuild(macros) >= 1.228 | |
18 | Requires(post,preun): /sbin/chkconfig | |
19 | Requires: python-modules | |
20 | BuildArch: noarch | |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %description | |
24 | Wicd is an open source wired and wireless network manager for Linux | |
25 | which aims to provide a simple interface to connect to networks with a | |
26 | wide variety of settings. | |
27 | ||
28 | %description -l pl.UTF-8 | |
29 | Wicd jest zarządcą sieci który stara się dostarczyć prosty | |
30 | interfejs do podłączania do sieci z różnorakimi opcjami. | |
31 | ||
32 | %prep | |
33 | %setup -q | |
34 | %{__python} setup.py configure | |
35 | ||
36 | %build | |
37 | %{__python} setup.py build | |
38 | ||
39 | ||
40 | %install | |
41 | rm -rf $RPM_BUILD_ROOT | |
42 | %{__python} setup.py install \ | |
43 | --optimize=2 \ | |
44 | --root=$RPM_BUILD_ROOT | |
45 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} | |
46 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} | |
47 | %py_postclean | |
48 | ||
49 | ||
50 | %clean | |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | ||
53 | %pre | |
54 | %postun | |
55 | ||
56 | %post | |
57 | /sbin/chkconfig --add %{name} | |
58 | %service %{name} restart | |
59 | ||
60 | %preun | |
61 | if [ "$1" = "0" ]; then | |
62 | %service -q %{name} stop | |
63 | /sbin/chkconfig --del %{name} | |
64 | fi | |
65 | ||
66 | %files | |
67 | %defattr(644,root,root,755) | |
68 | %doc AUTHORS README | |
69 | %dir %{py_sitescriptdir}/%{module} | |
70 | %{py_sitescriptdir}/%{module}/*.py[co] | |
71 | %{py_sitescriptdir}/*.egg-info | |
72 | ||
73 | %{_pixmapsdir}/%{module} | |
74 | %{_mandir} | |
75 | %{_datadir}/locale | |
76 | %{_datadir}/%{module} | |
77 | %{_iconsdir}/hicolor | |
78 | /etc/dbus-1/system.d/wicd.conf | |
79 | %{_sysconfdir}/wicd | |
80 | %{_sysconfdir}/xdg/autostart/wicd-tray.desktop | |
81 | %dir %{_libdir}/%{module}/ | |
82 | %attr(755,root,root) %{_libdir}/%{module}/*.py | |
83 | ||
84 | %attr(755,root,root) %{_bindir}/wicd-client | |
85 | %attr(755,root,root) %{_sbindir}/wicd | |
86 | %{_desktopdir}/wicd.desktop | |
87 | %{_datadir}/autostart/wicd-tray.desktop | |
88 | /var/lib/%{name} | |
89 | %attr(754,root,root) /etc/rc.d/init.d/%{name} |