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