]> git.pld-linux.org Git - SPECS.git/blob - perl-AI-Fuzzy.spec
SPECS updated Mon 29 Apr 22:05:02 CEST 2024
[SPECS.git] / perl-AI-Fuzzy.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # don't perform "make test"
4
5 %define         pdir    AI
6 %define         pnam    Fuzzy
7 Summary:        AI::Fuzzy - Perl extension for Fuzzy Logic
8 Summary(pl.UTF-8):      AI::Fuzzy - rozszerzenie Perla do logiki rozmytej
9 Name:           perl-AI-Fuzzy
10 Version:        0.05
11 Release:        4
12 License:        unknown
13 Group:          Development/Languages/Perl
14 Source0:        http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5:  8f9d8f20cff0ad81651f96800f15e6b3
16 URL:            http://search.cpan.org/dist/AI-Fuzzy/
17 BuildRequires:  perl-devel >= 1:5.8.0
18 BuildRequires:  rpm-perlprov >= 4.1-13
19 BuildArch:      noarch
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
23 AI::Fuzzy really consists of two modules - AI::Fuzzy::Label and
24 AI::Fuzzy::Set.
25
26 A fuzzy set is simply a mathematical set to which members can
27 partially belong. For example, a particular shade of gray may
28 partially belong to the set of dark colors, whereas black would have
29 full membership, and lemon yellow would have almost no membership.
30
31 A fuzzy labeler classifies a particular crisp value by examining the
32 degree to which it belongs to several sets, and selecting the most
33 appropriate. For example, it can decide whether to call water at 60
34 degrees Fahrenheit "cold", "cool", or "warm". A fuzzy label might be
35 one of these labels, or a fuzzy set describing to what degree each of
36 the labels describes the particular value in question.
37
38 %description -l pl.UTF-8
39 Pakiet AI::Fuzzy składa się z dwóch modułów: AI::Fuzzy::Label i
40 AI::Fuzzy::Set.
41
42 Zbiór rozmyty to prosty matematyczny zbiór, do którego elementy mogą
43 należeć częściowo. Na przykład, konkretny odcień szarości może
44 częściowo należeć do zbioru kolorów ciemnych, natomiast czarny będzie
45 należał do niego całkowicie, a cytrynowo-żółty nie będzie należał
46 prawie wcale.
47
48 Rozmyta funkcja etykietująca klasyfikuje nową konkretną wartość
49 sprawdzając stopień, w jakim należy do różnych zbiorów i wybierając
50 najbardziej odpowiedni. Na przykład, aby zdecydować, jak nazywać wodę
51 o temperaturze 60 stopni Fahrenheita "zimną", "chłodną" czy "ciepłą".
52 Rozmytą etykietą może być jedna z nich, lub rozmyty zbiór opisujący w
53 jakim stopniu każda z tych etykiet opisuje daną wartość.
54
55 %prep
56 %setup -q -n %{pdir}-%{pnam}-%{version}
57
58 %build
59 %{__perl} Makefile.PL \
60         INSTALLDIRS=vendor
61 %{__make}
62
63 %{?with_tests:%{__make} test}
64
65 %install
66 rm -rf $RPM_BUILD_ROOT
67
68 %{__make} install \
69         DESTDIR=$RPM_BUILD_ROOT
70
71 %clean
72 rm -rf $RPM_BUILD_ROOT
73
74 %files
75 %defattr(644,root,root,755)
76 %doc Changes
77 %{perl_vendorlib}/%{pdir}/*.pm
78 %{perl_vendorlib}/%{pdir}/%{pnam}
79 %{_mandir}/man3/*
This page took 0.114266 seconds and 3 git commands to generate.