%define upstream_name serverfiles Name: python-%{upstream_name} Version: 0.3.0 Release: %mkrel 1 Summary: An utility that accesses files on a HTTP server and stores them locally for reuse Group: Development/Python License: GPLv3 URL: https://github.com/biolab/serverfiles Source0: https://files.pythonhosted.org/packages/72/2d/edd104137443a831eed2f1cedfe96eb003302097b43e7519a98467c5fe44/serverfiles-%{version}.tar.gz BuildArch: noarch %description An utility that accesses files on a HTTP server and stores them locally for reuse. %package -n python2-%{upstream_name} Summary: An utility that accesses files on a HTTP server and stores them locally for reuse Group: Development/Python BuildArch: noarch BuildRequires: pkgconfig(python2) BuildRequires: pythonegg(2)(setuptools) %description -n python2-%{upstream_name} An utility that accesses files on a HTTP server and stores them locally for reuse. %package -n python3-%{upstream_name} Summary: An utility that accesses files on a HTTP server and stores them locally for reuse Group: Development/Python BuildArch: noarch BuildRequires: pkgconfig(python3) BuildRequires: pythonegg(3)(setuptools) %description -n python3-%{upstream_name} An utility that accesses files on a HTTP server and stores them locally for reuse. %prep %setup -q -n %{upstream_name}-%{version} %build %py2_build %py3_build %install %py2_install %py3_install %files -n python2-%{upstream_name} %{python2_sitelib}/serverfiles %{python2_sitelib}/serverfiles-%{version}-*.egg-info %files -n python3-%{upstream_name} %{python3_sitelib}/serverfiles %{python3_sitelib}/serverfiles-%{version}-*.egg-info %changelog * Sun Mar 24 2019 guillomovitch <guillomovitch> 0.3.0-1.mga7 + Revision: 1379956 - imported package python-serverfiles