Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.1:Update
jakarta-commons-logging
jakarta-commons-logging.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File jakarta-commons-logging.spec of Package jakarta-commons-logging
# # spec file for package jakarta-commons-logging # # Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # # 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/ # # norootforbuild # icecream 0 Name: jakarta-commons-logging BuildRequires: ant java2-devel-packages junit log4j-mini xml-commons-apis %define base_name logging %define short_name commons-%{base_name} %define name jakarta-%{short_name} %define section free Version: 1.0.4 Release: 324 Summary: Jakarta Commons Logging Package License: The Apache Software License Group: Development/Libraries/Java Url: http://jakarta.apache.org/commons/logging/ Source0: http://www.apache.org/dist/jakarta/commons/logging/source/commons-logging-1.0.4-src.tar.gz Patch: %{name}-java14compat.patch BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build %description The commons-logging package provides a simple, component oriented interface (org.apache.commons.logging.Log) together with wrappers for logging systems. The users can choose at runtime which system they want to use. In addition, a small number of basic implementations are provided to allow users to use the package independently. commons-logging was heavily influenced by Avalon's Logkit and Log4J. The commons-logging abstraction is meant to minimize the differences between the two and to allow a developer to not tie himself to a particular logging implementation. %package javadoc License: The Apache Software License PreReq: coreutils Summary: Javadoc for jakarta-commons-logging Group: Development/Libraries/Java %description javadoc The commons-logging package provides a simple, component oriented interface (org.apache.commons.logging.Log) together with wrappers for logging systems. The users can choose at runtime which system they want to use. In addition, a small number of basic implementations are provided to allow users to use the package standalone. commons-logging was heavily influenced by Avalon's Logkit and Log4J. The commons-logging abstraction is meant to minimize the differences between the two, and to allow a developer to not tie himself to a particular logging implementation. This package contains the javadoc documentation for the Jakarta Commons Logging Package. %prep %setup -q -n %{short_name}-%{version}-src %patch # ----------------------------------------------------------------------------- %build cat > build.properties <<EOBM junit.jar=$(build-classpath junit) log4j.jar=$(build-classpath log4j) log4j12.jar=$(build-classpath log4j) #logkit.jar=$(build-classpath avalon-logkit) #avalon-framework.jar=$(build-classpath avalon-framework) EOBM ant compile.tests dist ant test # ----------------------------------------------------------------------------- %install # jars install -d -m 755 $RPM_BUILD_ROOT%{_javadir} install -p -m 644 dist/%{short_name}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar install -p -m 644 dist/%{short_name}-api.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-api-%{version}.jar (cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed "s|jakarta-||g"`; done) (cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done) # javadoc install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} cp -pr dist/docs/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} # ----------------------------------------------------------------------------- %clean rm -rf $RPM_BUILD_ROOT # ----------------------------------------------------------------------------- %post javadoc rm -f %{_javadocdir}/%{name} ln -s %{name}-%{version} %{_javadocdir}/%{name} %postun javadoc if [ "$1" = "0" ]; then rm -f %{_javadocdir}/%{name} fi # ----------------------------------------------------------------------------- %files %defattr(0644,root,root,0755) %doc PROPOSAL.html STATUS.html LICENSE.txt RELEASE-NOTES.txt %{_javadir}/* %files javadoc %defattr(0644,root,root,0755) %{_javadocdir}/%{name}-%{version} # ----------------------------------------------------------------------------- %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