## START: Set by rpmautospec ## (rpmautospec version 0.8.1) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %bcond check 1 Name: perl-Math-VectorReal Version: 1.02 Release: %autorelease Summary: Module to handle 3D Vector Mathematics License: GPL-1.0-or-later OR Artistic-1.0-Perl URL: https://metacpan.org/dist/Chemistry-Mol Source0: https://cpan.metacpan.org/authors/id/A/AN/ANTHONY/Math-VectorReal-%{version}.tar.gz # fix tests Patch0: %{name}-tests.patch BuildRequires: make BuildRequires: perl-generators BuildRequires: perl-interpreter BuildRequires: perl(ExtUtils::MakeMaker) %if %{with check} BuildRequires: perl(FindBin) BuildRequires: perl(Math::MatrixReal) %endif BuildArch: noarch %description The Math::VectorReal package defines a 3D mathematical "vector", in a way that is compatible with the previous CPAN module Math::MatrixReal. However it provides a more vector oriented set of mathematical functions and overload operators, to the MatrixReal package. For example the normal perl string functions "x" and "." have been overloaded to allow vector cross and dot product operations. Vector math formula thus looks like vector math formula in perl programs using this package. %prep %autosetup -p1 -n Math-VectorReal-%{version} %build perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" \ NO_PACKLIST=1 NO_PERLLOCAL=1 %make_build %install %make_install find %{buildroot} -type f -name '*.bs' -empty -delete %{_fixperms} '%{buildroot}'/* %if %{with check} %check make test %endif %files %doc README %{perl_vendorlib}/Math/VectorReal.pm %{perl_vendorlib}/Math/matrix_test.pl %{perl_vendorlib}/Math/synopsis.pl %{perl_vendorlib}/Math/vector_test.pl %{_mandir}/man3/Math::VectorReal.3pm.* %changelog ## START: Generated by rpmautospec * Tue Nov 25 2025 Dominik 'Rathann' Mierzejewski - 1.02-1 - initial package ## END: Generated by rpmautospec