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