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 http://bugs.opensuse.org/
#


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
Url:            https://github.com/unwind/gimpilbm
Source:         https://github.com/unwind/gimpilbm/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source99:       %{name}.changes
BuildRequires:  gimp
BuildRequires:  gimp-devel
BuildRequires:  pkgconfig
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
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.

%prep
%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 

%build
make

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

%files
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING README.markdown
%{_libdir}/gimp/2.0/modules/gimpilbm.so

%changelog