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