Name: hawtjni Version: 1.1 Release: 2%{?dist} Summary: Code generator that produces the JNI code needed to implement java native methods. Group: Development/Libraries License: ASL 2.0 and EPL URL: http://hawtjni.fusesource.org/ # git clone git://github.com/fusesource/hawtjni.git # cd hawtjni && git checkout hawtjni-1.1 # git archive --format=tar --prefix=hawtjni-1.1/ hawtjni-1.1 | gzip > hawtjni-1.1.tar.gz Source0: %{name}-%{version}.tar.gz Patch0: %{name}-%{version}-pom.patch BuildArch: noarch BuildRequires: jpackage-utils BuildRequires: java-devel BuildRequires: maven BuildRequires: maven-compiler-plugin BuildRequires: maven-idea-plugin BuildRequires: maven-plugin-plugin BuildRequires: maven-surefire-report-plugin BuildRequires: maven-project-info-reports-plugin BuildRequires: maven-plugin-jxr BuildRequires: maven-javadoc-plugin BuildRequires: maven-eclipse-plugin BuildRequires: maven-surefire-plugin BuildRequires: maven-clean-plugin BuildRequires: log4j BuildRequires: junit4 BuildRequires: maven-shade-plugin BuildRequires: fusesource-pom BuildRequires: xbean >= 3.7-7 Requires: java Requires: jpackage-utils Requires(post): jpackage-utils Requires(postun): jpackage-utils Requires: xbean >= 3.7-7 Requires: apache-commons-cli Requires: asm2 Requires: maven Requires: plexus-utils Requires: plexus-interpolation Requires: maven-archiver Requires: plexus-archiver Requires: plexus-io %description HawtJNI is a code generator that produces the JNI code needed to implement java native methods. It is based on the jnigen code generator that is part of the SWT Tools project which is used to generate all the JNI code which powers the eclipse platform. %package javadoc Summary: Javadocs for %{name} Group: Documentation Requires: jpackage-utils %description javadoc This package contains the API documentation for %{name}. %prep %setup -q %patch0 -p1 %build mvn-rpmbuild install javadoc:aggregate %install # JAR mkdir -p $RPM_BUILD_ROOT%{_javadir} cp -p %{name}-generator/target/%{name}-generator-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-generator.jar cp -p %{name}-runtime/target/%{name}-runtime-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-runtime.jar cp -p maven-%{name}-plugin/target/maven-%{name}-plugin-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/maven-%{name}-plugin.jar # JAVADOC mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name} cp -rp target/site/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name} # POM install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir} install -pm 644 pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}-pom.pom install -pm 644 %{name}-generator/pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}-generator.pom install -pm 644 %{name}-runtime/pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}-runtime.pom install -pm 644 maven-%{name}-plugin/pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-maven-%{name}-plugin.pom # DEPMAP %add_to_maven_depmap org.fusesource.hawtjni hawtjni-pom %{version} JPP %{name}-pom %add_to_maven_depmap org.fusesource.hawtjni hawtjni-generator %{version} JPP %{name}-generator %add_to_maven_depmap org.fusesource.hawtjni hawtjni-runtime %{version} JPP %{name}-runtime %add_to_maven_depmap org.fusesource.hawtjni maven-hawtjni-plugin %{version} JPP maven-hawtjni-plugin %post %update_maven_depmap %postun %update_maven_depmap %files %{_mavenpomdir}/* %{_mavendepmapfragdir}/* %{_javadir}/* %doc readme.md license.txt changelog.md %files javadoc %{_javadocdir}/%{name} %changelog * Sun May 29 2011 Marek Goldmann 1.1-2 - Added maven-hawtjni-plugin * Fri May 27 2011 Marek Goldmann 1.1-1 - Initial packaging