]> git.pld-linux.org Git - packages/sprunge.git/commitdiff
generate shebang dep
authorElan Ruusamäe <glen@delfi.ee>
Wed, 25 Sep 2013 17:57:49 +0000 (20:57 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Wed, 25 Sep 2013 17:57:49 +0000 (20:57 +0300)
sprunge.spec

index 97574de74a1123fabb59aaab8565c6a91342fa5e..2697e8ac54f9653116a25f9bdcb46da56469fe11 100644 (file)
@@ -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
This page took 0.077844 seconds and 4 git commands to generate.