From b2c7e219da7fb96dc5d3dc900a1506b71fa70e41 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Arkadiusz=20Mi=C5=9Bkiewicz?= Date: Wed, 25 Sep 2013 19:44:14 +0200 Subject: [PATCH] - initial --- sprunge.spec | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 sprunge.spec diff --git a/sprunge.spec b/sprunge.spec new file mode 100644 index 0000000..73ad815 --- /dev/null +++ b/sprunge.spec @@ -0,0 +1,33 @@ +Summary: Command line Pastebin-like +Name: sprunge +Version: 0.1 +Release: 1 +License: GPL +Group: Applications +URL: http://sprunge.us/ +Requires: curl +BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +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}/sprunge +%{_bindir}/curl -F 'sprunge=<-' http://sprunge.us +EOF + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%attr(755,root,root) %{_bindir}/sprunge -- 2.44.0