--- /dev/null
+--- wicd-1.6.2.2/in/scripts/wicd-curses.in~ 2009-11-06 22:35:54.137467255 +0200
++++ wicd-1.6.2.2/in/scripts=wicd-curses.in 2009-11-06 22:40:09.374108616 +0200
+@@ -1,4 +1,4 @@
+-#!/bin/bash
++#!/bin/sh
+ if [ ! -d "$HOME/.wicd" ]; then
+ mkdir -p "$HOME/.wicd"
+ fi
+--- wicd-1.6.2.2/in/scripts=wicd.in~ 2009-11-06 22:35:54.207466582 +0200
++++ wicd-1.6.2.2/in/scripts=wicd.in 2009-11-06 22:40:20.997500135 +0200
+@@ -1,3 +1,3 @@
+-#!/bin/bash
++#!/bin/sh
+
+ exec python -O /usr/lib/wicd/wicd-daemon.py $@
+--- wicd-1.6.2.2/in/scripts=wicd-client.in~ 2009-11-06 22:35:54.284132812 +0200
++++ wicd-1.6.2.2/in/scripts=wicd-client.in 2009-11-06 22:41:19.855680431 +0200
+@@ -1,4 +1,4 @@
+-#!/bin/bash
++#!/bin/sh
+ BOLD=$(tput bold)
+ BLUE=$(tput setaf 4)
+ NC=$(tput sgr0)
Summary(pl.UTF-8): Zarządca sieci przewodowych i bezprzewodowych
Name: wicd
Version: 1.6.2.2
-Release: 4
+Release: 5
License: GPL v2
Group: X11/Applications/Networking
Source0: http://dl.sourceforge.net/wicd/%{name}-%{version}.tar.gz
# Source0-md5: acbbe695abf7ff83161c62317dfc7509
Source1: %{name}.init
Patch0: %{name}-init_status.patch
+Patch1: bashism.patch
URL: http://www.wicd.net/
# /etc/pld-release used to detect platform
BuildRequires: issue
BuildRequires: python-devel
BuildRequires: python-modules
BuildRequires: rpm-pythonprov
+BuildRequires: sed >= 4.0
BuildRequires: rpmbuild(macros) >= 1.228
Requires(post,preun): /sbin/chkconfig
Requires: dbus(org.freedesktop.Notifications)
%prep
%setup -q
%patch0 -p1
+%patch1 -p1
mv translations/{ar_EG,ar}
mv translations/{de_DE,de}
mv translations/{no,nb}
mv translations/{ru_RU,ru}
+grep -r bin/env.*python -l . | xargs sed -i -e '1s,^#!.*env python,#!%{__python},'
+
%build
%{__python} setup.py configure \
--backends %{_libdir}/%{name}/backends \