A new user interface for you! Read more...

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


Name:           pencil
Version:        3.0.0
Release:        6.1
Summary:        Tool for making diagrams and GUI prototyping
License:        GPL-2.0
Group:          Productivity/Graphics/Other
Url:            https://github.com/prikhi/pencil
Source:         https://github.com/prikhi/pencil/archive/v%{version}.zip
Packager:  Alessandro de Oliveira Faria (A.K.A CABELO) <cabelo@opensuse.org> 
BuildArch:      noarch
BuildRequires:  fdupes
BuildRequires:  unzip
BuildRequires:  update-desktop-files
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
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 http://pencil.evolus.vn/.

%prep
%setup -q

%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 CHANGELOG.md LICENSE README.md
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/evolus-%{name}/
%{_datadir}/mime/packages/ep.xml

%changelog
* Thu Mar 23 2017 jengelh@inai.de
- Trim filler words from description.
- Replace %%__-type macro indirections.
* Fri Jan 27 2017 zaitor@opensuse.org
- Update to version 2.0.21:
  + Fix FF/XUL Max Version.
- Changes from version 2.0.19:
  + Add Support for FF/XUL v52.
  + Add Support for older versions of FF/XUL(v4+).
  + Updated translations.
* Fri Mar 18 2016 michiel.vanderwulp@gmail.com
- updated to V2.0.18
* Sat Feb 20 2016 michiel.vanderwulp@gmail.com
- updated to V2.0.16
* Wed Feb  3 2016 michiel.vanderwulp@gmail.com
- Make this work with Firefox 44.*
* Fri Jan  1 2016 michiel.vanderwulp@gmail.com
- Make this work with Firefox 43.*
* Thu Dec  3 2015 nrochard@gmail.com
- Update to V2.0.15
* Tue Oct 13 2015 michiel.vanderwulp@gmail.com
- Update to V2.0.14
* Sun Aug 16 2015 michiel.vanderwulp@gmail.com
- Update to V2.0.13
- Set the minimum version to 36
- Exclude the use of xulrunner on openSuse since there is no recent version available (see https://github.com/prikhi/pencil/pull/732)
* Sun Jul 19 2015 michiel.vanderwulp@gmail.com
- Update to V2.0.12
* Tue Jul 14 2015 michiel.vanderwulp@gmail.com
- Use https://github.com/prikhi/pencil in stead of the dead original source: evolus
- Update to V2.0.11
* Thu May 22 2014 aj@ajaissle.de
- Initial package creation