This commit is contained in:
parent
20dbc0cf62
commit
3bfe2b3a46
15
MANIFEST.MF
15
MANIFEST.MF
@ -1,15 +0,0 @@
|
|||||||
Manifest-Version: 1.0
|
|
||||||
Bundle-ManifestVersion: 2
|
|
||||||
Bundle-Name: %bundleName
|
|
||||||
Bundle-SymbolicName: com.jcraft.jsch
|
|
||||||
Bundle-Version: 0.1.51
|
|
||||||
Bundle-Vendor: %venderName
|
|
||||||
Bundle-Localization: plugin
|
|
||||||
Export-Package: com.jcraft.jsch;version="0.1.51",
|
|
||||||
com.jcraft.jsch.jce;version="0.1.51";x-internal:=true,
|
|
||||||
com.jcraft.jsch.jcraft;version="0.1.51";x-internal:=true,
|
|
||||||
com.jcraft.jsch.jgss;version="0.1.51";x-internal:=true
|
|
||||||
Bundle-RequiredExecutionEnvironment: J2SE-1.4
|
|
||||||
Created-By: 1.4.0 (Sun Microsystems Inc.)
|
|
||||||
|
|
||||||
|
|
22
jsch-osgi-manifest.patch
Normal file
22
jsch-osgi-manifest.patch
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
--- jsch-0.1.54/build.xml 2016-08-30 09:06:39.000000000 +0200
|
||||||
|
+++ jsch-0.1.54/build.xml 2020-04-07 15:40:40.461145903 +0200
|
||||||
|
@@ -50,9 +50,7 @@
|
||||||
|
|
||||||
|
<!-- Put everything in ${build} into the MyProject-${version}.jar file -->
|
||||||
|
<jar jarfile="${dist}/lib/jsch-${version}.jar" basedir="${build}">
|
||||||
|
- <!--
|
||||||
|
<manifest>
|
||||||
|
- <attribute name="Bundle-ClassPath" value="."/>
|
||||||
|
<attribute name="Bundle-Vendor" value="JCraft, Inc."/>
|
||||||
|
<attribute name="Bundle-Name" value="com.jcraft.jsch"/>
|
||||||
|
<attribute name="Bundle-ManifestVersion" value="2"/>
|
||||||
|
@@ -60,8 +58,8 @@
|
||||||
|
<attribute name="Bundle-Version" value="${version}"/>
|
||||||
|
<attribute name="Export-Package" value='com.jcraft.jsch;version="${version}",com.jcraft.jsch.jce;version="${version}";x-internal:=true,com.jcraft.jsch.jcraft;version="${version}";x-internal:=true,com.jcraft.jsch.jgss;version="${version}";x-internal:=true'/>
|
||||||
|
<attribute name="Import-Package" value="javax.crypto,javax.crypto.spec,javax.crypto.interfaces,org.ietf.jgss,com.jcraft.jzlib"/>
|
||||||
|
+ <attribute name="Require-Capability" value="osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=1.6))""/>
|
||||||
|
</manifest>
|
||||||
|
- -->
|
||||||
|
</jar>
|
||||||
|
</target>
|
||||||
|
|
@ -1,3 +1,12 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Apr 7 13:52:31 UTC 2020 - Fridrich Strba <fstrba@suse.com>
|
||||||
|
|
||||||
|
- Added patch:
|
||||||
|
* jsch-osgi-manifest.patch
|
||||||
|
+ create the osgi manifest during the ant build
|
||||||
|
+ replaces the MANIFEST.MF file
|
||||||
|
- Miscellaneous clean-up
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Sep 20 13:37:00 UTC 2019 - Fridrich Strba <fstrba@suse.com>
|
Fri Sep 20 13:37:00 UTC 2019 - Fridrich Strba <fstrba@suse.com>
|
||||||
|
|
||||||
|
52
jsch.spec
52
jsch.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package jsch
|
# spec file for package jsch
|
||||||
#
|
#
|
||||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2020 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -22,20 +22,20 @@ Release: 0
|
|||||||
Summary: Pure Java implementation of SSH2
|
Summary: Pure Java implementation of SSH2
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
Group: Development/Libraries/Java
|
Group: Development/Libraries/Java
|
||||||
Url: http://www.jcraft.com/jsch/
|
URL: https://www.jcraft.com/jsch/
|
||||||
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.zip
|
Source0: https://downloads.sourceforge.net/%{name}/%{name}-%{version}.zip
|
||||||
Source1: MANIFEST.MF
|
Source1: https://repo1.maven.org/maven2/com/jcraft/%{name}/%{version}/%{name}-%{version}.pom
|
||||||
Source2: plugin.properties
|
Source2: plugin.properties
|
||||||
Source3: http://repo1.maven.org/maven2/com/jcraft/%{name}/%{version}/%{name}-%{version}.pom
|
|
||||||
Patch0: jsch-0.1.54-sourcetarget.patch
|
Patch0: jsch-0.1.54-sourcetarget.patch
|
||||||
|
Patch1: jsch-osgi-manifest.patch
|
||||||
BuildRequires: ant
|
BuildRequires: ant
|
||||||
|
BuildRequires: fdupes
|
||||||
BuildRequires: java-devel >= 1.6.0
|
BuildRequires: java-devel >= 1.6.0
|
||||||
BuildRequires: javapackages-local
|
BuildRequires: javapackages-local
|
||||||
BuildRequires: jzlib
|
BuildRequires: jzlib
|
||||||
BuildRequires: unzip
|
BuildRequires: unzip
|
||||||
BuildRequires: zip
|
BuildRequires: zip
|
||||||
Requires: jzlib
|
Requires: jzlib
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -64,7 +64,8 @@ functionality into your own Java programs.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
cp %{SOURCE3} pom.xml
|
%patch1 -p1
|
||||||
|
cp %{SOURCE1} pom.xml
|
||||||
%pom_remove_parent
|
%pom_remove_parent
|
||||||
|
|
||||||
%build
|
%build
|
||||||
@ -73,45 +74,34 @@ ant dist javadoc
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
# inject the OSGi Manifest
|
# inject the OSGi Manifest
|
||||||
mkdir META-INF
|
|
||||||
cp %{SOURCE1} META-INF
|
|
||||||
cp %{SOURCE2} plugin.properties
|
cp %{SOURCE2} plugin.properties
|
||||||
zip dist/lib/%{name}-*.jar META-INF/MANIFEST.MF
|
jar uf dist/lib/%{name}-*.jar plugin.properties
|
||||||
zip dist/lib/%{name}-*.jar plugin.properties
|
|
||||||
|
|
||||||
# jars
|
# jars
|
||||||
install -Dpm 644 dist/lib/%{name}-*.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar
|
install -Dpm 644 dist/lib/%{name}-*.jar %{buildroot}%{_javadir}/%{name}.jar
|
||||||
ln -s %{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
|
|
||||||
|
# pom
|
||||||
|
install -d -m 755 %{buildroot}%{_mavenpomdir}
|
||||||
|
install -p -m 644 pom.xml %{buildroot}%{_mavenpomdir}/%{name}.pom
|
||||||
|
%add_maven_depmap %{name}.pom %{name}.jar
|
||||||
|
|
||||||
# javadoc
|
# javadoc
|
||||||
install -dm 755 %{buildroot}%{_javadocdir}/%{name}-%{version}
|
install -dm 755 %{buildroot}%{_javadocdir}/%{name}
|
||||||
cp -pr javadoc/* %{buildroot}%{_javadocdir}/%{name}-%{version}
|
cp -pr javadoc/* %{buildroot}%{_javadocdir}/%{name}
|
||||||
ln -s %{name}-%{version} %{buildroot}%{_javadocdir}/%{name}
|
%fdupes -s %{buildroot}%{_javadocdir}/%{name}
|
||||||
|
|
||||||
# examples
|
# examples
|
||||||
install -dm 755 %{buildroot}%{_datadir}/%{name}
|
install -dm 755 %{buildroot}%{_datadir}/%{name}
|
||||||
cp -pr examples/* %{buildroot}%{_datadir}/%{name}
|
cp -pr examples/* %{buildroot}%{_datadir}/%{name}
|
||||||
|
%fdupes -s %{buildroot}%{_datadir}/%{name}
|
||||||
|
|
||||||
# POM and depmap
|
%files -f .mfiles
|
||||||
install -d -m 755 %{buildroot}%{_mavenpomdir}
|
%license LICENSE.txt
|
||||||
install -p -m 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
|
|
||||||
%add_maven_depmap
|
|
||||||
|
|
||||||
%files
|
|
||||||
%defattr(0644,root,root,0755)
|
|
||||||
%doc LICENSE.txt
|
|
||||||
%{_javadir}/%{name}.jar
|
|
||||||
%{_javadir}/%{name}-%{version}.jar
|
|
||||||
%{_mavenpomdir}/JPP-%{name}.pom
|
|
||||||
%{_datadir}/maven-metadata/%{name}.xml
|
|
||||||
|
|
||||||
%files javadoc
|
%files javadoc
|
||||||
%defattr(0644,root,root,0755)
|
|
||||||
%{_javadocdir}/%{name}-%{version}
|
|
||||||
%{_javadocdir}/%{name}
|
%{_javadocdir}/%{name}
|
||||||
|
|
||||||
%files demo
|
%files demo
|
||||||
%defattr(0644,root,root,0755)
|
|
||||||
%{_datadir}/%{name}
|
%{_datadir}/%{name}
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user