%bcond check 1 Name: perl-PerlMol Version: 0.3500 Release: %autorelease Summary: Modules for chemoinformatics and computational chemistry License: GPL-1.0-or-later OR Artistic-1.0-Perl URL: https://web.archive.org/web/20190709154657/http://www.perlmol.org/ Source0: https://cpan.metacpan.org/authors/id/I/IT/ITUB/PerlMol-%{version}.tar.gz Patch0: perl-PerlMol-unbundle.patch # convert to UTF-8 Patch1: perl-PerlMol-utf8.patch BuildRequires: perl-generators BuildRequires: perl-interpreter BuildRequires: perl(inc::Module::Install) %if %{with check} BuildRequires: perl(Test::Pod) %endif BuildArch: noarch Requires: perl(Chemistry::3DBuilder) Requires: perl(Chemistry::Bond::Find) Requires: perl(Chemistry::Canonicalize) Requires: perl(Chemistry::File::MDLMol) Requires: perl(Chemistry::File::Mopac) Requires: perl(Chemistry::File::PDB) Requires: perl(Chemistry::File::SLN) Requires: perl(Chemistry::File::SMARTS) Requires: perl(Chemistry::File::SMILES) Requires: perl(Chemistry::File::VRML) Requires: perl(Chemistry::File::XYZ) Requires: perl(Chemistry::FormulaPattern) Requires: perl(Chemistry::InternalCoords) Requires: perl(Chemistry::Isotope) Requires: perl(Chemistry::MacroMol) Requires: perl(Chemistry::MidasPattern) Requires: perl(Chemistry::Mok) Requires: perl(Chemistry::Mol) Requires: perl(Chemistry::Pattern) Requires: perl(Chemistry::Reaction) Requires: perl(Chemistry::Ring) Requires: perl(Math::VectorReal) Requires: perl(Parse::Yapp) Requires: perl(Statistics::Regression) %description PerlMol is a collection of Perl modules for chemoinformatics and computational chemistry with the philosophy that "simple things should be simple". It should be possible to write one-liners that use this toolkit to do meaningful "molecular munging". The perlmol toolkit provides objects and methods for representing molecules, atoms, and bonds in Perl; doing substructure matching; and reading and writing files in various formats. %prep %autosetup -p1 -n PerlMol-%{version} pushd inc/BUNDLES rm -rv Chemistry-* Math-VectorReal-* Parse-Yapp-* Statistics-Regression-* popd %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 examples %{_mandir}/man3/PerlMol.3pm.* %{perl_vendorlib}/PerlMol.pm %changelog %autochangelog