%define upstream_name Algorithm-Cluster %define upstream_version 1.50 Name: perl-%{upstream_name} Version: %perl_convert_version %{upstream_version} Release: %mkrel 4 Summary: Perl interface to Michiel Jan Laurens de Hoon's C clustering library License: GPL+ or Artistic Group: Development/Perl URL: http://search.cpan.org/dist/%{upstream_name} Source0: http://www.cpan.org/modules/by-module/Algorithm/%{upstream_name}-%{upstream_version}.tar.gz BuildRequires: perl-devel %description This module is an interface to the C Clustering Library, a general purpose library implementing functions for hierarchical clustering (pairwise simple, complete, average, and centroid linkage), along with k-means and k-medians clustering, and 2D self-organizing maps. The library is distributed along with Cluster 3.0, an enhanced version of the famous Cluster program originally written by Michael Eisen while at Stanford University. The C clustering library was written by Michiel de Hoon. %prep %setup -q -n %{upstream_name}-%{upstream_version} perl -pi -e 's|^#!/usr/perl/perl580/bin/perl|#!/usr/bin/perl|' perl/examples/* %build %{__perl} Makefile.PL INSTALLDIRS=vendor make CFLAGS="%{optflags}" %install rm -rf %{buildroot} %makeinstall_std %check make test %clean rm -rf %{buildroot} %files %defattr(-,root,root) %doc INSTALL README perl/examples META.yml %{perl_vendorarch}/Algorithm %{perl_vendorarch}/auto/Algorithm %{_mandir}/*/* %changelog * Sun Jan 13 2013 umeabot <umeabot> 1.500.0-4.mga3 + Revision: 362846 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Wed May 30 2012 jquelin <jquelin> 1.500.0-3.mga3 + Revision: 250257 - rebuild for perl 5.16 * Sat Jun 11 2011 jquelin <jquelin> 1.500.0-2.mga2 + Revision: 103444 - perl 5.14 * Fri Jan 21 2011 jquelin <jquelin> 1.500.0-1.mga1 + Revision: 29773 - mageia rebuild - imported package perl-Algorithm-Cluster