[Jpackage-commits] rpms/free/trilead-ssh2 build.xml, NONE, 1.1 trilead-ssh2-build213.pom, NONE, 1.1 trilead-ssh2.spec, NONE, 1.1

jpackage jpackage at ryu.zarb.org
Tue Jul 14 21:07:16 CEST 2009


Update of /home/projects/jpackage/cvs/rpms/free/trilead-ssh2
In directory ryu.zarb.org:/tmp/5erfXARNLR/rpms/free/trilead-ssh2

Added Files:
	build.xml trilead-ssh2-build213.pom trilead-ssh2.spec 
Log Message:
213-4.jpp6

--- NEW FILE: trilead-ssh2.spec ---
Name:           trilead-ssh2
Version:        213
Release:        4%{?dist}
Epoch:          0
Summary:        SSH-2 protocol implementation in pure Java
Group:          Development/Java
License:        BSD
URL:            http://www.trilead.com/Products/Trilead-SSH-2-Java/
Source0:        %{name}-build%{version}.zip
Source1:        build.xml
Source2:        trilead-ssh2-build213.pom
Requires(post): jpackage-utils
Requires(postun): jpackage-utils
BuildRequires:  ant
BuildRequires:  java-devel
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root

%description
Ganymed SSH-2 for Java is a library which implements the SSH-2 protocol in pure
Java (tested on J2SE 1.4.2 and 5.0). It allows one to connect to SSH servers
from within Java programs. It supports SSH sessions (remote command execution
and shell access), local and remote port forwarding, local stream forwarding,
X11 forwarding and SCP. There are no dependencies on any JCE provider, as all
crypto functionality is included.

%package javadoc
Summary:        Javadoc for %{name}
Group:          Development/Java

%description javadoc
Javadoc for %{name}.

%prep
%setup -q -n %{name}-build%{version}
%{_bindir}/find -name "*.jar" | %{_bindir}/xargs -t %{__rm}
%{__cp} -p %{SOURCE1} build.xml

# fix file-not-utf8 warnings
%{_bindir}/iconv -f iso88591 -t utf8 HISTORY.txt > HISTORY.txt.new
%{__mv} HISTORY.txt.new HISTORY.txt

# fix wrong-file-end-of-line-encoding warnings
%{__sed} -i 's/\r$//g' LICENSE.txt README.txt HISTORY.txt faq/FAQ.html
%{_bindir}/find examples -name \*.java | %{_bindir}/xargs -t %{__sed} -i 's/\r$//g'

%build
export CLASSPATH=
export OPT_JAR_LIST=:
%{ant}

%install
%{__rm} -rf %{buildroot}

# jar
%{__mkdir_p} %{buildroot}%{_javadir}
%{__cp} -p dist/lib/%{name}.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar
%{__ln_s} %{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar

# pom
%{__mkdir_p} %{buildroot}%{_datadir}/maven2/poms
%{__cp} -p %{SOURCE2} %{buildroot}%{_datadir}/maven2/poms/JPP-%{name}.pom
%add_to_maven_depmap com.trilead trilead-ssh2 build%{version} JPP %{name}

# javadoc
%{__mkdir_p} %{buildroot}%{_javadocdir}/%{name}-%{version}
%{__cp} -pr javadoc/* %{buildroot}%{_javadocdir}/%{name}-%{version}
%{__ln_s} %{name}-%{version} %{buildroot}%{_javadocdir}/%{name}

%clean
%{__rm} -rf %{buildroot}

%post
%update_maven_depmap

%postun
%update_maven_depmap

%files
%defattr(0644,root,root,0755)
%doc LICENSE.txt HISTORY.txt README.txt faq examples
%{_javadir}/%{name}-%{version}.jar
%{_javadir}/%{name}.jar
%{_datadir}/maven2/poms/JPP-%{name}.pom
%{_mavendepmapfragdir}/%{name}

%files javadoc
%defattr(0644,root,root,0755)
%{_javadocdir}/%{name}-%{version}
%{_javadocdir}/%{name}

%changelog
* Tue Jul 14 2009 David Walluck <dwalluck at redhat.com> 0:213-4
- add pom

* Mon Jul 13 2009 David Walluck <dwalluck at redhat.com> 0:213-3
- release

--- NEW FILE: trilead-ssh2-build213.pom ---
<?xml version="1.0" encoding="UTF-8"?><project>
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.trilead</groupId>
  <artifactId>trilead-ssh2</artifactId>
  <packaging>jar</packaging>
  <version>build213</version>
  <name>Trilead SSH2</name>
  <description>A pure Java implementation of the SSH-2 protocol, a successor to Ganymed</description>
  <url>http://www.trilead.com/Products/Trilead_SSH_for_Java/</url>
  <licenses>
    <license>
      <url>http://www.trilead.com/Products/Trilead_SSH_for_Java/License/</url>
    </license>
  </licenses>
  <distributionManagement>
    <downloadUrl>http://www.trilead.com/Download/Trilead_SSH_for_Java/</downloadUrl>
  </distributionManagement>
</project>

--- NEW FILE: build.xml ---
<project name="trilead" default="dist" basedir=".">
  <!-- set global properties for this build -->
  <property name="src" location="src"/>
  <property name="build" location="build"/>
  <property name="dist"  location="dist"/>

  <target name="init">
    <tstamp/>
    <mkdir dir="${build}"/>
  </target>

  <target name="compile" depends="init"
        description="compile the source " >
    <javac srcdir="${src}" destdir="${build}"/>
  </target>

  <target name="dist" depends="compile"
        description="generate the distribution" >
    <mkdir dir="${dist}/lib"/>
  <jar jarfile="${dist}/lib/trilead-ssh2.jar" basedir="${build}"/>
  </target>
</project> 




More information about the JPackage-commits mailing list