rpms/glite-security-util-java/devel glite-security-util-java-external-classpath.patch, NONE, 1.1 glite-security-util-java-generate-tarball.sh, NONE, 1.1 glite-security-util-java.spec, NONE, 1.1 import.log, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

stevetraylen stevetraylen at fedoraproject.org
Fri Nov 13 20:43:34 UTC 2009


Author: stevetraylen

Update of /cvs/pkgs/rpms/glite-security-util-java/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv8633/devel

Modified Files:
	.cvsignore sources 
Added Files:
	glite-security-util-java-external-classpath.patch 
	glite-security-util-java-generate-tarball.sh 
	glite-security-util-java.spec import.log 
Log Message:
New package #531051


glite-security-util-java-external-classpath.patch:
 build.xml |   29 ++++++++++++++++++++++++++++-
 1 file changed, 28 insertions(+), 1 deletion(-)

--- NEW FILE glite-security-util-java-external-classpath.patch ---
diff -uNr org.glite.security.util-java.ORIG/build.xml org.glite.security.util-java/build.xml
--- org.glite.security.util-java.ORIG/build.xml	2009-09-10 20:34:27.430879627 +0200
+++ org.glite.security.util-java/build.xml	2009-09-10 21:00:54.278236025 +0200
@@ -39,7 +39,6 @@
 	<property name="tomcat.location" value="${ext.path}/tomcat/${tomcat.version}" />
 	<property name="bouncycastle.location" value="${ext.path}/bouncycastle/${bouncycastle.version}" />
 	<property name="axis.location" value="${ext.path}/axis/${axis.version}" />
-
 	<property name="build-test" value="${prefix}/test" />
 	<property name="src-test" value="test/src" />
 	<property name="autogen-test" value="${build-test}/src" />
@@ -96,6 +95,25 @@
 
 	</target>
 
+	<target name="compile-extcp">
+		<mkdir dir="compile"/>
+		<javac srcdir="src" destdir="compile" deprecation="false" failonerror="true" debug="true">
+		</javac>
+		
+		<mkdir dir="lib"/>
+		<jar destfile="lib/glite-security-util-java.jar"
+		     basedir="compile"
+		     includes="**/*.class"/>
+		<mkdir dir="${prefix}/share/java"/>
+		<copy todir="${prefix}/share/java">
+			<fileset dir="lib">
+				<include name="**/*.jar" />
+			</fileset>
+		</copy>
+
+	</target>
+
+
 	<target name="clean">
 		<delete dir="${prefix}"/>
 		<delete dir="compile"/>
@@ -139,4 +157,13 @@
 	 	</copy>
 	</target>
 	
+	<target name="doc-extcp" description="Build Javadoc">
+
+		<mkdir dir="${prefix}/share/glite-security-util-java/doc/html" />
+
+		<javadoc packagenames="org.glite.security.*" sourcepath="src" destdir="${prefix}/share/glite-security-util-java/doc/html" author="true" version="true" use="true" access="public" />
+	</target>
+	
+
+
 </project>


--- NEW FILE glite-security-util-java-generate-tarball.sh ---
#!/bin/bash

VERSION=$1

UNDER=`echo $VERSION | sed 's/\./_/g'`

rm -rf org.glite.security.util-java
cvs -q -d:pserver:anonymous:@glite.cvs.cern.ch:/cvs/glite checkout \
      -r  glite-security-util-java_R_$UNDER  org.glite.security.util-java
if [ $? != "0" ]  ; then
  echo "Could not check out that version: $VERSION"
  exit 1
fi
find org.glite.security.util-java -type f -print0 | xargs -0 chmod a-x
find org.glite.security.util-java -name CVS -print0 | xargs -0  rm -rf
rm -rf org.glite.security.util-java/src/org/glite/security/voms
rm -rf org.glite.security.util-java/test
tar cvfz glite-security-util-java-$VERSION.tar.gz org.glite.security.util-java



--- NEW FILE glite-security-util-java.spec ---
%global with_gcj %{!?_without_gcj:1}%{?_without_gcj:0}

Name:           glite-security-util-java
Version:        2.0.3
Release:        7%{?dist}
Summary:        Java Utilities for GSI Credentials

Group:          System Environment/Libraries
License:        ASL 2.0
URL:            https://twiki.cern.ch/twiki/bin/view/EGEE/TrustManager
# The source for this package was pulled from upstream's cvs. Use the
# following commands to generate the tarball:
# cvs -q -d:pserver:anonymous:@glite.cvs.cern.ch:/cvs/glite checkout \
#      -r  glite-security-util-java_R_2_0_3  org.glite.security.util-java
# find org.glite.security.util-java -type f -print0 | xargs -0 chmod a-x 
# find org.glite.security.util-java -name CVS -print0 | xargs -0  rm -rf 
# rm -rf org.glite.security.util-java/src/org/glite/security/voms
# rm -rf org.glite.security.util-java/test
# tar cvfz glite-security-util-java-2.0.3.tar.gz org.glite.security.util-java
Source0:        %{name}-%{version}.tar.gz
# The following script can be use to generate the source tar ball.
# e.g  bash ./glite-security-util-java-generate-tarball.sh 2.0.3
Source1:        %{name}-generate-tarball.sh
# Allow ant build.xml file to support an exterally set CLASSPATH.
# Now fixed in CVS-HEAD as well.
# https://savannah.cern.ch/bugs/?55583
Patch0:         %{name}-external-classpath.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

