File yaoqiang.spec of Package yaoqiang
#
# spec file for package yaoqiang
#
# Copyright (c) 2015 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: yaoqiang
Version: 5.2.4
Release: 0
License: GPL-3.0+
Summary: Graphical editor for business process diagrams
Url: http://bpmn.sourceforge.net/
Group: Productivity/Office/Other
Source0: yaoqiang-bpmn-editor-%{version}.jar
Source1: %{name}.desktop
Source2: %{name}.png
BuildRequires: java-devel
BuildRequires: update-desktop-files
Requires: java >= 1.6.0
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Yaoqiang BPMN Editor is a graphical editor for business process diagrams ,
compliant with OMG specifications (BPMN 2.0).
Features:
* Quickly and easily create, view, edit and simulate your
business processes
* Support all BPMN 2.0 diagram, Import/Export OMG BPMN 2.0 file
* Real-time BPMN syntax validation
* Spell check for element label
* Built-in Version Control Repository
* Automatically generate BPMN 2.0 Diagram Interchange information
* Includes an Open Source BPMN 2.0 Engine.
* Extensible BPMN fragment library
* Automatically split/merge edges
* Flexible Assembly/Disassembly SubProcesses
* Deploy directly to an existing BPMN 2.0 Engine.
* Includes a LDAP Browser/Editor (works only for version 2)
* Executable BPMN simulation (works only for version 2/3)
* Extensible Plugin Architecture (works only for version 2/3)
* Import Visio .vdx file and Convert to BPMN 2.0 file
(works only for version 2.0.x)
* Import GraphML .graphml file and Convert to BPMN 2.0 file
(works only for version 2.0.x)
* Import custom artifacts
* Export PNG, JPG, BMP, GIF, SVG, HTML, VML format
* Export OpenDocument Text (.odt) format
#%prep
#%setup -q
#
#%build
%install
%__install -d -m 755 %{buildroot}%{_javadir}/%{name}
%__install -m 644 %{SOURCE0} %{buildroot}%{_javadir}/%{name}/%{name}-%{version}.jar
# startscript
cat > %{name} << EOF
#!/bin/sh
java -jar %{_javadir}/%{name}/%{name}-%{version}.jar
EOF
%__install -d -m 755 %{buildroot}%{_bindir}
%__install -m 755 %{name} %{buildroot}%{_bindir}/
# Icon
%__install -D -p -m 644 %{SOURCE2} %{buildroot}%{_datadir}/pixmaps/%{name}.png
# Desktop menu entry
%__install -d -m 755 %{buildroot}%{_datadir}/applications
%__install -m 644 %{SOURCE1} %{buildroot}%{_datadir}/applications/%{name}.desktop
%suse_update_desktop_file %{name}
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root)
%{_bindir}/*
%dir %{_javadir}/%{name}
%{_javadir}/%{name}/*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png