diff --git a/pylast.spec b/pylast.spec index 641c57b..10e3ddd 100644 --- a/pylast.spec +++ b/pylast.spec @@ -1,41 +1,44 @@ -%global pypi_name pylast +%global srcname pylast -Name: python-%{pypi_name} -Version: 3.2.0 -Release: 1%{?dist} -Summary: Python interface to Last.fm and Libre.fm +Name: %{srcname} +Version: 3.2.0 +Release: 1%{?dist} +Summary: A Python interface to Last.fm API compatible social networks -License: ASL 2.0 -URL: https://github.com/pylast/pylast -Source0: %{pypi_source} -BuildArch: noarch +License: ASL 2.0 +URL: https://pypi.python.org/pypi/%{srcname} +Source0: https://files.pythonhosted.org/packages/source/p/%{srcname}/%{srcname}-%{version}.tar.gz +BuildArch: noarch %description -A Python interface to Last.fm (and other API compatible social networks). +A Python interface to Last.fm (and other API compatible social networks) -%package -n python3-%{pypi_name} -Summary: %{summary} +%package -n python3-%{srcname} +Summary: A Python interface to Last.fm API compatible social networks -%{?python_provide:%python_provide python3-%{pypi_name}} +%{?python_provide:%python_provide python3-%{srcname}} -%description -n python3-%{pypi_name} -A Python interface to Last.fm (and other API compatible social networks). +%description -n python3-%{srcname} +A Python interface to Last.fm (and other API compatible social networks) %prep -%autosetup -n %{pypi_name}-%{version} -rm -rf %{pypi_name}.egg-info +%setup -q -n %{srcname}-%{version} %build %py3_build + %install %py3_install -%files -n python3-%{pypi_name} +%check +#%%{__python3} setup.py test + +%files -n python3-%{srcname} %license COPYING %doc README.md -%{python3_sitelib}/%{pypi_name}/ -%{python3_sitelib}/%{pypi_name}-%{version}-py*.egg-info +%{python3_sitelib}/%{srcname}/ +%{python3_sitelib}/%{srcname}-%{version}-py*.egg-info %changelog * Thu Jan 16 2020 Fabian Affolter - 3.2.0-1