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