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