3 %bcond_without tests # unit tests
6 %define pnam Meta-Requirements
7 Summary: CPAN::Meta::Requirements - a set of version requirements for a CPAN dist
8 Summary(pl.UTF-8): CPAN::Meta::Requirements - zbiór wymaganych wersji dla dystrybucji CPAN
9 Name: perl-CPAN-Meta-Requirements
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: https://www.cpan.org/modules/by-module/CPAN/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: b26ca50ca6eb04f727876da83b828241
17 URL: https://metacpan.org/dist/CPAN-Meta-Requirements
18 BuildRequires: perl-ExtUtils-MakeMaker >= 6.17
19 BuildRequires: perl-devel >= 1:5.10.0
20 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRequires: rpmbuild(macros) >= 1.745
23 BuildRequires: perl-File-Temp
24 BuildRequires: perl-Scalar-List-Utils
25 BuildRequires: perl-Test-Simple >= 0.88
26 BuildRequires: perl-version >= 0.88
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 A CPAN::Meta::Requirements object models a set of version constraints
33 like those specified in the META.yml or META.json files in CPAN
34 distributions. It can be built up by adding more and more constraints,
35 and it will reduce them to the simplest representation.
37 Logically impossible constraints will be identified immediately by
40 %description -l pl.UTF-8
41 Obiekt CPAN::Meta::Requirements modeluje zbiór ograniczeń wersji,
42 takich jak te podawane w plikach META.yml lub META.json w
43 dystrybucjach CPAN. Mogą być tworzone poprzez dodawanie kolejnych
44 ograniczeń, a obiekt zredukuje je do najprostszej reprezentacji.
46 Ograniczenia logicznie niemożliwe zostaną zidentyfikowane natychmiast
47 poprzez rzucenie wyjątku.
50 %setup -q -n %{pdir}-%{pnam}-%{version}
53 %{__perl} Makefile.PL \
57 %{?with_tests:%{__make} test}
60 rm -rf $RPM_BUILD_ROOT
62 %{__make} pure_install \
63 DESTDIR=$RPM_BUILD_ROOT
66 rm -rf $RPM_BUILD_ROOT
69 %defattr(644,root,root,755)
71 %{perl_vendorlib}/CPAN/Meta/Requirements.pm
72 %{perl_vendorlib}/CPAN/Meta/Requirements
73 %{_mandir}/man3/CPAN::Meta::Requirements.3pm*
74 %{_mandir}/man3/CPAN::Meta::Requirements::Range.3pm*