blob: 5fc5135e1649826ffb56619679c60209d84b8969 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
Summary: Command line Pastebin
Summary(pl.UTF-8): Pastebin działający z linii poleceń
Name: pastebinit
Version: 0.11.2
Release: 1
License: GPL v2+
Group: Applications
Source0: http://launchpad.net/pastebinit/trunk/%{version}/+download/%{name}-%{version}.tar.gz
# Source0-md5: 64b620d7ae9fbdac8f2e23fbfecbdec3
Patch0: %{name}-configparsing.patch
URL: https://launchpad.net/pastebinit
BuildRequires: rpm-pythonprov
BuildRequires: sed >= 4.0
Requires: python-modules
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
Pastebinit is a really small piece of Python that acts as a Pastebin
client, you simply tell it a file or to read from the stdin and it
will paste the information on a Pastebin.
%description -l pl.UTF-8
pastebinit to naprawdę mały kawałek kodu w Pythonie działający jako
klient Pastebin - wystarczy podać mu plik albo nakazać czytanie ze
standardowego wyjścia, a on przeklei informacje na Pastebin.
%prep
%setup -q
%patch0 -p0
%{__sed} -i -e 's#http://pastebin.com#http://pld.pastebin.com#g' pastebinit
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_bindir}
install pastebinit $RPM_BUILD_ROOT%{_bindir}/%{name}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/pastebinit
|