]>
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 | |
bdeb1aef KK |
6 | # - now python libraries installs into /usr/share/wicd by default, so I commented libexecdir redefinition. but its now easy to revert and change install behaviour simply uncomenting it |
7 | # - translations installing is broken. fr and FR both exists, hack with renaming doesnt work for hr_HR and ar_PS isnt in glibc yet. something is really fucked up, because I cannot find fr_FR nowhere in source dir (find + grep), but instalation creates empty dirs that break installation later :/ | |
8 | ||
6df2ef36 MK |
9 | Summary: wired and wireless network manager |
10 | Summary(pl.UTF-8): Zarządca sieci przewodowych i bezprzewodowych | |
11 | Name: wicd | |
bdeb1aef KK |
12 | Version: 1.7.0 |
13 | Release: 0.1 | |
6df2ef36 | 14 | License: GPL v2 |
7920ab4b | 15 | Group: X11/Applications/Networking |
3e78e272 | 16 | Source0: http://dl.sourceforge.net/wicd/%{name}-%{version}.tar.gz |
bdeb1aef | 17 | # Source0-md5: 003d2e67240989db55934553437ba32a |
41a34454 | 18 | Source1: %{name}.init |
02eb3483 | 19 | Patch0: %{name}-init_status.patch |
4f4fc6f1 | 20 | Patch1: bashism.patch |
41a34454 | 21 | URL: http://www.wicd.net/ |
e0f958bd | 22 | # /etc/pld-release used to detect platform |
8bacc5cc | 23 | BuildRequires: issue |
86d9eed4 | 24 | BuildRequires: python-devel |
6df2ef36 MK |
25 | BuildRequires: python-modules |
26 | BuildRequires: rpm-pythonprov | |
27 | BuildRequires: rpmbuild(macros) >= 1.228 | |
bdeb1aef | 28 | BuildRequires: sed >= 4.0 |
6df2ef36 | 29 | Requires(post,preun): /sbin/chkconfig |
ce835bc9 | 30 | Requires: dbus(org.freedesktop.Notifications) |
dac05ee0 | 31 | Requires: python-dbus |
13eb7b25 | 32 | Requires: python-iwscan |
a90367ce | 33 | Requires: python-pygobject |
3e78e272 JB |
34 | Requires: python-pygtk-glade >= 2:2.0 |
35 | Requires: python-pygtk-gtk >= 2:2.0 | |
13eb7b25 | 36 | Requires: python-wpactrl |
6e7ae7bc ER |
37 | # not noarch due pm-utils packaging stupidity |
38 | #BuildArch: noarch | |
6df2ef36 MK |
39 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
40 | ||
bdeb1aef | 41 | #%define _libexecdir %{_prefix}/lib/%{name} |
6e7ae7bc | 42 | |
6df2ef36 MK |
43 | %description |
44 | Wicd is an open source wired and wireless network manager for Linux | |
45 | which aims to provide a simple interface to connect to networks with a | |
46 | wide variety of settings. | |
47 | ||
48 | %description -l pl.UTF-8 | |
478429ab JB |
49 | Wicd jest zarządcą sieci przewodowych i bezprzewodowych dla Linuksa, |
50 | mającym zapewnić prosty interfejs do podłączania do sieci z | |
51 | różnorakimi opcjami. | |
6df2ef36 | 52 | |
bdeb1aef KK |
53 | %package client-cli |
54 | Summary: wicd CLI client | |
55 | Summary(pl.UTF-8): klient wicd CLI | |
1d09a969 BZ |
56 | Group: Applications/System |
57 | Requires: %{name} = %{version}-%{release} | |
58 | Requires: python-urwid | |
59 | ||
bdeb1aef KK |
60 | %description client-cli |
61 | Wicd command line interface (ncurses) client. | |
62 | ||
63 | %description client-cli -l pl.UTF-8 | |
64 | Klient wicd z międzymordziem wiersza poleceń (ncurses). | |
65 | ||
66 | %package client-curses | |
67 | Summary: wicd TUI client | |
68 | Summary(pl.UTF-8): klient wicd z TUI | |
69 | Group: Applications/System | |
70 | Requires: %{name} = %{version}-%{release} | |
71 | ||
1d09a969 | 72 | %description client-curses |
bdeb1aef | 73 | Wicd text user interface (ncurses) client. |
1d09a969 BZ |
74 | |
75 | %description client-curses -l pl.UTF-8 | |
bdeb1aef KK |
76 | Klient Wicd z tesktowym międzymordziem uzytkownika (ncurses). |
77 | ||
78 | %package client-gtk | |
79 | Summary: wicd GUI client | |
80 | Summary(pl.UTF-8): klient wicd z GUI | |
81 | Group: Applications/System | |
82 | Requires: %{name} = %{version}-%{release} | |
83 | ||
84 | %description client-gtk | |
85 | Wicd graphical user interface (GTK+2) client. | |
86 | ||
87 | %description client-gtk -l pl.UTF-8 | |
88 | Klient Wicd z graficznym międzymordziem użytkownika (GTK+2). | |
1d09a969 BZ |
89 | |
90 | %package -n pm-utils-wicd | |
91 | Summary: wicd script for pm-utils | |
92 | Summary(pl.UTF-8): Skrypt wicd dla pm-utils | |
93 | Group: Applications/System | |
94 | Requires: %{name} = %{version}-%{release} | |
95 | Requires: pm-utils | |
96 | ||
97 | %description -n pm-utils-wicd | |
bdeb1aef | 98 | Wicd script for pm-utils. |
1d09a969 BZ |
99 | |
100 | %description -n pm-utils-wicd -l pl.UTF-8 | |
101 | Skrypt wicd dla pm-utils. | |
102 | ||
6df2ef36 MK |
103 | %prep |
104 | %setup -q | |
02eb3483 | 105 | %patch0 -p1 |
4f4fc6f1 | 106 | %patch1 -p1 |
02eb3483 | 107 | |
bdeb1aef KK |
108 | mv translations/{ar_EG,ar} # WTF? Then what do with ar_PS? |
109 | rm -rf translations/ar_PS # so removing it temporary until somebody put those dirs into glibc | |
41a34454 ER |
110 | mv translations/{de_DE,de} |
111 | mv translations/{es_ES,es} | |
bdeb1aef KK |
112 | rm -rf translations/fr |
113 | mv translations/{fr_FR,fr} # We got serious problem there, because both fr and fr_FR exsists and differs | |
114 | #mv translations/{hr_HR,hr} # Doesnt work for me | |
41a34454 ER |
115 | mv translations/{it_IT,it} |
116 | mv translations/{nl_NL,nl} | |
117 | mv translations/{no,nb} | |
118 | mv translations/{ru_RU,ru} | |
1d09a969 | 119 | |
4f4fc6f1 ER |
120 | grep -r bin/env.*python -l . | xargs sed -i -e '1s,^#!.*env python,#!%{__python},' |
121 | ||
41a34454 | 122 | %build |
a8ed41fe | 123 | %{__python} setup.py configure \ |
bdeb1aef KK |
124 | --backends %{_libexecdir}/backends \ |
125 | --cli %{_libexecdir}/cli \ | |
126 | --curses %{_libexecdir}/curses \ | |
127 | --daemon %{_libexecdir}/daemon \ | |
128 | --gtk %{_libexecdir}/gtk \ | |
a5958dbe BZ |
129 | --pidfile /var/run/wicd.pid \ |
130 | --pmutils %{_libdir}/pm-utils/sleep.d | |
6df2ef36 | 131 | |
6df2ef36 MK |
132 | %{__python} setup.py build |
133 | ||
6df2ef36 MK |
134 | %install |
135 | rm -rf $RPM_BUILD_ROOT | |
7920ab4b BZ |
136 | %{__python} setup.py install \ |
137 | --optimize=2 \ | |
138 | --root=$RPM_BUILD_ROOT | |
139 | ||
41a34454 ER |
140 | install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/wicd |
141 | ||
6df2ef36 MK |
142 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} |
143 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} | |
144 | %py_postclean | |
145 | ||
224731e9 JB |
146 | %find_lang %{name} |
147 | ||
41a34454 ER |
148 | rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name} |
149 | ||
6df2ef36 MK |
150 | %clean |
151 | rm -rf $RPM_BUILD_ROOT | |
152 | ||
6df2ef36 MK |
153 | %post |
154 | /sbin/chkconfig --add %{name} | |
155 | %service %{name} restart | |
156 | ||
157 | %preun | |
158 | if [ "$1" = "0" ]; then | |
159 | %service -q %{name} stop | |
160 | /sbin/chkconfig --del %{name} | |
161 | fi | |
162 | ||
224731e9 | 163 | %files -f %{name}.lang |
6df2ef36 | 164 | %defattr(644,root,root,755) |
41a34454 | 165 | %doc AUTHORS CHANGES INSTALL README |
6df2ef36 MK |
166 | %attr(755,root,root) %{_bindir}/wicd-client |
167 | %attr(755,root,root) %{_sbindir}/wicd | |
41a34454 | 168 | %attr(754,root,root) /etc/rc.d/init.d/%{name} |
41a34454 | 169 | %{_mandir}/man5/wicd-manager-settings.conf.5* |
bdeb1aef | 170 | %lang(nl) %{_mandir}/nl/man5/wicd-manager-settings.conf.5* |
41a34454 | 171 | %{_mandir}/man5/wicd-wired-settings.conf.5* |
bdeb1aef | 172 | %lang(nl) %{_mandir}/nl/man5/wicd-wired-settings.conf.5* |
41a34454 | 173 | %{_mandir}/man5/wicd-wireless-settings.conf.5* |
bdeb1aef | 174 | %lang(nl) %{_mandir}/nl/man5/wicd-wireless-settings.conf.5* |
41a34454 | 175 | %{_mandir}/man8/wicd.8* |
bdeb1aef | 176 | %lang(nl) %{_mandir}/nl/man8/wicd.8* |
41a34454 | 177 | /etc/dbus-1/system.d/wicd.conf |
1d09a969 BZ |
178 | %{_sysconfdir}/wicd |
179 | %{_sysconfdir}/xdg/autostart/wicd-tray.desktop | |
6e7ae7bc ER |
180 | %dir %{_libexecdir} |
181 | %dir %{_libexecdir}/backends | |
6e7ae7bc | 182 | %attr(755,root,root) %{_libexecdir}/backends/*.py |
bdeb1aef KK |
183 | %dir %{_libexecdir}/daemon |
184 | %attr(755,root,root) %{_libexecdir}/daemon/*.py | |
224731e9 | 185 | %dir %{py_sitescriptdir}/wicd |
cf676923 JB |
186 | %{py_sitescriptdir}/wicd/*.py[co] |
187 | %{py_sitescriptdir}/Wicd-*.egg-info | |
41a34454 ER |
188 | %dir /var/lib/%{name} |
189 | /var/lib/%{name}/WHEREAREMYFILES | |
41a34454 | 190 | %dir /var/log/%{name} |
1d09a969 | 191 | |
bdeb1aef KK |
192 | %files client-cli |
193 | %defattr(644,root,root,755) | |
194 | %attr(755,root,root) %{_bindir}/wicd-cli | |
195 | %dir %{_libexecdir}/cli | |
196 | %attr(755,root,root) %{_libexecdir}/cli/*.py | |
197 | %{_mandir}/man8/wicd-cli.8* | |
198 | ||
1d09a969 BZ |
199 | %files client-curses |
200 | %defattr(644,root,root,755) | |
201 | %attr(755,root,root) %{_bindir}/wicd-curses | |
bdeb1aef KK |
202 | %dir %{_libexecdir}/curses |
203 | %attr(755,root,root) %{_libexecdir}/curses/*.py | |
1d09a969 | 204 | %{_mandir}/man8/wicd-curses.8* |
bdeb1aef KK |
205 | %lang(nl) %{_mandir}/nl/man8/wicd-curses.8* |
206 | ||
207 | %files client-gtk | |
208 | %defattr(644,root,root,755) | |
209 | %attr(755,root,root) %{_bindir}/wicd-gtk | |
210 | %dir %{_libexecdir}/gtk | |
211 | %{_libexecdir}/gtk/%{name}.glade | |
212 | %attr(755,root,root) %{_libexecdir}/gtk/*.py | |
213 | %{_datadir}/autostart/wicd-tray.desktop | |
214 | %{_desktopdir}/wicd.desktop | |
215 | %{_iconsdir}/hicolor/*/apps/wicd-gtk.* | |
216 | %{_pixmapsdir}/%{name} | |
217 | %{_pixmapsdir}/wicd-gtk.xpm | |
218 | %{_mandir}/man1/wicd-client.1* | |
219 | %lang(nl) %{_mandir}/nl/man1/wicd-client.1* | |
1d09a969 BZ |
220 | |
221 | %files -n pm-utils-wicd | |
222 | %defattr(644,root,root,755) | |
223 | %attr(755,root,root) %{_libdir}/pm-utils/sleep.d/*wicd |