%bcond check 1 Name: perl-Chemistry-File-MDLMol Version: 0.24 Release: %autorelease Summary: MDL molfile reader/writer License: GPL-1.0-or-later OR Artistic-1.0-Perl URL: https://metacpan.org/dist/Chemistry-File-MDLMol Source0: https://cpan.metacpan.org/authors/id/M/ME/MERKYS/Chemistry-File-MDLMol-%{version}.tar.gz BuildRequires: make BuildRequires: perl-generators BuildRequires: perl-interpreter BuildRequires: perl(ExtUtils::MakeMaker) %if %{with check} BuildRequires: perl(Chemistry::Isotope) BuildRequires: perl(Chemistry::Mol) BuildRequires: perl(Chemistry::Pattern) BuildRequires: perl(Chemistry::Ring) BuildRequires: perl(Test::More) BuildRequires: perl(Test::Pod) %endif BuildArch: noarch %description MDL Molfile (V2000) reader/writer. This module automatically registers the 'mdl' format with Chemistry::Mol. The first three lines of the molfile are stored as $mol->name, $mol->attr("mdlmol/line2"), and $mol->attr("mdlmol/comment"). This version only reads and writes some of the information available in a molfile: it reads coordinates, atom and bond types, charges, isotopes, radicals, and atom lists. It does not read other things such as stereochemistry, 3d properties, etc. This module is part of the PerlMol project. %prep %autosetup -p1 -n Chemistry-File-MDLMol-%{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 %dir %{perl_vendorlib}/Chemistry %dir %{perl_vendorlib}/Chemistry/File %{perl_vendorlib}/Chemistry/File/MDLMol.pm %{perl_vendorlib}/Chemistry/File/SDF.pm %{_mandir}/man3/Chemistry::File::MDLMol.3pm.* %{_mandir}/man3/Chemistry::File::SDF.3pm.* %changelog %autochangelog