perl-AI-Fuzzy/perl-AI-Fuzzy.spec

Name: perl-AI-Fuzzy
Summary: Perl extension for Fuzzy Logic
Version: 0.05
Release: 1.2
License: Artistic/GPL
Group: Applications/CPAN
URL: http://search.cpan.org/dist/AI-Fuzzy/
Description: AI::Fuzzy really consists of two modules - AI::Fuzzy::Label and AI::Fuzzy::Set.

A fuzzy set is simply a mathematical set to which members can partially belong. For example, a particular shade of gray may partially belong to the set of dark colors, whereas black would have full membership, and lemon yellow would have almost no membership.

A fuzzy labeler classifies a particular crisp value by examining the degree to which it belongs to several sets, and selecting the most appropriate. For example, it can decide whether to call water at 60 degrees Farenheight "cold", "cool", or "warm". A fuzzy label might be one of these labels, or a fuzzy set describing to what degree each of the labels describes the particular value in question.

CentOS 7 x86_64

The build was succesful. The following RPMs were generated:

Build Status

CentOS 6 x86_64

The build was succesful. The following RPMs were generated:

Build Status

Contents

The spec file used by the build system currently has the following contents:

# $Id$
# Authority: dries
# Upstream: Michal Wallace <sabren$manifestation,com>

%define perl_vendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib)
%define perl_vendorarch %(eval "`%{__perl} -V:installvendorarch`"; echo $installvendorarch)

%define real_name AI-Fuzzy

Summary: Perl extension for Fuzzy Logic
Name: perl-AI-Fuzzy
Version: 0.05
Release: 1.2%{?dist}
License: Artistic/GPL
Group: Applications/CPAN
URL: http://search.cpan.org/dist/AI-Fuzzy/

Source: http://www.cpan.org/modules/by-module/AI/AI-Fuzzy-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

BuildArch: noarch
BuildRequires: perl
BuildRequires: perl(ExtUtils::MakeMaker)

%description
AI::Fuzzy really consists of two modules - AI::Fuzzy::Label and
AI::Fuzzy::Set.

A fuzzy set is simply a mathematical set to which members can
*partially* belong. For example, a particular shade of gray may
partially belong to the set of dark colors, whereas black would have
full membership, and lemon yellow would have almost no membership.

A fuzzy labeler classifies a particular crisp value by examining the
degree to which it belongs to several sets, and selecting the most
appropriate. For example, it can decide whether to call water at 60
degrees Farenheight "cold", "cool", or "warm". A fuzzy label might be
one of these labels, or a fuzzy set describing to what degree each of
the labels describes the particular value in question.

%prep
%setup -n %{real_name}-%{version}

%build
%{__perl} Makefile.PL INSTALLDIRS="vendor" PREFIX="%{buildroot}%{_prefix}"
%{__make} %{?_smp_mflags}

%install
%{__rm} -rf %{buildroot}
%{__make} pure_install

### Clean up buildroot
find %{buildroot} -name .packlist -exec %{__rm} {} \;

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root, 0755)
%doc Changes MANIFEST README
%doc %{_mandir}/man3/AI::Fuzzy.3pm*
%dir %{perl_vendorlib}/AI/
%{perl_vendorlib}/AI/Fuzzy/
%{perl_vendorlib}/AI/Fuzzy.pm

%changelog
* Sat Apr  9 2005 Dries Verachtert <dries@ulyssis.org> - 0.05-1
- Initial package.