]> git.pld-linux.org Git - packages/wicd.git/blame - wicd.spec
- rel 9
[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 10Summary: wired and wireless network manager
ca2165a6 11Summary(hu.UTF-8): Vezeték és vezeték néklküli hálózati menedzser
6df2ef36
MK
12Summary(pl.UTF-8): Zarządca sieci przewodowych i bezprzewodowych
13Name: wicd
bdeb1aef 14Version: 1.7.0
391440bd 15Release: 9
4a992f65 16License: GPL v2+
7920ab4b 17Group: X11/Applications/Networking
ca2165a6 18Source0: http://downloads.sourceforge.net/wicd/%{name}-%{version}.tar.gz
bdeb1aef 19# Source0-md5: 003d2e67240989db55934553437ba32a
41a34454 20Source1: %{name}.init
a685e47e 21Source2: %{name}.service
7704d431 22Source3: org.%{name}.daemon.service
02eb3483 23Patch0: %{name}-init_status.patch
4f4fc6f1 24Patch1: bashism.patch
eaf2dce2 25Patch2: %{name}-desktop.patch
95d6b210 26Patch3: no-deepcopy.patch
41a34454 27URL: http://www.wicd.net/
e0f958bd 28# /etc/pld-release used to detect platform
8bacc5cc 29BuildRequires: issue
86d9eed4 30BuildRequires: python-devel
6df2ef36
MK
31BuildRequires: python-modules
32BuildRequires: rpm-pythonprov
7704d431 33BuildRequires: rpmbuild(macros) >= 1.623
bdeb1aef 34BuildRequires: sed >= 4.0
6df2ef36 35Requires(post,preun): /sbin/chkconfig
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
95d6b210 137%patch3 -p1
02eb3483 138
c7bc9b54 139mv translations/{ar_EG,ar}
4a992f65 140%{__rm} -r translations/ar_PS
41a34454
ER
141mv translations/{de_DE,de}
142mv translations/{es_ES,es}
4a992f65 143%{__rm} -r translations/fr
c7bc9b54
ER
144mv translations/{fr_FR,fr}
145mv translations/{hr_HR,hr}
41a34454
ER
146mv translations/{it_IT,it}
147mv translations/{nl_NL,nl}
148mv translations/{no,nb}
149mv translations/{ru_RU,ru}
1d09a969 150
4a992f65 151grep -r bin/env.*python -l . | xargs %{__sed} -i -e '1s,^#!.*env python,#!%{__python},'
4f4fc6f1 152
41a34454 153%build
a8ed41fe 154%{__python} setup.py configure \
a5958dbe
BZ
155 --pidfile /var/run/wicd.pid \
156 --pmutils %{_libdir}/pm-utils/sleep.d
6df2ef36 157
6df2ef36
MK
158%{__python} setup.py build
159
6df2ef36
MK
160%install
161rm -rf $RPM_BUILD_ROOT
7920ab4b
BZ
162%{__python} setup.py install \
163 --optimize=2 \
164 --root=$RPM_BUILD_ROOT
165
41a34454
ER
166install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/wicd
167
a685e47e 168# systemd
e682dac3
ER
169install -d $RPM_BUILD_ROOT%{systemdunitdir}
170install -d $RPM_BUILD_ROOT%{_datadir}/dbus-1/system-services
171cp -p %{SOURCE2} $RPM_BUILD_ROOT%{systemdunitdir}
a685e47e
BZ
172cp -p %{SOURCE3} $RPM_BUILD_ROOT/%{_datadir}/dbus-1/system-services
173
6df2ef36
MK
174%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
175%py_comp $RPM_BUILD_ROOT%{py_sitedir}
176%py_postclean
177
224731e9
JB
178%find_lang %{name}
179
4a992f65 180%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
181%{__rm} $RPM_BUILD_ROOT/var/lib/%{name}/configurations/.empty_on_purpose
182%{__rm} $RPM_BUILD_ROOT/var/log/%{name}/.empty_on_purpose
41a34454 183
6df2ef36
MK
184%clean
185rm -rf $RPM_BUILD_ROOT
186
6df2ef36
MK
187%post
188/sbin/chkconfig --add %{name}
189%service %{name} restart
a6143590 190%systemd_post wicd.service
6df2ef36
MK
191
192%preun
193if [ "$1" = "0" ]; then
194 %service -q %{name} stop
195 /sbin/chkconfig --del %{name}
196fi
a685e47e
BZ
197%systemd_preun wicd.service
198
a6143590 199%postun
a685e47e
BZ
200%systemd_reload
201
a6143590
JR
202%triggerpostun -- %{name} < 1.7.0-8
203%systemd_trigger wicd.service
204
224731e9 205%files -f %{name}.lang
6df2ef36 206%defattr(644,root,root,755)
41a34454 207%doc AUTHORS CHANGES INSTALL README
6df2ef36
MK
208%attr(755,root,root) %{_bindir}/wicd-client
209%attr(755,root,root) %{_sbindir}/wicd
41a34454 210%attr(754,root,root) /etc/rc.d/init.d/%{name}
41a34454 211%{_mandir}/man5/wicd-manager-settings.conf.5*
bdeb1aef 212%lang(nl) %{_mandir}/nl/man5/wicd-manager-settings.conf.5*
41a34454 213%{_mandir}/man5/wicd-wired-settings.conf.5*
bdeb1aef 214%lang(nl) %{_mandir}/nl/man5/wicd-wired-settings.conf.5*
41a34454 215%{_mandir}/man5/wicd-wireless-settings.conf.5*
bdeb1aef 216%lang(nl) %{_mandir}/nl/man5/wicd-wireless-settings.conf.5*
41a34454 217%{_mandir}/man8/wicd.8*
bdeb1aef 218%lang(nl) %{_mandir}/nl/man8/wicd.8*
a6143590
JR
219%{systemdunitdir}/wicd.service
220%{_datadir}/dbus-1/system-services/org.wicd.daemon.service
41a34454 221/etc/dbus-1/system.d/wicd.conf
1d09a969 222%{_sysconfdir}/wicd
c7bc9b54
ER
223%dir %{_datadir}/%{name}
224%dir %{_datadir}/%{name}/backends
225%attr(755,root,root) %{_datadir}/%{name}/backends/*.py
226%dir %{_datadir}/%{name}/daemon
227%attr(755,root,root) %{_datadir}/%{name}/daemon/*.py
224731e9 228%dir %{py_sitescriptdir}/wicd
cf676923
JB
229%{py_sitescriptdir}/wicd/*.py[co]
230%{py_sitescriptdir}/Wicd-*.egg-info
41a34454 231%dir /var/lib/%{name}
c7bc9b54 232%dir /var/lib/%{name}/configurations
41a34454 233/var/lib/%{name}/WHEREAREMYFILES
41a34454 234%dir /var/log/%{name}
1d09a969 235
bdeb1aef
KK
236%files client-cli
237%defattr(644,root,root,755)
238%attr(755,root,root) %{_bindir}/wicd-cli
c7bc9b54
ER
239%dir %{_datadir}/%{name}/cli
240%attr(755,root,root) %{_datadir}/%{name}/cli/*.py
bdeb1aef
KK
241%{_mandir}/man8/wicd-cli.8*
242
1d09a969
BZ
243%files client-curses
244%defattr(644,root,root,755)
245%attr(755,root,root) %{_bindir}/wicd-curses
c7bc9b54
ER
246%dir %{_datadir}/%{name}/curses
247%attr(755,root,root) %{_datadir}/%{name}/curses/*.py
1d09a969 248%{_mandir}/man8/wicd-curses.8*
bdeb1aef
KK
249%lang(nl) %{_mandir}/nl/man8/wicd-curses.8*
250
251%files client-gtk
252%defattr(644,root,root,755)
253%attr(755,root,root) %{_bindir}/wicd-gtk
ad98e086 254%{_sysconfdir}/xdg/autostart/wicd-tray.desktop
c7bc9b54
ER
255%dir %{_datadir}/%{name}/gtk
256%{_datadir}/%{name}/gtk/%{name}.glade
257%attr(755,root,root) %{_datadir}/%{name}/gtk/*.py
bdeb1aef
KK
258%{_datadir}/autostart/wicd-tray.desktop
259%{_desktopdir}/wicd.desktop
260%{_iconsdir}/hicolor/*/apps/wicd-gtk.*
261%{_pixmapsdir}/%{name}
262%{_pixmapsdir}/wicd-gtk.xpm
263%{_mandir}/man1/wicd-client.1*
264%lang(nl) %{_mandir}/nl/man1/wicd-client.1*
1d09a969
BZ
265
266%files -n pm-utils-wicd
267%defattr(644,root,root,755)
268%attr(755,root,root) %{_libdir}/pm-utils/sleep.d/*wicd
This page took 0.073873 seconds and 4 git commands to generate.