Mageia Bugzilla – Attachment 4512 Details for
Bug 11687
JMapViewer - Java OpenStreetMap Tile Viewer (.spec included)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
working .spec-fille
jmapviewer.spec (text/x-rpm-spec), 1.99 KB, created by
Hartmut Goebel
on 2013-11-16 20:05:21 CET
(
hide
)
Description:
working .spec-fille
Filename:
MIME Type:
Creator:
Hartmut Goebel
Created:
2013-11-16 20:05:21 CET
Size:
1.99 KB
patch
obsolete
>Summary: Java OpenStreetMap Tile Viewer >Name: jmapviewer >Version: 1.02 >%define src_ver 1.02 >#Prefix: jmapviewer >Release: %mkrel 1 >Group: Development/Java >License: GPLv2 >URL: http://wiki.openstreetmap.org/wiki/JMapViewer > >BuildArch: noarch > >Source: http://svn.openstreetmap.org/applications/viewer/jmapviewer/releases/%{src_ver}/JMapViewer-%{src_ver}-Source.zip > >BuildRequires: java-devel >BuildRequires: ant > >Requires: java > > >%description >JMapViewer is a java component which allows to easily integrate an OSM >map view into your Java application. > >Features: >* Provides integrated zoom controls (slider and buttons) in the left > upper corner (can be hidden) >* Switch between different tile sources: Mapnik, Tiles@Home, Cyclemap, > ... (other tiled maps can be used, too) >* Configurable in-memory and file-based caching of loaded map tiles >* A list of map markers can be added. Map markers of different shape > can be easily added by implementing the MapMarker interface. >* Configurable/Extentable/Replaceable controller (code part that > manages mouse interaction and how the map reacts to it) > > >%package javadoc >Summary: Java documentation for %{name} >Group: Documentation >Requires: jpackage-utils > >%description javadoc >This package contains the API documentation for %{name}. > >%prep >%setup -q > ># remove all binary libs, just in case >find -name '*.class' -delete >find -name '*.jar' -delete > >%build >%ant clean build pack ># need to build javadoc manually >%javadoc -d javadocs -sourcepath src -subpackages org.openstreetmap.gui ># fix line endings >sed -i 's/\r$//' Readme.txt Gpl.txt > >%install >rm -fr %{buildroot} >install -d -m0755 %{buildroot}%{_javadir} >install -d -m0755 %{buildroot}%{_javadocdir}/%{name} >cp JMapViewer.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar >%{__ln_s} %{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar >cp -r javadocs/* %{buildroot}%{_javadocdir}/%{name} > >%clean >rm -rf %{buildroot} > >%files >%doc Readme.txt Gpl.txt >%{_javadir}/*.jar > >%files javadoc >%defattr(-,root,root,-) >%{_javadocdir}/%{name}
Summary: Java OpenStreetMap Tile Viewer Name: jmapviewer Version: 1.02 %define src_ver 1.02 #Prefix: jmapviewer Release: %mkrel 1 Group: Development/Java License: GPLv2 URL: http://wiki.openstreetmap.org/wiki/JMapViewer BuildArch: noarch Source: http://svn.openstreetmap.org/applications/viewer/jmapviewer/releases/%{src_ver}/JMapViewer-%{src_ver}-Source.zip BuildRequires: java-devel BuildRequires: ant Requires: java %description JMapViewer is a java component which allows to easily integrate an OSM map view into your Java application. Features: * Provides integrated zoom controls (slider and buttons) in the left upper corner (can be hidden) * Switch between different tile sources: Mapnik, Tiles@Home, Cyclemap, ... (other tiled maps can be used, too) * Configurable in-memory and file-based caching of loaded map tiles * A list of map markers can be added. Map markers of different shape can be easily added by implementing the MapMarker interface. * Configurable/Extentable/Replaceable controller (code part that manages mouse interaction and how the map reacts to it) %package javadoc Summary: Java documentation for %{name} Group: Documentation Requires: jpackage-utils %description javadoc This package contains the API documentation for %{name}. %prep %setup -q # remove all binary libs, just in case find -name '*.class' -delete find -name '*.jar' -delete %build %ant clean build pack # need to build javadoc manually %javadoc -d javadocs -sourcepath src -subpackages org.openstreetmap.gui # fix line endings sed -i 's/\r$//' Readme.txt Gpl.txt %install rm -fr %{buildroot} install -d -m0755 %{buildroot}%{_javadir} install -d -m0755 %{buildroot}%{_javadocdir}/%{name} cp JMapViewer.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar %{__ln_s} %{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar cp -r javadocs/* %{buildroot}%{_javadocdir}/%{name} %clean rm -rf %{buildroot} %files %doc Readme.txt Gpl.txt %{_javadir}/*.jar %files javadoc %defattr(-,root,root,-) %{_javadocdir}/%{name}
View Attachment As Raw
Actions:
View
Attachments on
bug 11687
: 4512