## START: Set by rpmautospec ## (rpmautospec version 0.8.1) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %bcond check 1 Name: perl-Chemistry-Canonicalize Version: 0.11 Release: %autorelease Summary: Number the atoms in a molecule in a unique way License: GPL-1.0-or-later OR Artistic-1.0-Perl URL: https://metacpan.org/dist/Chemistry-Canonicalize Source0: https://cpan.metacpan.org/authors/id/I/IT/ITUB/Chemistry-Canonicalize-%{version}.tar.gz BuildRequires: make BuildRequires: perl-generators BuildRequires: perl-interpreter BuildRequires: perl(ExtUtils::MakeMaker) %if %{with check} BuildRequires: perl(Test::More) BuildRequires: perl(Test::Pod) %endif BuildArch: noarch %description This module provides functions for "canonicalizing" a molecular structure; that is, to number the atoms in a unique way regardless of the input order. The canonicalization algorithm is based on: Weininger, et. al., J. Chem. Inf. Comp. Sci. 29[2], 97-101 (1989) This module is part of the PerlMol project. %prep %autosetup -p1 -n Chemistry-Canonicalize-%{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/Canonicalize.pm %{_mandir}/man3/Chemistry::Canonicalize.3pm.* %changelog ## START: Generated by rpmautospec * Sat Nov 29 2025 Dominik 'Rathann' Mierzejewski - 0.11-1 - initial package ## END: Generated by rpmautospec