1 Summary: A simple tool for pasting info onto fpaste.org
6 Group: Applications/Networking
7 URL: https://fedorahosted.org/fpaste/
8 Source0: https://fedorahosted.org/released/fpaste/%{name}-%{version}.tar.bz2
9 # Source0-md5: 53201ed0fdd1b9f325c43178adcd8878
10 BuildRequires: sed >= 4.0
12 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15 It is often useful to be able to easily paste text to the Fedora
16 Pastebin at <http://fpaste.org> and this simple script will do that
17 and return the resulting URL so that people may examine the output.
18 This can hopefully help folks who are for some reason stuck without X,
19 working remotely, or any other reason they may be unable to paste
20 something into the pastebin
25 %{__sed} -i -e '1s,^#!.*python,#!%{__python},' %{name}
28 rm -rf $RPM_BUILD_ROOT
29 install -d $RPM_BUILD_ROOT%{_bindir}
31 BINDIR=$RPM_BUILD_ROOT%{_bindir} \
32 MANDIR=$RPM_BUILD_ROOT%{_mandir}
35 rm -rf $RPM_BUILD_ROOT
38 %defattr(644,root,root,755)
39 %doc CHANGELOG README TODO
40 %attr(755,root,root) %{_bindir}/%{name}
41 %{_mandir}/man1/%{name}.1*