%bcond check 1 Name: perl-Chemistry-Mok Version: 0.25 Release: %autorelease Summary: Molecular awk interpreter License: GPL-1.0-or-later OR Artistic-1.0-Perl URL: https://metacpan.org/dist/Chemistry-Mok Source0: https://cpan.metacpan.org/authors/id/I/IT/ITUB/Chemistry-Mok-%{version}.tar.gz BuildRequires: make BuildRequires: perl-generators BuildRequires: perl-interpreter BuildRequires: perl(ExtUtils::MakeMaker) %if %{with check} BuildRequires: perl(blib) BuildRequires: perl(Chemistry::3DBuilder) BuildRequires: perl(Chemistry::Bond::Find) BuildRequires: perl(Chemistry::File::MDLMol) BuildRequires: perl(Chemistry::File::SMARTS) BuildRequires: perl(Chemistry::Isotope) BuildRequires: perl(Chemistry::Mol) BuildRequires: perl(Chemistry::Pattern) BuildRequires: perl(Test::Pod) BuildRequires: perl(Test::More) %endif BuildArch: noarch %description The purpose of mok is to read all the molecules found in the files that are given in the command line, and for each molecule execute the CODE that is given. The CODE is given in Perl and it has at its disposal all of the methods of the PerlMol toolkit. %prep %autosetup -p1 -n Chemistry-Mok-%{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 %{_bindir}/mok %{_mandir}/man1/mok.1.gz %{_mandir}/man3/Chemistry::Mok.3pm.* %{perl_vendorlib}/Chemistry/Mok.pm %changelog %autochangelog