eadfe8
Name:           jsch
eadfe8
Version:        0.1.54
eadfe8
Release:        6%{?dist}
eadfe8
Summary:        Pure Java implementation of SSH2
eadfe8
Group:          Development/Libraries
eadfe8
License:        BSD
eadfe8
URL:            http://www.jcraft.com/jsch/
eadfe8
BuildArch:      noarch
eadfe8
eadfe8
Source0:        http://download.sourceforge.net/sourceforge/jsch/jsch-%{version}.zip
eadfe8
# wget \
eadfe8
# http://download.eclipse.org/tools/orbit/downloads/drops/R20090825191606/bundles/com.jcraft.jsch_0.1.41.v200903070017.jar
eadfe8
# unzip com.jcraft.jsch_*.jar META-INF/MANIFEST.MF
eadfe8
# mv META-INF/MANIFEST.MF .
eadfe8
# sed -i "/^Name/d" MANIFEST.MF
eadfe8
# sed -i "/^SHA1/d" MANIFEST.MF
eadfe8
# dos2unix MANIFEST.MF
eadfe8
# sed -i "/^$/d" MANIFEST.MF
eadfe8
# unix2dos MANIFEST.MF
eadfe8
Source1:        MANIFEST.MF
eadfe8
Source2:        plugin.properties
eadfe8
eadfe8
BuildRequires:  maven-local
eadfe8
BuildRequires:  mvn(com.jcraft:jzlib)
eadfe8
BuildRequires:  mvn(org.apache.maven.plugins:maven-source-plugin)
eadfe8
BuildRequires:  mvn(org.sonatype.oss:oss-parent:pom:)
eadfe8
BuildRequires:  zip
eadfe8
eadfe8
Requires:       jzlib >= 0:1.0.5
eadfe8
Obsoletes: %{name}-demo < %{version}
eadfe8
eadfe8
%description
eadfe8
JSch allows you to connect to an sshd server and use port forwarding, 
eadfe8
X11 forwarding, file transfer, etc., and you can integrate its 
eadfe8
functionality into your own Java programs.
eadfe8
eadfe8
%package        javadoc
eadfe8
Summary:        Javadoc for %{name}
eadfe8
eadfe8
%description    javadoc
eadfe8
%{summary}.
eadfe8
eadfe8
%prep
eadfe8
%setup -q
eadfe8
%mvn_file : jsch
eadfe8
eadfe8
%pom_remove_plugin :maven-javadoc-plugin
eadfe8
eadfe8
%pom_xpath_remove pom:project/pom:build/pom:extensions
eadfe8
%pom_xpath_set pom:project/pom:version %{version}
eadfe8
eadfe8
%build
eadfe8
%mvn_build
eadfe8
eadfe8
# inject the OSGi Manifest
eadfe8
mkdir META-INF
eadfe8
cp %{SOURCE1} META-INF
eadfe8
cp %{SOURCE2} plugin.properties
eadfe8
touch META-INF/MANIFEST.MF
eadfe8
touch plugin.properties
eadfe8
zip target/%{name}-%{version}.jar META-INF/MANIFEST.MF
eadfe8
zip target/%{name}-%{version}.jar plugin.properties
eadfe8
eadfe8
%install
eadfe8
%mvn_install
eadfe8
eadfe8
%files -f .mfiles
eadfe8
%license LICENSE.txt
eadfe8
eadfe8
%files javadoc -f .mfiles-javadoc
eadfe8
%license LICENSE.txt
eadfe8
eadfe8
%changelog
eadfe8
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.54-6
eadfe8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
eadfe8
eadfe8
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.54-5
eadfe8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
eadfe8
eadfe8
* Thu Feb 23 2017 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.1.54-4
eadfe8
- Remove unneeded maven-javadoc-plugin invocation
eadfe8
eadfe8
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.54-3
eadfe8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
eadfe8
eadfe8
* Wed Aug 31 2016 Alexander Kurtakov <akurtako@redhat.com> 0.1.54-2
eadfe8
- Fix version in pom.xml.
eadfe8
eadfe8
* Wed Aug 31 2016 Alexander Kurtakov <akurtako@redhat.com> - 0.1.54-1
eadfe8
- New upstream release 0.1.54
eadfe8
eadfe8
* Wed Jun 15 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.1.53-5
eadfe8
- Add missing build-requires
eadfe8
eadfe8
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.53-4
eadfe8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
eadfe8
eadfe8
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.53-3
eadfe8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
eadfe8
eadfe8
* Fri Jun 5 2015 Alexander Kurtakov <akurtako@redhat.com> 0.1.53-2
eadfe8
- Revert jsch.jar to not be in javadir subdir.
eadfe8
eadfe8
* Fri Jun 5 2015 Alexander Kurtakov <akurtako@redhat.com> 0.1.53-1
eadfe8
- Update to 0.1.53
eadfe8
- Build with xmvn.