This commit is contained in:
parent
34b94f8613
commit
bff5763d03
19
_service
Normal file
19
_service
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
<services>
|
||||||
|
<service name="tar_scm" mode="disabled">
|
||||||
|
<param name="scm">git</param>
|
||||||
|
<param name="url">https://github.com/fusesource/jansi.git</param>
|
||||||
|
<param name="revision">jansi-2.4.0</param>
|
||||||
|
<param name="match-tag">jansi-*</param>
|
||||||
|
<param name="versionformat">@PARENT_TAG@</param>
|
||||||
|
<param name="versionrewrite-pattern">jansi-(.*)</param>
|
||||||
|
<param name="exclude">src/main/native/inc_mac</param>
|
||||||
|
<param name="exclude">src/main/native/inc_win</param>
|
||||||
|
<param name="exclude">src/main/native/inc_linux/*</param>
|
||||||
|
<param name="exclude">src/main/resources/org/fusesource/jansi/internal</param>
|
||||||
|
</service>
|
||||||
|
<service name="recompress" mode="disabled">
|
||||||
|
<param name="file">*.tar</param>
|
||||||
|
<param name="compression">xz</param>
|
||||||
|
</service>
|
||||||
|
<service name="set_version" mode="disabled"/>
|
||||||
|
</services>
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:ba18c50770eebb0b6f472254ada8608138e70045a564efa43626a09691dcf553
|
|
||||||
size 225579
|
|
BIN
jansi-2.4.0.tar.xz
(Stored with Git LFS)
Normal file
BIN
jansi-2.4.0.tar.xz
(Stored with Git LFS)
Normal file
Binary file not shown.
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Apr 26 15:53:32 UTC 2023 - Fridrich Strba <fstrba@suse.com>
|
||||||
|
|
||||||
|
- Fetch sources using source_service and don't distribute legally
|
||||||
|
spurious files.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon May 16 11:00:15 UTC 2022 - Fridrich Strba <fstrba@suse.com>
|
Mon May 16 11:00:15 UTC 2022 - Fridrich Strba <fstrba@suse.com>
|
||||||
|
|
||||||
|
12
jansi.spec
12
jansi.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package jansi
|
# spec file for package jansi
|
||||||
#
|
#
|
||||||
# Copyright (c) 2022 SUSE LLC
|
# Copyright (c) 2023 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
|
||||||
@ -23,7 +23,7 @@ Summary: Java library for generating and interpreting ANSI escape sequenc
|
|||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
Group: Development/Libraries/Java
|
Group: Development/Libraries/Java
|
||||||
URL: https://fusesource.github.io/jansi/
|
URL: https://fusesource.github.io/jansi/
|
||||||
Source0: https://github.com/fusesource/jansi/archive/jansi-%{version}.tar.gz
|
Source0: %{name}-%{version}.tar.xz
|
||||||
Source1: %{name}-build.xml
|
Source1: %{name}-build.xml
|
||||||
Patch0: %{name}-jni.patch
|
Patch0: %{name}-jni.patch
|
||||||
BuildRequires: ant
|
BuildRequires: ant
|
||||||
@ -46,7 +46,7 @@ BuildArch: noarch
|
|||||||
This package contains the API documentation for %{name}.
|
This package contains the API documentation for %{name}.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n jansi-jansi-%{version}
|
%setup -q
|
||||||
cp %{SOURCE1} build.xml
|
cp %{SOURCE1} build.xml
|
||||||
|
|
||||||
%pom_remove_parent
|
%pom_remove_parent
|
||||||
@ -66,11 +66,7 @@ cp %{SOURCE1} build.xml
|
|||||||
# Build for JDK 1.8 at a minimum
|
# Build for JDK 1.8 at a minimum
|
||||||
%pom_xpath_set "//pom:properties/pom:jdkTarget" 1.8
|
%pom_xpath_set "//pom:properties/pom:jdkTarget" 1.8
|
||||||
|
|
||||||
# Remove prebuilt shared objects
|
# Link the JNI headers
|
||||||
rm -fr src/main/resources/org/fusesource/jansi/internal
|
|
||||||
|
|
||||||
# Unbundle the JNI headers
|
|
||||||
rm src/main/native/inc_linux/*.h
|
|
||||||
ln -s %{java_home}/include/jni.h src/main/native/inc_linux
|
ln -s %{java_home}/include/jni.h src/main/native/inc_linux
|
||||||
ln -s %{java_home}/include/linux/jni_md.h src/main/native/inc_linux
|
ln -s %{java_home}/include/linux/jni_md.h src/main/native/inc_linux
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user