3 %bcond_without tests # do not perform "make test"
6 %define pnam MolecularMass
7 %include /usr/lib/rpm/macros.perl
8 Summary: Chemistry::MolecularMass - calculating molecular mass of a chemical compound given its chemical formula
9 Summary(pl.UTF-8): Chemistry::MolecularMass - obliczanie masy cząsteczkowej związków zadanych wzorem chemicznym
10 Name: perl-Chemistry-MolecularMass
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: d0d56e49920ca0f18237ef81ef946ca6
17 URL: http://search.cpan.org/dist/Chemistry-MolecularMass/
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 Chemistry::MolecularMass is an Object Oriented Perl module for
24 calculating molecular mass of chemical compounds implemented with Perl
25 and C. Molecular masses of elements stored in the module follow
26 recommendations of IUPAC (1995). The module includes elements from
27 H(1) through Uuu(113) and isotopes of hydrogen: deuterium and tritium.
29 %description -l pl.UTF-8
30 Chemistry::MolecularMass to obiektowo zorientowany moduł Perla do
31 obliczania masy cząsteczkowej związków chemicznych zaimplementowany w
32 Perlu i C. Masy cząsteczkowe pierwiastków są zapisane w module zgodnie
33 z zaleceniami IUPAC (1995). Moduł zawiera pierwiastki od H(1) do
34 Uuu(113) oraz izotopy wodoru: deuter i tryt.
37 %setup -q -n %{pdir}/%{pnam}
40 %{__perl} Makefile.PL \
45 OPTIMIZE="%{rpmcflags}"
47 %{?with_tests:%{__make} test}
50 rm -rf $RPM_BUILD_ROOT
53 DESTDIR=$RPM_BUILD_ROOT
56 rm -rf $RPM_BUILD_ROOT
59 %defattr(644,root,root,755)
61 %{perl_vendorarch}/Chemistry/MolecularMass.pm
62 %dir %{perl_vendorarch}/auto/Chemistry/MolecularMass
63 %attr(755,root,root) %{perl_vendorarch}/auto/Chemistry/MolecularMass/MolecularMass.so