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