]>
Commit | Line | Data |
---|---|---|
6e7ae7bc | 1 | # TODO |
69f3f13a ZU |
2 | # - second run of wicd: |
3 | # ConfigParser.ParsingError: File contains parsing errors: /etc/wicd/wired-settings.conf | |
4 | # [line 2]: 'ip\n' | |
5 | # .... | |
6e7ae7bc ER |
6 | # - fix pm-utils to store addons in non-arch dependant path so we could make this pkg noarch |
7 | # - package (acpid-XXX): | |
8 | # /etc/acpi/resume.d/80-wicd-connect.sh | |
9 | # /etc/acpi/suspend.d/50-wicd-suspend.sh | |
c7bc9b54 ER |
10 | # - notes about translations: |
11 | # - duplicate fr and fr_FR exist, we prefer fr_FR | |
12 | # - ar_PS (Palestine) isn't in glibc yet. | |
13 | # - ar_EG (Egypt) isn't in glibc yet. using ar instead | |
6df2ef36 | 14 | Summary: wired and wireless network manager |
ca2165a6 | 15 | Summary(hu.UTF-8): Vezeték és vezeték néklküli hálózati menedzser |
6df2ef36 MK |
16 | Summary(pl.UTF-8): Zarządca sieci przewodowych i bezprzewodowych |
17 | Name: wicd | |
bdeb1aef | 18 | Version: 1.7.0 |
69f3f13a | 19 | Release: 5.1 |
6df2ef36 | 20 | License: GPL v2 |
7920ab4b | 21 | Group: X11/Applications/Networking |
ca2165a6 | 22 | Source0: http://downloads.sourceforge.net/wicd/%{name}-%{version}.tar.gz |
bdeb1aef | 23 | # Source0-md5: 003d2e67240989db55934553437ba32a |
41a34454 | 24 | Source1: %{name}.init |
02eb3483 | 25 | Patch0: %{name}-init_status.patch |
4f4fc6f1 | 26 | Patch1: bashism.patch |
eaf2dce2 | 27 | Patch2: %{name}-desktop.patch |
95d6b210 | 28 | Patch3: no-deepcopy.patch |
41a34454 | 29 | URL: http://www.wicd.net/ |
e0f958bd | 30 | # /etc/pld-release used to detect platform |
8bacc5cc | 31 | BuildRequires: issue |
86d9eed4 | 32 | BuildRequires: python-devel |
6df2ef36 MK |
33 | BuildRequires: python-modules |
34 | BuildRequires: rpm-pythonprov | |
35 | BuildRequires: rpmbuild(macros) >= 1.228 | |
bdeb1aef | 36 | BuildRequires: sed >= 4.0 |
6df2ef36 | 37 | Requires(post,preun): /sbin/chkconfig |
ce835bc9 | 38 | Requires: dbus(org.freedesktop.Notifications) |
dac05ee0 | 39 | Requires: python-dbus |
13eb7b25 | 40 | Requires: python-iwscan |
a90367ce | 41 | Requires: python-pygobject |
3e78e272 JB |
42 | Requires: python-pygtk-glade >= 2:2.0 |
43 | Requires: python-pygtk-gtk >= 2:2.0 | |
13eb7b25 | 44 | Requires: python-wpactrl |
6e7ae7bc ER |
45 | # not noarch due pm-utils packaging stupidity |
46 | #BuildArch: noarch | |
6df2ef36 MK |
47 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
48 | ||
49 | %description | |
50 | Wicd is an open source wired and wireless network manager for Linux | |
51 | which aims to provide a simple interface to connect to networks with a | |
52 | wide variety of settings. | |
53 | ||
ca2165a6 ZU |
54 | %description -l hu.UTF-8 |
55 | Wicd egy nyílt forráskódú vezeték és vezeték nélküli menedzser | |
56 | Linuxhoz, maely egy egyszerű felületet biztosít hálózatokhoz való | |
57 | csatlakozásokhoz a beállítások széles tárházával. | |
58 | ||
6df2ef36 | 59 | %description -l pl.UTF-8 |
478429ab JB |
60 | Wicd jest zarządcą sieci przewodowych i bezprzewodowych dla Linuksa, |
61 | mającym zapewnić prosty interfejs do podłączania do sieci z | |
62 | różnorakimi opcjami. | |
6df2ef36 | 63 | |
bdeb1aef KK |
64 | %package client-cli |
65 | Summary: wicd CLI client | |
ca2165a6 | 66 | Summary(hu.UTF-8): wicd CLI kliens |
bdeb1aef | 67 | Summary(pl.UTF-8): klient wicd CLI |
1d09a969 BZ |
68 | Group: Applications/System |
69 | Requires: %{name} = %{version}-%{release} | |
70 | Requires: python-urwid | |
71 | ||
bdeb1aef KK |
72 | %description client-cli |
73 | Wicd command line interface (ncurses) client. | |
74 | ||
ca2165a6 ZU |
75 | %description client-cli -l hu.UTF-8 |
76 | Wicd parancssoros (ncurses) kliens. | |
77 | ||
bdeb1aef KK |
78 | %description client-cli -l pl.UTF-8 |
79 | Klient wicd z międzymordziem wiersza poleceń (ncurses). | |
80 | ||
81 | %package client-curses | |
82 | Summary: wicd TUI client | |
ca2165a6 | 83 | Summary(hu.UTF-8): wicd TUI kliens |
bdeb1aef KK |
84 | Summary(pl.UTF-8): klient wicd z TUI |
85 | Group: Applications/System | |
86 | Requires: %{name} = %{version}-%{release} | |
ca2165a6 | 87 | Requires: python-urwid |
bdeb1aef | 88 | |
1d09a969 | 89 | %description client-curses |
bdeb1aef | 90 | Wicd text user interface (ncurses) client. |
1d09a969 | 91 | |
ca2165a6 ZU |
92 | %description client-curses -l hu.UTF-8 |
93 | Wicd szöveges (ncurses) kliens. | |
94 | ||
1d09a969 | 95 | %description client-curses -l pl.UTF-8 |
bdeb1aef KK |
96 | Klient Wicd z tesktowym międzymordziem uzytkownika (ncurses). |
97 | ||
98 | %package client-gtk | |
99 | Summary: wicd GUI client | |
ca2165a6 | 100 | Summary(hu.UTF-8): wicd GUI kliens |
bdeb1aef KK |
101 | Summary(pl.UTF-8): klient wicd z GUI |
102 | Group: Applications/System | |
103 | Requires: %{name} = %{version}-%{release} | |
104 | ||
105 | %description client-gtk | |
106 | Wicd graphical user interface (GTK+2) client. | |
107 | ||
ca2165a6 ZU |
108 | %description client-gtk -l hu.UTF-8 |
109 | Wicd grafikus (GTK+2) kliens. | |
110 | ||
bdeb1aef KK |
111 | %description client-gtk -l pl.UTF-8 |
112 | Klient Wicd z graficznym międzymordziem użytkownika (GTK+2). | |
1d09a969 BZ |
113 | |
114 | %package -n pm-utils-wicd | |
115 | Summary: wicd script for pm-utils | |
ca2165a6 | 116 | Summary(hu.UTF-8): wicd szkript pm-utils-hoz |
1d09a969 BZ |
117 | Summary(pl.UTF-8): Skrypt wicd dla pm-utils |
118 | Group: Applications/System | |
119 | Requires: %{name} = %{version}-%{release} | |
120 | Requires: pm-utils | |
121 | ||
122 | %description -n pm-utils-wicd | |
bdeb1aef | 123 | Wicd script for pm-utils. |
1d09a969 | 124 | |
ca2165a6 ZU |
125 | %description -n pm-utils-wicd -l hu.UTF-8 |
126 | Wicd szkript pm-utils-hoz. | |
127 | ||
1d09a969 BZ |
128 | %description -n pm-utils-wicd -l pl.UTF-8 |
129 | Skrypt wicd dla pm-utils. | |
130 | ||
6df2ef36 MK |
131 | %prep |
132 | %setup -q | |
02eb3483 | 133 | %patch0 -p1 |
4f4fc6f1 | 134 | %patch1 -p1 |
eaf2dce2 | 135 | %patch2 -p1 |
95d6b210 | 136 | %patch3 -p1 |
02eb3483 | 137 | |
c7bc9b54 ER |
138 | mv translations/{ar_EG,ar} |
139 | rm -rf translations/ar_PS | |
41a34454 ER |
140 | mv translations/{de_DE,de} |
141 | mv translations/{es_ES,es} | |
bdeb1aef | 142 | rm -rf translations/fr |
c7bc9b54 ER |
143 | mv translations/{fr_FR,fr} |
144 | mv translations/{hr_HR,hr} | |
41a34454 ER |
145 | mv translations/{it_IT,it} |
146 | mv translations/{nl_NL,nl} | |
147 | mv translations/{no,nb} | |
148 | mv translations/{ru_RU,ru} | |
1d09a969 | 149 | |
4f4fc6f1 ER |
150 | grep -r bin/env.*python -l . | xargs sed -i -e '1s,^#!.*env python,#!%{__python},' |
151 | ||
41a34454 | 152 | %build |
a8ed41fe | 153 | %{__python} setup.py configure \ |
a5958dbe BZ |
154 | --pidfile /var/run/wicd.pid \ |
155 | --pmutils %{_libdir}/pm-utils/sleep.d | |
6df2ef36 | 156 | |
6df2ef36 MK |
157 | %{__python} setup.py build |
158 | ||
6df2ef36 MK |
159 | %install |
160 | rm -rf $RPM_BUILD_ROOT | |
7920ab4b BZ |
161 | %{__python} setup.py install \ |
162 | --optimize=2 \ | |
163 | --root=$RPM_BUILD_ROOT | |
164 | ||
41a34454 ER |
165 | install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/wicd |
166 | ||
6df2ef36 MK |
167 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} |
168 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} | |
169 | %py_postclean | |
170 | ||
224731e9 JB |
171 | %find_lang %{name} |
172 | ||
41a34454 | 173 | rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name} |
c7bc9b54 ER |
174 | rm -f $RPM_BUILD_ROOT/var/lib/%{name}/configurations/.empty_on_purpose |
175 | rm -f $RPM_BUILD_ROOT/var/log/%{name}/.empty_on_purpose | |
41a34454 | 176 | |
6df2ef36 MK |
177 | %clean |
178 | rm -rf $RPM_BUILD_ROOT | |
179 | ||
6df2ef36 MK |
180 | %post |
181 | /sbin/chkconfig --add %{name} | |
182 | %service %{name} restart | |
183 | ||
184 | %preun | |
185 | if [ "$1" = "0" ]; then | |
186 | %service -q %{name} stop | |
187 | /sbin/chkconfig --del %{name} | |
188 | fi | |
189 | ||
224731e9 | 190 | %files -f %{name}.lang |
6df2ef36 | 191 | %defattr(644,root,root,755) |
41a34454 | 192 | %doc AUTHORS CHANGES INSTALL README |
6df2ef36 MK |
193 | %attr(755,root,root) %{_bindir}/wicd-client |
194 | %attr(755,root,root) %{_sbindir}/wicd | |
41a34454 | 195 | %attr(754,root,root) /etc/rc.d/init.d/%{name} |
41a34454 | 196 | %{_mandir}/man5/wicd-manager-settings.conf.5* |
bdeb1aef | 197 | %lang(nl) %{_mandir}/nl/man5/wicd-manager-settings.conf.5* |
41a34454 | 198 | %{_mandir}/man5/wicd-wired-settings.conf.5* |
bdeb1aef | 199 | %lang(nl) %{_mandir}/nl/man5/wicd-wired-settings.conf.5* |
41a34454 | 200 | %{_mandir}/man5/wicd-wireless-settings.conf.5* |
bdeb1aef | 201 | %lang(nl) %{_mandir}/nl/man5/wicd-wireless-settings.conf.5* |
41a34454 | 202 | %{_mandir}/man8/wicd.8* |
bdeb1aef | 203 | %lang(nl) %{_mandir}/nl/man8/wicd.8* |
41a34454 | 204 | /etc/dbus-1/system.d/wicd.conf |
1d09a969 | 205 | %{_sysconfdir}/wicd |
c7bc9b54 ER |
206 | %dir %{_datadir}/%{name} |
207 | %dir %{_datadir}/%{name}/backends | |
208 | %attr(755,root,root) %{_datadir}/%{name}/backends/*.py | |
209 | %dir %{_datadir}/%{name}/daemon | |
210 | %attr(755,root,root) %{_datadir}/%{name}/daemon/*.py | |
224731e9 | 211 | %dir %{py_sitescriptdir}/wicd |
cf676923 JB |
212 | %{py_sitescriptdir}/wicd/*.py[co] |
213 | %{py_sitescriptdir}/Wicd-*.egg-info | |
41a34454 | 214 | %dir /var/lib/%{name} |
c7bc9b54 | 215 | %dir /var/lib/%{name}/configurations |
41a34454 | 216 | /var/lib/%{name}/WHEREAREMYFILES |
41a34454 | 217 | %dir /var/log/%{name} |
1d09a969 | 218 | |
bdeb1aef KK |
219 | %files client-cli |
220 | %defattr(644,root,root,755) | |
221 | %attr(755,root,root) %{_bindir}/wicd-cli | |
c7bc9b54 ER |
222 | %dir %{_datadir}/%{name}/cli |
223 | %attr(755,root,root) %{_datadir}/%{name}/cli/*.py | |
bdeb1aef KK |
224 | %{_mandir}/man8/wicd-cli.8* |
225 | ||
1d09a969 BZ |
226 | %files client-curses |
227 | %defattr(644,root,root,755) | |
228 | %attr(755,root,root) %{_bindir}/wicd-curses | |
c7bc9b54 ER |
229 | %dir %{_datadir}/%{name}/curses |
230 | %attr(755,root,root) %{_datadir}/%{name}/curses/*.py | |
1d09a969 | 231 | %{_mandir}/man8/wicd-curses.8* |
bdeb1aef KK |
232 | %lang(nl) %{_mandir}/nl/man8/wicd-curses.8* |
233 | ||
234 | %files client-gtk | |
235 | %defattr(644,root,root,755) | |
236 | %attr(755,root,root) %{_bindir}/wicd-gtk | |
ad98e086 | 237 | %{_sysconfdir}/xdg/autostart/wicd-tray.desktop |
c7bc9b54 ER |
238 | %dir %{_datadir}/%{name}/gtk |
239 | %{_datadir}/%{name}/gtk/%{name}.glade | |
240 | %attr(755,root,root) %{_datadir}/%{name}/gtk/*.py | |
bdeb1aef KK |
241 | %{_datadir}/autostart/wicd-tray.desktop |
242 | %{_desktopdir}/wicd.desktop | |
243 | %{_iconsdir}/hicolor/*/apps/wicd-gtk.* | |
244 | %{_pixmapsdir}/%{name} | |
245 | %{_pixmapsdir}/wicd-gtk.xpm | |
246 | %{_mandir}/man1/wicd-client.1* | |
247 | %lang(nl) %{_mandir}/nl/man1/wicd-client.1* | |
1d09a969 BZ |
248 | |
249 | %files -n pm-utils-wicd | |
250 | %defattr(644,root,root,755) | |
251 | %attr(755,root,root) %{_libdir}/pm-utils/sleep.d/*wicd |