]> git.pld-linux.org Git - packages/sprunge.git/commitdiff
version track script as separate file AC-branch auto/th/sprunge-0.2-1
authorElan Ruusamäe <glen@delfi.ee>
Wed, 25 Sep 2013 17:59:04 +0000 (20:59 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Wed, 25 Sep 2013 17:59:36 +0000 (20:59 +0300)
sprunge.sh [new file with mode: 0755]
sprunge.spec

diff --git a/sprunge.sh b/sprunge.sh
new file mode 100755 (executable)
index 0000000..92b74fc
--- /dev/null
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec /usr/bin/curl -F 'sprunge=<-' http://sprunge.us
index 2697e8ac54f9653116a25f9bdcb46da56469fe11..07475a419a406cc65485e4a788853ac09cf62a8b 100644 (file)
@@ -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
This page took 0.058859 seconds and 4 git commands to generate.