%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

BuildRequires:  jpackage-utils
BuildRequires:  java-devel >= 1:1.6.0
BuildRequires:  ant
BuildRequires:  bouncycastle
BuildRequires:  log4j
BuildRequires:  servlet
BuildRequires:  axis
BuildRequires:  vomsjapi

Requires:       jpackage-utils
Requires:       java
Requires:       bouncycastle
Requires:       log4j
Requires:       vomsjapi
Requires:       servlet
Requires:       axis

%description
glite-security-util-java together with glite-security-trustmanger is 
an implementation of the java TrustManager interface with implementation 
of cert path checking, grid namespace restrictions and dynamic loading of 
CA certs, credentials, CRLs and namespace restrictions. Also provided is 
integration into tomcat, axis and axis2. There are many utility classes 
and methods for certificate and proxy handling in util-java. It can be 
used both in the server side for the server ssl handler and on the client 
side for the opneing of ssl connections. 

%package        javadoc
Summary:        Javadocs for %{name}
Group:          Documentation
%if %{?fedora}%{!?fedora:0} >= 10 || %{?rhel}%{!?rhel:0} >= 6
BuildArch:      noarch
%endif
Requires:       %{name} = %{version}-%{release}
Requires:       jpackage-utils

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

%prep
%setup -q -n org.glite.security.util-java
%patch0 -p1
# remove private copy of vomsjapi and use the provided package.
rm -rf src/org/glite/security/voms
sed s/org.glite.security.voms.VOMSValidator/org.glite.voms.VOMSValidator/ \
    -i src/org/glite/security/SecurityContext.java
find -name '*.jar' -o -name '*.class' -exec rm -f '{}' \;

%build
export CLASSPATH=$(build-classpath bcprov log4j axis servlet vomsjapi)
%ant -Dprefix=build compile-extcp
%ant -Dprefix=build doc-extcp

%install
rm -rf $RPM_BUILD_ROOT

mkdir -p $RPM_BUILD_ROOT%{_javadir}
cp -p  build/share/java/%{name}.jar  \
   $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
(cd %{buildroot}%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed  "s|-%{version}||g"`; done)

mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
cp -rp build/share/%{name}/doc/html/*  \
  $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
pushd $RPM_BUILD_ROOT%{_javadocdir}
ln -s %{name}-%{version} %{name}
popd

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

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

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

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%{_javadir}/*

%if %{with_gcj}
%{_libdir}/gcj/%{name}
%endif

%doc LICENSE

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


%changelog
* Thu Nov 12 2009 Steve Traylen <steve.traylen at cern.ch> - 2.0.3-7
- Correct typos in SPEC file.
* Sun Nov 9 2009 Steve Traylen <steve.traylen at cern.ch> - 2.0.3-6
- Don't use private vomsjapi and use vomsjapi package instead.
- Remove uneeded code and consequently "EU Datagrid license"
* Mon Oct 26 2009 Steve Traylen <steve.traylen at cern.ch> - 2.0.3-5
- Change summary field to something more sensible.
* Thu Oct 22 2009 Steve Traylen <steve.traylen at cern.ch> - 2.0.3-4
- Addition of axis and java-devel >= 1:1.6.0 as BR.
* Thu Sep 10 2009 Steve Traylen <steve.traylen at cern.ch> - 2.0.3-3
- Shorten line length of description.
* Thu Sep 10 2009 Steve Traylen <steve.traylen at cern.ch> - 2.0.3-2
- Add patch to support external CLASSPATH env variable:
  glite-security-external-classpath.patch
* Sun Sep 6 2009 Steve Traylen <steve.traylen at cern.ch> - 2.0.3-1
- Initial build.



--- NEW FILE import.log ---
glite-security-util-java-2_0_3-7_fc12:HEAD:glite-security-util-java-2.0.3-7.fc12.src.rpm:1258144977


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/glite-security-util-java/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- .cvsignore	13 Nov 2009 20:40:03 -0000	1.1
+++ .cvsignore	13 Nov 2009 20:43:34 -0000	1.2
@@ -0,0 +1 @@
+glite-security-util-java-2.0.3.tar.gz


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/glite-security-util-java/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources	13 Nov 2009 20:40:03 -0000	1.1
+++ sources	13 Nov 2009 20:43:34 -0000	1.2
@@ -0,0 +1 @@
+eb40ab7da52d9e67561206f71258ecd0  glite-security-util-java-2.0.3.tar.gz




More information about the fedora-extras-commits mailing list