]> git.pld-linux.org Git - packages/perl-Test-CPAN-Meta.git/blob - perl-Test-CPAN-Meta.spec
- pl, macros version
[packages/perl-Test-CPAN-Meta.git] / perl-Test-CPAN-Meta.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # unit tests
4 #
5 %define         pdir    Test
6 %define         pnam    CPAN-Meta
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
10 Version:        0.25
11 Release:        1
12 License:        artistic_2
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
20 %if %{with tests}
21 %endif
22 BuildArch:      noarch
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
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.
31
32 See CPAN::Meta for further details of the CPAN Meta Specification.
33
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.
40
41 Więcej szczegółów na temat CPAN Meta Specification można znaleźć w
42 CPAN::Meta.
43
44 %prep
45 %setup -q -n %{pdir}-%{pnam}-%{version}
46
47 %build
48 %{__perl} Makefile.PL \
49         INSTALLDIRS=vendor
50 %{__make}
51
52 %{?with_tests:%{__make} test}
53
54 %install
55 rm -rf $RPM_BUILD_ROOT
56
57 %{__make} pure_install \
58         DESTDIR=$RPM_BUILD_ROOT
59
60 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
61 cp -a examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
62
63 %clean
64 rm -rf $RPM_BUILD_ROOT
65
66 %files
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}
This page took 0.185933 seconds and 4 git commands to generate.