1fda9e
# Copyright (c) 2000-2005, JPackage Project
1fda9e
# All rights reserved.
1fda9e
#
1fda9e
# Redistribution and use in source and binary forms, with or without
1fda9e
# modification, are permitted provided that the following conditions
1fda9e
# are met:
1fda9e
#
1fda9e
# 1. Redistributions of source code must retain the above copyright
1fda9e
#    notice, this list of conditions and the following disclaimer.
1fda9e
# 2. Redistributions in binary form must reproduce the above copyright
1fda9e
#    notice, this list of conditions and the following disclaimer in the
1fda9e
#    documentation and/or other materials provided with the
1fda9e
#    distribution.
1fda9e
# 3. Neither the name of the JPackage Project nor the names of its
1fda9e
#    contributors may be used to endorse or promote products derived
1fda9e
#    from this software without specific prior written permission.
1fda9e
#
1fda9e
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
1fda9e
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
1fda9e
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
1fda9e
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
1fda9e
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
1fda9e
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
1fda9e
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
1fda9e
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
1fda9e
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
1fda9e
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
1fda9e
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1fda9e
#
1fda9e
1fda9e
Name:           jsch
1fda9e
Version:        0.1.50
1fda9e
Release:        5%{?dist}
1fda9e
Epoch:          0
1fda9e
Summary:        Pure Java implementation of SSH2
1fda9e
Group:          Development/Libraries
1fda9e
License:        BSD
1fda9e
URL:            http://www.jcraft.com/jsch/
1fda9e
Source0:        http://download.sourceforge.net/sourceforge/jsch/jsch-%{version}.zip
1fda9e
# wget \
1fda9e
# http://download.eclipse.org/tools/orbit/downloads/drops/R20090825191606/bundles/com.jcraft.jsch_0.1.41.v200903070017.jar
1fda9e
# unzip com.jcraft.jsch_*.jar META-INF/MANIFEST.MF
1fda9e
# mv META-INF/MANIFEST.MF .
1fda9e
# sed -i "/^Name/d" MANIFEST.MF
1fda9e
# sed -i "/^SHA1/d" MANIFEST.MF
1fda9e
# dos2unix MANIFEST.MF
1fda9e
# sed -i "/^$/d" MANIFEST.MF
1fda9e
# unix2dos MANIFEST.MF
1fda9e
Source1:        MANIFEST.MF
1fda9e
Source2:        plugin.properties
1fda9e
Source3:        http://repo1.maven.org/maven2/com/jcraft/%{name}/%{version}/%{name}-%{version}.pom
1fda9e
1fda9e
BuildRequires:  jpackage-utils >= 0:1.5
1fda9e
BuildRequires:  java-devel >= 1.4.2
1fda9e
BuildRequires:  jzlib >= 0:1.0.5
1fda9e
BuildRequires:  ant
1fda9e
BuildRequires:  zip
1fda9e
1fda9e
BuildArch:      noarch
1fda9e
1fda9e
Requires:       jzlib >= 0:1.0.5
1fda9e
Requires:       jpackage-utils
1fda9e
1fda9e
%description
1fda9e
JSch allows you to connect to an sshd server and use port forwarding, 
1fda9e
X11 forwarding, file transfer, etc., and you can integrate its 
1fda9e
functionality into your own Java programs.
1fda9e
1fda9e
%package        javadoc
1fda9e
Summary:        Javadoc for %{name}
1fda9e
Group:          Documentation
1fda9e
Requires:       jpackage-utils
1fda9e
1fda9e
%description    javadoc
1fda9e
%{summary}.
1fda9e
1fda9e
%package        demo
1fda9e
Summary:        Examples for %{name}
1fda9e
Group:          Documentation
1fda9e
1fda9e
%description    demo
1fda9e
%{summary}.
1fda9e
1fda9e
1fda9e
%prep
1fda9e
%setup -q
1fda9e
1fda9e
%build
1fda9e
export CLASSPATH=$(build-classpath jzlib)
1fda9e
ant dist javadoc 
1fda9e
1fda9e
# inject the OSGi Manifest
1fda9e
mkdir META-INF
1fda9e
cp %{SOURCE1} META-INF
1fda9e
cp %{SOURCE2} plugin.properties
1fda9e
zip dist/lib/%{name}-*.jar META-INF/MANIFEST.MF
1fda9e
zip dist/lib/%{name}-*.jar plugin.properties
1fda9e
1fda9e
%install
1fda9e
# jars
1fda9e
install -Dpm 644 dist/lib/%{name}-*.jar \
1fda9e
  $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
