Name: sshj Version: 0.13.0 Release: 11%{?dist} Summary: SSHv2 library for Java License: ASL 2.0 URL: https://github.com/hierynomus/sshj Source0: https://github.com/hierynomus/sshj/archive/v%{version}.tar.gz BuildRequires: gradle-local BuildRequires: mvn(ch.qos.logback:logback-classic) BuildRequires: mvn(com.jcraft:jzlib) >= 1.1.0-2 BuildRequires: mvn(junit:junit) BuildRequires: mvn(net.iharder:base64) BuildRequires: mvn(org.apache.sshd:sshd-core) BuildRequires: mvn(org.bouncycastle:bcprov-jdk15on) BuildRequires: mvn(org.bouncycastle:bcpkix-jdk15on) BuildRequires: mvn(org.mockito:mockito-core) BuildRequires: mvn(org.slf4j:slf4j-api) BuildRequires: /usr/bin/perl BuildArch: noarch %description SSH, scp and sftp library for Java. %package javadoc Summary: Javadoc for %{name} %description javadoc This package contains javadoc for %{name}. %prep %setup -q find . -name "*.jar" -print -delete # Enable local mode perl -p -e "s/mavenCentral/xmvn()\n mavenCentral/" build.gradle > build.gradle.temp mv build.gradle.temp build.gradle # fix non ASCII chars native2ascii -encoding UTF8 \ src/main/java/net/schmizz/sshj/SSHClient.java \ src/main/java/net/schmizz/sshj/SSHClient.java # Remove bundle library rm -r src/main/java/net/schmizz/sshj/common/Base64.java sed -i "s|net.schmizz.sshj.common.Base64|net.iharder.Base64|" \ src/main/java/net/schmizz/sshj/transport/verification/OpenSSHKnownHosts.java \ src/main/java/net/schmizz/sshj/userauth/keyprovider/OpenSSHKeyFile.java \ src/main/java/net/schmizz/sshj/userauth/keyprovider/PuTTYKeyFile.java perl -p -e 's/compile "com.jcraft:jzlib:1.1.3"/compile "net.iharder:base64:2.3.8"\n compile "com.jcraft:jzlib:1.1.3"/' \ build.gradle > build.gradle.temp mv build.gradle.temp build.gradle # Fix javadoc task perl -p -e 's/task javadocJar/task javadocs(type: Javadoc) {\n source = sourceSets.main.allJava\n}\n\ntask javadocJar/' \ build.gradle > build.gradle.temp mv build.gradle.temp build.gradle # https://discuss.gradle.org/t/rootproject-name-in-settings-gradle-vs-projectname-in-build-gradle/5704/2 echo 'rootProject.name="sshj"' >> settings.gradle # Test fails on koji only, cause: authenticated FAILED rm -r src/test/java/com/hierynomus/sshj/userauth/GssApiTest.java %mvn_file com.hierynomus:%{name} %{name} %mvn_alias com.hierynomus:%{name} net.schmizz:%{name} %build # Disable test suite # On ARM builder test fails @ random # com.hierynomus.sshj.transport.DisconnectionTest > listenerNotifiedOnServerDisconnect FAILED # net.schmizz.sshj.transport.TransportException at DisconnectionTest.java:36 # Caused by: java.util.concurrent.TimeoutException at DisconnectionTest.java:36 # ? Test com.hierynomus.sshj.transport.DisconnectionTest; Executed: 4/3/1 # 69 tests completed, 1 failed gradle -s --offline -x javadocs install %install %mvn_artifact build/poms/pom-default.xml build/libs/%{name}-%{version}.jar %mvn_install -J build/docs/javadoc %files -f .mfiles %doc CONTRIBUTORS README.adoc %license LICENSE NOTICE %files javadoc -f .mfiles-javadoc %license LICENSE NOTICE %changelog * Sat Jul 27 2019 Fedora Release Engineering - 0.13.0-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sun Feb 03 2019 Fedora Release Engineering - 0.13.0-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Jul 14 2018 Fedora Release Engineering - 0.13.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Thu Jun 21 2018 Mat Booth - 0.13.0-8 - Fix failure to build from source * Fri Feb 09 2018 Fedora Release Engineering - 0.13.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 0.13.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 0.13.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Jul 21 2016 gil cattaneo 0.13.0-4 - add missing BR * Fri Apr 08 2016 gil cattaneo 0.13.0-3 - rebuilt * Fri Feb 05 2016 Fedora Release Engineering - 0.13.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Dec 10 2015 gil cattaneo 0.13.0-1 - update to 0.13.0 * Fri Jun 19 2015 Fedora Release Engineering - 0.8.1-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Thu Feb 12 2015 gil cattaneo 0.8.1-9 - introduce license macro * Sun Jun 08 2014 Fedora Release Engineering - 0.8.1-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Fri Mar 28 2014 Michael Simacek - 0.8.1-7 - Use Requires: java-headless rebuild (#1067528) * Sun Aug 04 2013 Fedora Release Engineering - 0.8.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Tue Jul 02 2013 gil cattaneo 0.8.1-5 - build with XMvn - minor changes to adapt to current guideline * Mon Apr 22 2013 Tomas Radej - 0.8.1-4 - Fixed tests for new JUnit and hamcrest * Fri Feb 15 2013 Fedora Release Engineering - 0.8.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Wed Feb 06 2013 Java SIG - 0.8.1-2 - Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild - Replace maven BuildRequires with maven-local * Wed Jul 25 2012 gil cattaneo 0.8.1-1 - Update to 0.8.1 * Mon Jul 02 2012 gil cattaneo 0.8.0-1 - initial rpm