3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: Parse::CPAN::Meta - parse META.yml and other similar CPAN metadata files
9 Summary(pl.UTF-8): Parse::CPAN::Meta - analiza META.yml i innych podobnych plików z metadanymi CPAN
10 Name: perl-Parse-CPAN-Meta
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/Parse/DAGOLDEN/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 136571ea3aa3b21046346f7d1606a0a6
17 URL: http://search.cpan.org/dist/Parse-CPAN-Meta/
18 BuildRequires: perl-ExtUtils-MakeMaker
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
22 BuildRequires: perl(File::Spec) >= 0.80
23 BuildRequires: perl-CPAN-Meta-YAML >= 0.002
24 BuildRequires: perl-JSON-PP >= 2.27103
25 BuildRequires: perl-Test-Simple >= 0.47
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 Parse::CPAN::Meta is a parser for META.yml files, based on the parser
34 It supports a basic subset of the full YAML specification, enough to
35 implement parsing of typical META.yml files, and other similarly
38 If you need something with more power, move up to a full YAML parser
39 such as YAML, YAML::Syck or YAML::LibYAML.
41 %description -l pl.UTF-8
42 Parse::CPAN::Meta jest analizatorem plików META.yml opartym na części
43 analizującej modułu YAML::Tiny.
45 Obsługuje podstawowy podzbiór pełnej specyfikacji YAML, wystarczający
46 do analizy typowych plików META.yml i innych podobnie prostych plików
49 Jeżeli potrzebne jest coś o większych możliwościach, należy użyć
50 pełnego analizatora YAML-a - np. z modułu YAML, YAML::Syck lub
54 %setup -q -n %{pdir}-%{pnam}-%{version}
57 %{__perl} Makefile.PL \
61 %{?with_tests:%{__make} test}
64 rm -rf $RPM_BUILD_ROOT
66 %{__make} pure_install \
67 DESTDIR=$RPM_BUILD_ROOT
70 rm -rf $RPM_BUILD_ROOT
73 %defattr(644,root,root,755)
75 %dir %{perl_vendorlib}/Parse/CPAN
76 %{perl_vendorlib}/Parse/CPAN/Meta.pm
77 %{_mandir}/man3/Parse::CPAN::Meta.3pm*