From 39fef7a918b852d1f3ea9fda1f9fb3a9568a1d5a Mon Sep 17 00:00:00 2001 From: Sandro Date: Nov 18 2023 22:23:43 +0000 Subject: Use %pyproject macros - Fetch new source tarball - Drop BRs (handled by macros now) - Drop %license (already included) --- diff --git a/.gitignore b/.gitignore index 6dd623f..a389c79 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /legofy-1.0.0.tar.gz +/Legofy-0cadceb9f412636c11eb62370682a43ae329e4cb.tar.gz diff --git a/legofy.spec b/legofy.spec index a146cf9..6ff0c5f 100644 --- a/legofy.spec +++ b/legofy.spec @@ -15,9 +15,6 @@ Source1: %{name}.1 BuildArch: noarch BuildRequires: python3-devel -BuildRequires: python3-setuptools -Requires: python3-click -Requires: python3-pillow %description Legofy is a python program that takes a static image or gif and makes @@ -28,20 +25,25 @@ it so that it looks as if it was built out of LEGO. %forgeautosetup -p1 +%generate_buildrequires +%pyproject_buildrequires + + %build -%py3_build +%pyproject_wheel + %install -%py3_install +%pyproject_install +%pyproject_save_files %{name} install -pDm644 %{SOURCE1} %{buildroot}%{_mandir}/man1/legofy.1 -%files -%{python3_sitelib}/* -%{_bindir}/* -%{_mandir}/man1/* -%doc README.md -%license LICENSE +%files -f %{pyproject_files} +%{_bindir}/%{name} +%{_mandir}/man1/%{name}* +%doc README.md 2010-LEGO-color-palette.pdf + %changelog %autochangelog diff --git a/sources b/sources index 6906b92..d75e534 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -877c6bcdc933b2b5cb3e6b96b8fde813 legofy-1.0.0.tar.gz +SHA512 (Legofy-0cadceb9f412636c11eb62370682a43ae329e4cb.tar.gz) = fa945553e7f69baaf3d8a6d7df782cd6e58f3963a3dfde1cc7f9f8d9a957342100494c13c2f9bf0a756221c5742a1b81eac681605b1463e7c3f8bd39d0d649bb