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