Blob Blame History Raw
Name:           python-molmass
Version:        2021.6.18
Release:        %autorelease
Summary:        Calculate molecular mass properties from elemental composition

License:        BSD 
Source0:        %{pypi_source molmass}

BuildArch:      noarch
BuildRequires:  python3-devel
BuildRequires:  dos2unix
BuildRequires:  sed

%global _description %{expand:
Molmass is a Python library and console script to calculate the molecular mass
(average, nominal, and isotopic pure), the elemental composition, and the mass
distribution spectrum of a molecule given by its chemical formula, relative 
element weights, or sequence.}

%description %_description

%package -n python3-molmass
Summary:        %{summary}

%description -n python3-molmass %_description

%autosetup -p1 -n molmass-%{version}

# fix line endings
dos2unix -k README.rst

#remove shebang from non-executable
sed s/#!.*$// molmass/ > molmass/ && touch -r molmass/ molmass/ && mv molmass/ molmass/



%pyproject_save_files molmass

%files -n python3-molmass -f %{pyproject_files}
%doc README.rst
%license LICENSE