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

David Walluck david at ryu.zarb.org
Fri Feb 20 18:22:35 CET 2009


Update of /home/projects/jpackage/cvs/dist/jakarta-commons-graph/devel
In directory ryu.zarb.org:/tmp/cvs-serv27083/devel

Modified Files:
	.cvsignore sources 
Added Files:
	jakarta-commons-graph.spec 
Log Message:
- initial import

Index: .cvsignore
===================================================================
RCS file: /home/projects/jpackage/cvs/dist/jakarta-commons-graph/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** .cvsignore	20 Feb 2009 17:13:59 -0000	1.1
--- .cvsignore	20 Feb 2009 17:22:32 -0000	1.2
***************
*** 0 ****
--- 1 ----
+ graph2-0.8.1.cvs20040118.tar.gz

Index: sources
===================================================================
RCS file: /home/projects/jpackage/cvs/dist/jakarta-commons-graph/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** sources	20 Feb 2009 17:13:59 -0000	1.1
--- sources	20 Feb 2009 17:22:32 -0000	1.2
***************
*** 0 ****
--- 1 ----
+ 2f0b4b570e383321675e56d3a2bbfa08  graph2-0.8.1.cvs20040118.tar.gz

--- NEW FILE: jakarta-commons-graph.spec ---
# Copyright (c) 2000-2007, 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 gcj_support %{?_with_gcj_support:1}%{!?_with_gcj_support:%{?_without_gcj_support:0}%{!?_without_gcj_support:%{?_gcj_support:%{_gcj_support}}%{!?_gcj_support:0}}}

%define section   free
%define base_name commons-graph

Name:           jakarta-commons-graph
Version:        0.8.1
Release:        0.cvs20040118.3jpp
Epoch:          1
Summary:        Commons Graph Package

Group:          Development/Libraries/Java
License:        Apache Software License
URL:            http://cvs.apache.org/viewcvs/jakarta-commons-sandbox/graph2/
Source0:        graph2-%{version}.cvs20040118.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
Vendor: %{?_vendorinfo:%{_vendorinfo}}%{!?_vendorinfo:%{_vendor}}
Distribution: %{?_distribution:%{_distribution}}%{!?_distribution:%{_vendor}}
%if ! %{gcj_support}
BuildArch:      noarch
%endif
BuildRequires:  jpackage-utils >= 0:1.6
BuildRequires:  ant >= 0:1.6
BuildRequires:  ant-junit >= 0:1.6
BuildRequires:  junit >= 0:3.8.1
BuildRequires:  jdepend >= 0:2.6
BuildRequires:  jakarta-commons-collections >= 0:2.1
BuildRequires:  log4j >= 0:1.2.8
BuildRequires:  xml-commons-apis >= 0:1.0
Requires:       jdepend >= 0:2.6
Requires:       jakarta-commons-collections >= 0:2.1
Requires:       log4j >= 0:1.2.8
Requires:       xml-commons-apis >= 0:1.0

%if %{gcj_support}
BuildRequires:    gnu-crypto
BuildRequires:    java-gcj-compat-devel
Requires(post):   java-gcj-compat
Requires(postun): java-gcj-compat
%endif

%description
Jakarta Graph is a toolkit for managing graphs and graph based data structures.

%package        javadoc
Summary:        Javadoc for %{name}
Group:          Development/Documentation
Requires(post):   /bin/rm,/bin/ln
Requires(postun): /bin/rm

%description    javadoc
Javadoc for %{name}

%prep
%setup -q -n graph2-%{version}.cvs20040118

%build
export OPT_JAR_LIST="ant/ant-junit junit"
export CLASSPATH=$(build-classpath jdepend commons-collections log4j xml-commons-apis )
CLASSPATH=target/classes:target/test-classes:$CLASSPATH
ant -Dbuild.sysclasspath=only dist

%install
rm -rf $RPM_BUILD_ROOT
install -Dpm 644 dist/%{base_name}-%{version}.jar \
  $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
ln -s %{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
ln -s %{name}-%{version}.jar \
  $RPM_BUILD_ROOT%{_javadir}/%{base_name}-%{version}.jar
ln -s %{base_name}-%{version}.jar \
  $RPM_BUILD_ROOT%{_javadir}/%{base_name}.jar
# javadoc
install -dm 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
cp -pr dist/docs/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name} # ghost symlink

%if %{gcj_support}
export CLASSPATH=$(build-classpath gnu-crypto)
%{_bindir}/aot-compile-rpm
%endif

%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

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

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

%files
%defattr(-,root,root,-)
%doc LICENSE.txt
%{_javadir}/*.jar

%if %{gcj_support}
%dir %attr(-,root,root) %{_libdir}/gcj/%{name}
%attr(-,root,root) %{_libdir}/gcj/%{name}/%{name}-%{version}.jar.*
%endif

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

%changelog
* Tue May 15 2007 Ralph Apel <r.apel at r-apel.de> - 1:0.8.1-0.cvs20040118.3jpp
- Make Vendor, Distribution based on macro

* Tue Feb 13 2007 Ralph Apel <r.apel at r-apel.de> - 1:0.8.1-0.cvs20040118.2jpp
- Add gcj_support option

* Tue May 09 2006 Ralph Apel <r.apel at r-apel.de> - 1:0.8.1-0.cvs20040118.1jpp
- Rebuild for JPP-1.7 (maven1)
- Bump epoch

* Sun Aug 23 2004 Randy Watler <rwatler at finali.com> - 0:0.8.2.cvs20040118-4jpp
- Rebuild with ant-1.6.2

* Fri Aug 06 2004 Ralph Apel <r.apel at r-apel.de> - 0:0.8.2.cvs20040118-3jpp
- Void change

* Tue Jun 01 2004 Randy Watler <rwatler at finali.com> - 0:0.8.2.cvs20040118-2jpp
- Upgrade to Ant 1.6.X

* Mon Jan 19 2004 Ralph Apel <r.apel at r-apel.de> - 0:0.8.2.cvs20040118-1jpp
- First JPackage release.




More information about the JPackage-commits mailing list