2022-10-25 01:59:41 +00:00
|
|
|
%define mod_name CPAN-Meta-Requirements
|
|
|
|
|
Name: perl-%{mod_name}
|
2023-07-12 16:49:12 +08:00
|
|
|
Version: 2.143
|
2023-10-21 20:54:19 +08:00
|
|
|
Release: 2
|
2019-09-30 11:11:50 -04:00
|
|
|
Summary: A set of version requirements for a CPAN dist
|
2023-07-12 16:49:12 +08:00
|
|
|
License: GPL-1.0-or-later OR Artistic-1.0-Perl
|
2022-10-25 01:59:41 +00:00
|
|
|
URL: https://metacpan.org/release/%{mod_name}
|
2023-10-21 20:54:19 +08:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/R/RJ/RJBS/%{mod_name}-%{version}.tar.gz
|
2019-09-30 11:11:50 -04:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
2023-10-21 20:54:19 +08:00
|
|
|
%define six_digit_version %(LC_ALL=C; printf '%.6f' '%{version}')
|
|
|
|
|
Provides: perl(CPAN::Meta::Requirements) = %{six_digit_version}
|
2019-09-30 11:11:50 -04:00
|
|
|
BuildRequires: perl-interpreter perl-generators perl(ExtUtils::MakeMaker) perl(Test::More) coreutils findutils make
|
2023-10-21 20:54:19 +08:00
|
|
|
BuildRequires: perl(:VERSION) >= 5.10
|
2019-09-30 11:11:50 -04:00
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
|
|
Requires: perl(B) perl(version) >= 0.88
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
A CPAN::Meta::Requirements object models a set of version constraints like those specified in the META.yml
|
|
|
|
|
or META.json files in CPAN distributions, and as defined by CPAN::Meta::Spec; It can be built up by adding
|
|
|
|
|
more and more constraints, and it will reduce them to the simplest representation.
|
|
|
|
|
Logically impossible constraints will be identified immediately by thrown exceptions.
|
|
|
|
|
|
|
|
|
|
%package help
|
|
|
|
|
Summary: Documents for %{name}
|
|
|
|
|
Buildarch: noarch
|
|
|
|
|
Requires: man info
|
|
|
|
|
|
|
|
|
|
%description help
|
|
|
|
|
Man page and other related documents for %{name}.
|
|
|
|
|
|
|
|
|
|
%prep
|
2022-10-25 01:59:41 +00:00
|
|
|
%autosetup -n %{mod_name}-%{version} -p1
|
2019-09-30 11:11:50 -04:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
perl Makefile.PL INSTALLDIRS=vendor NO_PERLLOCAL=1 NO_PACKLIST=1 UNINST=0
|
|
|
|
|
%make_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%make_install
|
|
|
|
|
%{_fixperms} -c %{buildroot}
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
make test
|
|
|
|
|
|
|
|
|
|
%pre
|
|
|
|
|
|
|
|
|
|
%preun
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc Changes perlcritic.rc README
|
|
|
|
|
%{perl_vendorlib}/*
|
|
|
|
|
|
|
|
|
|
%files help
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%doc CONTRIBUTING.mkdn
|
|
|
|
|
%{_mandir}/*/*
|
|
|
|
|
|
|
|
|
|
%changelog
|
2023-10-21 20:54:19 +08:00
|
|
|
* Wed Oct 25 2023 huyubiao <huyubiao@huawei.com> - 2.143-2
|
|
|
|
|
- fix Source0 link error, fix Provides version error, add BuildRequires perl >= 5.10
|
|
|
|
|
|
2023-07-12 16:49:12 +08:00
|
|
|
* Wed Jul 12 2023 leeffo <liweiganga@uniontech.com> - 2.143-1
|
|
|
|
|
- upgrade to verison 2.143
|
|
|
|
|
|
2022-10-25 01:59:41 +00:00
|
|
|
* Tue Oct 25 2022 huyubiao <huyubiao@huawei.com> - 2.140-420
|
|
|
|
|
- define mod_name to opitomize the specfile
|
|
|
|
|
|
2019-09-30 11:11:50 -04:00
|
|
|
* Tue Sep 3 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.140-419
|
|
|
|
|
- Package init
|