]> git.pld-linux.org Git - packages/perl-Parse-CPAN-Meta.git/blame - perl-Parse-CPAN-Meta.spec
- macros for perl autodeps
[packages/perl-Parse-CPAN-Meta.git] / perl-Parse-CPAN-Meta.spec
CommitLineData
a4d62926 1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
4#
a4d62926 5%define pdir Parse
6%define pnam CPAN-Meta
4b69f81e
JB
7Summary: Parse::CPAN::Meta - parse META.yml and other similar CPAN metadata files
8Summary(pl.UTF-8): Parse::CPAN::Meta - analiza META.yml i innych podobnych plików z metadanymi CPAN
a4d62926 9Name: perl-Parse-CPAN-Meta
a9e2c2ef 10Version: 1.4422
dab497a7 11Release: 1
a4d62926 12License: GPL v1+ or Artistic
13Group: Development/Languages/Perl
005ac6da 14Source0: http://www.cpan.org/modules/by-module/Parse/%{pdir}-%{pnam}-%{version}.tar.gz
a9e2c2ef 15# Source0-md5: 71d52f680b19b3ef36e9a0152e8a3e93
a4d62926 16URL: http://search.cpan.org/dist/Parse-CPAN-Meta/
d1262849
JB
17BuildRequires: perl-ExtUtils-MakeMaker >= 6.30
18BuildRequires: perl-devel >= 1:5.8.1
a4d62926 19BuildRequires: rpm-perlprov >= 4.1-13
cce596a8 20BuildRequires: rpmbuild(macros) >= 1.745
a4d62926 21%if %{with tests}
4b69f81e 22BuildRequires: perl(File::Spec) >= 0.80
ec221deb 23BuildRequires: perl-CPAN-Meta-YAML >= 0.011
a9e2c2ef 24BuildRequires: perl-JSON-PP >= 2.27300
4b69f81e 25BuildRequires: perl-Test-Simple >= 0.47
a4d62926 26%endif
d1262849 27Requires: perl-CPAN-Meta-YAML >= 0.011
a9e2c2ef 28Requires: perl-JSON-PP >= 2.27300
a4d62926 29BuildArch: noarch
30BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32%description
33Parse::CPAN::Meta is a parser for META.yml files, based on the parser
34half of YAML::Tiny.
35
36It supports a basic subset of the full YAML specification, enough to
37implement parsing of typical META.yml files, and other similarly
38simple YAML files.
39
40If you need something with more power, move up to a full YAML parser
41such as YAML, YAML::Syck or YAML::LibYAML.
42
4b69f81e
JB
43%description -l pl.UTF-8
44Parse::CPAN::Meta jest analizatorem plików META.yml opartym na części
45analizującej modułu YAML::Tiny.
a4d62926 46
4b69f81e
JB
47Obsługuje podstawowy podzbiór pełnej specyfikacji YAML, wystarczający
48do analizy typowych plików META.yml i innych podobnie prostych plików
49YAML.
a4d62926 50
4b69f81e
JB
51Jeżeli potrzebne jest coś o większych możliwościach, należy użyć
52pełnego analizatora YAML-a - np. z modułu YAML, YAML::Syck lub
53YAML::LibYAML.
a4d62926 54
55%prep
56%setup -q -n %{pdir}-%{pnam}-%{version}
57
58%build
59%{__perl} Makefile.PL \
60 INSTALLDIRS=vendor
61%{__make}
62
63%{?with_tests:%{__make} test}
64
65%install
66rm -rf $RPM_BUILD_ROOT
67
68%{__make} pure_install \
69 DESTDIR=$RPM_BUILD_ROOT
70
71%clean
72rm -rf $RPM_BUILD_ROOT
73
74%files
75%defattr(644,root,root,755)
7b8d68cd 76%doc Changes
77%dir %{perl_vendorlib}/Parse/CPAN
acc5bc6b 78%{perl_vendorlib}/Parse/CPAN/Meta.pm
4b69f81e 79%{_mandir}/man3/Parse::CPAN::Meta.3pm*
This page took 0.116636 seconds and 4 git commands to generate.