72 lines
1.9 KiB
RPMSpec
72 lines
1.9 KiB
RPMSpec
%define mod_name CPAN-Meta-Requirements
|
|
Name: perl-%{mod_name}
|
|
Version: 2.143
|
|
Release: 1
|
|
Summary: A set of version requirements for a CPAN dist
|
|
License: GPL-1.0-or-later OR Artistic-1.0-Perl
|
|
URL: https://metacpan.org/release/%{mod_name}
|
|
Source0: https://cpan.metacpan.org/authors/id/D/DA/DAGOLDEN/%{mod_name}-%{version}.tar.gz
|
|
BuildArch: noarch
|
|
|
|
Provides: perl(CPAN::Meta::Requirements) = 2.140000
|
|
BuildRequires: perl-interpreter perl-generators perl(ExtUtils::MakeMaker) perl(Test::More) coreutils findutils make
|
|
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
|
|
%autosetup -n %{mod_name}-%{version} -p1
|
|
|
|
%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
|
|
* Wed Jul 12 2023 leeffo <liweiganga@uniontech.com> - 2.143-1
|
|
- upgrade to verison 2.143
|
|
|
|
* Tue Oct 25 2022 huyubiao <huyubiao@huawei.com> - 2.140-420
|
|
- define mod_name to opitomize the specfile
|
|
|
|
* Tue Sep 3 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.140-419
|
|
- Package init
|