1 |
%define upstream_name Pithub |
2 |
%define upstream_version 0.01025 |
3 |
|
4 |
Name: perl-%{upstream_name} |
5 |
Version: %perl_convert_version %{upstream_version} |
6 |
Release: %mkrel 3 |
7 |
|
8 |
Summary: Github v3 Pull Request Comments API |
9 |
License: GPL+ or Artistic |
10 |
Group: Development/Perl |
11 |
Url: http://search.cpan.org/dist/%{upstream_name} |
12 |
Source0: http://www.cpan.org/modules/by-module//%{upstream_name}-%{upstream_version}.tar.gz |
13 |
|
14 |
BuildRequires: perl(Array::Iterator) |
15 |
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.300.0 |
16 |
BuildRequires: perl(File::Slurp) |
17 |
BuildRequires: perl(HTTP::Message) |
18 |
BuildRequires: perl(JSON) |
19 |
BuildRequires: perl(LWP::Protocol::https) |
20 |
BuildRequires: perl(LWP::UserAgent) |
21 |
BuildRequires: perl(MIME::Base64) |
22 |
BuildRequires: perl(Moo) |
23 |
BuildRequires: perl(Test::Most) |
24 |
BuildArch: noarch |
25 |
|
26 |
%description |
27 |
the Pithub manpage provides a set of modules to access the |
28 |
http://developer.github.com/v3/ in an object oriented way. There is also |
29 |
the Net::GitHub manpage which does the same for all the versions (v1, v2, |
30 |
v3) of the Github API. the Pithub manpage supports all API calls so far, |
31 |
but only for v3. |
32 |
|
33 |
%prep |
34 |
%setup -q -n %{upstream_name}-%{upstream_version} |
35 |
|
36 |
%build |
37 |
%{__perl} Makefile.PL INSTALLDIRS=vendor |
38 |
|
39 |
%make |
40 |
|
41 |
%check |
42 |
%make test |
43 |
|
44 |
%install |
45 |
%makeinstall_std |
46 |
|
47 |
%files |
48 |
%doc Changes LICENSE META.json META.yml MYMETA.yml README examples |
49 |
%{_mandir}/man3/* |
50 |
%perl_vendorlib/* |