]>
Commit | Line | Data |
---|---|---|
b2c7e219 AM |
1 | Summary: Command line Pastebin-like |
2 | Name: sprunge | |
3 | Version: 0.1 | |
e39ec5d5 | 4 | Release: 3 |
b2c7e219 | 5 | License: GPL |
e39ec5d5 | 6 | Group: Applications/Networking |
b2c7e219 AM |
7 | URL: http://sprunge.us/ |
8 | Requires: curl | |
9 | BuildArch: noarch | |
10 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
11 | ||
12 | %description | |
13 | command line pastebin. | |
14 | ||
15 | %prep | |
16 | %setup -q -c -T | |
17 | ||
18 | %build | |
19 | ||
20 | %install | |
21 | rm -rf $RPM_BUILD_ROOT | |
22 | install -d $RPM_BUILD_ROOT%{_bindir} | |
23 | ||
e39ec5d5 ER |
24 | cat << 'EOF' > $RPM_BUILD_ROOT%{_bindir}/%{name} |
25 | #!/bin/sh | |
1431df48 | 26 | exec %{_bindir}/curl -F 'sprunge=<-' http://sprunge.us |
b2c7e219 | 27 | EOF |
e39ec5d5 | 28 | chmod +x $RPM_BUILD_ROOT%{_bindir}/* |
b2c7e219 AM |
29 | |
30 | %clean | |
31 | rm -rf $RPM_BUILD_ROOT | |
32 | ||
33 | %files | |
34 | %defattr(644,root,root,755) | |
35 | %attr(755,root,root) %{_bindir}/sprunge |