]>
Commit | Line | Data |
---|---|---|
6e7ae7bc ER |
1 | # TODO |
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 | |
6df2ef36 MK |
6 | Summary: wired and wireless network manager |
7 | Summary(pl.UTF-8): Zarządca sieci przewodowych i bezprzewodowych | |
8 | Name: wicd | |
95b63585 | 9 | Version: 1.6.2.2 |
6e7ae7bc | 10 | Release: 6 |
6df2ef36 | 11 | License: GPL v2 |
7920ab4b | 12 | Group: X11/Applications/Networking |
3e78e272 | 13 | Source0: http://dl.sourceforge.net/wicd/%{name}-%{version}.tar.gz |
95b63585 | 14 | # Source0-md5: acbbe695abf7ff83161c62317dfc7509 |
41a34454 | 15 | Source1: %{name}.init |
02eb3483 | 16 | Patch0: %{name}-init_status.patch |
4f4fc6f1 | 17 | Patch1: bashism.patch |
41a34454 | 18 | URL: http://www.wicd.net/ |
e0f958bd | 19 | # /etc/pld-release used to detect platform |
8bacc5cc | 20 | BuildRequires: issue |
86d9eed4 | 21 | BuildRequires: python-devel |
6df2ef36 MK |
22 | BuildRequires: python-modules |
23 | BuildRequires: rpm-pythonprov | |
4f4fc6f1 | 24 | BuildRequires: sed >= 4.0 |
6df2ef36 MK |
25 | BuildRequires: rpmbuild(macros) >= 1.228 |
26 | Requires(post,preun): /sbin/chkconfig | |
ce835bc9 | 27 | Requires: dbus(org.freedesktop.Notifications) |
dac05ee0 | 28 | Requires: python-dbus |
13eb7b25 | 29 | Requires: python-iwscan |
a90367ce | 30 | Requires: python-pygobject |
3e78e272 JB |
31 | Requires: python-pygtk-glade >= 2:2.0 |
32 | Requires: python-pygtk-gtk >= 2:2.0 | |
13eb7b25 | 33 | Requires: python-wpactrl |
6e7ae7bc ER |
34 | # not noarch due pm-utils packaging stupidity |
35 | #BuildArch: noarch | |
6df2ef36 MK |
36 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
37 | ||
6e7ae7bc ER |
38 | %define _libexecdir %{_prefix}/lib/%{name} |
39 | ||
6df2ef36 MK |
40 | %description |
41 | Wicd is an open source wired and wireless network manager for Linux | |
42 | which aims to provide a simple interface to connect to networks with a | |
43 | wide variety of settings. | |
44 | ||
45 | %description -l pl.UTF-8 | |
478429ab JB |
46 | Wicd jest zarządcą sieci przewodowych i bezprzewodowych dla Linuksa, |
47 | mającym zapewnić prosty interfejs do podłączania do sieci z | |
48 | różnorakimi opcjami. | |
6df2ef36 | 49 | |
1d09a969 BZ |
50 | %package client-curses |
51 | Summary: wicd console client | |
52 | Summary(pl.UTF-8): klient wicd dla konsoli | |
53 | Group: Applications/System | |
54 | Requires: %{name} = %{version}-%{release} | |
55 | Requires: python-urwid | |
56 | ||
57 | %description client-curses | |
58 | wicd curses client. | |
59 | ||
60 | %description client-curses -l pl.UTF-8 | |
61 | Klient wicd dla konsoli. | |
62 | ||
63 | %package -n pm-utils-wicd | |
64 | Summary: wicd script for pm-utils | |
65 | Summary(pl.UTF-8): Skrypt wicd dla pm-utils | |
66 | Group: Applications/System | |
67 | Requires: %{name} = %{version}-%{release} | |
68 | Requires: pm-utils | |
69 | ||
70 | %description -n pm-utils-wicd | |
71 | wicd script for pm-utils. | |
72 | ||
73 | %description -n pm-utils-wicd -l pl.UTF-8 | |
74 | Skrypt wicd dla pm-utils. | |
75 | ||
6df2ef36 MK |
76 | %prep |
77 | %setup -q | |
02eb3483 | 78 | %patch0 -p1 |
4f4fc6f1 | 79 | %patch1 -p1 |
02eb3483 | 80 | |
41a34454 ER |
81 | mv translations/{ar_EG,ar} |
82 | mv translations/{de_DE,de} | |
83 | mv translations/{es_ES,es} | |
84 | mv translations/{it_IT,it} | |
85 | mv translations/{nl_NL,nl} | |
86 | mv translations/{no,nb} | |
87 | mv translations/{ru_RU,ru} | |
1d09a969 | 88 | |
4f4fc6f1 ER |
89 | grep -r bin/env.*python -l . | xargs sed -i -e '1s,^#!.*env python,#!%{__python},' |
90 | ||
41a34454 | 91 | %build |
a8ed41fe | 92 | %{__python} setup.py configure \ |
a5958dbe BZ |
93 | --pidfile /var/run/wicd.pid \ |
94 | --pmutils %{_libdir}/pm-utils/sleep.d | |
6df2ef36 | 95 | |
6df2ef36 MK |
96 | %{__python} setup.py build |
97 | ||
6df2ef36 MK |
98 | %install |
99 | rm -rf $RPM_BUILD_ROOT | |
7920ab4b BZ |
100 | %{__python} setup.py install \ |
101 | --optimize=2 \ | |
102 | --root=$RPM_BUILD_ROOT | |
103 | ||
41a34454 ER |
104 | install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/wicd |
105 | ||
6df2ef36 MK |
106 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} |
107 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} | |
108 | %py_postclean | |
109 | ||
224731e9 JB |
110 | %find_lang %{name} |
111 | ||
41a34454 ER |
112 | rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name} |
113 | ||
6df2ef36 MK |
114 | %clean |
115 | rm -rf $RPM_BUILD_ROOT | |
116 | ||
6df2ef36 MK |
117 | %post |
118 | /sbin/chkconfig --add %{name} | |
119 | %service %{name} restart | |
120 | ||
121 | %preun | |
122 | if [ "$1" = "0" ]; then | |
123 | %service -q %{name} stop | |
124 | /sbin/chkconfig --del %{name} | |
125 | fi | |
126 | ||
224731e9 | 127 | %files -f %{name}.lang |
6df2ef36 | 128 | %defattr(644,root,root,755) |
41a34454 | 129 | %doc AUTHORS CHANGES INSTALL README |
6df2ef36 MK |
130 | %attr(755,root,root) %{_bindir}/wicd-client |
131 | %attr(755,root,root) %{_sbindir}/wicd | |
41a34454 ER |
132 | %attr(754,root,root) /etc/rc.d/init.d/%{name} |
133 | %{_mandir}/man1/wicd-client.1* | |
134 | %{_mandir}/man5/wicd-manager-settings.conf.5* | |
135 | %{_mandir}/man5/wicd-wired-settings.conf.5* | |
136 | %{_mandir}/man5/wicd-wireless-settings.conf.5* | |
137 | %{_mandir}/man8/wicd.8* | |
138 | /etc/dbus-1/system.d/wicd.conf | |
1d09a969 BZ |
139 | %{_sysconfdir}/wicd |
140 | %{_sysconfdir}/xdg/autostart/wicd-tray.desktop | |
1d09a969 | 141 | |
6e7ae7bc ER |
142 | %dir %{_libexecdir} |
143 | %dir %{_libexecdir}/backends | |
144 | %attr(755,root,root) %{_libexecdir}/*.py | |
145 | %attr(755,root,root) %{_libexecdir}/backends/*.py | |
146 | %exclude %{_libexecdir}/*curses*.py | |
1d09a969 | 147 | |
41a34454 ER |
148 | %{_datadir}/%{name} |
149 | %{_datadir}/autostart/wicd-tray.desktop | |
150 | ||
151 | %{_desktopdir}/wicd.desktop | |
152 | %{_iconsdir}/hicolor/*/apps/wicd-client.* | |
153 | %{_pixmapsdir}/%{name} | |
154 | ||
224731e9 | 155 | %dir %{py_sitescriptdir}/wicd |
cf676923 JB |
156 | %{py_sitescriptdir}/wicd/*.py[co] |
157 | %{py_sitescriptdir}/Wicd-*.egg-info | |
1d09a969 | 158 | |
41a34454 ER |
159 | %dir /var/lib/%{name} |
160 | /var/lib/%{name}/WHEREAREMYFILES | |
1d09a969 | 161 | |
41a34454 | 162 | %dir /var/log/%{name} |
1d09a969 BZ |
163 | |
164 | %files client-curses | |
165 | %defattr(644,root,root,755) | |
166 | %attr(755,root,root) %{_bindir}/wicd-curses | |
6e7ae7bc | 167 | %attr(755,root,root) %{_libexecdir}/*curses*.py |
1d09a969 BZ |
168 | %{_mandir}/man8/wicd-curses.8* |
169 | ||
170 | %files -n pm-utils-wicd | |
171 | %defattr(644,root,root,755) | |
172 | %attr(755,root,root) %{_libdir}/pm-utils/sleep.d/*wicd |