%bcond check 1 Name: perl-Chemistry-MidasPattern Version: 0.11 Release: %autorelease Summary: Select atoms in macromolecules License: GPL-1.0-or-later OR Artistic-1.0-Perl URL: https://metacpan.org/dist/Chemistry-MidasPattern Source0: https://cpan.metacpan.org/authors/id/I/IT/ITUB/Chemistry-MidasPattern-%{version}.tar.gz BuildRequires: make BuildRequires: perl-generators BuildRequires: perl-interpreter BuildRequires: perl(ExtUtils::MakeMaker) %if %{with check} BuildRequires: perl(Chemistry::File::PDB) BuildRequires: perl(Chemistry::MacroMol) BuildRequires: perl(Chemistry::Pattern) BuildRequires: perl(Test::More) BuildRequires: perl(Test::Pod) %endif BuildArch: noarch %description This module partially implements a pattern matching engine for selecting atoms in macromolecules by using Midas/Chimera patterns. See http://www.cmpharm.ucsf.edu/~troyer/troff2html/midas/Midas-uh-3.html#sh-2.1 for a detailed description of this language. This module shares the same interface as Chemistry::Pattern. %prep %autosetup -p1 -n Chemistry-MidasPattern-%{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/MidasPattern.pm %{perl_vendorlib}/Chemistry/MidasPattern.pm %{_mandir}/man3/Chemistry::File::MidasPattern.3pm.* %{_mandir}/man3/Chemistry::MidasPattern.3pm.* %changelog %autochangelog