Blame SPECS/avalon-logkit.spec

ade9e0
# Copyright (c) 2000-2005, JPackage Project
ade9e0
# All rights reserved.
ade9e0
#
ade9e0
# Redistribution and use in source and binary forms, with or without
ade9e0
# modification, are permitted provided that the following conditions
ade9e0
# are met:
ade9e0
#
ade9e0
# 1. Redistributions of source code must retain the above copyright
ade9e0
#    notice, this list of conditions and the following disclaimer.
ade9e0
# 2. Redistributions in binary form must reproduce the above copyright
ade9e0
#    notice, this list of conditions and the following disclaimer in the
ade9e0
#    documentation and/or other materials provided with the
ade9e0
#    distribution.
ade9e0
# 3. Neither the name of the JPackage Project nor the names of its
ade9e0
#    contributors may be used to endorse or promote products derived
ade9e0
#    from this software without specific prior written permission.
ade9e0
#
ade9e0
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
ade9e0
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
ade9e0
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
ade9e0
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
ade9e0
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
ade9e0
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
ade9e0
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
ade9e0
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
ade9e0
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
ade9e0
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
ade9e0
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
ade9e0
#
ade9e0
ade9e0
%global     short_name      logkit
ade9e0
%global     camelcase_short_name      LogKit
ade9e0
ade9e0
Name:        avalon-%{short_name}
ade9e0
Version:     2.1
ade9e0
Release:     14%{?dist}
ade9e0
Epoch:       0
ade9e0
Summary:     Java logging toolkit
ade9e0
License:     ASL 2.0
ade9e0
Group:       Development/Libraries
ade9e0
URL:         http://avalon.apache.org/%{short_name}/
ade9e0
Source0:     http://archive.apache.org/dist/excalibur/%{name}/source/%{name}-%{version}-src.zip
ade9e0
Source1:     http://repo1.maven.org/maven2/avalon-logkit/avalon-logkit/%{version}/%{name}-%{version}.pom
ade9e0
Patch0:      fix-java6-compile.patch
ade9e0
Patch1:      avalon-logkit-pom-deps.patch
ade9e0
Patch2:      avalon-logkit-encoding.patch
ade9e0
Patch3:      java7.patch
ade9e0
Requires:    avalon-framework >= 0:4.1.4
ade9e0
Requires:    tomcat-servlet-3.0-api
ade9e0
Requires:    jms
ade9e0
ade9e0
BuildRequires:    jpackage-utils >= 0:1.5
ade9e0
BuildRequires:    ant
ade9e0
BuildRequires:    javamail
ade9e0
BuildRequires:    ant-junit
ade9e0
BuildRequires:    log4j
ade9e0
BuildRequires:    avalon-framework >= 0:4.1.4
ade9e0
# Required for converting jars to OSGi bundles
ade9e0
BuildRequires:    aqute-bnd
ade9e0
BuildRequires:    tomcat-servlet-3.0-api
ade9e0
BuildRequires:    jms
ade9e0
ade9e0
BuildArch:    noarch
ade9e0
ade9e0
ade9e0
%description
ade9e0
LogKit is a logging toolkit designed for secure performance orientated
ade9e0
logging in applications. To get started using LogKit, it is recomended
ade9e0
that you read the whitepaper and browse the API docs.
ade9e0
ade9e0
%package javadoc
ade9e0
Summary:    Javadoc for %{name}
ade9e0
Group:        Documentation
ade9e0
Requires:     jpackage-utils
ade9e0
ade9e0
%description javadoc
ade9e0
Javadoc for %{name}.
ade9e0
ade9e0
%prep
ade9e0
%setup -q
ade9e0
%patch0
ade9e0
ade9e0
cp %{SOURCE1} pom.xml
ade9e0
%patch1
ade9e0
%patch2 -p1
ade9e0
%patch3
ade9e0
# remove all binary libs
ade9e0
find . -name "*.jar" -exec rm -f {} \;
ade9e0
ade9e0
%build
ade9e0
export CLASSPATH=$(build-classpath log4j javamail/mailapi jms servlet jdbc-stdext avalon-framework junit):$PWD/build/classes
ade9e0
ant -Dencoding=ISO-8859-1 -Dnoget=true clean jar javadoc
ade9e0
# Convert to OSGi bundle
ade9e0
java -jar $(build-classpath aqute-bnd) wrap target/%{name}-%{version}.jar
ade9e0
ade9e0
%install
ade9e0
# jars
ade9e0
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
ade9e0
install -d -m 755 $RPM_BUILD_ROOT/%{_mavenpomdir}
ade9e0
ade9e0
install -m 644 target/%{name}-%{version}.bar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
ade9e0
ade9e0
install -pm 644 pom.xml $RPM_BUILD_ROOT/%{_mavenpomdir}/JPP-%{name}.pom
ade9e0
%add_maven_depmap JPP-%{name}.pom %{name}.jar -a "%{short_name}:%{short_name},org.apache.avalon.logkit:%{name}"
ade9e0
ade9e0
# javadoc
ade9e0
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}
ade9e0
cp -pr dist/docs/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
ade9e0
ade9e0
%files
ade9e0
%doc LICENSE.txt NOTICE.txt
ade9e0
%{_mavendepmapfragdir}/%{name}
ade9e0
%{_mavenpomdir}/JPP-%{name}.pom
ade9e0
%{_javadir}/%{name}.jar
ade9e0
ade9e0
%files javadoc
ade9e0
%doc LICENSE.txt NOTICE.txt
ade9e0
%{_javadocdir}/%{name}
ade9e0
ade9e0
%changelog
ade9e0
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 02.1-14
ade9e0
- Mass rebuild 2013-12-27
ade9e0
ade9e0
* Fri Jun 28 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:2.1-13
ade9e0
- Rebuild to regenerate API documentation
ade9e0
- Resolves: CVE-2013-1571
ade9e0
ade9e0
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:2.1-12
ade9e0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
ade9e0
ade9e0
* Tue Aug 21 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0:2.1-11
ade9e0
- Change build-classpath call from macro to shell expansion
ade9e0
ade9e0
* Thu Aug 16 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:2.1-10
ade9e0
- Fix license tag
ade9e0
- Install NOTICE file
ade9e0
ade9e0
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:2.1-9
ade9e0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
ade9e0
ade9e0
* Wed Apr 18 2012 Alexander Kurtakov <akurtako@redhat.com> 0:2.1-8
ade9e0
- Another Java 7 fix.
ade9e0
- BR/R servlet 3.0 api.
ade9e0
ade9e0
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:2.1-7
ade9e0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
ade9e0
ade9e0
* Tue Oct 18 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0:2.1-6
ade9e0
- aqute-bndlib renamed to aqute-bnd (#745166)
ade9e0
- Fix compilation with openjdk 1.7.0
ade9e0
- Use new maven macros
ade9e0
- Packaging tweaks
ade9e0
ade9e0
* Fri May  6 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0:2.1-5
ade9e0
- Fix up depdenencies in pom
ade9e0
ade9e0
* Tue May 3 2011 Severin Gehwolf <sgehwolf@redhat.com> 0:2.1-4
ade9e0
- Convert jar's to OSGi bundles using aqute-bndlib.
ade9e0
ade9e0
* Thu Apr 21 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0:2.1-3
ade9e0
- Add maven metadata into package
ade9e0
- Tweaks according to new guidelines
ade9e0
ade9e0
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:2.1-3
ade9e0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
ade9e0
ade9e0
* Tue Nov 9 2010 Alexander Kurtakov <akurtako@redhat.com> 0:2.1-2
ade9e0
- Add missing ant-junit BR.
ade9e0
ade9e0
* Tue Nov 9 2010 Alexander Kurtakov <akurtako@redhat.com> 0:2.1-1
ade9e0
- Update to 2.1 (rhbz#599622).
ade9e0
ade9e0
* Tue Nov  9 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0:1.2-9
ade9e0
- Fix build to use tomcat6
ade9e0
- Cleanups, various packaging problems fixed
ade9e0
ade9e0
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.2-8
ade9e0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
ade9e0
ade9e0
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.2-7
ade9e0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
ade9e0
ade9e0
* Wed Jul  9 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0:1.2-6
ade9e0
- drop repotag
ade9e0
- fix license tag
ade9e0
ade9e0
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0:1.2-5jpp.5
ade9e0
- Autorebuild for GCC 4.3
ade9e0
ade9e0
* Fri Feb 09 2007 Permaine Cheung <pcheung@redhat.com> 0:1.2-4jpp.5%{?dist}
ade9e0
- Fix source URL, BuildRoot
ade9e0
ade9e0
* Thu Feb 08 2007 Permaine Cheung <pcheung@redhat.com> 0:1.2-4jpp.4%{?dist}
ade9e0
- rpmlint cleanup.
ade9e0
ade9e0
* Thu Aug 03 2006 Deepak Bhole <dbhole@redhat.com> 0:1.2-4jpp.3
ade9e0
- Added missing requirements.
ade9e0
ade9e0
* Sat Jul 22 2006 Jakub Jelinek <jakub@redhat.com> - 0:1.2-4jpp_2fc
ade9e0
- Rebuilt
ade9e0
ade9e0
* Wed Jul 19 2006 Deepak Bhole <dbhole@redhat.com> 0:1.2-4jpp_1fc
ade9e0
- Added conditional native compilation.
ade9e0
- Removed name/release/version defines as applicable.
ade9e0
ade9e0
* Fri Aug 20 2004 Ralph Apel <r.apel@r-apel.de> 0:1.2-3jpp
ade9e0
- Build with ant-1.6.2
ade9e0
ade9e0
* Fri May 09 2003 David Walluck <david@anti-microsoft.org> 0:1.2-2jpp
ade9e0
- update for JPackage 1.5
ade9e0
ade9e0
* Fri Mar 21 2003 Nicolas Mailhot <Nicolas.Mailhot (at) JPackage.org> 1.2-1jpp
ade9e0
- For jpackage-utils 1.5
ade9e0
ade9e0
* Tue May 07 2002 Guillaume Rousse <guillomovitch@users.sourceforge.net> 1.0.1-4jpp
ade9e0
- hardcoded distribution and vendor tag
ade9e0
- group tag again
ade9e0
ade9e0
* Thu May 2 2002 Guillaume Rousse <guillomovitch@users.sourceforge.net> 1.0.1-3jpp
ade9e0
- distribution tag
ade9e0
- group tag
ade9e0
ade9e0
* Mon Mar 18 2002 Guillaume Rousse <guillomovitch@users.sourceforge.net> 1.0.1-2jpp
ade9e0
- generic servlet support
ade9e0
ade9e0
* Sun Feb 03 2002 Guillaume Rousse <guillomovitch@users.sourceforge.net> 1.0.1-1jpp
ade9e0
- 1.0.1
ade9e0
- versioned dir for javadoc
ade9e0
- no dependencies for and javadoc package
ade9e0
- adaptation for new servlet3 package
ade9e0
- drop j2ee package
ade9e0
- regenerated the patch
ade9e0
- section package
ade9e0
ade9e0
* Wed Dec 5 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 1.0-4jpp
ade9e0
- javadoc into javadoc package
ade9e0
- Requires and BuildRequires servletapi3 >= 3.2.3-2
ade9e0
- regenerated the patch
ade9e0
ade9e0
* Wed Nov 21 2001 Christian Zoffoli <czoffoli@littlepenguin.org> 1.0-3jpp
ade9e0
- changed extension --> jpp
ade9e0
ade9e0
* Tue Nov 20 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 1.0-2jpp
ade9e0
- non-free extension classes back in original archive
ade9e0
- removed packager tag
ade9e0
ade9e0
* Sun Oct 28 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 1.0-1jpp
ade9e0
- 1.0
ade9e0
ade9e0
* Tue Oct 9 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 1.0-0.b5.2jpp
ade9e0
- non-free extension as additional package
ade9e0
ade9e0
* Sat Oct 6 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 1.0-0.b5.1jpp
ade9e0
- 1.0b5
ade9e0
- first unified release
ade9e0
- used original tarball
ade9e0
ade9e0
* Mon Sep 10 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 1.0-0.b4.1mdk
ade9e0
- first Mandrake release