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