Blame SPECS/avalon-logkit.spec

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