File mucommander.spec of Package mucommander
#
# spec file for package muCommander (Version 0.8.3)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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/
#
# norootforbuild
Name: mucommander
Version: 0.8.3
Release: 0
Summary: File manager with Norton Commander interface written in Java
License: GPLv3
Url: http://www.mucommander.com
Group: Productivity/File utilities
# svn export https://svn.mucommander.com/mucommander/tags/release_0_8_3/ mucommander-0.8.3
# tar cvjf muCommander-0.8.3.tar.bz2 mucommander-0.8.3
Source0: %{name}-%{version}.tar.bz2
Source1: %{name}.desktop
BuildRequires: ant >= 1.6.5
BuildRequires: java-devel >= 1.6
BuildRequires: update-desktop-files desktop-file-utils
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
muCommander is a lightweight, cross-platform file manager featuring a Norton Commander style interface and running on any operating system with Java support (Mac OS X, Windows, Linux, *BSD, Solaris...).
* Virtual filesystem with local volumes, FTP, SFTP, SMB, NFS, HTTP and Bonjour support
* Quickly copy, move, rename files, create directories, email files...
* Browse, create and uncompress ZIP, RAR, TAR, GZip, BZip2, ISO/NRG, AR/Deb and LST archives
* ZIP files can be modified on-the-fly, without having to recompress the whole archive
* Universal bookmarks and credentials manager
* Multiple windows support
* Full keyboard access
* Highly configurable
* Available in 22 languages : American & British English, French, German, Spanish, Czech, Simplified & Traditional Chinese, Polish, Hungarian, Russian, Slovenian, Romanian, Italian, Korean, Brazilian Portuguese, Dutch, Slovak, Japanese, Swedish, Danish and Ukrainian.
* Free Software (GPL)
%prep
%setup -q
%build
ant obfuscate
echo '#!/bin/bash
java -jar %{_javadir}/%{name}.jar' >%{name}.sh
%install
install -D -m 644 ./tmp/compile/mucommander_unobf.jar %{buildroot}%{_javadir}/%{name}.jar
install -D -m 644 ./res/images/about.png %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/mucommander.png
install -D -m 755 ./%{name}.sh %{buildroot}%{_bindir}/mucommander
%suse_update_desktop_file -i %SOURCE1
install -D -m 644 %SOURCE1 %{buildroot}%{_datadir}/applications/%{name}.desktop
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc compile.txt license.txt readme.txt
%dir %{_datadir}/icons/hicolor/128x128/apps
%dir %{_datadir}/icons/hicolor/128x128
%dir %{_datadir}/icons/hicolor
%{_javadir}/%{name}.jar
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/128x128/apps/mucommander.png
%{_bindir}/mucommander
%changelog
* Sat Jun 17 2009 radomir.cernoch@gmail.com
- Initial package created