Blame SPECS/avalon-framework.spec

acbded
# Copyright (c) 2000-2007, JPackage Project
acbded
# All rights reserved.
acbded
#
acbded
# Redistribution and use in source and binary forms, with or without
acbded
# modification, are permitted provided that the following conditions
acbded
# are met:
acbded
#
acbded
# 1. Redistributions of source code must retain the above copyright
acbded
#    notice, this list of conditions and the following disclaimer.
acbded
# 2. Redistributions in binary form must reproduce the above copyright
acbded
#    notice, this list of conditions and the following disclaimer in the
acbded
#    documentation and/or other materials provided with the
acbded
#    distribution.
acbded
# 3. Neither the name of the JPackage Project nor the names of its
acbded
#    contributors may be used to endorse or promote products derived
acbded
#    from this software without specific prior written permission.
acbded
#
acbded
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
acbded
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
acbded
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
acbded
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
acbded
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
acbded
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
acbded
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
acbded
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
acbded
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
acbded
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
acbded
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
acbded
#
acbded
acbded
%global short_name    framework
acbded
%global short_Name    Avalon
acbded
acbded
Name:        avalon-%{short_name}
acbded
Version:     4.3
acbded
Release:     10%{?dist}
acbded
Epoch:       0
acbded
Summary:     Java components interfaces
acbded
License:     ASL 2.0
acbded
URL:         http://avalon.apache.org/%{short_name}/
acbded
Group:       Development/Libraries
acbded
Source0:     http://archive.apache.org/dist/excalibur/avalon-framework/source/%{name}-api-%{version}-src.tar.gz
acbded
Source1:     http://archive.apache.org/dist/excalibur/avalon-framework/source/%{name}-impl-%{version}-src.tar.gz
acbded
acbded
# pom files are not provided in tarballs so get them from external site
acbded
Source2:     http://repo1.maven.org/maven2/avalon-framework/%{name}-api/%{version}/%{name}-api-%{version}.pom
acbded
Source3:     http://repo1.maven.org/maven2/avalon-framework/%{name}-impl/%{version}/%{name}-impl-%{version}.pom
acbded
acbded
# remove jmock from dependencies because we don't have it
acbded
Patch0:     %{name}-impl-pom.patch
acbded
Patch1:     %{name}-xerces.patch
acbded
acbded
Requires:    apache-commons-logging
acbded
Requires:    avalon-logkit
acbded
Requires:    log4j
acbded
Requires:    xalan-j2
acbded
acbded
BuildRequires:    ant
acbded
BuildRequires:	  ant-junit
acbded
BuildRequires:	  apache-commons-logging
acbded
BuildRequires:    avalon-logkit
acbded
BuildRequires:    jpackage-utils
acbded
# For converting jar into OSGi bundle
acbded
BuildRequires:    aqute-bnd
acbded
BuildRequires:    junit
acbded
BuildRequires:	  log4j
acbded
acbded
acbded
BuildArch:    	  noarch
acbded
acbded
Obsoletes:    %{name}-manual <= 0:4.1.4
acbded
acbded
%description
acbded
The Avalon framework consists of interfaces that define relationships
acbded
between commonly used application components, best-of-practice pattern
acbded
enforcements, and several lightweight convenience implementations of the
acbded
generic components.
acbded
What that means is that we define the central interface Component. We
acbded
also define the relationship (contract) a component has with peers,
acbded
ancestors and children.
acbded
acbded
%package javadoc
acbded
Summary:      API documentation %{name}
acbded
Group:        Documentation
acbded
Requires:     jpackage-utils
acbded
acbded
%description javadoc
acbded
%{summary}.
acbded
acbded
%prep
acbded
%setup -q -n %{name}-api-%{version}
acbded
tar xvf %{SOURCE1}
acbded
acbded
cp %{SOURCE2} .
acbded
acbded
pushd %{name}-impl-%{version}/
acbded
cp %{SOURCE3} .
acbded
%patch0
acbded
%patch1 -p2
acbded
popd
acbded
acbded
%build
acbded
export CLASSPATH=%(build-classpath avalon-logkit junit commons-logging log4j)
acbded
export CLASSPATH="$CLASSPATH:../target/%{name}-api-%{version}.jar"
acbded
ant jar test javadoc
acbded
# Convert to OSGi bundle
acbded
java -jar $(build-classpath aqute-bnd) wrap target/%{name}-api-%{version}.jar
acbded
acbded
# build implementation now
acbded
pushd %{name}-impl-%{version}
acbded
# tests removed because we don't have jmock
acbded
rm -rf src/test/*
acbded
ant jar javadoc
acbded
# Convert to OSGi bundle
acbded
java -jar $(build-classpath aqute-bnd) wrap target/%{name}-impl-%{version}.jar
acbded
popd
acbded
acbded
%install
acbded
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}/
acbded
install -d -m 755 $RPM_BUILD_ROOT/%{_mavenpomdir}
acbded
acbded
install -m 644 target/%{name}-api-%{version}.bar $RPM_BUILD_ROOT%{_javadir}/%{name}-api.jar
acbded
mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}/%{name}-api
acbded
acbded
# pom file
acbded
install -pm 644 %{name}-api-%{version}.pom $RPM_BUILD_ROOT/%{_mavenpomdir}/JPP-%{name}-api.pom
acbded
%add_maven_depmap JPP-%{name}-api.pom %{name}-api.jar -a "org.apache.avalon.framework:%{name}-api"
acbded
acbded
# javadocs
acbded
cp -pr dist/docs/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}/%{name}-api/
acbded
acbded
acbded
pushd %{name}-impl-%{version}
acbded
install -m 644 target/%{name}-impl-%{version}.bar $RPM_BUILD_ROOT%{_javadir}/%{name}-impl.jar
acbded
ln -sf %{_javadir}/%{name}-impl.jar ${RPM_BUILD_ROOT}%{_javadir}/%{name}.jar
acbded
acbded
# pom file
acbded
install -pm 644 %{name}-impl-%{version}.pom $RPM_BUILD_ROOT/%{_mavenpomdir}/JPP-%{name}-impl.pom
acbded
%add_maven_depmap JPP-%{name}-impl.pom %{name}-impl.jar -a "org.apache.avalon.framework:%{name}-impl,%{name}:%{name}"
acbded
acbded
# javadocs
acbded
mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}/%{name}-impl
acbded
cp -pr dist/docs/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}/%{name}-impl/
acbded
popd
acbded
acbded
acbded
%files
acbded
%doc LICENSE.txt NOTICE.txt
acbded
%{_mavenpomdir}/JPP-%{name}-api.pom
acbded
%{_mavenpomdir}/JPP-%{name}-impl.pom
acbded
%{_javadir}/%{name}-api.jar
acbded
%{_javadir}/%{name}-impl.jar
acbded
%{_javadir}/%{name}.jar
acbded
%{_mavendepmapfragdir}/%{name}
acbded
acbded
%files javadoc
acbded
%doc LICENSE.txt NOTICE.txt
acbded
%{_javadocdir}/%{name}
acbded
acbded
%changelog
acbded
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 04.3-10
acbded
- Mass rebuild 2013-12-27
acbded
acbded
* Fri Jun 28 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:4.3-9
acbded
- Rebuild to regenerate API documentation
acbded
- Resolves: CVE-2013-1571
acbded
acbded
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:4.3-8
acbded
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
acbded
acbded
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:4.3-7
acbded
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
acbded
acbded
* Wed Jun 06 2012 Tomas Radej <tradej@redhat.com> - 0:4.3-6
acbded
- Fixed xerces dep
acbded
acbded
* Fri Apr 6 2012 Alexander Kurtakov <akurtako@redhat.com> 0:4.3-5
acbded
- Remove unneeded BR/R.
acbded
acbded
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:4.3-4
acbded
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
acbded
acbded
* Tue Oct 18 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0:4.3-3
acbded
- aqute-bndlib renamed to aqute-bnd (#745163)
acbded
- Use new maven macros
acbded
- Packaging tweaks
acbded
acbded
* Tue May 3 2011 Severin Gehwolf <sgehwolf@redhat.com> 0:4.3-3
acbded
- Convert jar's to OSGi bundles using aqute-bndlib.
acbded
acbded
* Tue May  3 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0:4.3-2
acbded
- Add compatibility depmap for org.apache.avalon.framework groupId
acbded
acbded
* Wed Apr 20 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0:4.3-1
acbded
- Latest version
acbded
- Split into two jars, provide backward compatible symlink
acbded
- Cleanups according to new guidelines
acbded
acbded
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:4.1.4-8
acbded
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
acbded
acbded
* Wed Dec 29 2010 Alexander Kurtakov <akurtako@redhat.com> 0:4.1.4-7
acbded
- Drop gcj.
acbded
- Use global.
acbded
- No versioned jars.
acbded
- Fix permissions.
acbded
acbded
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:4.1.4-6
acbded
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
acbded
acbded
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:4.1.4-5
acbded
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
acbded
acbded
* Wed Jul  9 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0:4.1.4-4
acbded
- drop repotag
acbded
- fix license tag
acbded
acbded
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0:4.1.4-3jpp.14
acbded
- Autorebuild for GCC 4.3
acbded
acbded
* Thu Mar 08 2007 Permaine Cheung <pcheung at redhat.com> - 0:4.1.4-2jpp.14
acbded
- rpmlint cleanup.
acbded
acbded
* Thu Aug 10 2006 Matt Wringe <mwringe at redhat.com> - 0:4.1.4-2jpp.13
acbded
- Add missing javadoc requires
acbded
acbded
* Sat Jul 22 2006 Jakub Jelinek <jakub@redhat.com> - 0:4.1.4-2jpp_12fc
acbded
- Rebuilt
acbded
acbded
* Wed Jul 19 2006 Matt Wringe <mwringe at redhat.com> - 0:4.1.4-2jpp_11fc
acbded
- Removed separate definition of name, version and release.
acbded
acbded
* Wed Jul 19 2006 Matt Wringe <mwringe at redhat.com> - 0:4.1.4-2jpp_10fc
acbded
- Added conditional native compling.
acbded
acbded
* Thu Jun  8 2006 Deepak Bhole <dbhole@redhat.com> - 0:4.1.4-2jpp_9fc
acbded
- Updated description for fix to Bug# 170999
acbded
acbded
* Mon Mar  6 2006 Jeremy Katz <katzj@redhat.com> - 0:4.1.4-2jpp_8fc
acbded
- stop scriptlet spew
acbded
acbded
* Wed Dec 21 2005 Gary Benson <gbenson@redhat.com> 0:4.1.4-2jpp_7fc
acbded
- Rebuild again
acbded
acbded
* Thu Dec 15 2005 Gary Benson <gbenson@redhat.com> 0:4.1.4-2jpp_6fc
acbded
- Rebuild for new gcj.
acbded
acbded
* Thu Nov  4 2004 Gary Benson <gbenson@redhat.com> 0:4.1.4-2jpp_5fc
acbded
- Build into Fedora.
acbded
acbded
* Thu Oct 28 2004 Gary Benson <gbenson@redhat.com> 0:4.1.4-2jpp_4fc
acbded
- Bootstrap into Fedora.
acbded
acbded
* Thu Sep 30 2004 Andrew Overholt <overholt@redhat.com> 0:4.1.4-2jpp_3rh
acbded
- Remove avalon-logkit as a Requires
acbded
acbded
* Mon Mar  8 2004 Frank Ch. Eigler <fche@redhat.com> 0:4.1.4-2jpp_2rh
acbded
- RH vacuuming part II
acbded
acbded
* Fri Mar  5 2004 Frank Ch. Eigler <fche@redhat.com> 0:4.1.4-2jpp_1rh
acbded
- RH vacuuming
acbded
acbded
* Fri May 09 2003 David Walluck <david@anti-microsoft.org> 0:4.1.4-2jpp
acbded
- update for JPackage 1.5
acbded
acbded
* Fri Mar 21 2003 Nicolas Mailhot <Nicolas.Mailhot (at) JPackage.org> 4.1.4-1jpp
acbded
- For jpackage-utils 1.5
acbded
- Forrest is not used right now
acbded
acbded
* Tue May 07 2002 Guillaume Rousse <guillomovitch@users.sourceforge.net> 4.1.2-3jpp
acbded
- hardcoded distribution and vendor tag
acbded
- group tag again
acbded
acbded
* Thu May 2 2002 Guillaume Rousse <guillomovitch@users.sourceforge.net> 4.1.2-2jpp
acbded
- distribution tag
acbded
- group tag
acbded
acbded
* Sun Feb 03 2002 Guillaume Rousse <guillomovitch@users.sourceforge.net> 4.1.2-1jpp
acbded
- 4.1.2
acbded
- section macro
acbded
acbded
* Thu Jan 17 2002 Guillaume Rousse <guillomovitch@users.sourceforge.net> 4.1-2jpp
acbded
- versioned dir for javadoc
acbded
- no dependencies for manual and javadoc packages
acbded
- requires xml-commons-apis
acbded
acbded
* Wed Dec 12 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 4.1-1jpp
acbded
- 4.1
acbded
- Requires and BuildRequires xalan-j2
acbded
acbded
* Wed Dec 5 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 4.0-4jpp
acbded
- javadoc into javadoc package
acbded
acbded
* Wed Nov 21 2001 Christian Zoffoli <czoffoli@littlepenguin.org> 4.0-3jpp
acbded
- changed extension --> jpp
acbded
acbded
* Sat Oct 6 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 4.0-2jpp
acbded
- first unified release
acbded
- used original tarball
acbded
acbded
* Thu Sep 13 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 4.0-1mdk
acbded
- first Mandrake release