diff --git a/doge.spec b/doge.spec index e162a72..3373971 100644 --- a/doge.spec +++ b/doge.spec @@ -5,11 +5,11 @@ Summary: MOTD script based on the doge meme License: MIT URL: https://github.com/thiderman/doge -Source0: https://pypi.python.org/packages/source/d/%{name}/%{name}-%{version}.tar.gz +Source0: %{pypi_source} BuildArch: noarch BuildRequires: python3-devel -BuildRequires: python3-setuptools +BuildRequires: pyproject-rpm-macros %description doge is a simple motd script based on the doge meme. It prints random @@ -18,24 +18,28 @@ computer. %prep -%setup -q +%autosetup # such shebangs wow sed -i -e '/^#!\//, 1d' doge/*.py +%generate_buildrequires +%pyproject_buildrequires + + %build -%py3_build +%pyproject_wheel %install -%py3_install +%pyproject_install +%pyproject_save_files doge -%files +%files -f %{pyproject_files} %license LICENSE %doc README.md %{_bindir}/%{name} -%{python3_sitelib}/* %changelog