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