File pencil.spec of Package pencil

# spec file for package pencil
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2015-2016 Michiel van der Wulp.
# 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:           pencil
Version:        2.0.21
Release:        0
Summary:        Tool for making diagrams and GUI prototyping
License:        GPL-2.0
Group:          Productivity/Graphics/Other
# PATCH-FIX-OPENSUSE -- reproducible package build
Patch0:         reproducible.patch
BuildArch:      noarch
BuildRequires:  fdupes
BuildRequires:  unzip
BuildRequires:  update-desktop-files
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

Pencil is a GUI prototyping tool that can be used to create mockups.

Top features:
  * Built-in stencils for diagraming and prototyping
  * Multi-page document with background page
  * On-screen text editing with rich-text supports
  * PNG rasterizing
  * Undo/redo supports
  * Installing user-defined stencils
  * Standard drawing operations: aligning, z-ordering, scaling, rotating...
  * Cross-platforms
  * Adding external objects

This is a fork of the dead original project at

%setup -q
%patch0 -p1

cd build
sed -i 's|BINARIES="xulrunner |BINARIES="|' ./Linux/pencil
sed -i "s|MAX_VERSION='46|MAX_VERSION='50|" ./
./ linux

cd build
install -v -d %{buildroot}
cp -r Outputs/LinuxPkg/* %{buildroot}

%suse_update_desktop_file -r %{name} Graphics 2DGraphics Development Design

%fdupes %{buildroot}%{_datadir}/evolus-%{name}

%defattr(-, root, root)