File visicut.spec of Package visicut
#
# spec file for package visicut
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2016
#
# 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 liblasercut LibLaserCut-d76f322e798b90a4c3f2bfe155f69640e9a8ec7a
Name: visicut
Version: 1.7.0.20170423jw
Release: 0
Summary: A userfriendly tool to prepare, save and send Jobs to Lasercutters
License: Various
Group: Productivity/Scientific/Other
URL: https://github.com/fablabnbg/VisiCut
Source: VisiCut-1.7.0-20170423jw.tar.gz
# https://github.com/t-oster/LibLaserCut
Source1: %{liblasercut}.zip
Patch0: visicut-java9.patch
BuildRequires: ant
BuildRequires: ant-junit
BuildRequires: fdupes
BuildRequires: java-devel >= 1.6
BuildRequires: junit
BuildRequires: unzip
BuildArch: noarch
%description
VisiCut is our free, open-source lasercutter software!
- Includes LibLaserCut, a platform independent library for Lasercutters (currently supporting the Epilog ZING, MINI and HELIX and Lasercutters with the LAOS board, but other drivers will follow in the near future)
- Currently supports SVG, EPS, DXF and the VisiCut PLF (Portable Laser Format)
- Get a preview how your graphic would look on the material
- Easy place your graphic on the target material using a camera preview
- Save your work and publish it in the VisiCut PLF-Format
- Prepare your laserjobs at home -- no more surprises when importing your file in the FabLab
%prep
%setup -q -n VisiCut-1.7.0-20170423jw
unzip %{SOURCE1}
rmdir lib/LibLaserCut
mv %{liblasercut} lib/LibLaserCut
%patch0 -p1
%build
ant jar
%install
DESTDIR=%{buildroot} PREFIX=%{_prefix} make install
%fdupes %{buildroot}%{_datadir}/%{name}
%files
%doc README.md COPYING.LESSER LICENSE CHANGELOG.md
%{_bindir}/%{name}
%{_datadir}/applications/VisiCut.desktop
%{_datadir}/pixmaps/%{name}*
%dir %{_datadir}/%{name}
%{_datadir}/%{name}
%changelog