Permaine Cheung edf1cf5
# Copyright (c) 2000-2007, JPackage Project
Permaine Cheung edf1cf5
# All rights reserved.
Permaine Cheung edf1cf5
#
Permaine Cheung edf1cf5
# Redistribution and use in source and binary forms, with or without
Permaine Cheung edf1cf5
# modification, are permitted provided that the following conditions
Permaine Cheung edf1cf5
# are met:
Permaine Cheung edf1cf5
#
Permaine Cheung edf1cf5
# 1. Redistributions of source code must retain the above copyright
Permaine Cheung edf1cf5
#    notice, this list of conditions and the following disclaimer.
Permaine Cheung edf1cf5
# 2. Redistributions in binary form must reproduce the above copyright
Permaine Cheung edf1cf5
#    notice, this list of conditions and the following disclaimer in the
Permaine Cheung edf1cf5
#    documentation and/or other materials provided with the
Permaine Cheung edf1cf5
#    distribution.
Permaine Cheung edf1cf5
# 3. Neither the name of the JPackage Project nor the names of its
Permaine Cheung edf1cf5
#    contributors may be used to endorse or promote products derived
Permaine Cheung edf1cf5
#    from this software without specific prior written permission.
Permaine Cheung edf1cf5
#
Permaine Cheung edf1cf5
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
Permaine Cheung edf1cf5
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
Permaine Cheung edf1cf5
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
Permaine Cheung edf1cf5
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
Permaine Cheung edf1cf5
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
Permaine Cheung edf1cf5
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
Permaine Cheung edf1cf5
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
Permaine Cheung edf1cf5
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
Permaine Cheung edf1cf5
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
Permaine Cheung edf1cf5
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
Permaine Cheung edf1cf5
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Permaine Cheung edf1cf5
#
Permaine Cheung edf1cf5
Matt Wringe 02f6f2d
%define _with_gcj_support 1
Matt Wringe 02f6f2d
Matt Wringe 02f6f2d
%define gcj_support %{?_with_gcj_support:1}%{!?_with_gcj_support:%{?_without_gcj_support:0}%{!?_without_gcj_support:%{?_gcj_support:%{_gcj_support}}%{!?_gcj_support:0}}}
Permaine Cheung edf1cf5
%define short_name    framework
Permaine Cheung edf1cf5
%define short_Name    Avalon
Permaine Cheung edf1cf5
Permaine Cheung edf1cf5
Name:        avalon-%{short_name}
Permaine Cheung edf1cf5
Version:     4.1.4
206b1ad
Release:     3jpp.14%{?dist}
Permaine Cheung edf1cf5
Epoch:       0
Permaine Cheung edf1cf5
Summary:     Java components interfaces
Permaine Cheung edf1cf5
License:     Apache Software License
Permaine Cheung edf1cf5
Url:         http://avalon.apache.org/%{short_name}/
Permaine Cheung edf1cf5
Group:       Development/Libraries/Application Frameworks
Permaine Cheung edf1cf5
Source0:     http://www.apache.org/dist/avalon/framework/v4.1.4/Avalon-4.1.4-src.tar.gz
Permaine Cheung edf1cf5
Patch1:        %{name}-target.patch
Permaine Cheung edf1cf5
Requires:    xml-commons-apis >= 1.3
Permaine Cheung edf1cf5
Requires:    xalan-j2
Permaine Cheung edf1cf5
BuildRequires:    ant
Permaine Cheung edf1cf5
BuildRequires:    junit
Permaine Cheung edf1cf5
BuildRequires:    avalon-logkit
Permaine Cheung edf1cf5
BuildRequires:    xml-commons-apis >= 1.3
Permaine Cheung edf1cf5
BuildRequires:    jpackage-utils >= 0:1.5
Matt Wringe 02f6f2d
%if ! %{gcj_support}
Permaine Cheung edf1cf5
BuildArch:    noarch
Matt Wringe 02f6f2d
%endif
Permaine Cheung edf1cf5
BuildRoot:    %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
cvsdist d2622cc
Matt Wringe 02f6f2d
%if %{gcj_support}
Permaine Cheung edf1cf5
BuildRequires:       java-gcj-compat-devel
Permaine Cheung edf1cf5
Requires(post):      java-gcj-compat
Permaine Cheung edf1cf5
Requires(postun):    java-gcj-compat
Matt Wringe 02f6f2d
%endif
Matt Wringe 02f6f2d
cvsdist d2622cc
%description
cvsdist d2622cc
The Avalon framework consists of interfaces that define relationships
cvsdist d2622cc
between commonly used application components, best-of-practice pattern
cvsdist d2622cc
enforcements, and several lightweight convenience implementations of the
cvsdist d2622cc
generic components.
cvsdist d2622cc
What that means is that we define the central interface Component. We
cvsdist d2622cc
also define the relationship (contract) a component has with peers,
8c27f85
ancestors and children.
cvsdist d2622cc
cvsdist d2622cc
%package manual
Permaine Cheung edf1cf5
Summary:      Manual for %{name}
Permaine Cheung edf1cf5
Group:        Development/Libraries/Application Frameworks
cvsdist d2622cc
cvsdist d2622cc
%description manual
cvsdist d2622cc
Documentation for %{name}.
cvsdist d2622cc
cvsdist d2622cc
%package javadoc
Permaine Cheung edf1cf5
Summary:      Javadoc for %{name}
Permaine Cheung edf1cf5
Group:        Development/Documentation
Matt Wringe d5228d1
Requires(post):  /bin/rm /bin/ln
Matt Wringe d5228d1
Requires(postun): /bin/rm
cvsdist d2622cc
cvsdist d2622cc
%description javadoc
cvsdist d2622cc
Javadoc for %{name}.
cvsdist d2622cc
cvsdist d2622cc
%prep
gbenson 204504f
%setup -q -n %{short_Name}-%{version}
gbenson 204504f
%patch1 -p1
cvsdist d2622cc
# remove all binary libs
cvsdist d2622cc
find . -name "*.jar" -exec rm -f {} \;
cvsdist d2622cc
Permaine Cheung edf1cf5
# Fix for wrong-file-end-of-line-encoding problem
Permaine Cheung edf1cf5
for i in `find docs -iname "*.html"`; do sed -i 's/\r//' $i; done
Permaine Cheung edf1cf5
for i in `find docs -iname "*.css"`; do sed -i 's/\r//' $i; done
Permaine Cheung edf1cf5
for i in `find docs -iname "*.xml"`; do sed -i 's/\r//' $i; done
Permaine Cheung edf1cf5
sed -i 's/\r//' README.txt
Permaine Cheung edf1cf5
sed -i 's/\r//' LICENSE.txt
Permaine Cheung edf1cf5
sed -i 's/\r//' KEYS
Permaine Cheung edf1cf5
sed -i 's/\r//' docs/api/package-list
Permaine Cheung edf1cf5
cvsdist d2622cc
%build
cvsdist d2622cc
export CLASSPATH=%(build-classpath avalon-logkit junit log4j junit)
gbenson 0e2921e
ant all
Permaine Cheung edf1cf5
ant -Dfailonerror=false javadocs
cvsdist d2622cc
cvsdist d2622cc
%install
Permaine Cheung edf1cf5
rm -rf $RPM_BUILD_ROOT
cvsdist d2622cc
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
cvsdist d2622cc
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
cvsdist d2622cc
install -m 644 target/lib/%{name}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
cvsdist d2622cc
cp -pr target/javadocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
cvsdist d2622cc
# create unversioned symlinks
cvsdist d2622cc
(cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} ${jar/-%{version}/}; done)
cvsdist d2622cc
Permaine Cheung 0e4f2fa
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name}
Permaine Cheung 0e4f2fa
Matt Wringe 02f6f2d
%if %{gcj_support}
Matt Wringe 02f6f2d
%{_bindir}/aot-compile-rpm
Matt Wringe 02f6f2d
%endif
Matt Wringe 02f6f2d
cvsdist d2622cc
%clean
cvsdist d2622cc
rm -rf $RPM_BUILD_ROOT
cvsdist d2622cc
Matt Wringe 02f6f2d
%if %{gcj_support}
Permaine Cheung edf1cf5
%post
Matt Wringe 02f6f2d
if [ -x %{_bindir}/rebuild-gcj-db ]
Matt Wringe 02f6f2d
then
Matt Wringe 02f6f2d
  %{_bindir}/rebuild-gcj-db
