# # spec file for package perl-Parse-CPAN-Packages # # Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: perl-Parse-CPAN-Packages Version: 2.40 Release: 32.14 %define cpan_name Parse-CPAN-Packages Summary: Parse 02packages.details.txt.gz License: Artistic-1.0 or GPL-1.0+ Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/Parse-CPAN-Packages/ Source: http://www.cpan.org/authors/id/M/MI/MITHALDU/%{cpan_name}-%{version}.tar.gz BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Archive::Peek) BuildRequires: perl(CPAN::DistnameInfo) BuildRequires: perl(Compress::Zlib) BuildRequires: perl(File::Slurp) BuildRequires: perl(Moo) BuildRequires: perl(PPI) BuildRequires: perl(Path::Class) BuildRequires: perl(Test::InDistDir) BuildRequires: perl(Type::Utils) BuildRequires: perl(Types::Standard) BuildRequires: perl(version) Requires: perl(Archive::Peek) Requires: perl(CPAN::DistnameInfo) Requires: perl(Compress::Zlib) Requires: perl(File::Slurp) Requires: perl(Moo) Requires: perl(PPI) Requires: perl(Path::Class) Requires: perl(Test::InDistDir) Requires: perl(Type::Utils) Requires: perl(Types::Standard) Requires: perl(version) %{perl_requires} %description The Comprehensive Perl Archive Network (CPAN) is a very useful collection of Perl code. It has several indices of the files that it hosts, including a file named "02packages.details.txt.gz" in the "modules" directory. This file contains lots of useful information and this module provides a simple interface to the data contained within. In a future release the Parse::CPAN::Packages::Package manpage and the Parse::CPAN::Packages::Distribution manpage might have more information. %prep %setup -q -n %{cpan_name}-%{version} find . -type f -print0 | xargs -0 chmod 644 %build %{__perl} Makefile.PL INSTALLDIRS=vendor %{__make} %{?_smp_mflags} %check %{__make} test %install %perl_make_install %perl_process_packlist %perl_gen_filelist %files -f %{name}.files %defattr(-,root,root,755) %doc CHANGES README %changelog * Tue Apr 14 2015 coolo@suse.com - updated to 2.40 see /usr/share/doc/packages/perl-Parse-CPAN-Packages/CHANGES 2.40 Fri Feb 7 23:44:00 BST 2015 - changelog fix ( thanks to Karen Etheridge <ether@cpan.org> ) 2.39 Fri Feb 6 23:44:00 BST 2015 - ported from Moose to Moo ( thanks to Olaf Alders <olaf@wundercounter.com> ) - github repo added to metadata ( thanks to Olaf Alders <olaf@wundercounter.com> ) * Sun Jun 9 2013 coolo@suse.com - update to 2.38 - removed some dependency on hash ordering in the tests - Version bump to repackage due to issue installing using cpanm - moved author tests to xt to avoid them being run on the user side * Tue Dec 20 2011 coolo@suse.com - fix requires * Mon Dec 19 2011 coolo@suse.de - update to 2.35 - added rudimentary logic to return the subs in a package, as well as verify via regex whether a given sub is in the package - added methods to the generated objects to try and retrieve dist contents from a local cpan mirror - some refactoring/cleanup with no functional changes * Tue Jun 14 2011 coolo@novell.com - update with new cpanspec * Fri Apr 1 2011 coolo@novell.com - update to 2.33 - updated documentation - explanation on how to use local cpan cache - spelling and package name fixes - improved memory use a bit by eleminating temp variable - better windows compatibility * Wed Dec 1 2010 coolo@novell.com - switch to perl_requires macro * Thu Nov 11 2010 chris@computersalat.de - cleanup spec o bcond_with pod - noarch pkg * Sun Feb 21 2010 chris@computersalat.de - spec mods o added HEADER o sort TAGS o removed noarch o fixed deps o added provides o added OPTIMIZE * Thu Feb 11 2010 coolo@novell.com - initial package created by cpanspec 1.78