rpms/nailgun/devel import.log, NONE, 1.1 nailgun.spec, NONE, 1.1 remove-tools-jar-dependencies.patch, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Mohammed Morsi mmorsi at fedoraproject.org
Mon May 10 20:41:51 UTC 2010


Author: mmorsi

Update of /cvs/pkgs/rpms/nailgun/devel
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv22875/devel

Modified Files:
	.cvsignore sources 
Added Files:
	import.log nailgun.spec remove-tools-jar-dependencies.patch 
Log Message:
Initial nailgun commit




--- NEW FILE import.log ---
nailgun-0_7_1-2_fc11:HEAD:nailgun-0.7.1-2.fc11.src.rpm:1273524244


--- NEW FILE nailgun.spec ---
%define debug_package %{nil}

Name:     nailgun
Version:  0.7.1
Release:  2%{?dist}
Summary:  Framework for running Java from the cli without the JVM startup overhead
Group:    Applications/Productivity   
License:  ASL 2.0
URL:      http://martiansoftware.com/nailgun/
Source0:  http://downloads.sourceforge.net/project/nailgun/nailgun/0.7.1/nailgun-src-0.7.1.zip
Patch0:   remove-tools-jar-dependencies.patch

BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildRequires: java-devel
BuildRequires:  jpackage-utils
BuildRequires: ant
BuildRequires: ant-trax
BuildRequires: ant-junit
Requires: java
Requires:  jpackage-utils

%description
Nailgun is a client, protocol, and server for running Java programs from the 
command line without incurring the JVM startup overhead. Programs run in the 
server (which is implemented in Java), and are triggered by the client 
(written in C), which handles all I/O.

%package javadoc
Summary:        Javadocs for %{name}
Group:          Documentation
Requires:       %{name} = %{version}-%{release}
Requires:       jpackage-utils
BuildArch:      noarch

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q
%patch0 -p1

find ./ -name '*.jar' -exec rm -f '{}' \; 
find ./ -name '*.class' -exec rm -f '{}' \; 

%build
ant

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_javadir}
mkdir -p $RPM_BUILD_ROOT%{_bindir}

cp dist/nailgun-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/nailgun-%{version}.jar
ln -s %{_javadir}/nailgun-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/nailgun.jar

cp ng $RPM_BUILD_ROOT%{_bindir}/ng

mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}
cp -rp docs/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%{_javadir}/nailgun-%{version}.jar
%{_javadir}/nailgun.jar
%{_bindir}/ng
%doc LICENSE.txt README.txt

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

%changelog
* Tue Apr  27 2010  <mmorsi at redhat.com> - 0.7.1-2
- removed deprecated gcj bits
- removed empty debuginfo package
- marked javadoc package as noarch

* Wed Jan  20 2009  <mmorsi at redhat.com> - 0.7.1-1
- Initial build.

remove-tools-jar-dependencies.patch:
 build.xml |   40 ++--------------------------------------
 1 file changed, 2 insertions(+), 38 deletions(-)

--- NEW FILE remove-tools-jar-dependencies.patch ---
--- nailgun-0.7.1/build.xml	2005-02-03 22:08:40.000000000 -0500
+++ ../nailgun-0.7.1/build.xml	2010-01-26 16:14:42.645034236 -0500
@@ -32,35 +32,22 @@
 	
 	<property name="build" value="build/ant"/>
 	<property name="build.prod" value="${build}/prod"/>
 	<property name="build.test" value="${build}/test"/>
 	<property name="build.debug" value="${build}/prod-debug"/>
-	<property name="build.instrumented" value="${build}/prod-instrumented"/>
 	
 	<property name="docs" value="docs"/>
 	<property name="docs.junit" value="${docs}/junit"/>
-	<property name="docs.jcoverage" value="${docs}/jcoverage"/>
 	<property name="docs.javadoc" value="${docs}/api"/>
 	
 	<property name="dist" value="dist"/>
 	
-	<!-- declare the jcoverage tasks -->
-	<path id="tools.classpath">
-		<fileset dir="tools/lib">
-        	<include name="**/*.jar"/>
-      	</fileset>
-	</path>
-	<taskdef resource="tasks.properties">
-		<classpath refid="tools.classpath"/>
-	</taskdef>
-
 	<target name="clean">
 		<delete dir="${build}"/>
 		<delete dir="docs"/>
 		<delete dir="dist"/>
 		<delete file="ng"/>
