Projects
Eulaceura:Mainline
perl-Math-Expression-Evaluator
_service:obs_scm:perl-Math-Expression-Evaluator...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:perl-Math-Expression-Evaluator.spec of Package perl-Math-Expression-Evaluator
# Perform optional tests %bcond_without perl_Math_Expression_Evaluator_enables_optional_test Name: perl-Math-Expression-Evaluator Version: 0.3.2 Release: 1 Summary: Parses, compiles and evaluates mathematics expressions # lib/Math/Expression/Evaluator/Lexer.pm: (GPL+ or Artistic) and Public Domain License: GPL-1.0-only OR Artistic-1.0-Perl URL: https://metacpan.org/dist/Math-Expression-Evaluator Source0: https://cpan.metacpan.org/authors/id/M/MO/MORITZ/Math-Expression-Evaluator-v%{version}.tar.gz BuildArch: noarch BuildRequires: coreutils # for iconv tool BuildRequires: glibc-common BuildRequires: make BuildRequires: perl-generators BuildRequires: perl-interpreter BuildRequires: perl(:VERSION) >= 5.6.1 BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 # Run-time: BuildRequires: perl(Carp) BuildRequires: perl(Data::Dumper) BuildRequires: perl(Exporter) BuildRequires: perl(Math::Trig) BuildRequires: perl(POSIX) BuildRequires: perl(strict) BuildRequires: perl(warnings) # Tests: BuildRequires: perl(Test::More) %if %{with perl_Math_Expression_Evaluator_enables_optional_test} # Optional tests: BuildRequires: perl(Test::Pod) BuildRequires: perl(Test::Pod::Coverage) %endif %description Math::Expression::Evaluator is a parser, compiler and interpreter for mathematical expressions. It can handle normal arithmetic (including powers wit ^ or **), built-in functions like sin() and variables. %prep %setup -q -n Math-Expression-Evaluator-v%{version} iconv -f iso8859-1 -t utf-8 README > README.conv && mv -f README.conv README # Remove unused file that is packaged by a mistake (becuase of its extension) rm benchmark.pl perl -i -ne 'print $_ unless m{^\Qbenchmark.pl\E}' MANIFEST %if !%{with perl_Math_Expression_Evaluator_enables_optional_test} for F in t/01-pod.t t/02-pod-coverage.t; do rm "$F" perl -i -ne 'print $_ unless m{^\Q'"$F"'\E}' MANIFEST %endif %build perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 %{make_build} %install %{make_install} %{_fixperms} %{buildroot}/* %check make test %files %doc Changes examples README %{perl_vendorlib}/* %{_mandir}/man3/* %changelog * Wed Mar 20 2024 liyue <liyue01@kylinos.cn> - 0.3.2-1 - Package init
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2