Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.2
jakarta-commons-lang
jakarta-commons-lang.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File jakarta-commons-lang.spec of Package jakarta-commons-lang
# # spec file for package jakarta-commons-lang (Version 2.4) # # Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2000-2009, 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 with() %{expand:%%{?with_%{1}:1}%%{!?with_%{1}:0}} %define without() %{expand:%%{?with_%{1}:0}%%{!?with_%{1}:1}} %define bcond_with() %{expand:%%{?_with_%{1}:%%global with_%{1} 1}} %define bcond_without() %{expand:%%{!?_without_%{1}:%%global with_%{1} 1}} %define repodir %{_javadir}/repository.jboss.com/apache-lang/%{version}-brew %define repodirlib %{repodir}/lib %define repodirres %{repodir}/resources %define repodirsrc %{repodir}/src %define base_name lang %define short_name commons-%{base_name} %define section free Name: jakarta-%{short_name} Version: 2.4 Release: 1 Summary: Jakarta Commons Lang Package License: Apache-2.0 Group: Development/Libraries/Java Url: http://jakarta.apache.org/commons/lang Source0: http://archive.apache.org/dist/jakarta/commons/lang/source/commons-lang-2.4-src.tar.gz Source1: jakarta-commons-lang-component-info.xml Patch0: jakarta-commons-lang-build.patch Requires(post): jpackage-utils Requires(postun): jpackage-utils Requires: commons-parent >= 9 BuildRequires: ant BuildRequires: ant-junit BuildRequires: java-javadoc BuildRequires: jpackage-utils BuildRequires: java-devel BuildArch: noarch Provides: %{short_name} = %{version}-%{release} BuildRoot: %{_tmppath}/%{name}-%{version}-build %description The standard Java libraries fail to provide enough methods for manipulation of its core classes. The Commons Lang Component provides these extra methods. The Commons Lang Component provides a host of helper utilities for the java.lang API, notably String manipulation methods, basic numerical methods, object reflection, creation and serialization, and System properties. Additionally it contains an inheritable enum type, an exception structure that supports multiple types of nested-Exceptions and a series of utilities dedicated to help with building methods, such as hashCode, toString and equals. %package javadoc License: Apache-2.0 Summary: Javadoc for %{name} Group: Development/Documentation Requires: java-javadoc %description javadoc Javadoc for %{name}. %prep %setup -q -n %{short_name}-%{version}-src %patch0 -p1 -b .p0 %{__perl} -pi \ -e 's/\r$//g;' \ PROPOSAL.html LICENSE.txt NOTICE.txt RELEASE-NOTES.txt %build export OPT_JAR_LIST=`%{__cat} %{_sysconfdir}/ant.d/junit` export CLASSPATH= %{ant} \ -Dcompile.source=1.4 \ -Djunit.jar=$(build-classpath junit) \ -Dfinal.name=%{short_name} \ -Djdk.javadoc=%{_javadocdir}/java \ test dist %install # jars %{__mkdir_p} %{buildroot}%{_javadir} %{__cp} -p %{short_name}/%{short_name}/%{short_name}.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar (cd %{buildroot}%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed "s|jakarta-||g"`; done) (cd %{buildroot}%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done) # pom %{__mkdir_p} %{buildroot}%{_datadir}/maven2/poms %{__cp} -p pom.xml %{buildroot}%{_datadir}/maven2/poms/JPP-%{name}.pom %add_to_maven_depmap commons-lang commons-lang %{version} JPP %{name} # javadoc %{__mkdir_p} %{buildroot}%{_javadocdir}/%{name}-%{version} %{__cp} -pr %{short_name}/%{short_name}/docs/api/* %{buildroot}%{_javadocdir}/%{name}-%{version}/ %{__ln_s} %{name}-%{version} %{buildroot}%{_javadocdir}/%{name} %{__ln_s} %{name}-%{version} %{buildroot}%{_javadocdir}/%{short_name}-%{version} %{__ln_s} %{short_name}-%{version} %{buildroot}%{_javadocdir}/%{short_name} %clean %{__rm} -rf %{buildroot} %post %update_maven_depmap %postun %update_maven_depmap %files %defattr(0644,root,root,0755) %doc PROPOSAL.html LICENSE.txt NOTICE.txt RELEASE-NOTES.txt %{_javadir}/%{name}-%{version}.jar %{_javadir}/%{name}.jar %{_javadir}/%{short_name}-%{version}.jar %{_javadir}/%{short_name}.jar %{_datadir}/maven2/poms/JPP-%{name}.pom %{_mavendepmapfragdir}/%{name} %files javadoc %defattr(0644,root,root,0755) %{_javadocdir}/%{name}-%{version} %{_javadocdir}/%{name} %{_javadocdir}/%{short_name}-%{version} %{_javadocdir}/%{short_name} %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