mirror of
https://abf.rosa.ru/djam/josm.git
synced 2025-02-25 07:52:52 +00:00
84 lines
2.4 KiB
RPMSpec
84 lines
2.4 KiB
RPMSpec
|
Name: josm
|
||
|
Summary: Java-based OSM editor
|
||
|
Version: 13128
|
||
|
Release: 0
|
||
|
License: GPLv2+
|
||
|
URL: https://josm.openstreetmap.de
|
||
|
Source0: https://josm.openstreetmap.de/download/%{name}-snapshot-%{version}.jar
|
||
|
Source1: %{name}-README
|
||
|
Source2: %{name}-LICENSE
|
||
|
Source3: %{name}-gpl-3.0.txt
|
||
|
Source4: %{name}-logo_48x48x32.png
|
||
|
Group: Sciences/Geosciences
|
||
|
BuildArch: noarch
|
||
|
Requires: java >= 1.8
|
||
|
|
||
|
%description
|
||
|
Editor for OpenStreetMap (daily development snapshot)
|
||
|
JOSM is an editor for OpenStreetMap (OSM) written in Java.
|
||
|
The current version supports stand alone GPX tracks, GPX track data
|
||
|
from OSM database and existing nodes, line segments and metadata tags
|
||
|
from the OSM database.
|
||
|
|
||
|
OpenStreetMap is a project aimed squarely at creating and providing
|
||
|
free geographic data such as street maps to anyone who wants them.
|
||
|
The project was started because most maps you think of as free actually
|
||
|
have legal or technical restrictions on their use, holding back people
|
||
|
from using them in creative, productive or unexpected ways.
|
||
|
|
||
|
%prep
|
||
|
|
||
|
%build
|
||
|
|
||
|
%install
|
||
|
install -d %{buildroot}%{_bindir}
|
||
|
install -d %{buildroot}%{_datadir}/%{name}
|
||
|
install -Dm0644 %{SOURCE0} %{buildroot}%{_datadir}/%{name}/%{name}.jar
|
||
|
|
||
|
# menu-entry
|
||
|
install -d %{buildroot}%{_datadir}/applications
|
||
|
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop <<EOF
|
||
|
[Desktop Entry]
|
||
|
Name=JOSM
|
||
|
Name[ru]=JOSM
|
||
|
GenericName=Java OSM editor
|
||
|
GenericName[ru]=Редактор карт OSM
|
||
|
Comment=Java OpenStreetMap editor
|
||
|
Comment[ru]=Редактор карт OpenStreetMap
|
||
|
Exec=%{name}
|
||
|
Icon=%{name}
|
||
|
Terminal=false
|
||
|
Type=Application
|
||
|
StartupNotify=true
|
||
|
Categories=Application;X-Geosciences;
|
||
|
EOF
|
||
|
|
||
|
# script start program
|
||
|
cat > %{buildroot}%{_bindir}/%{name} << EOF
|
||
|
#!/bin/bash
|
||
|
|
||
|
PROGRAM_DIR=%{_datadir}/%{name}
|
||
|
JAVABIN=/usr/lib/jvm/java-1.8.0/bin/java
|
||
|
|
||
|
exec \$JAVABIN -Xmx256m -jar \$PROGRAM_DIR/%{name}.jar
|
||
|
|
||
|
EOF
|
||
|
|
||
|
chmod +x %{buildroot}%{_bindir}/%{name}
|
||
|
|
||
|
# install docs
|
||
|
install -d %{buildroot}%{_docdir}/%{name}
|
||
|
install -Dm0644 %{SOURCE1} %{buildroot}%{_docdir}/%{name}/README
|
||
|
install -Dm0644 %{SOURCE2} %{buildroot}%{_docdir}/%{name}/LICENSE
|
||
|
install -Dm0644 %{SOURCE3} %{buildroot}%{_docdir}/%{name}/gpl-3.0.txt
|
||
|
|
||
|
# install pixmaps
|
||
|
install -d %{buildroot}%{_datadir}/pixmaps
|
||
|
install -Dm0644 %{SOURCE4} %{buildroot}%{_datadir}/pixmaps/%{name}.png
|
||
|
|
||
|
%files
|
||
|
%{_bindir}/%{name}
|
||
|
%{_datadir}/%{name}/*
|
||
|
%{_datadir}/applications/%{name}.desktop
|
||
|
%{_docdir}/%{name}/*
|
||
|
%{_datadir}/pixmaps/%{name}.png
|