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