1 |
%define upstream_name Parse-CPAN-Meta |
2 |
%define upstream_version 1.40 |
3 |
|
4 |
Name: perl-%{upstream_name} |
5 |
Version: %perl_convert_version %{upstream_version} |
6 |
Release: %mkrel 2 |
7 |
|
8 |
Summary: Parse META.yml and other similar CPAN metadata files |
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/Parse/%{upstream_name}-%{upstream_version}.tar.gz |
13 |
|
14 |
BuildRequires: perl(File::Spec) |
15 |
BuildRequires: perl(Test::More) |
16 |
BuildArch: noarch |
17 |
|
18 |
|
19 |
%description |
20 |
*Parse::CPAN::Meta* is a parser for META.yml files, based on the parser |
21 |
half of the YAML::Tiny manpage. |
22 |
|
23 |
It supports a basic subset of the full YAML specification, enough to |
24 |
implement parsing of typical META.yml files, and other similarly simple |
25 |
YAML files. |
26 |
|
27 |
If you need something with more power, move up to a full YAML parser such |
28 |
as the YAML manpage, the YAML::Syck manpage or the YAML::LibYAML manpage. |
29 |
|
30 |
%prep |
31 |
%setup -q -n %{upstream_name}-%{upstream_version} |
32 |
|
33 |
%build |
34 |
%{__perl} Makefile.PL INSTALLDIRS=vendor |
35 |
%make |
36 |
|
37 |
%check |
38 |
make test |
39 |
|
40 |
%install |
41 |
rm -rf %buildroot |
42 |
%makeinstall_std |
43 |
|
44 |
%clean |
45 |
rm -rf %buildroot |
46 |
|
47 |
%files |
48 |
%defattr(-,root,root) |
49 |
%doc Changes |
50 |
%{_mandir}/man3/* |
51 |
%perl_vendorlib/Parse |
52 |
|
53 |
|