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