]> git.pld-linux.org Git - packages/wicd.git/blame - wicd.spec
- up to 1.6.2.2
[packages/wicd.git] / wicd.spec
CommitLineData
6df2ef36
MK
1Summary: wired and wireless network manager
2Summary(pl.UTF-8): Zarządca sieci przewodowych i bezprzewodowych
3Name: wicd
95b63585
BZ
4Version: 1.6.2.2
5Release: 1
6df2ef36 6License: GPL v2
7920ab4b 7Group: X11/Applications/Networking
3e78e272 8Source0: http://dl.sourceforge.net/wicd/%{name}-%{version}.tar.gz
95b63585 9# Source0-md5: acbbe695abf7ff83161c62317dfc7509
02eb3483 10Patch0: %{name}-init_status.patch
6df2ef36 11URL: http://wicd.net/
e0f958bd 12# /etc/pld-release used to detect platform
8bacc5cc 13BuildRequires: issue
d4077452 14BuildRequires: libiw-devel
86d9eed4 15BuildRequires: python-devel
6df2ef36
MK
16BuildRequires: python-modules
17BuildRequires: rpm-pythonprov
18BuildRequires: rpmbuild(macros) >= 1.228
19Requires(post,preun): /sbin/chkconfig
ce835bc9 20Requires: dbus(org.freedesktop.Notifications)
dac05ee0 21Requires: python-dbus
a90367ce 22Requires: python-pygobject
3e78e272
JB
23Requires: python-pygtk-glade >= 2:2.0
24Requires: python-pygtk-gtk >= 2:2.0
95b63585 25Obsoletes: wicd < 1.6.0
6df2ef36
MK
26BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28%description
29Wicd is an open source wired and wireless network manager for Linux
30which aims to provide a simple interface to connect to networks with a
31wide variety of settings.
32
33%description -l pl.UTF-8
478429ab
JB
34Wicd jest zarządcą sieci przewodowych i bezprzewodowych dla Linuksa,
35mającym zapewnić prosty interfejs do podłączania do sieci z
36różnorakimi opcjami.
6df2ef36 37
1d09a969
BZ
38%package client-curses
39Summary: wicd console client
40Summary(pl.UTF-8): klient wicd dla konsoli
41Group: Applications/System
42Requires: %{name} = %{version}-%{release}
43Requires: python-urwid
44
45%description client-curses
46wicd curses client.
47
48%description client-curses -l pl.UTF-8
49Klient wicd dla konsoli.
50
51%package -n pm-utils-wicd
52Summary: wicd script for pm-utils
53Summary(pl.UTF-8): Skrypt wicd dla pm-utils
54Group: Applications/System
55Requires: %{name} = %{version}-%{release}
56Requires: pm-utils
57
58%description -n pm-utils-wicd
59wicd script for pm-utils.
60
61%description -n pm-utils-wicd -l pl.UTF-8
62Skrypt wicd dla pm-utils.
63
6df2ef36
MK
64%prep
65%setup -q
02eb3483
BZ
66%patch0 -p1
67
1d09a969
BZ
68mv -f translations/{ar_EG,ar}
69mv -f translations/{de_DE,de}
70mv -f translations/{es_ES,es}
71mv -f translations/{it_IT,it}
72mv -f translations/{nl_NL,nl}
73mv -f translations/{no,nb}
74mv -f translations/{ru_RU,ru}
75
a8ed41fe 76%{__python} setup.py configure \
a5958dbe
BZ
77 --backends %{_libdir}/%{name}/backends \
78 --lib %{_libdir}/%{name} \
79 --pidfile /var/run/wicd.pid \
80 --pmutils %{_libdir}/pm-utils/sleep.d
6df2ef36
MK
81
82%build
83%{__python} setup.py build
84
7920ab4b
BZ
85cd depends/python-iwscan
86%{__python} setup.py build
87cd ../python-wpactrl
88%{__python} setup.py build
89
6df2ef36
MK
90%install
91rm -rf $RPM_BUILD_ROOT
92%{__python} setup.py install \
93 --optimize=2 \
94 --root=$RPM_BUILD_ROOT
224731e9 95
7920ab4b
BZ
96cd depends/python-iwscan
97%{__python} setup.py install \
98 --optimize=2 \
99 --root=$RPM_BUILD_ROOT
100
101cd ../python-wpactrl
102%{__python} setup.py install \
103 --optimize=2 \
104 --root=$RPM_BUILD_ROOT
105
106cd ../..
107
6df2ef36
MK
108%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
109%py_comp $RPM_BUILD_ROOT%{py_sitedir}
110%py_postclean
111
224731e9
JB
112%find_lang %{name}
113
6df2ef36
MK
114%clean
115rm -rf $RPM_BUILD_ROOT
116
6df2ef36
MK
117%post
118/sbin/chkconfig --add %{name}
119%service %{name} restart
120
121%preun
122if [ "$1" = "0" ]; then
123 %service -q %{name} stop
124 /sbin/chkconfig --del %{name}
125fi
126
224731e9 127%files -f %{name}.lang
6df2ef36
MK
128%defattr(644,root,root,755)
129%doc AUTHORS README
6df2ef36
MK
130%attr(755,root,root) %{_bindir}/wicd-client
131%attr(755,root,root) %{_sbindir}/wicd
1d09a969
BZ
132#% {_sysconfdir}/acpi/resume.d/80-wicd-connect.sh
133#% {_sysconfdir}/acpi/suspend.d/50-wicd-suspend.sh
134
135%{_sysconfdir}/dbus-1/system.d/wicd.conf
136%{_sysconfdir}/wicd
137%{_sysconfdir}/xdg/autostart/wicd-tray.desktop
138%attr(754,root,root) %{_sysconfdir}/rc.d/init.d/%{name}
139
a5958dbe
BZ
140%dir %{_libdir}/%{name}
141%dir %{_libdir}/%{name}/backends
142%attr(755,root,root) %{_libdir}/%{name}/*.py
143%attr(755,root,root) %{_libdir}/%{name}/backends/*.py
144%exclude %{_libdir}/%{name}/*curses*.py
1d09a969 145
224731e9 146%dir %{py_sitescriptdir}/wicd
cf676923
JB
147%{py_sitescriptdir}/wicd/*.py[co]
148%{py_sitescriptdir}/Wicd-*.egg-info
1d09a969 149
7920ab4b
BZ
150%if "%{py_ver}" > "2.4"
151%{py_sitedir}/iwscan-*.egg-info
152%endif
153%{py_sitedir}/iwscan.so
154%if "%{py_ver}" > "2.4"
155%{py_sitedir}/wpactrl-*.egg-info
156%endif
157%{py_sitedir}/wpactrl.so
158
224731e9 159%{_datadir}/%{name}
6df2ef36 160%{_datadir}/autostart/wicd-tray.desktop
1d09a969 161
224731e9
JB
162%{_desktopdir}/wicd.desktop
163%{_iconsdir}/hicolor/*/apps/wicd-client.*
164%{_pixmapsdir}/%{name}
1d09a969 165
a90367ce 166/var/log/%{name}
1d09a969 167
1520fcdc 168%{_mandir}/man1/wicd-client.1*
224731e9
JB
169%{_mandir}/man5/wicd-manager-settings.conf.5*
170%{_mandir}/man5/wicd-wired-settings.conf.5*
171%{_mandir}/man5/wicd-wireless-settings.conf.5*
172%{_mandir}/man8/wicd.8*
1d09a969
BZ
173
174%files client-curses
175%defattr(644,root,root,755)
176%attr(755,root,root) %{_bindir}/wicd-curses
a5958dbe 177%attr(755,root,root) %{_libdir}/%{name}/*curses*.py
1d09a969
BZ
178%{_mandir}/man8/wicd-curses.8*
179
180%files -n pm-utils-wicd
181%defattr(644,root,root,755)
182%attr(755,root,root) %{_libdir}/pm-utils/sleep.d/*wicd
This page took 0.075746 seconds and 4 git commands to generate.