On 22 April 2016 at 08:16, Luya Tshimbalanga <luya@xxxxxxxxxxxxxxxxx> wrote:
-- Hello team,
I just hit an issue trying to build a gimp plugins which use python.
http://koji.fedoraproject.org/koji/taskinfo?taskID=13757854
You can take a look at the spec below so you can check the mistake:
-------------------------------
%global addon layer-via-copy-cut
Name: gimp-%{addon}
Version: 1.6
Release: 1%{?dist}
Summary: Layer via copy/cut plug-in for GIMP
License: GPLv3+
URL: http://some-gimp-plugins.com/contents/en/
Source0: http://registry.gimp.org/files/%{addon}.zip
Source1: %{name}.metainfo.xml
%if 0%{?fedora} >= 21
BuildRequires: libappstream-glib
%endif
Requires: gimp >= 2.6.0
BuildArch: noarch
%description
Copy and move the selected area to a new layer in the same position.
%prep
%autosetup -c %{name}
%build
# nothing to build
%install
install -d %{buildroot}%{_datadir}/gimp/2.0/plug-ins/
install -m 644 -p %{addon}.py -t %{buildroot}%{_datadir}/gimp/2.0/plug-ins/
%if 0%{?fedora} >= 21
# Add AppStream metadata
install -Dm 0644 -p %{SOURCE1} \
%{buildroot}%{_datadir}/appdata/%{name}.metainfo.xml
%check
appstream-util validate-relax --nonet
%{buildroot}/%{_datadir}/appdata/%{name}.metainfo.xml
%endif
# %%files
IINM the ^^^ %files section can't be commented out.
[...]
[...]
Ahmad Samir
-- devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxxx http://lists.fedoraproject.org/admin/lists/devel@xxxxxxxxxxxxxxxxxxxxxxx