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