File gimpilbm.spec of Package gimpilbm

# spec file for package gimpilbm
# Copyright (c) 2016 SUSE LINUX Products GmbH, Nuernberg, Germany.
# 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

Name:           gimpilbm
Version:        0.10.1
Release:        0
Summary:        A GIMP plugin for importing/exporting IFF-ILBM
License:        GPL-2.0
Group:          Productivity/Graphics/Bitmap Editors
Source99:       %{name}.changes
BuildRequires:  gimp
BuildRequires:  gimp-devel
BuildRequires:  pkgconfig
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

This is a fork of the IFF-ILBM GIMP plugin by Johannes Teve├čen.
IFF-ILBM is an image file format that was popular on the Amiga
series of home computers.

%setup -q

# for reproducible builds:
modified="$(sed -n '/^----/n;s/ - .*$//;p;q' "%{SOURCE99}")"
DATE="\"$(date -d "${modified}" "+%%b %%e %%Y")\""
TIME="\"$(date -d "${modified}" "+%%R")\""
sed -i "s/__DATE__/${DATE}/g;s/__TIME__/${TIME}/g" plugin.c ilbm.c 


install -Dm0644 %{buildroot}%{_libdir}/gimp/2.0/modules/

%doc AUTHORS ChangeLog COPYING README.markdown