]> git.pld-linux.org Git - packages/perl-App-Nopaste.git/blame - perl-App-Nopaste.spec
- up to 1.013
[packages/perl-App-Nopaste.git] / perl-App-Nopaste.spec
CommitLineData
a0638135
ER
1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
4
5%define pdir App
6%define pnam Nopaste
7%include /usr/lib/rpm/macros.perl
8Summary: App::Nopaste - easy access to any pastebin
9Name: perl-App-Nopaste
eef746c8
AM
10Version: 1.013
11Release: 1
a0638135
ER
12# same as perl
13License: GPL v1+ or Artistic
14Group: Development/Languages/Perl
15Source0: http://www.cpan.org/modules/by-module/App/%{pdir}-%{pnam}-%{version}.tar.gz
eef746c8 16# Source0-md5: a32fe4ee8f8887dc9064c221eaf7372f
a0638135
ER
17URL: http://search.cpan.org/dist/App-Nopaste/
18BuildRequires: perl-devel >= 1:5.8.0
19BuildRequires: rpm-perlprov >= 4.1-13
20%if %{with tests}
21#BuildRequires: perl(Browser::Open)
22#BuildRequires: perl(Clipboard)
23#BuildRequires: perl(Config::GitLike) >= 0.00
a0638135
ER
24#BuildRequires: perl(WWW::Pastebin::PastebinCom::Create)
25BuildRequires: perl-Class-Load
26BuildRequires: perl-Moose >= 0.74
3fee866f 27BuildRequires: perl-MooseX-Getopt >= 0.17
a0638135
ER
28BuildRequires: perl-URI
29BuildRequires: perl-WWW-Mechanize
30%endif
31BuildArch: noarch
32BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33
34%description
35Pastebins (also known as nopaste sites) let you post text, usually
36code, for public viewing. They're used a lot in IRC channels to show
37code that would normally be too long to give directly in the channel
38(hence the name nopaste).
39
40%prep
41%setup -q -n %{pdir}-%{pnam}-%{version}
42
a0638135 43%build
eef746c8 44echo y | %{__perl} Makefile.PL --skipdeps \
a0638135
ER
45 INSTALLDIRS=vendor
46%{__make}
47
48%{?with_tests:%{__make} test}
49
50%install
51rm -rf $RPM_BUILD_ROOT
52
53%{__make} pure_install \
54 DESTDIR=$RPM_BUILD_ROOT
55
56%clean
57rm -rf $RPM_BUILD_ROOT
58
59%files
60%defattr(644,root,root,755)
61%doc Changes
62%{perl_vendorlib}/App/*.pm
63%{perl_vendorlib}/App/Nopaste
64%{_mandir}/man3/*
65
66#files -n nopaste
3fee866f 67%attr(755,root,root) %{_bindir}/nopaste
a0638135 68%{_mandir}/man1/nopaste.1p*
This page took 0.151838 seconds and 4 git commands to generate.