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