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