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