1fda9e
1fda9e
# javadoc
1fda9e
install -dm 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}
1fda9e
cp -pr javadoc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
1fda9e
1fda9e
# examples
1fda9e
install -dm 755 $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}
1fda9e
cp -pr examples/* $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}
1fda9e
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_datadir}/%{name}
1fda9e
1fda9e
# POM and depmap
1fda9e
install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}
1fda9e
install -p -m 644 %{SOURCE3} $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom
1fda9e
%add_maven_depmap
1fda9e
1fda9e
%files
1fda9e
%{_javadir}/*.jar
1fda9e
%doc LICENSE.txt
1fda9e
%{_mavenpomdir}/JPP-%{name}.pom
1fda9e
%{_mavendepmapfragdir}/%{name}
1fda9e
1fda9e
%files javadoc
1fda9e
%doc %{_javadocdir}/%{name}*
1fda9e
%doc LICENSE.txt
1fda9e
1fda9e
%files demo
1fda9e
%doc %{_datadir}/%{name}*
1fda9e
%doc LICENSE.txt
1fda9e
1fda9e
1fda9e
%changelog
1fda9e
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 00.1.50-5
1fda9e
- Mass rebuild 2013-12-27
1fda9e
1fda9e
* Fri Jul 19 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:0.1.50-4
1fda9e
- Remove unneeded copyright header
1fda9e
1fda9e
* Fri Jul 19 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:0.1.50-3
1fda9e
- Update jsch-0.1.50.pom to new upstream version
1fda9e
1fda9e
* Fri Jun 28 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:0.1.50-2
1fda9e
- Rebuild to regenerate API documentation
1fda9e
- Resolves: CVE-2013-1571
1fda9e
1fda9e
* Fri May 10 2013 Krzysztof Daniel <kdaniel@redhat.com> 0:0.1.50-1
1fda9e
- Update to latest upstream.
1fda9e
1fda9e
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:0.1.49-2
1fda9e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
1fda9e
1fda9e
* Tue Jan 15 2013 Alexander Kurtakov <akurtako@redhat.com> 0:0.1.49-1
1fda9e
- Update to latest upstream.
1fda9e
1fda9e
* Thu Nov  1 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:0.1.48-3
1fda9e
- Add maven POM
1fda9e
1fda9e
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:0.1.48-2
1fda9e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
1fda9e
1fda9e
* Wed May 2 2012 Alexander Kurtakov <akurtako@redhat.com> 0:0.1.48-1
1fda9e
- Update to latest upstream 0.1.48.
1fda9e
1fda9e
* Thu Mar 15 2012 Krzysztof Daniel <kdaniel@redhat.com> 0:0.1.46-2
1fda9e
- Updated MANIFEST.MF to match the actual upstream version.
1fda9e
- Added plugin.properties to get proper vendor name in Eclipse.
1fda9e
1fda9e
* Wed Feb 15 2012 Alexander Kurtakov <akurtako@redhat.com> 0:0.1.46-1
1fda9e
- Update to latest upstream version 0.1.46.
1fda9e
1fda9e
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:0.1.45-2
1fda9e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
1fda9e
1fda9e
* Wed Nov 2 2011 Alexander Kurtakov <akurtako@redhat.com> 0:0.1.45-1
1fda9e
- Update to new upstream version.
1fda9e
1fda9e
* Thu Sep 15 2011 Alexander Kurtakov <akurtako@redhat.com> 0:0.1.44-4
1fda9e
- Guidelines fixes.
1fda9e
1fda9e
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:0.1.44-3
1fda9e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
1fda9e
1fda9e
* Wed Dec 8 2010 Alexander Kurtakov <akurtako@redhat.com> 0:0.1.44-2
1fda9e
- BR zip.
1fda9e
- Don't install versioned jar.
1fda9e
1fda9e
* Tue Nov 2 2010 Alexander Kurtakov <akurtako@redhat.com> 0:0.1.44-1
1fda9e
- New upstream version.
1fda9e
1fda9e
* Fri Sep 24 2010 Alexander Kurtakov <akurtako@redhat.com> 0:0.1.43-2
1fda9e
- Fix merge review comments (#225953).
1fda9e
1fda9e
* Mon Aug 16 2010 Alexander Kurtakov <akurtako@redhat.com> 0:0.1.43-1
1fda9e
- Update to new upstream version.
1fda9e
1fda9e
* Mon Jan 11 2010 Andrew Overholt <overholt@redhat.com> 0:0.1.41-4
1fda9e
- Fix changelog formatting error
1fda9e
1fda9e
* Mon Jan 11 2010 Andrew Overholt <overholt@redhat.com> 0:0.1.41-3
1fda9e
- Update URL in comment for MANIFEST.MF
1fda9e
- Fix Groups
1fda9e
- Remove ghost symlinking
1fda9e
1fda9e
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:0.1.41-2
1fda9e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
1fda9e
1fda9e
* Wed Apr 8 2009 Alexander Kurtakov <akurtako@redhat.com> 0:0.1.41-1
1fda9e
- Update to new version 0.1.41.
1fda9e
1fda9e
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:0.1.39-2.1
1fda9e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
1fda9e
1fda9e
* Fri Jul 11 2008 Andrew Overholt <overholt@redhat.com> 0:0.1.39-1.1
1fda9e
- 0.1.39
1fda9e
1fda9e
* Wed Jul  9 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0:0.1.31-2.5
1fda9e
- drop repotag
1fda9e
1fda9e
* Thu May 29 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0:0.1.31-2jpp.4
1fda9e
- fix license tag
1fda9e
1fda9e
* Mon Apr 07 2008 Deepak Bhole <dbhole@redhat.com> - 0:0.1.31-2jpp.3
1fda9e
- Fix bz# 441071: Add backward compatibility patch from mwringe at redhat
1fda9e
1fda9e
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0:0.1.31-2jpp.2
1fda9e
- Autorebuild for GCC 4.3
1fda9e
1fda9e
* Thu Sep 20 2007 Deepak Bhole <dbhole@redhat.com> - 0:0.1.31-1jpp.2
1fda9e
- Added %%{?dist} as per new policy
1fda9e
1fda9e
* Tue Jun 5 2007 Ben Konrath <bkonrath@redhat.com> - 0:0.1.31-1jpp.1
1fda9e
- 0.1.31.
1fda9e
1fda9e
* Tue Apr 3 2007 Ben Konrath <bkonrath@redhat.com> - 0:0.1.28-1jpp.6
1fda9e
- Add OSGi Manifest to jar.
1fda9e
- Disable aot-compile-rpm on ia64. 
1fda9e
1fda9e
* Thu Aug 10 2006 Deepak Bhole <dbhole@redhat.com> - 0:0.1.28-1jpp.5
1fda9e
- Updated changelog entries in spec.
1fda9e
1fda9e
* Fri Aug 04 2006 Deepak Bhole <dbhole@redhat.com> - 0:0.1.28-1jpp.4
1fda9e
- Added conditional compiling support.
1fda9e
- Added missing requirements.
1fda9e
- Additionally, for synchronizaion between logs:
1fda9e
- From r.apel@r-apel.de:
1fda9e
  - 0.1.26
1fda9e
- From fnasser@redhat.com:
1fda9e
  - 0.1.20
1fda9e
1fda9e
* Sat Jul 22 2006 Jakub Jelinek <jakub@redhat.com> - 0:0.1.28-1jpp_3fc
1fda9e
- Rebuilt
1fda9e
1fda9e
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0:0.1.28-1jpp_2fc
1fda9e
- rebuild
1fda9e
1fda9e
* Thu Jun  1 2006 Ben Konrath <bkonrath@redhat.com> - 0:0.1.28-1jpp_1fc
1fda9e
- 0.1.28
1fda9e
- Add BuildRequires ant.
1fda9e
1fda9e
* Mon Mar  6 2006 Jeremy Katz <katzj@redhat.com> - 0:0.1.18-1jpp_7fc
1fda9e
- stop scriptlet spew
1fda9e
1fda9e
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 0:0.1.18-1jpp_6fc
1fda9e
- bump again for double-long bug on ppc(64)
1fda9e
1fda9e
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 0:0.1.18-1jpp_5fc
1fda9e
- rebuilt for new gcc4.1 snapshot and glibc changes
1fda9e
1fda9e
* Wed Dec 21 2005 Andrew Overholt <overholt@redhat.com> 0.1.18-1jpp_4fc
1fda9e
- Rebuild again
1fda9e
1fda9e
* Tue Dec 13 2005 Andrew Overholt <overholt@redhat.com> 0.1.18-1jpp_3fc
1fda9e
- Rebuild with gcc 4.1.
1fda9e
1fda9e
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
1fda9e
- rebuilt
1fda9e
1fda9e
* Fri Jul 15 2005 Gary Benson <gbenson@redhat.com> 0.1.18-1jpp_2fc
1fda9e
- Build on ia64, ppc64, s390 and s390x.
1fda9e
- Switch to aot-compile-rpm.
1fda9e
1fda9e
* Fri Apr 22 2005 Andrew Overholt <overholt@redhat.com> 0.1.18-1jpp_1fc
1fda9e
- Build into Fedora.
1fda9e
- Natively-compile.
1fda9e
1fda9e
* Fri Apr 22 2005 Fernando Nasser <fnasser@redhat.com> 0:0.1.18-1jpp_1rh
1fda9e
- Merge with upstream for 0.1.18 upgrade
1fda9e
1fda9e
* Fri Apr 22 2005 Fernando Nasser <fnasser@redhat.com> 0:0.1.18-1jpp
1fda9e
- 0.1.18
1fda9e
1fda9e
* Fri Mar 18 2005 Andrew Overholt <overholt@redhat.com> 0.1.17-2jpp_1fc
1fda9e
- Build into Fedora.
1fda9e
- Remove Distribution and Vendor tags.
1fda9e
- Add BuildRequires:  java-devel for javadoc requirement.
1fda9e
1fda9e
* Tue Nov 02 2004 David Walluck <david@jpackage.org> 0:0.1.17-2jpp
1fda9e
- rebuild with jdk 1.4.2
1fda9e
1fda9e
* Tue Oct 19 2004 David Walluck <david@jpackage.org> 0:0.1.17-1jpp
1fda9e
- 0.1.17
1fda9e
1fda9e
* Sun Aug 23 2004 Randy Watler <rwatler at finali.com> - 0:0.1.13-2jpp
1fda9e
- Rebuild with ant-1.6.2
1fda9e
1fda9e
* Sat Feb 14 2004 David Walluck <david@anti-microsoft.org> 0:0.1.13-1jpp
1fda9e
- 0.1.13
1fda9e
1fda9e
* Wed Jan 14 2004 Ralph Apel <r.apel@r-apel.de> - 0:0.1.12-1jpp
1fda9e
- First JPackage build.