3 %bcond_without tests # do not perform "make test"
6 %define pnam Requirements
7 Summary: Version::Requirements - a set of version requirements for a CPAN dist
8 Summary(pl.UTF-8): Version::Requirements - zbiór wersjonowanych wymagań dla dystrybucji CPAN
9 Name: perl-Version-Requirements
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-authors/id/R/RJ/RJBS/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 0ceebafa26543bbe8cc9a035d0612cac
17 URL: http://search.cpan.org/dist/Version-Requirements/
18 BuildRequires: perl-ExtUtils-MakeMaker >= 6.31
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
22 BuildRequires: perl-Scalar-List-Utils
23 BuildRequires: perl-Test-Simple >= 0.96
24 BuildRequires: perl-version >= 0.77
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 A Version::Requirements object models a set of version constraints
31 like those specified in the META.yml or META.json files in CPAN
32 distributions. It can be built up by adding more and more constraints,
33 and it will reduce them to the simplest representation.
35 Logically impossible constraints will be identified immediately by
38 Note: this module is DEPRECATED, use CPAN::Meta::Requirements instead.
40 %description -l pl.UTF-8
41 Obiekt Version::Requirements modeluje zbiór wersjonowanych wymagań,
42 jak te podawane w plikach META.yml lub META.json w dystrybucjach CPAN.
43 Może być tworzony w oparciu o dodawanie kolejnych ograniczeń, a on
44 zredukuje je do najprostszej postaci.
46 Logicznie wykluczające się ograniczenia są natychmiast zgłaszane przez
49 Uwaga: ten moduł jest PRZESTARZAŁY, zamiast niego lepiej używać
50 CPAN::Meta::Requirements.
53 %setup -q -n %{pdir}-%{pnam}-%{version}
56 %{__perl} Makefile.PL \
60 %{?with_tests:%{__make} test}
63 rm -rf $RPM_BUILD_ROOT
65 %{__make} pure_install \
66 DESTDIR=$RPM_BUILD_ROOT
69 rm -rf $RPM_BUILD_ROOT
72 %defattr(644,root,root,755)
74 %dir %{perl_vendorlib}/Version
75 %{perl_vendorlib}/Version/Requirements.pm
76 %{_mandir}/man3/Version::Requirements.3pm*