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