Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.2
avalon-logkit
avalon-logkit.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File avalon-logkit.spec of Package avalon-logkit
# # spec file for package avalon-logkit # # Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2000-2005, JPackage Project # All rights reserved. # # 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/ # # %define short_name logkit %define camelcase_short_name LogKit Name: avalon-logkit Version: 2.1 Release: 0 Summary: Java logging toolkit License: Apache-2.0 Group: Development/Libraries/Java Url: http://avalon.apache.org/%{short_name}/ #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 Source0: %{name}-%{version}-src.zip Source1: %{name}-%{version}.pom Patch0: fix-java6-compile.patch Patch1: avalon-logkit-pom-deps.patch Patch2: avalon-logkit-encoding.patch Patch3: fix-java7-compile.patch Requires: avalon-framework >= 4.1.4 #Requires: jdbc-stdext Requires: jms Requires: servlet30 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 BuildRequires: servlet30 BuildRequires: unzip BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build %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 Summary: Javadoc for %{name} Group: Development/Libraries/Java Requires: jpackage-utils %description javadoc API documentation for %{name}. %prep %setup -q %patch0 cp %{SOURCE1} pom.xml %patch1 %patch2 -p1 %patch3 # remove all binary libs find . -name "*.jar" -exec rm -f {} \; %build export CLASSPATH=%(build-classpath \ log4j \ javamail/mailapi \ jms_api \ tomcat-servlet-api \ jdbc-stdext \ avalon-framework \ junit \ ):$PWD/build/classes ant -Dencoding=ISO-8859-1 -Dnoget=true clean jar javadoc \ -lib /usr/share/java # Convert to OSGi bundle #java -jar $(build-classpath aqute-bnd) wrap target/%{name}-%{version}.jar %install # jars install -d -m 755 $RPM_BUILD_ROOT%{_javadir} 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}" # javadoc install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name} cp -pr dist/docs/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name} %files %defattr(0644,root,root,0755) %doc LICENSE.txt NOTICE.txt %{_javadir}/* %{_mavendepmapfragdir}/%{name} %{_mavenpomdir}/JPP-%{name}.pom %files javadoc %defattr(0644,root,root,0755) %doc LICENSE.txt %{_javadocdir}/* %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor