%global lib_api_version 2.0 %global plugin_name ofn-stroke-fill-paths Name: gimp-%{plugin_name} Version: 0.13 Release: 1%{?dist} Summary: Gimp plugin that renders all visible paths License: GPLv3 URL: http://gimp-path-tools.sourceforge.net/index.shtml Source0: https://sourceforge.net/projects/gimp-path-tools/files/scripts/%{plugin_name}.zip Source1: gpl-3.0.txt BuildRequires: python2-rpm-macros # py2_shebang_macro needs /usr/bin/pathfix.py but python2(-devel) packages does not provide it BuildRequires: python3-devel Requires: gimp %description Gimp plugin that renders all the visible paths of an image using one of three possible ways: making a selection from the path and bucket-filling it, using the current paint tool and paint tool settings or using line mode. # Package cannot be noarch because of default gimp plug-ins path %global debug_package %{nil} %prep %autosetup -c %{name}-%{version} %{plugin_name} # GIMP neads python plugins to be python2 %{py2_shebang_fix} %{plugin_name}.py cp -p %{SOURCE1} . %build # Nothing to build %install mkdir -p %{buildroot}/%{_libdir}/gimp/%{lib_api_version}/plug-ins/%{plugin_name} install -m 0755 %{plugin_name}.py* %{buildroot}/%{_libdir}/gimp/%{lib_api_version}/plug-ins/%{plugin_name} %files %license gpl-3.0.txt %doc %{plugin_name}.html %dir %{_libdir}/gimp/%{lib_api_version}/plug-ins/%{plugin_name} %{_libdir}/gimp/%{lib_api_version}/plug-ins/%{plugin_name}/%{plugin_name}.py* %changelog * Thu Jan 14 16:08:59 CET 2021 Jan Zerdik - 0.13-1 - Initializing new package