Name: microemulator
Version: 2.0.4
Release: 2%{?dist}
Summary: Java 2 Micro Edition (J2ME) CLDC/MIDP Emulator
License: ASL 2.0 and LGPLv2+
Url: http://www.microemu.org/
# https://github.com/tisoft/microemu/
# svn export -r 2507 http://microemu.googlecode.com/svn/tags/microemulator_2_0_4/ microemulator-2.0.4
# tar czf microemulator-2.0.4-src-svn-r2507.tar.gz microemulator-2.0.4
Source0: %{name}-%{version}-src-svn-r2507.tar.gz
Source1: http://www.apache.org/licenses/LICENSE-2.0.txt
# test deps
%if 0
BuildRequires: junit
# Unavailable
BuildRequires: mvn(net.sf.jour:jour-instrument) >= 2.0.3
%endif
BuildRequires: objectweb-asm
BuildRequires: maven-local
BuildRequires: maven-surefire-plugin
BuildArch: noarch
%description
This is Java 2 Micro Edition (J2ME) CLDC/MIDP Emulator. Allows
demonstration MIDlet (MIDP/CLDC) based applications in web
browser applet, also can be run as standalone java application.
%package javadoc
Summary: Javadoc for %{name}
%description javadoc
This package contains javadoc for %{name}.
%prep
%setup -q
# Unavailable
%pom_remove_plugin net.sf.jour:jour-maven-plugin
%pom_remove_plugin org.codehaus.mojo:jdepend-maven-plugin
%pom_remove_plugin org.codehaus.mojo:findbugs-maven-plugin
%pom_remove_plugin org.codehaus.mojo:taglist-maven-plugin
%pom_remove_plugin :maven-pmd-plugin
%pom_remove_dep net.sf.jour:jour-instrument
%pom_remove_dep sun:applet-jsobject
# Unavailable deps
%pom_disable_module api
%pom_disable_module microemu-javase-swing
%pom_disable_module microemu-javase-applet
%pom_disable_module microemu-extensions
%pom_disable_module microemu-examples
%pom_disable_module microemulator
%pom_disable_module microemu-tests
# Unavailable
%pom_remove_plugin com.pyx4me:proguard-maven-plugin microemu-cldc
%pom_remove_plugin net.sf.jour:jour-maven-plugin microemu-cldc
%pom_remove_dep net.sf.jour:jour-instrument microemu-cldc
%pom_remove_plugin com.pyx4me:proguard-maven-plugin microemu-midp
%pom_remove_dep net.sf.jour:jour-instrument microemu-midp
%pom_remove_plugin com.pyx4me:j2me-maven-plugin microemu-injected
%pom_remove_plugin :maven-assembly-plugin microemu-injected
# fix zero lenght files
cp -p %{SOURCE1} COPYING-AL-2.0
sed -i 's/\r//' COPYING-AL-2.0
%pom_xpath_inject "pom:project/pom:dependencies/pom:dependency[pom:artifactId='asm']" "3" microemu-javase
%build
# unavailable deps for run test
%mvn_build -f
%install
%mvn_install
%files -f .mfiles
%dir %{_javadir}/%{name}
%doc CHANGES CREDITS README TODO read-me-developer.txt
%license COPYING*
%files javadoc -f .mfiles-javadoc
%license COPYING*
%changelog
* Thu Feb 12 2015 gil cattaneo 2.0.4-2
- removed unnecessary seds and license text file
* Tue Mar 27 2012 gil cattaneo 2.0.4-1
- initial rpm