From e39ec5d5db09251826faf444e80eeb21fecec172 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Wed, 25 Sep 2013 20:57:49 +0300 Subject: [PATCH] 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 -- 2.44.0