3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
7 %define pnam MolecularMass
8 Summary: Chemistry::MolecularMass - Perl extension for calculating molecular mass of a chemical compound given its chemical formula.
9 Name: perl-Chemistry-MolecularMass
12 License: Perl Artistic Licence
13 Group: Development/Languages/Perl
14 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5: d0d56e49920ca0f18237ef81ef946ca6
16 BuildRequires: perl-devel >= 1:5.8.0
17 BuildRequires: rpm-perlprov >= 4.1-13
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 Chemistry::MolecularMass is an Object Oriented Perl module for calculating
22 molcular mass of chemical compounds implemented with Perl and C.
23 Molecular masses of elements stored in the module follow recommendations
24 of IUPAC (1995). The module includes elements from H(1) through
25 Uuu(113) and isotopes of hydrogen: deuterium and tritium.
28 %setup -q -n %{pdir}/%{pnam}
31 %{__perl} Makefile.PL \
35 OPTIMIZE="%{rpmcflags}"
37 %{?with_tests:%{__make} test}
40 rm -rf $RPM_BUILD_ROOT
43 DESTDIR=$RPM_BUILD_ROOT
46 rm -rf $RPM_BUILD_ROOT
49 %defattr(644,root,root,755)
51 %{perl_vendorarch}/Chemistry/MolecularMass.pm
52 %{perl_vendorarch}/auto/Chemistry/MolecularMass/MolecularMass.bs
53 %attr(755,root,root) %{perl_vendorarch}/auto/Chemistry/MolecularMass/MolecularMass.so