File pencil3.spec of Package pencil3

#
# spec file for package pencil3
#
# Copyright (c) 2017 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 http://bugs.opensuse.org/
#

%define rversion 3.1.0
Name:           pencil3
Version:        3.1.0
Release:        0
Summary:        Tool for making diagrams and GUI prototyping
License:        GPL-2.0
Group:          Productivity/Graphics/Other
Url:            https://github.com/evolus/pencil/
Source:         https://github.com/evolus/pencil/archive/v%{rversion}.tar.gz#/pencil-%{rversion}.tar.gz
BuildArch:      noarch
#BuildRequires:  fdupes
#BuildRequires:  update-desktop-files
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Pencil V3 is a rewrite of Pencil that aims to fix major performance and scalability issues of the application. The new version is under heavy development and we are expecting GA builds in June. The following list summarizes important changes in the new version:

 * Pencil V3 uses Electron instead of Mozilla XULRunner as the runtime. We expect that by moving into this Nodejs-based environment, the Pencil source code can be much easier for all fellow developers to play with. The fact that Mozilla XULRunner is outdated is also a reason for the movement.
 * A new, zip-based file format was introduced to support large documents and better embedding of external bitmaps/resources.
 * A new mechanism for page management that dramatically reduces memory usage for large documents.
 * Document pages can now be structured into a tree-like model.
 * Custom fonts can now be embedded into Pencil .epz documents
 * Printing and PDF export will be improved to support all platforms and with many options
 * New UI approach


%prep
%setup -q -n pencil-%{rversion}

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

%install
#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}

%files
%defattr(-, root, root)
%doc LICENSE.md README.md
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
#%{_datadir}/evolus-%{name}/
#%{_datadir}/mime/packages/ep.xml

%changelog
openSUSE Build Service is sponsored by