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
|
|
|
#
|
2012-02-13 14:06:13 +01:00
|
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
|
|
# Copyright (c) 2000-2005, JPackage Project
|
|
|
|
# All rights reserved.
|
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
|
|
|
Requires: avalon-framework >= 4.1.4
|
2012-05-18 10:19:41 +02:00
|
|
|
#Requires: jdbc-stdext
|
2012-02-13 14:06:13 +01:00
|
|
|
Requires: jms
|
2012-06-20 09:16:49 +02:00
|
|
|
Requires: servlet30
|
2012-05-18 10:19:41 +02:00
|
|
|
|
2012-02-13 14:06:13 +01:00
|
|
|
BuildRequires: ant
|
|
|
|
BuildRequires: ant-junit
|
|
|
|
BuildRequires: avalon-framework >= 4.1.4
|
|
|
|
BuildRequires: javamail
|
|
|
|
BuildRequires: jdbc-stdext
|
|
|
|
BuildRequires: jms
|
|
|
|
BuildRequires: jpackage-utils >= 1.5
|
|
|
|
BuildRequires: log4j
|
2012-06-20 09:16:49 +02:00
|
|
|
BuildRequires: servlet30
|
2012-02-13 14:06:13 +01:00
|
|
|
BuildRequires: unzip
|
2012-05-18 10:19:41 +02:00
|
|
|
|
2012-02-13 14:06:13 +01:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
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
|
|
|
|
Requires: jpackage-utils
|
2012-01-03 12:19:03 +01:00
|
|
|
|
|
|
|
%description javadoc
|
|
|
|
API documentation for %{name}.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
%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
|
|
|
|
export CLASSPATH=%(build-classpath \
|
|
|
|
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
|
|
|
jdbc-stdext \
|
|
|
|
avalon-framework \
|
|
|
|
junit \
|
|
|
|
):$PWD/build/classes
|
2012-06-20 09:16:49 +02:00
|
|
|
|
2012-05-18 10:19:41 +02:00
|
|
|
ant -Dencoding=ISO-8859-1 -Dnoget=true clean jar javadoc \
|
2012-01-03 12:19:03 +01:00
|
|
|
-lib /usr/share/java
|
2012-05-18 10:19:41 +02:00
|
|
|
# Convert to OSGi bundle
|
|
|
|
#java -jar $(build-classpath aqute-bnd) wrap target/%{name}-%{version}.jar
|
2012-01-03 12:19:03 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
# jars
|
|
|
|
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
|
2012-05-18 10:19:41 +02:00
|
|
|
install -m 644 target/%{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
|
|
|
|
|
|
|
|
#pom
|
|
|
|
install -d -m 755 $RPM_BUILD_ROOT/%{_mavenpomdir}
|
|
|
|
install -pm 644 pom.xml $RPM_BUILD_ROOT/%{_mavenpomdir}/JPP-%{name}.pom
|
|
|
|
%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
|
2012-05-18 10:19:41 +02:00
|
|
|
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}
|
|
|
|
cp -pr dist/docs/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
|
2012-01-03 12:19:03 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(0644,root,root,0755)
|
|
|
|
%doc LICENSE.txt NOTICE.txt
|
|
|
|
%{_javadir}/*
|
2012-05-18 10:19:41 +02:00
|
|
|
%{_mavendepmapfragdir}/%{name}
|
|
|
|
%{_mavenpomdir}/JPP-%{name}.pom
|
2012-01-03 12:19:03 +01:00
|
|
|
|
|
|
|
%files javadoc
|
|
|
|
%defattr(0644,root,root,0755)
|
|
|
|
%doc LICENSE.txt
|
|
|
|
%{_javadocdir}/*
|
|
|
|
|
|
|
|
%changelog
|