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