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