rpms/trilead-ssh2/devel build.xml, NONE, 1.1 import.log, NONE, 1.1 trilead-ssh2.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Robert Marcano robmv at fedoraproject.org
Tue Feb 17 02:40:18 UTC 2009


Author: robmv

Update of /cvs/extras/rpms/trilead-ssh2/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv28939/devel

Modified Files:
	.cvsignore sources 
Added Files:
	build.xml import.log trilead-ssh2.spec 
Log Message:
Initial import



--- NEW FILE build.xml ---
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." default="dist" name="trilead-ssh2">
	<target name="init">
		<property name="build.dir" value="build"/>
		<property name="src.dir" value="src"/>
	</target>
	<target name="compile" depends="init">
		<mkdir dir="${build.dir}"/>
		<javac
			debug="false"
			deprecation="true"
			destdir="${build.dir}"
			srcdir="${src.dir}"
			target="1.4"
			source="1.4">
		</javac>
	</target>
	<target name="clean" depends="init">
		<delete includeEmptyDirs="true" dir="${build.dir}"/>
	</target>
	<target name="dist" depends="compile">
		<jar jarFile="trilead-ssh2.jar" baseDir="${build.dir}" index="true"/>
	</target>
</project>


--- NEW FILE import.log ---
trilead-ssh2-213-3_fc10:HEAD:trilead-ssh2-213-3.fc10.src.rpm:1234838271


--- NEW FILE trilead-ssh2.spec ---
%define with_gcj %{!?_without_gcj:1}%{?_without_gcj:0}


Name:           trilead-ssh2
Version:        213
Release:        3%{?dist}
Summary:        SSH-2 protocol implementation in pure Java

Group:          Development/Tools
License:        BSD
URL:            http://www.trilead.com/Products/Trilead_SSH_for_Java/
#http://www.trilead.com/DesktopModules/Releases/download_file.aspx?ReleaseId=4102
Source0:        trilead-ssh2-build%{version}.zip
Source1:        build.xml
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires:  jpackage-utils
BuildRequires:  java-devel
BuildRequires:  ant
Requires:       jpackage-utils
Requires:       java

%if %{with_gcj}
BuildRequires:    java-gcj-compat-devel >= 1.0.31
Requires(post):   java-gcj-compat >= 1.0.31
Requires(postun): java-gcj-compat >= 1.0.31
%else
BuildArch:      noarch
%endif

#Obsoletes:              ganymed-ssh2 <= 210


%description
Trilead 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 Documentation
Requires:       %{name} = %{version}-%{release}
Requires:       jpackage-utils

%description javadoc
Javadoc for trilead-ssh2.

%prep
%setup -q -n %{name}-build%{version}
cp %{SOURCE1} .

# change file encoding
iconv -f ISO-8859-1 -t UTF-8 -o HISTORY.txt HISTORY.txt

# delete the jars that are in the archive
rm %{name}-build%{version}.jar

# fixing wrong-file-end-of-line-encoding warnings
sed -i 's/\r//' LICENSE.txt README.txt HISTORY.txt faq/FAQ.html
find examples -name \*.java -exec sed -i 's/\r//' {} \;

%build
ant


%install
rm -rf $RPM_BUILD_ROOT

# jar
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
install -m 644 %{name}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar

# javadoc
mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
cp -pr javadoc/* \
  $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}

# gcj support
%if %{with_gcj}
%{_bindir}/aot-compile-rpm
%endif

pushd $RPM_BUILD_ROOT%{_javadir}/
ln -s %{name}-%{version}.jar %{name}.jar
popd

%clean
rm -rf $RPM_BUILD_ROOT

%post
# gcj support
%if %{with_gcj}
if [ -x %{_bindir}/rebuild-gcj-db ] 
then
%{_bindir}/rebuild-gcj-db
fi
%endif

%postun
# gcj support
%if %{with_gcj}
if [ -x %{_bindir}/rebuild-gcj-db ] 
then
%{_bindir}/rebuild-gcj-db
fi
%endif


%files
%defattr(-,root,root)
%{_javadir}/*
%doc LICENSE.txt HISTORY.txt README.txt faq examples

# gcj support
%if %{with_gcj}
%attr(-,root,root) %{_libdir}/gcj/%{name}
%endif

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


%changelog
* Tue Feb 16 2009 Robert Marcano <robert at marcanoonline.com> - 213-3
- Renaming package because main project moved, based on ganymed-ssh2


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/trilead-ssh2/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	16 Feb 2009 21:07:46 -0000	1.1
+++ .cvsignore	17 Feb 2009 02:39:48 -0000	1.2
@@ -0,0 +1 @@
+trilead-ssh2-build213.zip


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/trilead-ssh2/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	16 Feb 2009 21:07:46 -0000	1.1
+++ sources	17 Feb 2009 02:39:48 -0000	1.2
@@ -0,0 +1 @@
+f6ccb92074b60c1635c08796ad46a1fd  trilead-ssh2-build213.zip




More information about the scm-commits mailing list