Search
j0ke.net Open Build Service
>
Projects
>
SUSE
:
Manager
:
1.2
>
jakarta-commons-beanutils
> jakarta-commons-beanutils.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File jakarta-commons-beanutils.spec of Package jakarta-commons-beanutils
# # spec file for package jakarta-commons-beanutils (Version 1.7.0) # # Copyright (c) 2009 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-beanutils BuildRequires: ant jakarta-commons-collections jakarta-commons-logging xml-commons-apis java-1_6_0-openjdk-devel %define base_name beanutils %define short_name commons-%{base_name} %define name jakarta-%{short_name} %define version 1.7.0 %define release 2jpp %define section free Version: 1.7.0 Release: 26.19 Summary: Jakarta Commons BeanUtils Package License: The Apache Software License Group: Development/Libraries/Java Source0: http://www.apache.org/dist/jakarta/commons/beanutils/source/commons-beanutils-1.7.0-src.tar.gz Patch: %{name}-java14compat.patch Url: http://jakarta.apache.org/commons/beanutils/ Requires: jakarta-commons-collections >= 2.0 Requires: jakarta-commons-logging >= 1.0 BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build Provides: %{short_name} Obsoletes: %{short_name} %description The scope of this package is to create a package of Java utility methods for accessing and modifying the properties of arbitrary JavaBeans. No dependencies outside of the JDK are required, so the use of this package is very lightweight. %package javadoc License: The Apache Software License PreReq: coreutils Summary: Javadoc for jakarta-commons-beanutils Group: Development/Libraries/Java %description javadoc The scope of the Jakarta Commons BeanUtils Package is to create a package of Java utility methods for accessing and modifying the properties of arbitrary JavaBeans. No dependencies outside of the JDK are required, so the use of this package is very lightweight. This package contains the javadoc documentation for the Jakarta Commons BeanUtils Package. %prep %setup -n %{short_name}-%{version}-src %patch #cp LICENSE.txt LICENSE # remove all binary libs find . -name "*.jar" -exec rm -f {} \; %build export CLASSPATH=%(build-classpath commons-collections commons-logging) ant -Dbuild.sysclasspath=first dist %install # jars install -d -m 755 $RPM_BUILD_ROOT%{_javadir} install -m 644 dist/%{short_name}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar install -m 644 dist/%{short_name}-core.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-core-%{version}.jar install -m 644 dist/%{short_name}-bean-collections.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-bean-collections-%{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 RELEASE-NOTES.txt LICENSE.txt %{_javadir}/* %files javadoc %defattr(0644,root,root,0755) %{_javadocdir}/%{name}-%{version} %changelog * Mon Sep 25 2006 skh@suse.de - don't use icecream - use source="1.4" and target="1.4" for build with java 1.5 * Wed Jan 25 2006 mls@suse.de - converted neededforbuild to BuildRequires * Wed Jul 27 2005 jsmeix@suse.de - Adjustments in the spec file. * Mon Jul 18 2005 jsmeix@suse.de - Current version 1.7.0 from JPackage.org * Mon Feb 21 2005 skh@suse.de - update to version 1.7.0 - don't use icecream * Thu Sep 16 2004 skh@suse.de - Fix prerequires of javadoc subpackage * Sun Sep 5 2004 skh@suse.de - Initial package created with version 1.6.1 (JPackage 1.5)