Blame SPECS/avalon-logkit.spec

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