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