%bcond check 1 Name: perl-Chemistry-MacroMol Version: 0.06 Release: %autorelease Summary: Perl module for macromolecules License: GPL-1.0-or-later OR Artistic-1.0-Perl URL: https://metacpan.org/dist/Chemistry-MacroMol Source0: https://cpan.metacpan.org/authors/id/I/IT/ITUB/Chemistry-MacroMol-%{version}.tar.gz BuildRequires: make BuildRequires: perl-generators BuildRequires: perl-interpreter BuildRequires: perl(ExtUtils::MakeMaker) %if %{with check} BuildRequires: perl(Chemistry::Mol) BuildRequires: perl(Test) BuildRequires: perl(Test::More) BuildRequires: perl(Test::Pod) %endif BuildArch: noarch %description For the purposes of this module, a macromolecule is just a molecule that consists of several "domains". For example, a protein consists of aminoacid residues, or a nucleic acid consists of bases. Therefore Chemistry::MacroMol is derived from Chemistry::Mol, with additional methods to handle the domains. The way things are currently structured, an atom in a macromolecule "belong" both to the MacroMol object and to a Domain object. This way you can get all the atoms in $protein via $protein->atoms, or to the atoms in residue 123 via $protein->domain(123)->atoms. %prep %autosetup -p1 -n Chemistry-MacroMol-%{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 %{perl_vendorlib}/Chemistry/Domain.pm %{perl_vendorlib}/Chemistry/MacroMol.pm %{_mandir}/man3/Chemistry::Domain.3pm.* %{_mandir}/man3/Chemistry::MacroMol.3pm.* %changelog %autochangelog