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
|
|
|
#
|
2019-01-22 11:41:24 +01:00
|
|
|
# Copyright (c) 2019 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.
|
|
|
|
|
2018-12-06 13:17:49 +01:00
|
|
|
# Please submit bugfixes or comments via https://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:33:00 +02:00
|
|
|
BuildRequires: fdupes
|
2019-04-15 15:45:34 +02:00
|
|
|
BuildRequires: geronimo-jms-1_1-api
|
2019-02-14 19:07:31 +01:00
|
|
|
BuildRequires: glassfish-servlet-api
|
2018-05-15 15:58:14 +02:00
|
|
|
BuildRequires: java-devel >= 1.8
|
2012-02-13 14:06:13 +01:00
|
|
|
BuildRequires: javamail
|
2017-05-19 12:29:12 +02:00
|
|
|
BuildRequires: javapackages-local
|
2012-02-13 14:06:13 +01:00
|
|
|
BuildRequires: jdbc-stdext
|
2019-10-01 14:05:42 +02:00
|
|
|
BuildRequires: log4j12
|
2012-02-13 14:06:13 +01:00
|
|
|
BuildRequires: unzip
|
2019-01-22 11:41:24 +01:00
|
|
|
Requires: mvn(javax.jms:jms)
|
|
|
|
Requires: mvn(javax.mail:mail)
|
|
|
|
Requires: mvn(javax.servlet:servlet-api)
|
2014-06-27 15:02:13 +02:00
|
|
|
BuildArch: noarch
|
2012-01-03 12:19:03 +01:00
|
|
|
|
|
|
|
%description
|
2017-09-15 18:26:30 +02:00
|
|
|
LogKit is a logging toolkit designed for secure performance oriented
|
2012-01-03 12:19:03 +01:00
|
|
|
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}
|
2017-09-15 18:26:30 +02:00
|
|
|
Group: Documentation/HTML
|
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
|
2017-09-15 18:26:30 +02:00
|
|
|
find . -name "*.jar" -delete
|
2012-01-03 12:19:03 +01:00
|
|
|
|
|
|
|
%build
|
2017-09-15 11:20:52 +02:00
|
|
|
ant clean
|
|
|
|
mkdir -p target/lib
|
|
|
|
build-jar-repository -s -p target/lib \
|
2019-10-01 14:05:42 +02:00
|
|
|
log4j12/log4j-12 \
|
2012-01-03 12:19:03 +01:00
|
|
|
javamail/mailapi \
|
2019-04-15 15:45:34 +02:00
|
|
|
geronimo-jms-1.1-api \
|
2019-02-14 19:07:31 +01:00
|
|
|
glassfish-servlet-api
|
2012-06-20 09:16:49 +02:00
|
|
|
|
2018-05-15 15:58:14 +02:00
|
|
|
ant -Dant.build.javac.source=8 -Dant.build.javac.target=8 \
|
2017-09-15 11:20:52 +02:00
|
|
|
-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}
|
2018-05-15 15:58:14 +02:00
|
|
|
%fdupes -s %{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
|