Accepting request 1083071 from Java:packages

Appease lawyers

OBS-URL: https://build.opensuse.org/request/show/1083071
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/jansi?expand=0&rev=6
This commit is contained in:
Dominique Leuenberger 2023-04-27 18:00:42 +00:00 committed by Git OBS Bridge
commit f90c2519dd
5 changed files with 32 additions and 11 deletions

19
_service Normal file
View 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>

View File

@ -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

Binary file not shown.

View File

@ -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 (bsc#1210877)
-------------------------------------------------------------------
Mon May 16 11:00:15 UTC 2022 - Fridrich Strba <fstrba@suse.com>

View File

@ -1,7 +1,7 @@
#
# 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
# 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
Group: Development/Libraries/Java
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
Patch0: %{name}-jni.patch
BuildRequires: ant
@ -46,7 +46,7 @@ BuildArch: noarch
This package contains the API documentation for %{name}.
%prep
%setup -q -n jansi-jansi-%{version}
%setup -q
cp %{SOURCE1} build.xml
%pom_remove_parent
@ -66,11 +66,7 @@ cp %{SOURCE1} build.xml
# Build for JDK 1.8 at a minimum
%pom_xpath_set "//pom:properties/pom:jdkTarget" 1.8
# Remove prebuilt shared objects
rm -fr src/main/resources/org/fusesource/jansi/internal
# Unbundle the JNI headers
rm src/main/native/inc_linux/*.h
# Link the JNI headers
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