commit c6c1ce2d3e7ce3bf44a4a10ca547f75f664cf32ef7eb8da91e455c43f4b98107 Author: Fridrich Strba Date: Fri Jul 24 08:49:19 2020 +0000 Accepting request 822578 from home:fstrba:maven new package OBS-URL: https://build.opensuse.org/request/show/822578 OBS-URL: https://build.opensuse.org/package/show/Java:packages/jnr-x86asm?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/MANIFEST.MF b/MANIFEST.MF new file mode 100644 index 0000000..3763969 --- /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..9312715 --- /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-jnr-x86asm-1.0.2-0-g1dead92.tar.gz b/jnr-jnr-x86asm-1.0.2-0-g1dead92.tar.gz new file mode 100644 index 0000000..5afe43e --- /dev/null +++ b/jnr-jnr-x86asm-1.0.2-0-g1dead92.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2846693c3af607b1b89eba23e290f9dfd0668b45755cfa6f0708714d7a0ccdae +size 114165 diff --git a/jnr-x86asm.changes b/jnr-x86asm.changes new file mode 100644 index 0000000..408ed69 --- /dev/null +++ b/jnr-x86asm.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Fri Jul 24 08:47:52 UTC 2020 - Fridrich Strba + +- Initial packaging of jnr-x86asm 1.0.2 diff --git a/jnr-x86asm.spec b/jnr-x86asm.spec new file mode 100644 index 0000000..33abb22 --- /dev/null +++ b/jnr-x86asm.spec @@ -0,0 +1,73 @@ +# +# spec file for package jnr-x86asm +# +# Copyright (c) 2019 SUSE LINUX 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 https://bugs.opensuse.org/ +# + + +%global commit_hash 1dead92 +%global tag_hash 2a7fb9b +Name: jnr-x86asm +Version: 1.0.2 +Release: 0 +Summary: Pure-java port of asmjit +License: MIT +Group: Development/Libraries/Java +URL: https://github.com/jnr/%{name}/ +Source0: https://github.com/jnr/%{name}/tarball/%{version}/jnr-%{name}-%{version}-0-g%{commit_hash}.tar.gz +Source1: MANIFEST.MF +Patch0: add-manifest.patch +BuildRequires: fdupes +BuildRequires: maven-local +BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:) +BuildArch: noarch + +%description +Pure-java port of asmjit (http://code.google.com/p/asmjit/) + +%package javadoc +Summary: Javadoc for %{name} +Group: Documentation/HTML + +%description javadoc +Javadoc for %{name}. + +%prep +%setup -q -n jnr-%{name}-%{tag_hash} +%patch0 +cp %{SOURCE1} . +find ./ -name '*.jar' -delete +find ./ -name '*.class' -delete + +%pom_xpath_set "pom:project/pom:properties/pom:maven.compiler.source" "1.6" +%pom_xpath_set "pom:project/pom:properties/pom:maven.compiler.target" "1.6" + +%build +%{mvn_build} -f \ +%if %{?pkg_vcmp:%pkg_vcmp java-devel >= 9}%{!?pkg_vcmp:0} + -- -Dmaven.compiler.release=6 +%endif + +%install +%mvn_install +%fdupes -s %{buildroot}%{_javadocdir} + +%files -f .mfiles +%license LICENSE +%doc README + +%files javadoc -f .mfiles-javadoc +%license LICENSE + +%changelog