File typobuster.spec of Package typobuster

%define skip_python312 1
%define skip_python311 1
%define skip_python310 1
Name:           typobuster
Version:        1.0.0
Release:        1%{?dist}
Summary:        a simplified text editor with a wide selection of transformations and automatic correction of common typos. part of nwg-shell
License:        GPL-3.0
URL:            https://github.com/nwg-piotr/typobuster
Source0:        v%{version}.tar.gz

BuildArch:      noarch

BuildRequires:  python3
BuildRequires:  python3-build
BuildRequires:  python3-installer
BuildRequires:  python3-setuptools
BuildRequires:  python3-wheel
BuildRequires:  python3-pip
BuildRequires:  python-rpm-macros

Requires:       python3
Requires:       glib2
Requires:       python3-gobject
Requires:       python3-cairo
Requires:       gtksourceview4
Requires:       libgtk-3-0
Requires:       libgtk-layer-shell0
Recommends:     gtksourceview4-lang
Recommends:     hunspell
Recommends:     gspell
Recommends:     hspell
Recommends:     nuspell
Recommends:     aspell
Recommends:     libvoikko1

%description
nwg-shell clipboard manager, a GTK3-based GUI for cliphist.
It provides a simple and fast way to access your clipboard history.

%prep
%autosetup -n %{name}-%{version}

%build
export python_flavor=python313
%pyproject_wheel

%install

%pyproject_install
install -Dm 644 %{name}.svg %{buildroot}%{_datadir}/pixmaps/%{name}.svg
install -Dm 644 %{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop

%files
%{_bindir}/typobuster
%license LICENSE
%doc README.md
%{python3_sitelib}/typobuster/*
%{python3_sitelib}/typobuster-%{version}.dist-info/*
%{_datadir}/pixmaps/%{name}.svg
%{_datadir}/applications/%{name}.desktop
%dir %{python3_sitelib}/typobuster
%dir %{python3_sitelib}/typobuster-%{version}.dist-info

%changelog
openSUSE Build Service is sponsored by