File ascii-draw.spec of Package ascii-draw
#
# spec file for package ascii-draw
#
# Copyright (c) 2024 mantarimay
#
# 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 lname io.github.nokse22.asciidraw
Name: ascii-draw
Version: 0.3.0
Release: 0
Summary: Draw using ASCII characters
License: GPL-3.0-or-later
URL: https://github.com/Nokse22/ascii-draw
Source: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRequires: appstream-glib
BuildRequires: desktop-file-utils
BuildRequires: meson
BuildRequires: pkgconfig(gtk4)
Requires: python3-gobject
Requires: python3-pyfiglet
Requires: python3-emoji
BuildArch: noarch
%description
This app lets you draw diagrams, tables, treeview and more using ASCII
characters. There are many stiles to choose from and multiple tools
available to use:
* Freehand Brush
* Freehand Line
* Straight Line
* Straight Arrow
* Rectangle
* Filled Rectangle
* Text with FIGlet fonts
* Table
* Tree View
* Eraser
* Character Picker
%lang_package
%prep
%autosetup -p1
%build
%meson
%meson_build
%install
%meson_install
# permission fix
chmod 755 %{buildroot}%{_bindir}/%{name}
sed -i 's/Draw/X-Draw/g' %{buildroot}%{_datadir}/applications/*.desktop
sed -i -e 's/^#!@PYTHON@/#!\/usr\/bin\/python3/g' \
%{buildroot}%{_datadir}/%{name}/ascii_draw/ascii-draw.in
%find_lang %{name}
%files
%license COPYING
%doc README*
%{_bindir}/%{name}
%{_datadir}/%{name}/
%{_datadir}/applications/%{lname}.desktop
%{_datadir}/icons/hicolor/*/*/%{lname}*svg
%{_datadir}/metainfo/%{lname}.metainfo.xml
%{_datadir}/glib-2.0/schemas/%{lname}.gschema.xml
%files lang -f %{name}.lang
%changelog