public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/hawtjni] epel10: Initial import.
@ 2026-07-17 9:03 Marek Goldmann
0 siblings, 0 replies; only message in thread
From: Marek Goldmann @ 2026-07-17 9:03 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/hawtjni
Branch : epel10
Commit : 50a9b5a61785e3b4c64167d8a9e7788168207c14
Author : Marek Goldmann <goldmann@fedoraproject.org>
Date : 2011-05-30T23:58:24-04:00
Stats : +176/-0 in 5 file(s)
URL : https://src.fedoraproject.org/rpms/hawtjni/c/50a9b5a61785e3b4c64167d8a9e7788168207c14?branch=epel10
Log:
Initial import.
---
diff --git a/.gitignore b/.gitignore
index e69de29..fb7e3bb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/hawtjni-1.1.tar.xz
diff --git a/hawtjni-1.1-pom.patch b/hawtjni-1.1-pom.patch
new file mode 100644
index 0000000..24b1ded
--- /dev/null
+++ b/hawtjni-1.1-pom.patch
@@ -0,0 +1,12 @@
+diff -Naur hawtjni-1.1/pom.xml hawtjni-1.1-work/pom.xml
+--- hawtjni-1.1/pom.xml 2010-11-04 09:17:44.000000000 -0400
++++ hawtjni-1.1-work/pom.xml 2011-05-28 08:39:48.981676048 -0400
+@@ -200,7 +200,7 @@
+ <module>hawtjni-runtime</module>
+ <module>hawtjni-generator</module>
+ <module>maven-hawtjni-plugin</module>
+- <module>hawtjni-example</module>
++<!-- <module>hawtjni-example</module>-->
+ </modules>
+
+ </project>
diff --git a/hawtjni-1.1-remove-shade-plugin.patch b/hawtjni-1.1-remove-shade-plugin.patch
new file mode 100644
index 0000000..4c9b47f
--- /dev/null
+++ b/hawtjni-1.1-remove-shade-plugin.patch
@@ -0,0 +1,21 @@
+diff -Naur hawtjni-1.1/hawtjni-generator/pom.xml hawtjni-1.1-work/hawtjni-generator/pom.xml
+--- hawtjni-1.1/hawtjni-generator/pom.xml 2010-11-04 09:17:44.000000000 -0400
++++ hawtjni-1.1-work/hawtjni-generator/pom.xml 2011-05-30 06:45:53.024344971 -0400
+@@ -72,7 +72,7 @@
+ <plugins>
+
+ <!-- include all the dependencies into the jar so it can run standalone -->
+- <plugin>
++<!-- <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-shade-plugin</artifactId>
+ <version>1.3</version>
+@@ -91,7 +91,7 @@
+ </configuration>
+ </execution>
+ </executions>
+- </plugin>
++ </plugin>-->
+
+ </plugins>
+ </build>
diff --git a/hawtjni.spec b/hawtjni.spec
new file mode 100644
index 0000000..a0799ed
--- /dev/null
+++ b/hawtjni.spec
@@ -0,0 +1,141 @@
+Name: hawtjni
+Version: 1.1
+Release: 4%{?dist}
+Summary: Code generator that produces the JNI code
+Group: Development/Libraries
+License: ASL 2.0 and EPL and BSD
+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 | xz > hawtjni-1.1.tar.xz
+Source0: %{name}-%{version}.tar.xz
+Patch0: %{name}-%{version}-pom.patch
+Patch1: %{name}-%{version}-remove-shade-plugin.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: 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
+
+%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}.
+
+%package -n maven-%{name}-plugin
+Summary: Use HawtJNI from a maven plugin
+Group: Development/Libraries
+Requires: maven
+Requires: plexus-utils
+Requires: plexus-interpolation
+Requires: maven-archiver
+Requires: plexus-archiver
+Requires: plexus-io
+Requires: hawtjni = %{version}-%{release}
+
+%description -n maven-%{name}-plugin
+This package allows to use HawtJNI from a maven plugin.
+
+%prep
+%setup -q
+%patch0 -p1
+%patch1 -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
+%exclude %{_mavenpomdir}/JPP-maven-%{name}-plugin.pom
+%exclude %{_javadir}/maven-%{name}-plugin.jar
+
+%files javadoc
+%{_javadocdir}/%{name}
+%doc license.txt
+
+%files -n maven-%{name}-plugin
+%{_mavenpomdir}/JPP-maven-%{name}-plugin.pom
+%{_javadir}/maven-%{name}-plugin.jar
+
+%changelog
+* Mon May 30 2011 Marek Goldmann <mgoldman@redhat.com> 1.1-4
+- Removed maven-shade-plugin dependency
+
+* Mon May 30 2011 Marek Goldmann <mgoldman@redhat.com> 1.1-3
+- Split maven-hawtjni-plugin into new package
+- Fixed license
+- Fixed summary
+- Using xz to compress source code
+
+* Sun May 29 2011 Marek Goldmann <mgoldman@redhat.com> 1.1-2
+- Added maven-hawtjni-plugin
+
+* Fri May 27 2011 Marek Goldmann <mgoldman@redhat.com> 1.1-1
+- Initial packaging
+
diff --git a/sources b/sources
index e69de29..75d0e7f 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+dc1a98b5cf60e90fb79a33fc003c2af9 hawtjni-1.1.tar.xz
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-07-17 9:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-17 9:03 [rpms/hawtjni] epel10: Initial import Marek Goldmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox