jsch-agent-proxy/jsch-agent-proxy.spec

168 lines
4.5 KiB
RPMSpec

#
# spec file for package jsch-agent-proxy
#
# Copyright (c) 2019 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/
#
%bcond_without jp_minimal
Name: jsch-agent-proxy
Version: 0.0.7
Release: 0
Summary: Proxy to ssh-agent and Pageant in Java
License: BSD-3-Clause
Group: Development/Libraries/Java
URL: http://www.jcraft.com/jsch-agent-proxy/
Source0: https://github.com/ymnk/jsch-agent-proxy/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: fdupes
BuildRequires: maven-local
BuildRequires: mvn(com.jcraft:jsch)
BuildRequires: mvn(com.trilead:trilead-ssh2)
BuildRequires: mvn(net.java.dev.jna:jna)
BuildRequires: mvn(net.java.dev.jna:platform)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)
BuildArch: noarch
%if %{without jp_minimal}
BuildRequires: mvn(net.schmizz:sshj)
%endif
%description
jsch-agent-proxy is a proxy program to OpenSSH ssh-agent and Pageant
included Putty. It will be easily integrated into JSch, and users
will be allowed to use those programs in authentications. This
software has been developed for JSch, but it will be easily applicable
to other ssh2 implementations in Java. This software is licensed
under BSD style license.
%package connector-factory
Summary: Connector factory for jsch-agent-proxy
Group: Development/Libraries/Java
%description connector-factory
%{summary}.
%package core
Summary: jsch-agent-proxy core module
Group: Development/Libraries/Java
%description core
%{summary}.
%package jsch
Summary: JSch connector for jsch-agent-proxy
Group: Development/Libraries/Java
%description jsch
%{summary}.
%package pageant
Summary: Pageant connector for jsch-agent-proxy
Group: Development/Libraries/Java
%description pageant
%{summary}.
%package sshagent
Summary: ssh-agent connector for jsch-agent-proxy
Group: Development/Libraries/Java
%description sshagent
%{summary}.
%if %{without jp_minimal}
%package sshj
Summary: sshj connector for jsch-agent-proxy
Group: Development/Libraries/Java
%description sshj
%{summary}.
%endif
%package trilead-ssh2
Summary: trilead-ssh2 connector for jsch-agent-proxy
Group: Development/Libraries/Java
%description trilead-ssh2
%{summary}.
%package usocket-jna
Summary: USocketFactory implementation using JNA
Group: Development/Libraries/Java
%description usocket-jna
%{summary}.
%package usocket-nc
Summary: USocketFactory implementation using Netcat
Group: Development/Libraries/Java
%description usocket-nc
%{summary}.
%package javadoc
Summary: API documentation for %{name}
Group: Documentation/HTML
%description javadoc
This package provides %{summary}.
%prep
%setup -q
# Put parent POM together with core module
%{mvn_package} :jsch.agentproxy jsch.agentproxy.core
# Unnecessary for RPM builds
%pom_remove_plugin ":maven-javadoc-plugin"
%pom_remove_plugin ":maven-source-plugin"
%pom_xpath_remove pom:build/pom:extensions
%if %{with jp_minimal}
%pom_disable_module jsch-agent-proxy-sshj
%endif
%build
%{mvn_build} -s -- -Dsource=8
%install
%mvn_install
%fdupes -s %{buildroot}%{_javadocdir}
%files core -f .mfiles-jsch.agentproxy.core
%doc README README.md
%license LICENSE.txt
%files connector-factory -f .mfiles-jsch.agentproxy.connector-factory
%files jsch -f .mfiles-jsch.agentproxy.jsch
%files pageant -f .mfiles-jsch.agentproxy.pageant
%files sshagent -f .mfiles-jsch.agentproxy.sshagent
%if %{without jp_minimal}
%files sshj -f .mfiles-jsch.agentproxy.sshj
%endif
%files trilead-ssh2 -f .mfiles-jsch.agentproxy.svnkit-trilead-ssh2
%files usocket-jna -f .mfiles-jsch.agentproxy.usocket-jna
%files usocket-nc -f .mfiles-jsch.agentproxy.usocket-nc
%files javadoc -f .mfiles-javadoc
%license LICENSE.txt
%changelog