Matt Wringe 02f6f2d
fi
Matt Wringe 02f6f2d
%endif
Matt Wringe 02f6f2d
Matt Wringe 02f6f2d
%if %{gcj_support}
Permaine Cheung edf1cf5
%postun
Matt Wringe 02f6f2d
if [ -x %{_bindir}/rebuild-gcj-db ]
Matt Wringe 02f6f2d
then
Matt Wringe 02f6f2d
  %{_bindir}/rebuild-gcj-db
Matt Wringe 02f6f2d
fi
Matt Wringe 02f6f2d
%endif
Matt Wringe 02f6f2d
cvsdist d2622cc
%files
cvsdist d2622cc
%defattr(0644,root,root,0755)
cvsdist d2622cc
%doc KEYS LICENSE.txt README.txt
cvsdist d2622cc
%{_javadir}/*.jar
cvsdist d2622cc
Matt Wringe 02f6f2d
%if %{gcj_support}
Matt Wringe 02f6f2d
%attr(-,root,root) %{_libdir}/gcj/%{name}/avalon-framework-4.1.4.jar.*
Matt Wringe 02f6f2d
%endif
Matt Wringe 02f6f2d
cvsdist d2622cc
%files manual
cvsdist d2622cc
%defattr(0644,root,root,0755)
cvsdist d2622cc
%doc docs/*
cvsdist d2622cc
cvsdist d2622cc
%files javadoc
cvsdist d2622cc
%defattr(0644,root,root,0755)
cvsdist d2622cc
%{_javadocdir}/%{name}-%{version}
Permaine Cheung 0e4f2fa
%{_javadocdir}/%{name}
cvsdist d2622cc
cvsdist d2622cc
%changelog
206b1ad
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0:4.1.4-3jpp.14
206b1ad
- Autorebuild for GCC 4.3
206b1ad
Permaine Cheung 7b964b3
* Thu Mar 08 2007 Permaine Cheung <pcheung at redhat.com> - 0:4.1.4-2jpp.14
Permaine Cheung edf1cf5
- rpmlint cleanup.
Permaine Cheung edf1cf5
Matt Wringe d5228d1
* Thu Aug 10 2006 Matt Wringe <mwringe at redhat.com> - 0:4.1.4-2jpp.13
Matt Wringe d5228d1
- Add missing javadoc requires
Matt Wringe d5228d1
0075c2a
* Sat Jul 22 2006 Jakub Jelinek <jakub@redhat.com> - 0:4.1.4-2jpp_12fc
0075c2a
- Rebuilt
0075c2a
Matt Wringe cdfaf9c
* Wed Jul 19 2006 Matt Wringe <mwringe at redhat.com> - 0:4.1.4-2jpp_11fc
Matt Wringe cdfaf9c
- Removed separate definition of name, version and release.
Matt Wringe cdfaf9c
Matt Wringe 02f6f2d
* Wed Jul 19 2006 Matt Wringe <mwringe at redhat.com> - 0:4.1.4-2jpp_10fc
Matt Wringe 02f6f2d
- Added conditional native compling.
Matt Wringe 02f6f2d
8c27f85
* Thu Jun  8 2006 Deepak Bhole <dbhole@redhat.com> - 0:4.1.4-2jpp_9fc
8c27f85
- Updated description for fix to Bug# 170999
8c27f85
2caf16e
* Mon Mar  6 2006 Jeremy Katz <katzj@redhat.com> - 0:4.1.4-2jpp_8fc
2caf16e
- stop scriptlet spew
2caf16e
a8e5371
* Wed Dec 21 2005 Gary Benson <gbenson@redhat.com> 0:4.1.4-2jpp_7fc
a8e5371
- Rebuild again
a8e5371
gbenson 0e2921e
* Thu Dec 15 2005 Gary Benson <gbenson@redhat.com> 0:4.1.4-2jpp_6fc
gbenson 0e2921e
- Rebuild for new gcj.
gbenson 93becfc
gbenson a7a26ab
* Thu Nov  4 2004 Gary Benson <gbenson@redhat.com> 0:4.1.4-2jpp_5fc
gbenson 18f38b0
- Build into Fedora.
gbenson 18f38b0
gbenson a7a26ab
* Thu Oct 28 2004 Gary Benson <gbenson@redhat.com> 0:4.1.4-2jpp_4fc
gbenson a7a26ab
- Bootstrap into Fedora.
gbenson a7a26ab
Andrew Overholt 3b709c3
* Thu Sep 30 2004 Andrew Overholt <overholt@redhat.com> 0:4.1.4-2jpp_3rh
gbenson a8e2fdd
- Remove avalon-logkit as a Requires
Andrew Overholt 3b709c3
cvsdist 30a5a58
* Mon Mar  8 2004 Frank Ch. Eigler <fche@redhat.com> 0:4.1.4-2jpp_2rh
cvsdist 30a5a58
- RH vacuuming part II
cvsdist 30a5a58
cvsdist 9cbf376
* Fri Mar  5 2004 Frank Ch. Eigler <fche@redhat.com> 0:4.1.4-2jpp_1rh
cvsdist 9cbf376
- RH vacuuming
cvsdist 9cbf376
cvsdist d2622cc
* Fri May 09 2003 David Walluck <david@anti-microsoft.org> 0:4.1.4-2jpp
cvsdist d2622cc
- update for JPackage 1.5
cvsdist d2622cc
cvsdist d2622cc
* Fri Mar 21 2003 Nicolas Mailhot <Nicolas.Mailhot (at) JPackage.org> 4.1.4-1jpp
cvsdist d2622cc
- For jpackage-utils 1.5
cvsdist d2622cc
- Forrest is not used right now
cvsdist d2622cc
cvsdist d2622cc
* Tue May 07 2002 Guillaume Rousse <guillomovitch@users.sourceforge.net> 4.1.2-3jpp 
cvsdist d2622cc
- hardcoded distribution and vendor tag
cvsdist d2622cc
- group tag again
cvsdist d2622cc
cvsdist d2622cc
* Thu May 2 2002 Guillaume Rousse <guillomovitch@users.sourceforge.net> 4.1.2-2jpp 
cvsdist d2622cc
- distribution tag
cvsdist d2622cc
- group tag
cvsdist d2622cc
cvsdist d2622cc
* Sun Feb 03 2002 Guillaume Rousse <guillomovitch@users.sourceforge.net> 4.1.2-1jpp 
cvsdist d2622cc
- 4.1.2
cvsdist d2622cc
- section macro
cvsdist d2622cc
cvsdist d2622cc
* Thu Jan 17 2002 Guillaume Rousse <guillomovitch@users.sourceforge.net> 4.1-2jpp
cvsdist d2622cc
- versioned dir for javadoc
cvsdist d2622cc
- no dependencies for manual and javadoc packages
cvsdist d2622cc
- requires xml-commons-apis
cvsdist d2622cc
cvsdist d2622cc
* Wed Dec 12 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 4.1-1jpp
cvsdist d2622cc
- 4.1
cvsdist d2622cc
- Requires and BuildRequires xalan-j2
cvsdist d2622cc
cvsdist d2622cc
* Wed Dec 5 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 4.0-4jpp
cvsdist d2622cc
- javadoc into javadoc package
cvsdist d2622cc
cvsdist d2622cc
* Wed Nov 21 2001 Christian Zoffoli <czoffoli@littlepenguin.org> 4.0-3jpp
cvsdist d2622cc
- changed extension --> jpp
cvsdist d2622cc
cvsdist d2622cc
* Sat Oct 6 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 4.0-2jpp
cvsdist d2622cc
- first unified release
cvsdist d2622cc
- used original tarball
cvsdist d2622cc
cvsdist d2622cc
* Thu Sep 13 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 4.0-1mdk
cvsdist d2622cc
- first Mandrake release