%global pkgname nmrglue %global pkgsum Python module for processing NMR data Name: python-%{pkgname} Version: 0.5 Release: 2%{?dist} Summary: %{pkgsum} License: BSD URL: https://github.com/jjhelmus/%{pkgname} Source0: https://github.com/jjhelmus/%{pkgname}/releases/download/v%{version}/%{pkgname}-%{version}.tar.gz BuildArch: noarch BuildRequires: python2-devel BuildRequires: python3-devel %description nmrglue is a module for working with NMR data in Python. When used with the numpy, scipy, and matplotlib packages nmrglue provides a robust interpreted environment for processing, analyzing, and inspecting NMR data. %package -n python2-%{pkgname} Summary: %{pkgsum} %{?python_provide:%python_provide python2-%{pkgname}} Requires: python2-numpy Requires: python2-scipy %description -n python2-%{pkgname} nmrglue is a module for working with NMR data in Python. When used with the numpy, scipy, and matplotlib packages nmrglue provides a robust interpreted environment for processing, analyzing, and inspecting NMR data. %package -n python3-%{pkgname} Summary: %{pkgsum} %{?python_provide:%python_provide python3-%{pkgname}} Requires: python3-numpy Requires: python3-scipy %description -n python3-%{pkgname} nmrglue is a module for working with NMR data in Python. When used with the numpy, scipy, and matplotlib packages nmrglue provides a robust interpreted environment for processing, analyzing, and inspecting NMR data. %prep %autosetup -n %{pkgname}-%{version} %build %py2_build %py3_build %install %py2_install %py3_install # remove empty file debugfiles.list ## rm -f {buildroot}/{pkgname}-{version}/debugfiles.list %files -n python2-%{pkgname} %license LICENSE.txt %doc README.rst TODO.txt %{python2_sitelib}/* %files -n python3-%{pkgname} %license LICENSE.txt %doc README.rst TODO.txt %{python3_sitelib}/* %changelog * Sun Mar 06 2016 Mukundan Ragavan - 0.5-2 - Fix requires - move to subpackages - Shorten description * Sat Mar 5 2016 Mukundan Ragavan - 0.5-1 - Initial package