Blame SPECS/avalon-framework.spec

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