diff --git a/MANIFEST.MF b/MANIFEST.MF new file mode 100644 index 0000000..66abf45 --- /dev/null +++ b/MANIFEST.MF @@ -0,0 +1,12 @@ +Manifest-Version: 1.0 +Bundle-SymbolicName: jnr.x86asm +Export-Package: com.kenai.jnr.x86asm;version="1.0.2",jnr.x86asm;versio + n="1.0.2" +Bundle-Name: Pure Java x86 And x86_64 Assembler +Bundle-Version: 1.0.2 +Bundle-Localization: plugin +Bundle-ManifestVersion: 2 +Bundle-ActivationPolicy: lazy +Bundle-RequiredExecutionEnvironment: JavaSE-1.7 +Bundle-Vendor: Eclipse Orbit + diff --git a/add-manifest.patch b/add-manifest.patch new file mode 100644 index 0000000..b320b67 --- /dev/null +++ b/add-manifest.patch @@ -0,0 +1,23 @@ +diff -up ./pom.xml.fix ./pom.xml +--- ./pom.xml.fix 2015-06-22 15:44:35.991442997 -0400 ++++ ./pom.xml 2015-06-22 15:45:44.215610804 -0400 +@@ -50,4 +50,19 @@ + 1.5 + 1.5 + ++ ++ ++ ++ ++ org.apache.maven.plugins ++ maven-jar-plugin ++ ++ ++ MANIFEST.MF ++ ++ ++ ++ ++ ++ + diff --git a/jnr-x86asm-1.0.2.tar.gz b/jnr-x86asm-1.0.2.tar.gz new file mode 100644 index 0000000..7fbae83 Binary files /dev/null and b/jnr-x86asm-1.0.2.tar.gz differ diff --git a/jnr-x86asm.spec b/jnr-x86asm.spec new file mode 100644 index 0000000..aac9b7a --- /dev/null +++ b/jnr-x86asm.spec @@ -0,0 +1,44 @@ +Name: jnr-x86asm +Version: 1.0.2 +Release: 1 +Summary: Pure-java port of asmjit +License: MIT +URL: https://github.com/jnr/jnr-x86asm/ +Source0: https://github.com/jnr/jnr-x86asm/archive/jnr-x86asm-%{version}.tar.gz +Source1: MANIFEST.MF +Patch0: add-manifest.patch +BuildArch: noarch +BuildRequires: maven-local mvn(junit:junit) mvn(org.sonatype.oss:oss-parent:pom:) +%description +Pure-java port of asmjit (http://code.google.com/p/asmjit/) + +%package help +Summary: Javadoc for %{name} +Provides: %{name}-javadoc = %{version}-%{release} +Obsoletes: %{name}-javadoc < %{version}-%{release} +%description help +Javadoc for %{name}. + +%prep +%setup -q +%patch0 +cp %{SOURCE1} . +find ./ -name '*.jar' -delete +find ./ -name '*.class' -delete + +%build +%mvn_build + +%install +%mvn_install + +%files -f .mfiles +%license LICENSE +%doc README + +%files help -f .mfiles-javadoc +%license LICENSE + +%changelog +* Sat Aug 22 2020 Jeffery.Gao - 1.0.2-1 +- package init diff --git a/jnr-x86asm.yaml b/jnr-x86asm.yaml new file mode 100644 index 0000000..b70183f --- /dev/null +++ b/jnr-x86asm.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: jnr/jnr-x86asm +tag_prefix: "" +seperator: "."