b23937a
# Pull from GitHub, since it has fixes not released on PyPI and contains
b23937a
# the LICENSE file as well as an additional doc.
b23937a
%global forgeurl https://github.com/JuanPotato/Legofy
b23937a
%global commit 0cadceb9f412636c11eb62370682a43ae329e4cb
b23937a
9735860
Name:           legofy
9735860
Version:        1.0.0
2e79731
Release:        %autorelease
7a594dc
Summary:        Make images look as if they are made out of 1x1 LEGO blocks
b23937a
%forgemeta
7b83ad5
# SPDX identifier
9735860
License:        MIT
b23937a
URL:            %forgeurl
b23937a
Source0:        %forgesource
9735860
Source1:        %{name}.1
9735860
9735860
BuildArch:      noarch
9735860
BuildRequires:  python3-devel
9735860
9735860
%description
7a594dc
Legofy is a python program that takes a static image or gif and makes
7a594dc
it so that it looks as if it was built out of LEGO.
9735860
9735860
9735860
%prep
b23937a
%forgeautosetup -p1
9735860
9735860
39fef7a
%generate_buildrequires
39fef7a
%pyproject_buildrequires
39fef7a
39fef7a
9735860
%build
39fef7a
%pyproject_wheel
39fef7a
9735860
9735860
%install
39fef7a
%pyproject_install
39fef7a
%pyproject_save_files %{name}
9735860
install -pDm644 %{SOURCE1} %{buildroot}%{_mandir}/man1/legofy.1
9735860
9735860
39fef7a
%files -f %{pyproject_files}
39fef7a
%{_bindir}/%{name}
39fef7a
%{_mandir}/man1/%{name}*
39fef7a
%doc README.md 2010-LEGO-color-palette.pdf
39fef7a
9735860
9735860
%changelog
2e79731
%autochangelog