3 %bcond_without tests # unit tests
7 Summary: Test::CPAN::Meta - Validate your CPAN META.yml files
8 Summary(pl.UTF-8): Test::CPAN::Meta - sprawdzanie poprawności plików CPAN META.yml
9 Name: perl-Test-CPAN-Meta
13 Group: Development/Languages/Perl
14 Source0: http://www.cpan.org/modules/by-module/Test/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5: d1582df35cc1e8875357702c687ed22f
16 URL: https://metacpan.org/dist/Test-CPAN-Meta
17 BuildRequires: perl-devel >= 1:5.8.0
18 BuildRequires: rpm-perlprov >= 4.1-13
19 BuildRequires: rpmbuild(macros) >= 1.745
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 This distribution was written to ensure that a META.yml file, provided
27 with a standard distribution uploaded to CPAN, meets the
28 specifications that are slowly being introduced to module uploads, via
29 the use of package makers and installers such as ExtUtils::MakeMaker,
30 Module::Build and Module::Install.
32 See CPAN::Meta for further details of the CPAN Meta Specification.
34 %description -l pl.UTF-8
35 Ten pakiet powstał, aby zapewnić, że plik META.yml, dostarczany ze
36 standardową dystrybucją przesyłaną do CPAN, jest zgodny ze
37 specyfikacją powoli wprowadzaną do przesyłania modułów, poprzez użycie
38 narzędzi do tworzenia i instalowania modułów, takich jak
39 ExtUtils::MakeMaker, Module::Build czy Module::Install.
41 Więcej szczegółów na temat CPAN Meta Specification można znaleźć w
45 %setup -q -n %{pdir}-%{pnam}-%{version}
48 %{__perl} Makefile.PL \
52 %{?with_tests:%{__make} test}
55 rm -rf $RPM_BUILD_ROOT
57 %{__make} pure_install \
58 DESTDIR=$RPM_BUILD_ROOT
60 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
61 cp -a examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
64 rm -rf $RPM_BUILD_ROOT
67 %defattr(644,root,root,755)
68 %doc Changes INSTALL README
69 %dir %{perl_vendorlib}/Test/CPAN
70 %{perl_vendorlib}/Test/CPAN/Meta.pm
71 %{perl_vendorlib}/Test/CPAN/Meta
72 %{_mandir}/man3/Test::CPAN::Meta*.3*
73 %{_examplesdir}/%{name}-%{version}