Blame SPECS/avalon-framework.spec

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