%bcond check 1 Name: perl-Chemistry-InternalCoords Version: 0.18 Release: %autorelease Summary: Represent the position of an atom and convert it to Cartesian coordinates License: GPL-1.0-or-later OR Artistic-1.0-Perl URL: https://metacpan.org/dist/Chemistry-InternalCoords Source0: https://cpan.metacpan.org/authors/id/I/IT/ITUB/Chemistry-InternalCoords-%{version}.tar.gz # Fix compilation with Perl 5.19.4+ # https://rt.cpan.org/Public/Bug/Display.html?id=95344 Patch0: %{name}-perl5194.patch BuildRequires: make BuildRequires: perl-generators BuildRequires: perl-interpreter BuildRequires: perl(ExtUtils::MakeMaker) %if %{with check} BuildRequires: perl(Chemistry::Bond::Find) BuildRequires: perl(Chemistry::Canonicalize) BuildRequires: perl(Chemistry::File::Dumper) BuildRequires: perl(Chemistry::Mol) BuildRequires: perl(Test::More) BuildRequires: perl(Test::Pod) %endif BuildArch: noarch %description This module implements an object class for representing internal coordinates and provides methods for converting them to Cartesian coordinates. For generating an internal coordinate representation (aka a Z-matrix) of a molecule from its Cartesian coordinates, see the Chemistry::InternalCoords::Builder module. This module is part of the PerlMol project. %prep %autosetup -p1 -n Chemistry-InternalCoords-%{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 # Builder tests are failing, upstream contacted # export TEST_BUILDER=1 make test %endif %files %doc README %dir %{perl_vendorlib}/Chemistry %dir %{perl_vendorlib}/Chemistry/InternalCoords %{perl_vendorlib}/Chemistry/InternalCoords.pm %{perl_vendorlib}/Chemistry/InternalCoords/Builder.pm %{_mandir}/man3/Chemistry::InternalCoords.3pm.* %{_mandir}/man3/Chemistry::InternalCoords::Builder.3pm.* %changelog %autochangelog