Package mypaint-brushes: Specfile

%def_enable snapshot
%define ver_base 1.0

Name: mypaint-brushes
Version: 1.3.0
Release: alt2.E2K.1

Summary: MyPaint brush collection
Group: Graphics
License: GPLv2+
Url: https://github.com/Jehan/mypaint-brushes

%if_disabled snapshot
Source: %name-%version.tar.gz
%else
# VCS: https://github.com/Jehan/mypaint-brushes.git
Source: %name-%version.tar
%endif

BuildArch: noarch

# extend "warranty" towards that package (must be missing in repo)
Provides: mypaint-brushes1.0

%description
MyPaint is a simple drawing and painting program that works well with
Wacom-style graphics tablets. Its main features are a highly configurable
brush engine, speed, and a fullscreen mode which allows artists to fully
immerse themselves in their work.

This package provides MyPaint brush collection.

%package devel
Summary: MyPaint brush collection devel package
Group: Graphics
Requires: %name = %EVR

%description devel
Mypaint is a fast and easy/simple painter program. It comes with a large
brush collection including charcoal and ink to emulate real media, but the
highly configurable brush engine allows you to experiment with your own
brushes and with not-quite-natural painting.

This package contains pc-file for %name.

%prep
%setup

%build
./autogen.sh
%configure

%install
%makeinstall_std
# e2k hack to effectively disable brushes due to broken loader
mv %buildroot%_datadir/mypaint-data/%ver_base/brushes %buildroot%_datadir/mypaint-data/%ver_base/brushes-noop

%files
%_datadir/mypaint-data/%ver_base/
%doc README* NEWS Licenses*

%files devel
%_datadir/pkgconfig/%name-%ver_base.pc

%changelog
* Mon Apr 26 2021 Michael Shigorin <mike@altlinux.org> 1.3.0-alt2.E2K.1
- P: mypaint-brushes1.0 (required by opentoonz)

* Sat May 25 2019 Andrey Savchenko <bircoph@altlinux.org> 1.3.0-alt2.E2K.0
- hack to workaround gimp bug on e2k

* Fri May 24 2019 Andrey Savchenko <bircoph@altlinux.org> 2.0.1-alt1
- version bump to fix gimp's build on e2k

* Sat Apr 13 2019 Yuri N. Sedunov <aris@altlinux.org> 1.3.0-alt2
- updated to v1.3.0-5-g2c567a1 (fixed build with automake-1.16)

* Mon May 14 2018 Yuri N. Sedunov <aris@altlinux.org> 1.3.0-alt1
- first build for Sisyphus