From f85ba3d29cf407113277f7a1c70717666fdcff4b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Wed, 25 Sep 2013 20:59:04 +0300 Subject: [PATCH] version track script as separate file --- sprunge.sh | 2 ++ sprunge.spec | 14 ++++---------- 2 files changed, 6 insertions(+), 10 deletions(-) create mode 100755 sprunge.sh diff --git a/sprunge.sh b/sprunge.sh new file mode 100755 index 0000000..92b74fc --- /dev/null +++ b/sprunge.sh @@ -0,0 +1,2 @@ +#!/bin/sh +exec /usr/bin/curl -F 'sprunge=<-' http://sprunge.us diff --git a/sprunge.spec b/sprunge.spec index 2697e8a..07475a4 100644 --- a/sprunge.spec +++ b/sprunge.spec @@ -1,10 +1,11 @@ Summary: Command line Pastebin-like Name: sprunge -Version: 0.1 -Release: 3 +Version: 0.2 +Release: 1 License: GPL Group: Applications/Networking URL: http://sprunge.us/ +Source0: %{name}.sh Requires: curl BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -15,17 +16,10 @@ command line pastebin. %prep %setup -q -c -T -%build - %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT%{_bindir} - -cat << 'EOF' > $RPM_BUILD_ROOT%{_bindir}/%{name} -#!/bin/sh -exec %{_bindir}/curl -F 'sprunge=<-' http://sprunge.us -EOF -chmod +x $RPM_BUILD_ROOT%{_bindir}/* +install -p %{SOURCE0} $RPM_BUILD_ROOT%{_bindir}/%{name} %clean rm -rf $RPM_BUILD_ROOT -- 2.44.0