File python3-pywal16.spec of Package python3-pywal16
#
# spec file for package python3-pywal16
#
# Copyright (c) 2026 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define pythons python3
Name: python3-pywal16
Version: 0
Release: 0
Summary: 16 colors fork of pywal - generate and change colorschemes on the fly
License: MIT
URL: https://github.com/eylles/pywal16
Source0: pywal16-%{version}.tar.zst
BuildRequires: python-rpm-macros
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildArch: noarch
%description
pywal16 is a 16 colors fork of pywal. It generates a colorscheme from
a wallpaper image and applies it to the terminal and other applications.
%prep
%autosetup -n pywal16-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
# pip installs the man page to /usr/man instead of /usr/share/man — relocate it
mkdir -p %{buildroot}%{_mandir}/man1/
mv %{buildroot}/usr/man/man1/wal.1 %{buildroot}%{_mandir}/man1/
%fdupes %{buildroot}%{python3_sitelib}/
%files
%license LICENSE.md
%doc README.md
%{_bindir}/wal
%{_mandir}/man1/wal.1*
%{python3_sitelib}/pywal/
%{python3_sitelib}/pywal16-*.dist-info/
%changelog