File perl-Math-Logic.spec of Package perl-Math-Logic

#
# spec file for package perl-Math-Logic
#
# 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-Math-Logic
Version:        1.19
Release:        0
%define cpan_name Math-Logic
Summary:        Provides pure 2, 3 or multi-value logic
License:        This module may be used/distributed/modified under the LGPL.
Group:          Development/Libraries/Perl
Url:            http://search.cpan.org/dist/Math-Logic/
Source0:        http://www.cpan.org/authors/id/S/SU/SUMMER/%{cpan_name}-%{version}.tar.gz
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  perl
BuildRequires:  perl-macros
%{perl_requires}

%description
Perl's built-in logical operators, 'and', 'or', 'xor' and 'not' support
2-value logic. This means that they always produce a result which is either
true or false. In fact perl sometimes returns 0 and sometimes returns undef
for false depending on the operator and the order of the arguments. For
"true" Perl generally returns the first value that evaluated to true which
turns out to be extremely useful in practice. Given the choice Perl's
built-in logical operators are to be preferred -- but when you really want
pure 2-degree logic or 3-degree logic or multi-degree logic they are
available through this module.

The only 2-degree logic values are 1 (TRUE) and 0 (FALSE).

The only 3-degree logic values are 1 (TRUE), 0 (FALSE) and -1 (UNDEF). Note
that UNDEF is -1 _not_ 'undef'!

The only multi-degree logic values are 0 (FALSE)..'-degree' -- the value of
TRUE is equal to the degree, usually 100.

The '-degree' is the maximum value (except for 2 and 3-degree logic); i.e.
logic of _n_-degree is _n+1_-value logic, e.g. 100-degree logic has 101
values, 0..100.

Although some useful constants may be exported, this is an object module
and the results of logical comparisons are Math::Logic objects.

%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 README

%changelog
openSUSE Build Service is sponsored by