rpm 4.20 compat
OBS-URL: https://build.opensuse.org/package/show/Java:packages/jnr-x86asm?expand=0&rev=7
This commit is contained in:
parent
de0da1c818
commit
15297d99b8
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Feb 21 10:47:46 UTC 2024 - Gus Kenion <gus.kenion@suse.com>
|
||||||
|
|
||||||
|
- Use %patch -P N instead of deprecated %patchN.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Jul 8 18:06:02 UTC 2021 - Anton Shvetz <shvetz.anton@gmail.com>
|
Thu Jul 8 18:06:02 UTC 2021 - Anton Shvetz <shvetz.anton@gmail.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package jnr-x86asm
|
# spec file for package jnr-x86asm
|
||||||
#
|
#
|
||||||
# Copyright (c) 2020 SUSE LLC
|
# Copyright (c) 2024 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -16,16 +16,15 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%global commit_hash 1dead92
|
%global cluster jnr
|
||||||
%global tag_hash 2a7fb9b
|
Name: %{cluster}-x86asm
|
||||||
Name: jnr-x86asm
|
|
||||||
Version: 1.0.2
|
Version: 1.0.2
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Pure-java port of asmjit
|
Summary: Pure java x86 and x86_64 assembler
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: Development/Libraries/Java
|
Group: Development/Libraries/Java
|
||||||
URL: https://github.com/jnr/%{name}/
|
URL: https://github.com/%{cluster}/%{name}/
|
||||||
Source0: https://github.com/jnr/%{name}/tarball/%{version}/jnr-%{name}-%{version}-0-g%{commit_hash}.tar.gz
|
Source0: %{url}/archive/refs/tags/%{version}.tar.gz
|
||||||
Source1: MANIFEST.MF
|
Source1: MANIFEST.MF
|
||||||
Patch0: add-manifest.patch
|
Patch0: add-manifest.patch
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
@ -34,7 +33,7 @@ BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)
|
|||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Pure-java port of asmjit (http://code.google.com/p/asmjit/)
|
This is a pure-java port of asmjit (http://code.google.com/p/asmjit/).
|
||||||
|
|
||||||
%package javadoc
|
%package javadoc
|
||||||
Summary: Javadoc for %{name}
|
Summary: Javadoc for %{name}
|
||||||
@ -44,20 +43,13 @@ Group: Documentation/HTML
|
|||||||
Javadoc for %{name}.
|
Javadoc for %{name}.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n jnr-%{name}-%{tag_hash}
|
%setup -q
|
||||||
%patch0
|
%patch -P 0
|
||||||
cp %{SOURCE1} .
|
cp %{SOURCE1} .
|
||||||
find ./ -name '*.jar' -delete
|
%{mvn_file} : %{cluster}/%{name}
|
||||||
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
|
%build
|
||||||
%{mvn_build} -f \
|
%{mvn_build} -f -- -Dmaven.compiler.{source,target}=8
|
||||||
%if %{?pkg_vcmp:%pkg_vcmp java-devel >= 9}%{!?pkg_vcmp:0}
|
|
||||||
-- -Dmaven.compiler.release=6
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%mvn_install
|
%mvn_install
|
||||||
|
Loading…
Reference in New Issue
Block a user