]>
Commit | Line | Data |
---|---|---|
a0638135 ER |
1 | # |
2 | # Conditional build: | |
133e8393 | 3 | %bcond_without tests # unit tests |
a0638135 ER |
4 | |
5 | %define pdir App | |
6 | %define pnam Nopaste | |
a0638135 | 7 | Summary: App::Nopaste - easy access to any pastebin |
133e8393 | 8 | Summary(pl.UTF-8): App::Nopaste - łatwy dostęp do dowolnego pastebina |
a0638135 | 9 | Name: perl-App-Nopaste |
eef746c8 AM |
10 | Version: 1.013 |
11 | Release: 1 | |
133e8393 | 12 | # same as perl 5 |
a0638135 ER |
13 | License: GPL v1+ or Artistic |
14 | Group: Development/Languages/Perl | |
15 | Source0: http://www.cpan.org/modules/by-module/App/%{pdir}-%{pnam}-%{version}.tar.gz | |
eef746c8 | 16 | # Source0-md5: a32fe4ee8f8887dc9064c221eaf7372f |
133e8393 JB |
17 | URL: https://metacpan.org/dist/App-Nopaste |
18 | BuildRequires: perl-CPAN-Meta-Requirements >= 2.120_620 | |
19 | BuildRequires: perl-ExtUtils-MakeMaker | |
20 | BuildRequires: perl-devel >= 1:5.8.3 | |
a0638135 | 21 | BuildRequires: rpm-perlprov >= 4.1-13 |
91f85dc1 | 22 | BuildRequires: rpmbuild(macros) >= 1.745 |
a0638135 ER |
23 | %if %{with tests} |
24 | #BuildRequires: perl(Browser::Open) | |
25 | #BuildRequires: perl(Clipboard) | |
26 | #BuildRequires: perl(Config::GitLike) >= 0.00 | |
a0638135 ER |
27 | #BuildRequires: perl(WWW::Pastebin::PastebinCom::Create) |
28 | BuildRequires: perl-Class-Load | |
133e8393 JB |
29 | BuildRequires: perl-Getopt-Long-Descriptive |
30 | BuildRequires: perl-JSON-MaybeXS | |
31 | BuildRequires: perl-Module-Pluggable | |
32 | BuildRequires: perl-Module-Runtime | |
33 | BuildRequires: perl-Path-Tiny | |
34 | BuildRequires: perl-Test-Deep | |
35 | BuildRequires: perl-Test-Fatal | |
36 | BuildRequires: perl-Test-Simple >= 0.88 | |
a0638135 ER |
37 | BuildRequires: perl-URI |
38 | BuildRequires: perl-WWW-Mechanize | |
133e8393 JB |
39 | BuildRequires: perl-libwww |
40 | BuildRequires: perl-namespace-clean >= 0.19 | |
a0638135 ER |
41 | %endif |
42 | BuildArch: noarch | |
43 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
44 | ||
45 | %description | |
46 | Pastebins (also known as nopaste sites) let you post text, usually | |
47 | code, for public viewing. They're used a lot in IRC channels to show | |
48 | code that would normally be too long to give directly in the channel | |
49 | (hence the name nopaste). | |
50 | ||
133e8393 JB |
51 | %description -l pl.UTF-8 |
52 | Pastebiny (znane też jako strony nopaste) pozwalają przesyłać tekst | |
53 | (zwykle kod) do publicznego wglądu. Są używane często na kanałach IRC, | |
54 | aby pokazywać kod, który zwykle byłby zbyt długi do wysyłania | |
55 | bezpośrednio na kanał (stąd nazwa nopaste). | |
56 | ||
a0638135 ER |
57 | %prep |
58 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
59 | ||
a0638135 | 60 | %build |
eef746c8 | 61 | echo y | %{__perl} Makefile.PL --skipdeps \ |
a0638135 ER |
62 | INSTALLDIRS=vendor |
63 | %{__make} | |
64 | ||
65 | %{?with_tests:%{__make} test} | |
66 | ||
67 | %install | |
68 | rm -rf $RPM_BUILD_ROOT | |
69 | ||
70 | %{__make} pure_install \ | |
71 | DESTDIR=$RPM_BUILD_ROOT | |
72 | ||
73 | %clean | |
74 | rm -rf $RPM_BUILD_ROOT | |
75 | ||
76 | %files | |
77 | %defattr(644,root,root,755) | |
133e8393 JB |
78 | %doc Changes README |
79 | %{perl_vendorlib}/App/Nopaste.pm | |
a0638135 | 80 | %{perl_vendorlib}/App/Nopaste |
133e8393 | 81 | %{_mandir}/man3/App::Nopaste*.3pm* |
a0638135 ER |
82 | |
83 | #files -n nopaste | |
3fee866f | 84 | %attr(755,root,root) %{_bindir}/nopaste |
a0638135 | 85 | %{_mandir}/man1/nopaste.1p* |