diff --git a/Version-Requirements-0.101023.tar.gz b/Version-Requirements-0.101023.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..b5ed96d03588ad508c2bf35cf34e4204d281a19f Binary files /dev/null and b/Version-Requirements-0.101023.tar.gz differ diff --git a/perl-Version-Requirements.spec b/perl-Version-Requirements.spec new file mode 100644 index 0000000000000000000000000000000000000000..91aff2970a1e27f16350527c11736858f5ade1c2 --- /dev/null +++ b/perl-Version-Requirements.spec @@ -0,0 +1,88 @@ +%global _empty_manifest_terminate_build 0 +Name: perl-Version-Requirements +Version: 0.101023 +Release: 1 +Summary: Set of version requirements for a CPAN dist +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Version-Requirements/ +Source0: http://www.cpan.org/authors/id/R/RJ/RJBS/Version-Requirements-%{version}.tar.gz +BuildArch: noarch +BuildRequires: perl-generators +BuildRequires: perl(Carp) +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(File::Spec) +BuildRequires: perl(Scalar::Util) +BuildRequires: perl(strict) +BuildRequires: perl(Test::More) >= 0.96 +BuildRequires: perl(version) >= 0.77 +BuildRequires: perl(warnings) +Requires: perl(Carp) +Requires: perl(Scalar::Util) +Requires: perl(strict) +Requires: perl(version) >= 0.77 +Requires: perl(warnings) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +%description +A Version::Requirements object models a set of version constraints like +those specified in the META.yml or META.json files in CPAN distributions. +It can be built up by adding more and more constraints, and it will reduce +them to the simplest representation. +%package help +Summary : Set of version requirements for a CPAN dist +Provides: perl-Version-Requirements-doc +%description help +A Version::Requirements object models a set of version constraints like +those specified in the META.yml or META.json files in CPAN distributions. +It can be built up by adding more and more constraints, and it will reduce +them to the simplest representation. +%prep +%setup -q -n Version-Requirements-%{version} +%build +export PERL_MM_OPT="" +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +export PERL_MM_OPT="" +rm -rf $RPM_BUILD_ROOT + +make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT + +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; +find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; + +%{_fixperms} $RPM_BUILD_ROOT/* + +pushd %{buildroot} +touch filelist.lst +if [ -d usr/bin ];then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ];then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ];then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib ];then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +popd +mv %{buildroot}/filelist.lst . +%check +make test + +%clean +rm -rf $RPM_BUILD_ROOT + +%files -f filelist.lst +%defattr(-,root,root,-) +%doc Changes dist.ini LICENSE META.json README +%{perl_vendorlib}/* +%files help +%{_mandir}/* + +%changelog +* Wed Jun 30 2021 Perl_Bot 0.101023-1 +- Specfile autogenerated by Perl_Bot