Project not found: home:fbonazzi:branches:security:SELinux

File JTileDownloader.spec of Package JTileDownloader

# norootforbuild
# icecream 0

Name:           JTileDownloader
BuildRequires:  ant
BuildRequires:  unzip
BuildRequires:  fdupes
Version:        0.4.0_SVN18739
Release:        1
Summary:        JTileDownloader
License:        GPLv2+
Group:          Productivity/Editors/Other
Source0:        JTileDownloader-%{version}.tar.bz2
Url:            http://wiki.openstreetmap.org/wiki/JTileDownloader
Requires:       java
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
JTileDownloader is a Java application for downloading OSM tiles. You
can paste a 'Permlink' to the application, select a radius in km and
zoomlevel, select a renderer and download the tiles. 

%prep
%setup -q
rm -rf jar release
mkdir jar

%build
#export CLASSPATH=$(build-classpath)
%ant createJar

%install
# jars
install -d -m 0755 "%{buildroot}%{_datadir}/%{name}"
install -m 0644 jar/jTileDownloader-0.5pre.jar "%{buildroot}%{_datadir}/%{name}/"
# startscript
install -d -m 0755 "%{buildroot}%{_bindir}"
cat > "%{buildroot}%{_bindir}/%{name}" << 'EOF'
#!/bin/sh
exec java -jar %{_datadir}/%{name}/jTileDownloader-0.5pre.jar "$@"
EOF
chmod 0755 "%{buildroot}%{_bindir}/%{name}"
#
%fdupes -s ${RPM_BUILD_ROOT}

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(0644,root,root,0755)
%attr(0755,root,root) %{_bindir}/%{name}
%{_datadir}/%{name}

%changelog
openSUSE Build Service is sponsored by