]> git.pld-linux.org Git - packages/wgetpaste.git/blob - wgetpaste.spec
- use zsh_compdir, BR: rpmbuild(macros) >= 1.719
[packages/wgetpaste.git] / wgetpaste.spec
1 Summary:        Script that automates pasting to a number of pastebin services
2 Summary(pl.UTF-8):      Skrypt automatyzujący wklejanie do wielu serwisów pastebin
3 Name:           wgetpaste
4 Version:        2.28
5 Release:        1
6 License:        GPL v2+
7 Group:          Applications/Networking
8 Source0:        http://wgetpaste.zlin.dk/%{name}-%{version}.tar.bz2
9 # Source0-md5:  97feb02d95c1e6d5aebee68aacb5ede6
10 Source1:        http://wgetpaste.zlin.dk/%{name}.example
11 # Source1-md5:  77392c788659cc648a59df2d239ebe19
12 URL:            http://wgetpaste.zlin.dk/
13 BuildRequires:  rpmbuild(macros) >= 1.719
14 BuildRequires:  sed >= 4.0
15 Requires:       coreutils
16 Requires:       sed
17 Requires:       wget
18 BuildArch:      noarch
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
22 A script that automates pasting to a number of pastebin services
23 relying only on bash, sed, coreutils (mktemp/sort/tr/wc/whoami/tee)
24 and wget.
25
26 %description -l pl.UTF-8
27 Skrypt, który automatyzuje wklejanie do wielu serwisów pastebin,
28 wykorzystując tylko programy bash, sed, coreutils
29 (mktemp/sort/tr/wc/whoami/tee) i wget.
30
31 %package -n zsh-completion-wgetpaste
32 Summary:        ZSH completion for wgetpaste command
33 Summary(pl.UTF-8):      Dopełnianie parametrów w ZSH dla polecenia wgetpaste
34 Group:          Applications/Shells
35 Requires:       %{name} = %{version}-%{release}
36 Requires:       zsh
37
38 %description -n zsh-completion-wgetpaste
39 ZSH completion for wgetpaste command.
40
41 %description -n zsh-completion-wgetpaste -l pl.UTF-8
42 Dopełnianie parametrów w ZSH dla polecenia wgetpaste.
43
44 %prep
45 %setup -q
46 %{__sed} -i -e '1s,^#!.*bash,#!/bin/bash,' %{name}
47 cp -a %{SOURCE1} .
48
49 %install
50 rm -rf $RPM_BUILD_ROOT
51
52 install -Dp %{name} $RPM_BUILD_ROOT%{_bindir}/%{name}
53 install -Dp _wgetpaste $RPM_BUILD_ROOT%{zsh_compdir}/_wgetpaste
54
55 %clean
56 rm -rf $RPM_BUILD_ROOT
57
58 %files
59 %defattr(644,root,root,755)
60 %doc wgetpaste.example
61 %attr(755,root,root) %{_bindir}/wgetpaste
62
63 %files -n zsh-completion-wgetpaste
64 %defattr(644,root,root,755)
65 %{zsh_compdir}/_wgetpaste
This page took 0.116207 seconds and 4 git commands to generate.