Package perl-CPAN-DistnameInfo: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 | # BEGIN SourceDeps(oneline): BuildRequires(pre): rpm-build-perl BuildRequires: perl-podlators # END SourceDeps(oneline) # see https://bugzilla.altlinux.org/show_bug.cgi?id=10382 %define _localstatedir %{_var} Name: perl-CPAN-DistnameInfo Version: 0.12 Release: alt2_12 Summary: Extract distribution name and version from a distribution filename License: GPL+ or Artistic Group: Development/Other URL: https://metacpan.org/release/CPAN-DistnameInfo Source0: https://cpan.metacpan.org/authors/id/G/GB/GBARR/CPAN-DistnameInfo-%{version}.tar.gz BuildArch: noarch BuildRequires: rpm-build-perl BuildRequires: perl(ExtUtils/MakeMaker.pm) # Tests: BuildRequires: perl(Data/Dumper.pm) BuildRequires: perl(Test/More.pm) Source44: import.info %description Many online services that are centered around CPAN attempt to associate multiple uploads by extracting a distribution name from the filename of the upload. For most distributions this is easy as they have used ExtUtils::MakeMaker or Module::Build to create the distribution, which results in a uniform name. But sadly not all uploads are created in this way. CPAN::DistnameInfo uses heuristics that have been learnt by http://search.cpan.org/ to extract the distribution name and version from filenames and also report if the version is to be treated as a developer release. %prep %setup -q -n CPAN-DistnameInfo-%{version} %build perl Makefile.PL INSTALLDIRS=vendor %make_build %install make pure_install DESTDIR=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; # %{_fixperms} $RPM_BUILD_ROOT %check make test %files %doc Changes README %{perl_vendor_privlib}/CPAN/ %changelog * Sat Jul 14 2018 Igor Vlasenko <viy@altlinux.ru> 0.12-alt2_12 - update to new release by fcimport * Wed Sep 27 2017 Igor Vlasenko <viy@altlinux.ru> 0.12-alt2_10 - update to new release by fcimport * Thu Aug 03 2017 Igor Vlasenko <viy@altlinux.ru> 0.12-alt2_9 - update to new release by fcimport * Thu Mar 16 2017 Igor Vlasenko <viy@altlinux.ru> 0.12-alt2_8 - update to new release by fcimport * Tue Jul 26 2016 Igor Vlasenko <viy@altlinux.ru> 0.12-alt2_7 - update to new release by fcimport * Mon Mar 07 2016 Igor Vlasenko <viy@altlinux.ru> 0.12-alt2_6 - update to new release by fcimport * Sun Sep 20 2015 Igor Vlasenko <viy@altlinux.ru> 0.12-alt2_5 - update to new release by fcimport * Mon Oct 27 2014 Igor Vlasenko <viy@altlinux.ru> 0.12-alt2_3 - update to new release by fcimport * Tue Jul 01 2014 Igor Vlasenko <viy@altlinux.ru> 0.12-alt2_2 - update to new release by fcimport * Tue Oct 22 2013 Igor Vlasenko <viy@altlinux.ru> 0.12-alt2_1 - update to new release by fcimport * Wed Oct 16 2013 Igor Vlasenko <viy@altlinux.ru> 0.12-alt2 - build for Sisyphus (required for perl update) * Thu Oct 10 2013 Igor Vlasenko <viy@altlinux.ru> 0.12-alt1_1 - update to new release by fcimport * Tue Aug 27 2013 Igor Vlasenko <viy@altlinux.ru> 0.11-alt1_10 - update to new release by fcimport * Mon Aug 05 2013 Igor Vlasenko <viy@altlinux.ru> 0.11-alt1_9 - update to new release by fcimport * Wed Feb 27 2013 Igor Vlasenko <viy@altlinux.ru> 0.11-alt1_8 - update to new release by fcimport * Tue Jul 31 2012 Igor Vlasenko <viy@altlinux.ru> 0.11-alt1_7 - update to new release by fcimport * Wed May 23 2012 Igor Vlasenko <viy@altlinux.ru> 0.11-alt1_5 - fc import |