File OffRoad.spec of Package OffRoad
#
# spec file for package OffRoad
#
# Copyright (c) 2022 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
Name: OffRoad
Version: 0
Release: 0%{?dist}
Summary: Offline vector map display ported from OsmAnd
# FIXME: Select a correct license from https://github.com/openSUSE/spec-cleaner#spdx-licenses
License: GPL-3.0-or-later
# FIXME: use correct group, see "https://en.opensuse.org/openSUSE:Package_group_guidelines"
Group: Amusements/Teaching/Other
URL: https://sourceforge.net/projects/offroadosm/
Source: OffRoad-bin-%{version}.zip
Source1: OffRoad
BuildArch: noarch
BuildRequires: unzip
Requires: java >= 1.8
BuildRequires: javapackages-tools
%description
An offline map viewer for the Desktop based on OsmAnd.
Features
* Offline Maps
* Offline Navigation
* GPX Tracks Management
* Rendering Engine
* OSM Vector Data
* Elevation/Contour lines
%prep
%setup -c
%build
%install
install -d 755 %{buildroot}%{_javadir}
install -m 644 OffRoad.jar %{buildroot}%{_javadir}/OffRoad.jar
install -d 755 %{buildroot}%{_javadir}/lib
install -m 644 lib/*.jar %{buildroot}%{_javadir}/lib/
install -d %{buildroot}%{_bindir}
install %SOURCE1 %{buildroot}%{_bindir}/OffRoad
chmod +x %{buildroot}%{_bindir}/OffRoad
%files
%license LICENSE
%{_javadir}/*
%{_bindir}/OffRoad
%changelog