]> git.pld-linux.org Git - packages/wicd.git/commitdiff
- cleanup shebangs; rel 5 auto/th/wicd-1_6_2_2-5
authorElan Ruusamäe <glen@pld-linux.org>
Fri, 6 Nov 2009 20:49:31 +0000 (20:49 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    bashism.patch -> 1.1
    wicd.spec -> 1.37

bashism.patch [new file with mode: 0644]
wicd.spec

diff --git a/bashism.patch b/bashism.patch
new file mode 100644 (file)
index 0000000..2a445a4
--- /dev/null
@@ -0,0 +1,23 @@
+--- 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)
index cc9325aa3f4d261cad16d095d35680d53cf75a6d..b0855ca003200580e580041f99835f6c5a710a43 100644 (file)
--- a/wicd.spec
+++ b/wicd.spec
@@ -2,19 +2,21 @@ Summary:      wired and wireless network manager
 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)
@@ -66,6 +68,7 @@ Skrypt wicd dla pm-utils.
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 mv translations/{ar_EG,ar}
 mv translations/{de_DE,de}
@@ -75,6 +78,8 @@ mv translations/{nl_NL,nl}
 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 \
This page took 0.082371 seconds and 4 git commands to generate.