[packages/sprunge] generate shebang dep
glen
glen at pld-linux.org
Wed Sep 25 19:57:58 CEST 2013
commit e39ec5d5db09251826faf444e80eeb21fecec172
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Wed Sep 25 20:57:49 2013 +0300
generate shebang dep
sprunge.spec | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/sprunge.spec b/sprunge.spec
index 97574de..2697e8a 100644
--- a/sprunge.spec
+++ b/sprunge.spec
@@ -1,9 +1,9 @@
Summary: Command line Pastebin-like
Name: sprunge
Version: 0.1
-Release: 2
+Release: 3
License: GPL
-Group: Applications
+Group: Applications/Networking
URL: http://sprunge.us/
Requires: curl
BuildArch: noarch
@@ -21,9 +21,11 @@ command line pastebin.
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_bindir}
-cat << 'EOF' > $RPM_BUILD_ROOT%{_bindir}/sprunge
+cat << 'EOF' > $RPM_BUILD_ROOT%{_bindir}/%{name}
+#!/bin/sh
exec %{_bindir}/curl -F 'sprunge=<-' http://sprunge.us
EOF
+chmod +x $RPM_BUILD_ROOT%{_bindir}/*
%clean
rm -rf $RPM_BUILD_ROOT
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/sprunge.git/commitdiff/e39ec5d5db09251826faf444e80eeb21fecec172
More information about the pld-cvs-commit
mailing list