File fly.spec of Package fly

# spec file for package fly
# Copyright (c) 2018 SUSE LINUX 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:           fly
Version:        2.0.1
Release:        0
Summary:        A Script to Create PNGs
License:        SUSE-Permissive
Group:          Productivity/Graphics/Visualization/Other
# Mirror is used since martin gleeson (master site) rejects robot requests
Patch1:         fly-2.0.0-gif.patch
BuildRequires:  dos2unix
BuildRequires:  gd-devel

Fly allows you to create images with script statements. It uses gdlib.

%setup -q
# Gifs are not supported
rm -fr examples/gif

# Duplicate file in source
rm -f examples/jpeg/

# Use unix line endings
dos2unix README examples/{jpeg,png,perl}/* examples/example.csh

make %{?_smp_mflags} CFLAGS="%{optflags}" CC="gcc" LIBS="-lgd"

mkdir -p %{buildroot}%{_bindir}
install -m 755 fly %{buildroot}%{_bindir}

%doc README examples doc