[Jpackage-commits] dist/opensaml/devel .cvsignore, 1.1, 1.2 opensaml.spec, NONE, 1.1 sources, 1.1, 1.2

David Walluck david at ryu.zarb.org
Mon Feb 16 23:00:49 CET 2009


Update of /home/projects/jpackage/cvs/dist/opensaml/devel
In directory ryu.zarb.org:/tmp/cvs-serv11507/devel

Modified Files:
	.cvsignore sources 
Added Files:
	opensaml.spec 
Log Message:
- initial import

Index: .cvsignore
===================================================================
RCS file: /home/projects/jpackage/cvs/dist/opensaml/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** .cvsignore	16 Feb 2009 21:58:56 -0000	1.1
--- .cvsignore	16 Feb 2009 22:00:47 -0000	1.2
***************
*** 0 ****
--- 1 ----
+ opensaml-1.1b.tgz

Index: sources
===================================================================
RCS file: /home/projects/jpackage/cvs/dist/opensaml/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** sources	16 Feb 2009 21:58:56 -0000	1.1
--- sources	16 Feb 2009 22:00:47 -0000	1.2
***************
*** 0 ****
--- 1 ----
+ ec06c1e3954a27ab373a40bf9dcb0ca2  opensaml-1.1b.tgz

--- NEW FILE: opensaml.spec ---
# Copyright (c) 2000-2005, JPackage Project
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the
#    distribution.
# 3. Neither the name of the JPackage Project nor the names of its
#    contributors may be used to endorse or promote products derived
#    from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#

%define section         free

# To make the tarball:
#  export CVSROOT=:pserver:anoncvs at anoncvs.internet2.edu:/home/cvs/shibboleth
#  cvs login
#  cvs export -r Rel_1_1_FINAL_B opensaml

Name:		opensaml
Summary:	Open source implementation of the SAML 1.0 and 1.1 specifications
Version: 	1.1b
Release:	1jpp
Epoch:		0

URL: 		http://www.opensaml.org/
License: 	Apache Public License v2.0
Group: 		Development/Libraries/Java
Vendor:         JPackage Project
Distribution:   JPackage
Source0: 	%{name}-%{version}.tgz

BuildRequires:	ant >= 1.6.2
BuildRequires:	ant-junit >= 1.6.2
BuildRequires:	ant-nodeps >= 1.6.2
BuildRequires:	junit >= 3.8
BuildRequires:	jakarta-commons-codec >= 1.3
BuildRequires:	jakarta-commons-logging >= 1.0.4
BuildRequires:	log4j >= 1.2.8
BuildRequires:	tomcat5-servlet-2.4-api >= 5.5.9
BuildRequires:	xalan-j2 >= 2.6.0
BuildRequires:	xerces-j2 >= 2.6.2
BuildRequires:	xml-commons-apis >= 0:1.3.02
BuildRequires:	xml-commons-resolver >= 1.1
BuildRequires:	xml-security >= 1.2.1
Requires:  jakarta-commons-codec >= 1.3
Requires:  jakarta-commons-logging >= 1.0.4
Requires:  log4j >= 1.2.8
Requires:  tomcat5-servlet-2.4-api >= 5.5.9
Requires:  xalan-j2 >= 2.6.0
Requires:  xerces-j2 >= 2.6.2
Requires:  xml-commons-apis >= 0:1.3.02
Requires:  xml-commons-resolver >= 1.1
Requires:  xml-security >= 1.2.1

BuildRoot:		%{_tmppath}/%{name}-%{version}-%{release}-root
BuildArch:		noarch

%description
OpenSAML is a set of open source Java and C++ libraries that implement the
SAML 1.0 and 1.1 specifications.

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

%description javadoc
Javadoc for %{name}.

%prep
%setup -q -n %{name}

mv java/* .
rm -rf java

find . -name "*.jar" | xargs rm -f

build-jar-repository endorsed \
					xalan-j2 \
					xerces-j2 \
					xml-commons-apis \
					xml-commons-resolver

build-jar-repository lib \
					jakarta-commons-codec \
					jakarta-commons-logging \
					junit \
					log4j \
					tomcat5-servlet-2.4-api \
					wsdl4j \
					xalan-j2 \
					xml-security

# Uncomment the line below to show output... do we really want to see test 
# output though? since haltonerror is true, any failed test will abort build 
# anyways, so it won't be missed.

#sed -i -e s:'<junit printsummary="no" fork="yes" haltonfailure="yes" haltonerror="yes" dir="${root}">':'<junit printsummary="yes" fork="yes" haltonfailure="yes" haltonerror="yes" dir="${root}">':g build.xml

%build
ant dist javadocs

%install
rm -rf $RPM_BUILD_ROOT

# main package
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
install -m 644 dist/opensaml-1.1.jar \
    $RPM_BUILD_ROOT%{_javadir}/opensaml-%{version}.jar
ln -s opensaml-%{version}.jar \
    $RPM_BUILD_ROOT%{_javadir}/opensaml.jar

# javadoc
install -d -m 755 $RPM_BUILD_ROOT/%{_javadocdir}/%{name}-%{version}
cp -pr doc/api/* \
    $RPM_BUILD_ROOT/%{_javadocdir}/%{name}-%{version}
ln -s %{name}-%{version} $RPM_BUILD_ROOT/%{_javadocdir}/%{name}

%clean
rm -rf $RPM_BUILD_ROOT

%post javadoc
rm -f %{_javadocdir}/%{name}
ln -s %{name}-%{version} %{_javadocdir}/%{name}

%postun javadoc
if [ "$1" = "0" ]; then
    rm -f %{_javadocdir}/%{name}
fi

%files
%defattr(0644,root,root,0755)
%dir %{_javadir}
%{_javadir}/opensaml-%{version}.jar
%{_javadir}/opensaml.jar

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

%changelog
* Mon Jan 16 2006 Deepak Bhole <dbhole at redhat.com> 0:1.1b-1jpp
- First jpp build.




More information about the JPackage-commits mailing list