-		<delete file="jcoverage.ser"/>
 	</target>
 		
 	<!-- updates version numbers in client and server code
 		 based upon ${version} property.  If the version has
 		 not changed since the last build, sources remain untouched. -->
@@ -112,11 +99,10 @@
 		</copy>
 		
 		<javac destdir="${build.test}" srcdir="${src.java.test}">
         	<classpath >
         		<pathelement path="${build.prod}"/>
-        		<path refid="tools.classpath"/>
 			</classpath>
 		</javac>
 	</target>
 		
 	<target name="compile-client" depends="init">
@@ -128,39 +114,20 @@
 				 to installer script. -->
 			<arg line="ng.exe"/>
 		</exec>
 	</target>
 		
-	<target name="instrument" depends="compile-server">
-		<mkdir dir="${build.instrumented}"/>
-	    <instrument todir="${build.instrumented}">
-	      <fileset dir="${build.debug}">
-	        <include name="**/*.class"/>
-	      	<exclude name="com/martiansoftware/nailgun/examples/**"/>
-	      	<exclude name="com/martiansoftware/nailgun/builtins/**"/>
-	      </fileset>
-	    </instrument>
-		<copy todir="${build.instrumented}">
-		    <fileset dir="${src.java.prod}" excludes="**/*.class"/>
-		</copy>
-
-	</target>
-
-	
 	<target name="compile" depends="compile-server,compile-client">
 	</target>
 		
-	<target name="test" depends="compile, instrument">
+	<target name="test" depends="compile">
 		<mkdir dir="${docs.junit}"/>
-		<mkdir dir="${docs.jcoverage}"/>
 		
 		<junit printsummary="yes" fork="true">
 			<classpath>
 				<pathelement location="${build.test}"/>
-				<pathelement location="${build.instrumented}"/>
 				<pathelement location="${build.prod}"/>
-				<path refid="tools.classpath"/>
 			</classpath>
 				
 
 			<formatter type="plain"/>
 			<formatter type="xml"/>
@@ -176,12 +143,10 @@
 	      <fileset dir="${docs.junit}">
 	        <include name="TEST-*.xml"/>
 	      </fileset>
 	      <report format="frames" todir="${docs.junit}"/>
 	    </junitreport>
-
-		<report srcdir="${src.java.prod}" destdir="${docs.jcoverage}"/>
 	</target>
 	
 	<target name="jar" depends="test">
 		<mkdir dir="${dist}"/>
 		<jar basedir="${build.prod}" destfile="${dist}/${jar}" excludes="com/martiansoftware/nailgun/examples/**,**/*.java">
@@ -216,14 +181,13 @@
 	
 	<target name="dist" depends="jar, docs">
 		<delete file="${dist}/${zip.src}"/>
 		<delete file="${dist}/${zip}"/>
 		<zip destfile="${dist}/${zip.src}">
-		    <zipfileset dir="." prefix="nailgun-${version}" excludes="ng,jcoverage.ser,build/**,dist/**"/>
 			<zipfileset dir="dist" prefix="nailgun-${version}" includes="${jar},${jar.examples}"/>
 		</zip>
 		<zip destfile="${dist}/${zip}">
 			<zipfileset dir="." prefix="nailgun-${version}" includes="README.txt,Makefile,ng.exe,src/c/**"/>
 			<zipfileset dir="dist" prefix="nailgun-${version}" includes="${jar},${jar.examples}"/>
 		</zip>
 	</target>
-</project>
\ No newline at end of file
+</project>


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/nailgun/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- .cvsignore	6 May 2010 15:50:42 -0000	1.1
+++ .cvsignore	10 May 2010 20:41:51 -0000	1.2
@@ -0,0 +1 @@
+nailgun-src-0.7.1.zip


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/nailgun/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources	6 May 2010 15:50:42 -0000	1.1
+++ sources	10 May 2010 20:41:51 -0000	1.2
@@ -0,0 +1 @@
+79365e339275d774b7c5c8b17b7ece40  nailgun-src-0.7.1.zip



More information about the scm-commits mailing list