2012-01-03 12:19:03 +01:00
|
|
|
#
|
2012-02-13 14:06:13 +01:00
|
|
|
# spec file for package avalon-logkit
|
2012-01-03 12:19:03 +01:00
|
|
|
#
|
2017-05-21 10:07:47 +02:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2012-02-13 14:06:13 +01:00
|
|
|
# Copyright (c) 2000-2005, JPackage Project
|
2012-01-03 12:19:03 +01:00
|
|
|
#
|
2012-02-13 14:06:13 +01:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
2012-05-18 10:19:41 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2012-01-03 12:19:03 +01:00
|
|
|
%define short_name logkit
|
|
|
|
%define camelcase_short_name LogKit
|
2012-02-13 14:06:13 +01:00
|
|
|
Name: avalon-logkit
|
|
|
|
Version: 2.1
|
|
|
|
Release: 0
|
|
|
|
Summary: Java logging toolkit
|
2012-02-17 11:45:45 +01:00
|
|
|
License: Apache-2.0
|
2012-02-13 14:06:13 +01:00
|
|
|
Group: Development/Libraries/Java
|
|
|
|
Url: http://avalon.apache.org/%{short_name}/
|
2012-05-18 10:19:41 +02:00
|
|
|
#Source0: http://www.apache.org/dist/excalibur/%{name}/source/%{name}-%{version}-src.zip
|
|
|
|
#Source1: http://repo1.maven.org/maven2/avalon-logkit/avalon-logkit/%{version}/%{name}-%{version}.pom
|
2012-02-13 14:06:13 +01:00
|
|
|
Source0: %{name}-%{version}-src.zip
|
2012-05-18 10:19:41 +02:00
|
|
|
Source1: %{name}-%{version}.pom
|
2012-02-13 14:06:13 +01:00
|
|
|
Patch0: fix-java6-compile.patch
|
2012-05-18 10:19:41 +02:00
|
|
|
Patch1: avalon-logkit-pom-deps.patch
|
|
|
|
Patch2: avalon-logkit-encoding.patch
|
|
|
|
Patch3: fix-java7-compile.patch
|
2012-02-13 14:06:13 +01:00
|
|
|
BuildRequires: ant
|
|
|
|
BuildRequires: ant-junit
|
2017-09-15 11:20:52 +02:00
|
|
|
BuildRequires: java-devel >= 1.6
|
2012-02-13 14:06:13 +01:00
|
|
|
BuildRequires: javamail
|
2017-05-19 12:29:12 +02:00
|
|
|
BuildRequires: javapackages-local
|
2013-09-09 13:51:33 +02:00
|
|
|
BuildRequires: javapackages-tools
|
2012-02-13 14:06:13 +01:00
|
|
|
BuildRequires: jdbc-stdext
|
|
|
|
BuildRequires: jms
|
|
|
|
BuildRequires: log4j
|
2015-06-04 11:37:04 +02:00
|
|
|
BuildRequires: servlet >= 3.0
|
2012-02-13 14:06:13 +01:00
|
|
|
BuildRequires: unzip
|
2014-06-27 15:02:13 +02:00
|
|
|
Requires: jms
|
2015-06-04 12:26:03 +02:00
|
|
|
Requires: servlet >= 3.0
|
2014-06-27 15:02:13 +02:00
|
|
|
BuildArch: noarch
|
2012-01-03 12:19:03 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
LogKit is a logging toolkit designed for secure performance orientated
|
|
|
|
logging in applications. To get started using LogKit, it is recomended
|
|
|
|
that you read the whitepaper and browse the API docs.
|
|
|
|
|
|
|
|
%package javadoc
|
2012-02-13 14:06:13 +01:00
|
|
|
Summary: Javadoc for %{name}
|
|
|
|
Group: Development/Libraries/Java
|
2012-01-03 12:19:03 +01:00
|
|
|
|
|
|
|
%description javadoc
|
|
|
|
API documentation for %{name}.
|
|
|
|
|
|
|
|
%prep
|
2014-06-27 15:02:13 +02:00
|
|
|
%setup -q
|
2012-01-03 12:19:03 +01:00
|
|
|
%patch0
|
2012-05-18 10:19:41 +02:00
|
|
|
cp %{SOURCE1} pom.xml
|
|
|
|
%patch1
|
|
|
|
%patch2 -p1
|
|
|
|
%patch3
|
2012-01-03 12:19:03 +01:00
|
|
|
|
|
|
|
# remove all binary libs
|
|
|
|
find . -name "*.jar" -exec rm -f {} \;
|
|
|
|
|
|
|
|
%build
|
2017-09-15 11:20:52 +02:00
|
|
|
ant clean
|
|
|
|
mkdir -p target/lib
|
|
|
|
build-jar-repository -s -p target/lib \
|
2012-01-03 12:19:03 +01:00
|
|
|
log4j \
|
|
|
|
javamail/mailapi \
|
2012-05-18 10:19:41 +02:00
|
|
|
jms_api \
|
2012-06-20 09:16:49 +02:00
|
|
|
tomcat-servlet-api \
|
2012-01-03 12:19:03 +01:00
|
|
|
junit \
|
2012-06-20 09:16:49 +02:00
|
|
|
|
2017-09-15 11:20:52 +02:00
|
|
|
ant -Dant.build.javac.source=1.6 -Dant.build.javac.target=1.6 \
|
|
|
|
-Dencoding=ISO-8859-1 -Dnoget=true -lib %{_datadir}/java \
|
|
|
|
jar javadoc
|
2012-01-03 12:19:03 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
# jars
|
2014-06-27 15:02:13 +02:00
|
|
|
install -d -m 755 %{buildroot}%{_javadir}
|
|
|
|
install -m 644 target/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
|
2012-05-18 10:19:41 +02:00
|
|
|
|
|
|
|
#pom
|
2014-06-27 15:02:13 +02:00
|
|
|
install -d -m 755 %{buildroot}/%{_mavenpomdir}
|
|
|
|
install -pm 644 pom.xml %{buildroot}/%{_mavenpomdir}/JPP-%{name}.pom
|
2012-05-18 10:19:41 +02:00
|
|
|
%add_maven_depmap JPP-%{name}.pom %{name}.jar -a "%{short_name}:%{short_name},org.apache.avalon.logkit:%{name}"
|
2012-01-03 12:19:03 +01:00
|
|
|
|
|
|
|
# javadoc
|
2014-06-27 15:02:13 +02:00
|
|
|
install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
|
|
|
|
cp -pr dist/docs/api/* %{buildroot}%{_javadocdir}/%{name}
|
2012-01-03 12:19:03 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%doc LICENSE.txt NOTICE.txt
|
|
|
|
%{_javadir}/*
|
2015-03-18 11:06:09 +01:00
|
|
|
%{_datadir}/maven-metadata/%{name}.xml
|
2012-05-18 10:19:41 +02:00
|
|
|
%{_mavenpomdir}/JPP-%{name}.pom
|
2012-01-03 12:19:03 +01:00
|
|
|
|
|
|
|
%files javadoc
|
|
|
|
%doc LICENSE.txt
|
|
|
|
%{_javadocdir}/*
|
|
|
|
|
|
|
|
%changelog
|