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