[packages/sprunge] version track script as separate file
glen
glen at pld-linux.org
Wed Sep 25 19:59:39 CEST 2013
commit f85ba3d29cf407113277f7a1c70717666fdcff4b
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Wed Sep 25 20:59:04 2013 +0300
version track script as separate file
sprunge.sh | 2 ++
sprunge.spec | 14 ++++----------
2 files changed, 6 insertions(+), 10 deletions(-)
---
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
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
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/sprunge.git/commitdiff/f85ba3d29cf407113277f7a1c70717666fdcff4b
More information about the pld-cvs-commit
mailing list