[packages/ufw] fix python shebang in ufw script
glen
glen at pld-linux.org
Wed Nov 20 17:44:12 CET 2013
commit 5b51f541dda510019faff64d10bc6d98a8b8c879
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Wed Nov 20 18:44:08 2013 +0200
fix python shebang in ufw script
ufw.spec | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/ufw.spec b/ufw.spec
index 0020700..6686a80 100644
--- a/ufw.spec
+++ b/ufw.spec
@@ -1,7 +1,7 @@
Summary: Uncomplicated Firewall
Name: ufw
Version: 0.33
-Release: 1
+Release: 2
License: GPL v3+
Group: Networking/Admin
Source0: http://launchpad.net/ufw/0.33/%{version}/+download/%{name}-%{version}.tar.gz
@@ -32,11 +32,13 @@ manipulating the firewall.
%patch1 -p1
%patch2 -p1
+%{__sed} -i -re 's,#! /usr/bin/env ,#!,' setup.py
+
# typo
-sed -i -e 's,/etc/defaults/ufw,/etc/sysconfig/ufw,' README
+%{__sed} -i -e 's,/etc/defaults/ufw,/etc/sysconfig/ufw,' README
# pldize sysconfig path
-grep -rl /etc/default/ufw . | xargs sed -i -e 's,/etc/default/ufw,/etc/sysconfig/ufw,'
+grep -rl /etc/default/ufw . | xargs %{__sed} -i -e 's,/etc/default/ufw,/etc/sysconfig/ufw,'
%build
# We skip 'build' and run 'install' directly
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ufw.git/commitdiff/5b51f541dda510019faff64d10bc6d98a8b8c879
More information about the pld-cvs-commit
mailing list