[packages/perl-CPAN-DistnameInfo] new, version 0.12

glen glen at pld-linux.org
Sun Nov 3 17:08:13 CET 2013


commit 61f47baa2d5c56b43b8c2d8b67825d476f6ce7d4
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun Nov 3 18:07:45 2013 +0200

    new, version 0.12
    
    created from fedora package
    dd4c28fde0eaa28f163d2230c549c73fa93777be

 perl-CPAN-DistnameInfo.spec | 59 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 59 insertions(+)
---
diff --git a/perl-CPAN-DistnameInfo.spec b/perl-CPAN-DistnameInfo.spec
new file mode 100644
index 0000000..431725b
--- /dev/null
+++ b/perl-CPAN-DistnameInfo.spec
@@ -0,0 +1,59 @@
+#
+# Conditional build:
+%bcond_without	tests	# do not perform "make test"
+
+%include	/usr/lib/rpm/macros.perl
+Summary:	Extract distribution name and version from a distribution filename
+Name:		perl-CPAN-DistnameInfo
+Version:	0.12
+Release:	1
+License:	GPL+ or Artistic
+Group:		Development/Libraries
+Source0:	http://www.cpan.org/authors/id/G/GB/GBARR/CPAN-DistnameInfo-%{version}.tar.gz
+# Source0-md5:	06bc803c0e4fb7735ddc7282163f1cc3
+URL:		http://search.cpan.org/dist/CPAN-DistnameInfo/
+BuildRequires:	perl(ExtUtils::MakeMaker)
+BuildRequires:	rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires:	perl(Data::Dumper)
+BuildRequires:	perl(Test::More)
+%endif
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%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}
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__make} pure_install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/auto/CPAN/DistnameInfo/.packlist
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README
+%{perl_vendorlib}/CPAN/DistnameInfo.pm
+%{_mandir}/man3/CPAN::DistnameInfo.3pm*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-CPAN-DistnameInfo.git/commitdiff/61f47baa2d5c56b43b8c2d8b67825d476f6ce7d4



More information about the pld-cvs-commit mailing list