diff --git a/pylast-3.2.0.tar.gz b/pylast-3.2.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..97a7e1c18aa76d8ebd46c046f613691043f2e32c Binary files /dev/null and b/pylast-3.2.0.tar.gz differ diff --git a/pylast-setup-py.patch b/pylast-setup-py.patch new file mode 100644 index 0000000000000000000000000000000000000000..33f058429c5da9230d8cde3248f4887eb8dbf66e --- /dev/null +++ b/pylast-setup-py.patch @@ -0,0 +1,29 @@ +diff -Nur pylast-3.2.0/setup.py pylast-3.2.0-new/setup.py +--- pylast-3.2.0/setup.py 2020-01-03 12:26:27.000000000 +0100 ++++ pylast-3.2.0-new/setup.py 2020-02-06 15:12:42.293641946 +0100 +@@ -3,15 +3,9 @@ + with open("README.md") as f: + long_description = f.read() + +- +-def local_scheme(version): +- """Skip the local version (eg. +xyz of 0.6.1.dev4+gdf99fe2) +- to be able to upload to Test PyPI""" +- return "" +- +- + setup( + name="pylast", ++ version="3.2.0", + description="A Python interface to Last.fm and Libre.fm", + long_description=long_description, + long_description_content_type="text/markdown", +@@ -22,8 +16,6 @@ + keywords=["Last.fm", "music", "scrobble", "scrobbling"], + packages=find_packages(where="src"), + package_dir={"": "src"}, +- use_scm_version={"local_scheme": local_scheme}, +- setup_requires=["setuptools_scm"], + extras_require={ + "tests": ["flaky", "pytest", "pytest-cov", "pytest-random-order", "pyyaml"] + }, diff --git a/pylast.spec b/pylast.spec new file mode 100644 index 0000000000000000000000000000000000000000..a8defd95da02883ad3cb81e37acbf5e6ce6fd416 --- /dev/null +++ b/pylast.spec @@ -0,0 +1,43 @@ +%global srcname pylast + +Name: %{srcname} +Version: 3.2.0 +Release: 1 +Summary: A Python interface to Last.fm API compatible social networks + +License: ASL 2.0 +URL: https://github.com/pylast/pylast +Source0: %{url}/archive/%{version}/%{srcname}-%{version}.tar.gz +Patch0: pylast-setup-py.patch +BuildArch: noarch + +%description +A Python interface to Last.fm (and other API compatible social networks). + +%package -n python3-%{srcname} +Summary: %{summary} + +BuildRequires: python3-devel +%{?python_provide:%python_provide python3-%{srcname}} + +%description -n python3-%{srcname} +A Python interface to Last.fm (and other API compatible social networks). + +%prep +%autosetup -n %{srcname}-%{version} + +%build +%py3_build + +%install +%py3_install + +%files -n python3-%{srcname} +%license COPYING +%doc README.md +%{python3_sitelib}/%{srcname}/ +%{python3_sitelib}/%{srcname}-%{version}-py*.egg-info/ + +%changelog +* Tue July 06 2021 xiehongyu - 3.2.0-1 +- Initial package