%bcond check 1 Name: perl-Chemistry-3DBuilder Version: 0.10 Release: %autorelease Summary: Generate 3D coordinates from a connection table License: GPL-1.0-or-later OR Artistic-1.0-Perl URL: https://metacpan.org/dist/Chemistry-3DBuilder Source0: https://cpan.metacpan.org/authors/id/I/IT/ITUB/Chemistry-3DBuilder-%{version}.tar.gz BuildRequires: make BuildRequires: perl-generators BuildRequires: perl-interpreter BuildRequires: perl(ExtUtils::MakeMaker) %if %{with check} BuildRequires: perl(Chemistry::File::SMARTS) BuildRequires: perl(Chemistry::File::SMILES) BuildRequires: perl(Chemistry::InternalCoords) BuildRequires: perl(Chemistry::Ring) BuildRequires: perl(Test::More) BuildRequires: perl(Test::Pod) %endif BuildArch: noarch %description This module generates a three-dimensional molecular structure from a connection table, such as that obtained by a 2D representation of the molecule or from a SMILES string. NOTE: this module is still at a very early stage of development so it has important limitations. 1) It doesn't handle rings or stereochemistry yet! 2) The bond lengths and atoms are very approximate as they don't really account for different elements. 3) Only the sp3, sp2, and sp hybridizations are supported. %prep %autosetup -p1 -n Chemistry-3DBuilder-%{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}/Chemistry/3DBuilder.pm %{_mandir}/man3/Chemistry::3DBuilder.3pm.* %changelog %autochangelog