This commit is contained in:
commit
fe45eca2b7
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -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
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.osc
|
BIN
trilead-ssh2-build217-jenkins-8.tar.gz
(Stored with Git LFS)
Normal file
BIN
trilead-ssh2-build217-jenkins-8.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
89
trilead-ssh2.spec
Normal file
89
trilead-ssh2.spec
Normal file
@ -0,0 +1,89 @@
|
|||||||
|
#
|
||||||
|
# spec file for package trilead-ssh2
|
||||||
|
#
|
||||||
|
# Copyright (c) 2018 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 buildver 217
|
||||||
|
%global patchlvl 8
|
||||||
|
Name: trilead-ssh2
|
||||||
|
Version: %{buildver}.%{patchlvl}
|
||||||
|
Release: 0
|
||||||
|
Summary: SSH-2 protocol implementation in pure Java
|
||||||
|
License: BSD AND MIT
|
||||||
|
URL: https://github.com/jenkinsci/trilead-ssh2
|
||||||
|
Source0: https://github.com/jenkinsci/%{name}/archive/%{name}-build%{buildver}-jenkins-%{patchlvl}.tar.gz
|
||||||
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: java-devel
|
||||||
|
BuildRequires: javapackages-local
|
||||||
|
BuildRequires: javapackages-tools
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description
|
||||||
|
Trilead SSH-2 for Java is a library which implements the SSH-2 protocol in pure
|
||||||
|
Java (tested on J2SE 1.4.2 and 5.0). It allows one to connect to SSH servers
|
||||||
|
from within Java programs. It supports SSH sessions (remote command execution
|
||||||
|
and shell access), local and remote port forwarding, local stream forwarding,
|
||||||
|
X11 forwarding and SCP. There are no dependencies on any JCE provider, as all
|
||||||
|
crypto functionality is included.
|
||||||
|
|
||||||
|
%package javadoc
|
||||||
|
Summary: Javadoc for %{name}
|
||||||
|
|
||||||
|
%description javadoc
|
||||||
|
API documentation for %{name}.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n %{name}-%{name}-build%{buildver}-jenkins-%{patchlvl}
|
||||||
|
|
||||||
|
%build
|
||||||
|
mkdir -p build/classes
|
||||||
|
javac -d build/classes -source 6 -target 6 $(find src -name \*.java | xargs)
|
||||||
|
(cd build/classes && jar cf ../%{name}-%{version}.jar $(find . -name \*.class))
|
||||||
|
mkdir -p build/docs
|
||||||
|
javadoc -d build/docs -source 6 $(find src -name \*.java | xargs)
|
||||||
|
|
||||||
|
%install
|
||||||
|
# jars
|
||||||
|
install -d -m 0755 %{buildroot}%{_javadir}
|
||||||
|
install -m 644 build/%{name}-%{version}.jar %{buildroot}%{_javadir}/
|
||||||
|
(cd %{buildroot}%{_javadir} && ln -s %{name}-%{version}.jar %{name}.jar)
|
||||||
|
|
||||||
|
# pom
|
||||||
|
install -d -m 755 %{buildroot}%{_mavenpomdir}
|
||||||
|
install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/%{name}-%{version}.pom
|
||||||
|
%add_maven_depmap %{name}-%{version}.pom %{name}-%{version}.jar -a "org.tmatesoft.svnkit:trilead-ssh2","com.trilead:trilead-ssh2"
|
||||||
|
|
||||||
|
# javadoc
|
||||||
|
install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
|
||||||
|
cp -aL build/docs/* %{buildroot}%{_javadocdir}/%{name}
|
||||||
|
%fdupes -s %{buildroot}%{_javadocdir}/%{name}
|
||||||
|
|
||||||
|
%files
|
||||||
|
%license LICENSE.txt
|
||||||
|
%doc HISTORY.txt README.txt
|
||||||
|
%{_javadir}/*
|
||||||
|
%{_mavenpomdir}/*
|
||||||
|
%if %{defined _maven_repository}
|
||||||
|
%{_mavendepmapfragdir}/%{name}
|
||||||
|
%else
|
||||||
|
%{_datadir}/maven-metadata/%{name}.xml*
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%files javadoc
|
||||||
|
%license LICENSE.txt
|
||||||
|
%{_javadocdir}/%{name}
|
||||||
|
|
||||||
|
%changelog
|
Loading…
Reference in New Issue
Block a user