## START: Set by rpmautospec ## (rpmautospec version 0.3.0) %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 3; 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 Name: python-molmass Version: 2021.6.18 Release: %autorelease Summary: Calculate molecular mass properties from elemental composition License: BSD URL: https://www.lfd.uci.edu/~gohlke/molmass/ 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 %prep %autosetup -p1 -n molmass-%{version} # fix line endings dos2unix -k README.rst #remove shebang from non-executable sed s/#!.*$// molmass/molmass_web.py > molmass/molmass_web.py.noenv && touch -r molmass/molmass_web.py molmass/molmass_web.py.noenv && mv molmass/molmass_web.py.noenv molmass/molmass_web.py %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files molmass %files -n python3-molmass -f %{pyproject_files} %doc README.rst %license LICENSE %{_bindir}/molmass %{_bindir}/molmass_web %{_bindir}/elements_gui %changelog * Fri Jan 20 2023 Fedora Release Engineering 2021.6.18-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering 2021.6.18-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 20 2022 Mark E. Fuller 2021.6.18-1 - initial commit