This commit is contained in:
parent
074b7fc3d0
commit
d694873552
3
jansi-2.4.0.tar.gz
Normal file
3
jansi-2.4.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:ba18c50770eebb0b6f472254ada8608138e70045a564efa43626a09691dcf553
|
||||||
|
size 225579
|
185
jansi-build.xml
185
jansi-build.xml
@ -1,18 +1,16 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|
||||||
<project name="jansi" default="package" basedir="jansi">
|
<project name="jansi" default="package" basedir=".">
|
||||||
|
|
||||||
<!-- ====================================================================== -->
|
<!-- ====================================================================== -->
|
||||||
<!-- Build environment properties -->
|
<!-- Build environment properties -->
|
||||||
<!-- ====================================================================== -->
|
<!-- ====================================================================== -->
|
||||||
|
|
||||||
<property file="build.properties"/>
|
<property name="project.version" value="2.4.0"/>
|
||||||
|
|
||||||
<property name="project.groupId" value="org.fusesource.jansi"/>
|
<property name="project.groupId" value="org.fusesource.jansi"/>
|
||||||
<property name="project.artifactId" value="jansi"/>
|
<property name="project.artifactId" value="jansi"/>
|
||||||
<property name="project.version" value="1.17.1"/>
|
|
||||||
<property name="project.name" value="${project.artifactId}"/>
|
<property name="spec.version" value="2.4"/>
|
||||||
<property name="project.description" value="Jansi is a java library for generating and interpreting ANSI escape sequences."/>
|
|
||||||
|
|
||||||
<property name="compiler.source" value="1.8"/>
|
<property name="compiler.source" value="1.8"/>
|
||||||
<property name="compiler.target" value="${compiler.source}"/>
|
<property name="compiler.target" value="${compiler.source}"/>
|
||||||
@ -20,26 +18,11 @@
|
|||||||
<property name="build.finalName" value="${project.artifactId}-${project.version}"/>
|
<property name="build.finalName" value="${project.artifactId}-${project.version}"/>
|
||||||
<property name="build.dir" value="target"/>
|
<property name="build.dir" value="target"/>
|
||||||
<property name="build.outputDir" value="${build.dir}/classes"/>
|
<property name="build.outputDir" value="${build.dir}/classes"/>
|
||||||
<property name="build.srcDir.0" value="src/main/java"/>
|
<property name="build.srcDir" value="src/main/java"/>
|
||||||
<property name="build.resourceDir.0" value="src/main/resources"/>
|
<property name="build.resourceDir" value="src/main/resources"/>
|
||||||
<property name="build.testOutputDir" value="${build.dir}/test-classes"/>
|
|
||||||
<property name="build.testDir.0" value="src/test/java"/>
|
|
||||||
<property name="build.testResourceDir.0" value="src/test/resources"/>
|
|
||||||
<property name="test.reports" value="${build.dir}/test-reports"/>
|
|
||||||
<property name="reporting.outputDirectory" value="${build.dir}/site"/>
|
<property name="reporting.outputDirectory" value="${build.dir}/site"/>
|
||||||
|
|
||||||
<property name="spec.version" value="1.17"/>
|
|
||||||
|
|
||||||
<!-- ====================================================================== -->
|
|
||||||
<!-- Defining classpaths -->
|
|
||||||
<!-- ====================================================================== -->
|
|
||||||
|
|
||||||
<path id="build.classpath">
|
|
||||||
<fileset dir="lib">
|
|
||||||
<include name="**/*.jar"/>
|
|
||||||
</fileset>
|
|
||||||
</path>
|
|
||||||
|
|
||||||
<!-- ====================================================================== -->
|
<!-- ====================================================================== -->
|
||||||
<!-- Cleaning up target -->
|
<!-- Cleaning up target -->
|
||||||
<!-- ====================================================================== -->
|
<!-- ====================================================================== -->
|
||||||
@ -65,126 +48,29 @@
|
|||||||
fork="false"
|
fork="false"
|
||||||
source="${compiler.source}">
|
source="${compiler.source}">
|
||||||
<src>
|
<src>
|
||||||
<pathelement location="${build.srcDir.0}"/>
|
<pathelement location="${build.srcDir}"/>
|
||||||
</src>
|
</src>
|
||||||
<classpath refid="build.classpath"/>
|
|
||||||
</javac>
|
</javac>
|
||||||
<copy todir="${build.outputDir}">
|
<copy todir="${build.outputDir}">
|
||||||
<fileset dir="${build.resourceDir.0}"/>
|
<fileset dir="${build.resourceDir}"/>
|
||||||
</copy>
|
</copy>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<!-- ====================================================================== -->
|
|
||||||
<!-- Test-compilation target -->
|
|
||||||
<!-- ====================================================================== -->
|
|
||||||
|
|
||||||
<target name="compile-tests"
|
|
||||||
depends="compile"
|
|
||||||
description="Compile the test code"
|
|
||||||
unless="test.skip">
|
|
||||||
<mkdir dir="${build.testOutputDir}"/>
|
|
||||||
<javac destdir="${build.testOutputDir}"
|
|
||||||
encoding="UTF-8"
|
|
||||||
nowarn="false"
|
|
||||||
debug="true"
|
|
||||||
optimize="false"
|
|
||||||
deprecation="true"
|
|
||||||
target="${compiler.target}"
|
|
||||||
verbose="false"
|
|
||||||
fork="false"
|
|
||||||
source="${compiler.source}">
|
|
||||||
<src>
|
|
||||||
<pathelement location="${build.testDir.0}"/>
|
|
||||||
</src>
|
|
||||||
<classpath>
|
|
||||||
<path refid="build.classpath"/>
|
|
||||||
<pathelement location="${build.outputDir}"/>
|
|
||||||
</classpath>
|
|
||||||
</javac>
|
|
||||||
<copy todir="${build.testOutputDir}">
|
|
||||||
<fileset dir="${build.testResourceDir.0}"/>
|
|
||||||
</copy>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<!-- ====================================================================== -->
|
|
||||||
<!-- Run all tests -->
|
|
||||||
<!-- ====================================================================== -->
|
|
||||||
|
|
||||||
<target name="test"
|
|
||||||
depends="compile-tests, junit-missing"
|
|
||||||
unless="junit.skipped"
|
|
||||||
description="Run the test cases">
|
|
||||||
<mkdir dir="${test.reports}"/>
|
|
||||||
<junit printSummary="yes" haltonerror="true" haltonfailure="true" fork="true" dir=".">
|
|
||||||
<sysproperty key="basedir" value="."/>
|
|
||||||
<formatter type="xml"/>
|
|
||||||
<formatter type="plain" usefile="false"/>
|
|
||||||
<classpath>
|
|
||||||
<path refid="build.classpath"/>
|
|
||||||
<pathelement location="${build.outputDir}"/>
|
|
||||||
<pathelement location="${build.testOutputDir}"/>
|
|
||||||
</classpath>
|
|
||||||
<batchtest todir="${test.reports}" unless="test">
|
|
||||||
<fileset dir="${build.testDir.0}">
|
|
||||||
<include name="**/*Test.java"/>
|
|
||||||
<exclude name="**/Abstract*.java"/>
|
|
||||||
<exclude name="**/Test*.java"/>
|
|
||||||
</fileset>
|
|
||||||
</batchtest>
|
|
||||||
<batchtest todir="${test.reports}" if="test">
|
|
||||||
<fileset dir="${build.testDir.0}">
|
|
||||||
<include name="**/${test}.java"/>
|
|
||||||
<exclude name="**/Abstract*.java"/>
|
|
||||||
<exclude name="**/Test*.java"/>
|
|
||||||
</fileset>
|
|
||||||
</batchtest>
|
|
||||||
</junit>
|
|
||||||
</target>
|
|
||||||
<target name="test-junit-present">
|
|
||||||
<available classname="junit.framework.Test" property="junit.present" classpathref="build.classpath"/>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="test-junit-status"
|
|
||||||
depends="test-junit-present">
|
|
||||||
<condition property="junit.missing">
|
|
||||||
<and>
|
|
||||||
<isfalse value="${junit.present}"/>
|
|
||||||
<isfalse value="${test.skip}"/>
|
|
||||||
</and>
|
|
||||||
</condition>
|
|
||||||
<condition property="junit.skipped">
|
|
||||||
<or>
|
|
||||||
<isfalse value="${junit.present}"/>
|
|
||||||
<istrue value="${test.skip}"/>
|
|
||||||
</or>
|
|
||||||
</condition>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="junit-missing"
|
|
||||||
depends="test-junit-status"
|
|
||||||
if="junit.missing">
|
|
||||||
<echo>=================================== WARNING ===================================</echo>
|
|
||||||
<echo> JUnit is not present in the test classpath or your $ANT_HOME/lib directory. Tests not executed.</echo>
|
|
||||||
<echo>===============================================================================</echo>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<!-- ====================================================================== -->
|
<!-- ====================================================================== -->
|
||||||
<!-- Javadoc target -->
|
<!-- Javadoc target -->
|
||||||
<!-- ====================================================================== -->
|
<!-- ====================================================================== -->
|
||||||
|
|
||||||
<target name="javadoc" description="Generates the Javadoc of the application">
|
<target name="javadoc" description="Generates the Javadoc of the application">
|
||||||
<javadoc sourcepath="${build.srcDir.0}"
|
<javadoc sourcepath="${build.srcDir}"
|
||||||
packagenames="*"
|
packagenames="*"
|
||||||
destdir="${reporting.outputDirectory}/apidocs"
|
destdir="${reporting.outputDirectory}/apidocs"
|
||||||
access="protected"
|
access="protected"
|
||||||
source="${compiler.source}"
|
source="${compiler.source}"
|
||||||
verbose="false"
|
verbose="false"
|
||||||
locale="en_US"
|
version="true"
|
||||||
version="false"
|
|
||||||
use="true"
|
use="true"
|
||||||
author="true"
|
author="true"
|
||||||
splitindex="false"
|
splitindex="false"
|
||||||
windowtitle="jansi API Reference (${project.version})"
|
|
||||||
nodeprecated="false"
|
nodeprecated="false"
|
||||||
nodeprecatedlist="false"
|
nodeprecatedlist="false"
|
||||||
notree="false"
|
notree="false"
|
||||||
@ -194,46 +80,39 @@
|
|||||||
serialwarn="false"
|
serialwarn="false"
|
||||||
encoding="UTF-8"
|
encoding="UTF-8"
|
||||||
docencoding="UTF-8"
|
docencoding="UTF-8"
|
||||||
linksource="true"
|
linksource="false"
|
||||||
breakiterator="false">
|
breakiterator="false"/>
|
||||||
<doctitle><![CDATA[jansi API Reference (${project.version})]]></doctitle>
|
|
||||||
<classpath refid="build.classpath"/>
|
|
||||||
</javadoc>
|
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<!-- ====================================================================== -->
|
<!-- ====================================================================== -->
|
||||||
<!-- Package target -->
|
<!-- Package target -->
|
||||||
<!-- ====================================================================== -->
|
<!-- ====================================================================== -->
|
||||||
|
|
||||||
<target name="package" depends="compile,test" description="Package the application">
|
<target name="package" depends="compile" description="Package the application">
|
||||||
<jar jarfile="${build.dir}/${build.finalName}.jar"
|
<jar jarfile="${build.dir}/${build.finalName}.jar"
|
||||||
compress="true"
|
compress="true"
|
||||||
index="false"
|
index="false"
|
||||||
basedir="${build.outputDir}"
|
basedir="${build.outputDir}"
|
||||||
excludes="**/package.html">
|
excludes="**/package.html">
|
||||||
<manifest>
|
<manifest>
|
||||||
<attribute name="Bundle-Description" value="${project.description}"/>
|
<attribute name="Automatic-Module-Name" value="${project.groupId}"/>
|
||||||
<attribute name="Bundle-DocURL" value="http://fusesource.com/"/>
|
<attribute name="Bundle-Description" value="Jansi is a java library for generating and interpreting ANSI escape sequences."/>
|
||||||
<attribute name="Bundle-License" value="http://www.apache.org/licenses/LICENSE-2.0.txt"/>
|
<attribute name="Bundle-DocURL" value="http://fusesource.com/"/>
|
||||||
<attribute name="Bundle-ManifestVersion" value="2"/>
|
<attribute name="Bundle-License" value="http://www.apache.org/licenses/LICENSE-2.0.txt"/>
|
||||||
<attribute name="Bundle-Name" value="${project.name}"/>
|
<attribute name="Bundle-ManifestVersion" value="2"/>
|
||||||
<attribute name="Bundle-SymbolicName" value="org.fusesource.jansi"/>
|
<attribute name="Bundle-Name" value="${project.artifactId}"/>
|
||||||
<attribute name="Bundle-Vendor" value="FuseSource, Corp."/>
|
<attribute name="Bundle-SymbolicName" value="${project.groupId}"/>
|
||||||
<attribute name="Bundle-Version" value="${project.version}"/>
|
<attribute name="Bundle-Vendor" value="FuseSource, Corp."/>
|
||||||
<attribute name="Export-Package" value="org.fusesource.jansi;version="${project.version}",org.fusesource.jansi.internal;version="${project.version}""/>
|
<attribute name="Bundle-Version" value="${project.version}"/>
|
||||||
<attribute name="Implementation-Title" value="${project.name}"/>
|
<attribute name="Export-Package" value="org.fusesource.jansi.internal;version="${project.version}",org.fusesource.jansi.io;version="${project.version}";uses:="org.fusesource.jansi",org.fusesource.jansi;version="${project.version}";uses:="org.fusesource.jansi.io""/>
|
||||||
<attribute name="Implementation-URL" value="http://fusesource.github.io/jansi/jansi"/>
|
<attribute name="Implementation-Title" value="${project.artifactId}"/>
|
||||||
<attribute name="Implementation-Vendor" value="FuseSource, Corp."/>
|
<attribute name="Implementation-Vendor" value="FuseSource, Corp."/>
|
||||||
<attribute name="Implementation-Vendor-Id" value="${project.groupId}"/>
|
<attribute name="Implementation-Version" value="${project.version}"/>
|
||||||
<attribute name="Implementation-Version" value="${project.version}"/>
|
<attribute name="Main-Class" value="org.fusesource.jansi.AnsiMain"/>
|
||||||
<attribute name="JavaPackages-ArtifactId" value="${project.artifactId}"/>
|
<attribute name="Require-Capability" value="osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=${compiler.target}))""/>
|
||||||
<attribute name="JavaPackages-GroupId" value="${project.groupId}"/>
|
<attribute name="Specification-Title" value="${project.artifactId}"/>
|
||||||
<attribute name="JavaPackages-Version" value="${project.version}"/>
|
<attribute name="Specification-Vendor" value="FuseSource, Corp."/>
|
||||||
<attribute name="Main-Class" value="org.fusesource.jansi.AnsiMain"/>
|
<attribute name="Specification-Version" value="${spec.version}"/>
|
||||||
<attribute name="Require-Capability" value="osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=${compiler.target}))""/>
|
|
||||||
<attribute name="Specification-Title" value="${project.name}"/>
|
|
||||||
<attribute name="Specification-Vendor" value="FuseSource, Corp."/>
|
|
||||||
<attribute name="Specification-Version" value="${spec.version}"/>
|
|
||||||
</manifest>
|
</manifest>
|
||||||
</jar>
|
</jar>
|
||||||
</target>
|
</target>
|
||||||
|
14
jansi-jni.patch
Normal file
14
jansi-jni.patch
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
--- a/src/main/java/org/fusesource/jansi/internal/JansiLoader.java 2020-12-15 03:03:00.000000000 -0700
|
||||||
|
+++ b/src/main/java/org/fusesource/jansi/internal/JansiLoader.java 2020-12-15 07:57:30.238720226 -0700
|
||||||
|
@@ -295,6 +295,11 @@ public class JansiLoader {
|
||||||
|
} else {
|
||||||
|
triedPaths.add(jansiNativeLibraryPath);
|
||||||
|
}
|
||||||
|
+ } else {
|
||||||
|
+ if (loadNativeLibrary(new File("@LIBDIR@/jansi", jansiNativeLibraryName))) {
|
||||||
|
+ loaded = true;
|
||||||
|
+ return;
|
||||||
|
+ }
|
||||||
|
}
|
||||||
|
|
||||||
|
// Load the os-dependent library from the jar file
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:3d7280eb14edc82e480d66b225470ed6a1da5c5afa4faeab7804a1f15e53b2cd
|
|
||||||
size 270221
|
|
@ -1,3 +1,14 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon May 16 11:00:15 UTC 2022 - Fridrich Strba <fstrba@suse.com>
|
||||||
|
|
||||||
|
- Upgrade the latest upstream release 2.4.0
|
||||||
|
* Integrates jansi-native libraries
|
||||||
|
* Does not depend on jansi-native and hawtjni-runtime
|
||||||
|
- Added patch:
|
||||||
|
* jansi-jni.patch
|
||||||
|
+ Give a possibility to load the native libjansi.so from
|
||||||
|
system
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Mar 23 23:34:23 UTC 2022 - Fridrich Strba <fstrba@suse.com>
|
Wed Mar 23 23:34:23 UTC 2022 - Fridrich Strba <fstrba@suse.com>
|
||||||
|
|
||||||
|
101
jansi.spec
101
jansi.spec
@ -16,27 +16,20 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%bcond_with tests
|
|
||||||
Name: jansi
|
Name: jansi
|
||||||
Version: 1.17.1
|
Version: 2.4.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Java library for generating and interpreting ANSI escape sequences
|
Summary: Java library for generating and interpreting ANSI escape sequences
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
Group: Development/Libraries/Java
|
Group: Development/Libraries/Java
|
||||||
URL: http://fusesource.github.io/jansi/
|
URL: https://fusesource.github.io/jansi/
|
||||||
Source0: https://github.com/fusesource/jansi/archive/jansi-project-%{version}.tar.gz
|
Source0: https://github.com/fusesource/jansi/archive/jansi-%{version}.tar.gz
|
||||||
Source1: %{name}-build.xml
|
Source1: %{name}-build.xml
|
||||||
|
Patch0: %{name}-jni.patch
|
||||||
BuildRequires: ant
|
BuildRequires: ant
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: hawtjni-runtime
|
BuildRequires: gcc
|
||||||
BuildRequires: jansi-native
|
|
||||||
BuildRequires: javapackages-local
|
BuildRequires: javapackages-local
|
||||||
%if %{with tests}
|
|
||||||
BuildRequires: ant-junit
|
|
||||||
%endif
|
|
||||||
Requires: mvn(org.fusesource.hawtjni:hawtjni-runtime)
|
|
||||||
Requires: mvn(org.fusesource.jansi:jansi-native)
|
|
||||||
BuildArch: noarch
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Jansi is a java library that allows you to use ANSI escape sequences
|
Jansi is a java library that allows you to use ANSI escape sequences
|
||||||
@ -47,68 +40,84 @@ when output is being sent to output devices which cannot support ANSI sequences.
|
|||||||
%package javadoc
|
%package javadoc
|
||||||
Summary: Javadocs for %{name}
|
Summary: Javadocs for %{name}
|
||||||
Group: Documentation/HTML
|
Group: Documentation/HTML
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
%description javadoc
|
%description javadoc
|
||||||
This package contains the API documentation for %{name}.
|
This package contains the API documentation for %{name}.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n jansi-jansi-project-%{version}
|
%setup -q -n jansi-jansi-%{version}
|
||||||
cp %{SOURCE1} .
|
cp %{SOURCE1} build.xml
|
||||||
|
|
||||||
%pom_disable_module example
|
%pom_remove_parent
|
||||||
|
|
||||||
|
# We don't need the Fuse JXR skin
|
||||||
%pom_xpath_remove "pom:build/pom:extensions"
|
%pom_xpath_remove "pom:build/pom:extensions"
|
||||||
|
|
||||||
%pom_remove_plugin -r :maven-site-plugin
|
# Plugins not needed for an RPM build
|
||||||
|
%pom_remove_plugin :maven-gpg-plugin
|
||||||
|
%pom_remove_plugin :maven-javadoc-plugin
|
||||||
|
%pom_remove_plugin :nexus-staging-maven-plugin
|
||||||
|
|
||||||
# No maven-uberize-plugin
|
# We don't want GraalVM support in Fedora
|
||||||
%pom_remove_plugin -r :maven-uberize-plugin
|
%pom_remove_plugin :exec-maven-plugin
|
||||||
|
%pom_remove_dep :picocli-codegen
|
||||||
|
|
||||||
# Remove unnecessary deps for jansi-native builds
|
# Build for JDK 1.8 at a minimum
|
||||||
pushd jansi
|
%pom_xpath_set "//pom:properties/pom:jdkTarget" 1.8
|
||||||
%pom_remove_dep :jansi-windows32
|
|
||||||
%pom_remove_dep :jansi-windows64
|
|
||||||
%pom_remove_dep :jansi-osx
|
|
||||||
%pom_remove_dep :jansi-freebsd32
|
|
||||||
%pom_remove_dep :jansi-freebsd64
|
|
||||||
# it's there only to be bundled in uberjar and we disable uberjar generation
|
|
||||||
%pom_remove_dep :jansi-linux32
|
|
||||||
%pom_remove_dep :jansi-linux64
|
|
||||||
popd
|
|
||||||
|
|
||||||
%pom_remove_parent jansi
|
# Remove prebuilt shared objects
|
||||||
%pom_xpath_inject pom:project "
|
rm -fr src/main/resources/org/fusesource/jansi/internal
|
||||||
<groupId>org.fusesource.jansi</groupId>
|
|
||||||
<version>%{version}</version>" jansi
|
# Unbundle the JNI headers
|
||||||
%pom_change_dep ::\${jansi-native-version} ::1.8 jansi
|
rm src/main/native/inc_linux/*.h
|
||||||
|
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
|
||||||
|
|
||||||
|
# Set the JNI path
|
||||||
|
sed -i 's,@LIBDIR@,%{_libdir},' \
|
||||||
|
src/main/java/org/fusesource/jansi/internal/JansiLoader.java
|
||||||
|
# Filtering complicated with ant
|
||||||
|
sed -i 's,\${project.version},%{version},' \
|
||||||
|
src/main/resources/org/fusesource/jansi/jansi.properties
|
||||||
|
|
||||||
%build
|
%build
|
||||||
mkdir -p jansi/lib
|
# Build the native artifact
|
||||||
build-jar-repository -s jansi/lib \
|
CFLAGS="$CFLAGS -I. -I%{java_home}/include -I%{java_home}/include/linux -fPIC -fvisibility=hidden"
|
||||||
hawtjni/hawtjni-runtime jansi-native/jansi-native
|
pushd src/main/native
|
||||||
%{ant} -f %{name}-build.xml \
|
%__cc $CFLAGS -c jansi.c
|
||||||
%if %{without tests}
|
%__cc $CFLAGS -c jansi_isatty.c
|
||||||
-Dtest.skip=true \
|
%__cc $CFLAGS -c jansi_structs.c
|
||||||
%endif
|
%__cc $CFLAGS -c jansi_ttyname.c
|
||||||
jar javadoc
|
%__cc $CFLAGS $LDFLAGS -shared -o libjansi.so *.o -lutil
|
||||||
|
popd
|
||||||
|
|
||||||
|
# Build the Java artifacts
|
||||||
|
%{ant} jar javadoc
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
# Install the native artifact
|
||||||
|
install -dm 0755 %{buildroot}%{_libdir}/%{name}
|
||||||
|
install -pm 0755 src/main/native/libjansi.so %{buildroot}%{_libdir}/%{name}
|
||||||
|
|
||||||
# jar
|
# jar
|
||||||
install -dm 0755 %{buildroot}%{_javadir}/%{name}
|
install -dm 0755 %{buildroot}%{_jnidir}/%{name}
|
||||||
install -pm 0644 jansi/target/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}/%{name}.jar
|
install -pm 0644 target/%{name}-%{version}.jar %{buildroot}%{_jnidir}/%{name}/%{name}.jar
|
||||||
# pom
|
# pom
|
||||||
install -dm 0755 %{buildroot}%{_mavenpomdir}/%{name}
|
install -dm 0755 %{buildroot}%{_mavenpomdir}/%{name}
|
||||||
install -pm 0644 jansi/pom.xml %{buildroot}%{_mavenpomdir}/%{name}/%{name}.pom
|
install -pm 0644 pom.xml %{buildroot}%{_mavenpomdir}/%{name}/%{name}.pom
|
||||||
%add_maven_depmap %{name}/%{name}.pom %{name}/%{name}.jar
|
%add_maven_depmap %{name}/%{name}.pom %{name}/%{name}.jar
|
||||||
# javadoc
|
# javadoc
|
||||||
%fdupes -s %{buildroot}%{_javadocdir}
|
%fdupes -s %{buildroot}%{_javadocdir}
|
||||||
# javadoc
|
# javadoc
|
||||||
install -dm 0755 %{buildroot}%{_javadocdir}/%{name}
|
install -dm 0755 %{buildroot}%{_javadocdir}/%{name}
|
||||||
cp -pr jansi/target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}
|
cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}
|
||||||
%fdupes -s %{buildroot}%{_javadocdir}
|
%fdupes -s %{buildroot}%{_javadocdir}
|
||||||
|
|
||||||
%files -f .mfiles
|
%files -f .mfiles
|
||||||
%license license.txt
|
%license license.txt
|
||||||
%doc readme.md changelog.md
|
%doc readme.md changelog.md
|
||||||
|
%{_libdir}/%{name}
|
||||||
|
|
||||||
%files javadoc
|
%files javadoc
|
||||||
%{_javadocdir}/%{name}
|
%{_javadocdir}/%{name}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user