123 lines
4.2 KiB
RPMSpec
123 lines
4.2 KiB
RPMSpec
|
Name: apache-commons-beanutils
|
||
|
Version: 1.8.3
|
||
|
Release: 2mamba
|
||
|
Summary: Commons Beanutils Package
|
||
|
Group: Development/Libraries/Java
|
||
|
Vendor: openmamba
|
||
|
Distribution: openmamba
|
||
|
Packager: gil <puntogil@libero.it>
|
||
|
URL: http://commons.apache.org/beanutils/
|
||
|
Source: http://apache.panu.it/commons/beanutils/source/commons-beanutils-%{version}-src.tar.gz
|
||
|
License: Apache Software License Version 2.0
|
||
|
BuildRequires: apache-ant
|
||
|
BuildRequires: coreutils
|
||
|
BuildRequires: jakarta-commons-collections
|
||
|
BuildRequires: jakarta-commons-logging
|
||
|
BuildRequires: java-junit3
|
||
|
BuildRequires: jpackage-utils
|
||
|
Requires: jakarta-commons-collections
|
||
|
Requires: jakarta-commons-logging
|
||
|
Requires: jpackage-utils
|
||
|
Provides: apache-commons-beanutils18
|
||
|
Obsoletes: apache-commons-beanutils18
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||
|
|
||
|
%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
|
||
|
Group: Documentation
|
||
|
Summary: Javadoc for %{name}
|
||
|
|
||
|
%description javadoc
|
||
|
Commons Beanutils Package
|
||
|
|
||
|
This package contains javadoc for %{name}.
|
||
|
|
||
|
%prep
|
||
|
|
||
|
%setup -q -n commons-beanutils-%{version}-src
|
||
|
for j in $(find . -name "*.jar"); do
|
||
|
mv $j $j.no
|
||
|
done
|
||
|
%build
|
||
|
export CLASSPATH=$(build-classpath commons-collections commons-logging)
|
||
|
export OPT_JAR_LIST="/opt/java/ant/lib/ant-junit.jar $(build-classpath junit-4.5)"
|
||
|
ant -Dbuild.sysclasspath=first dist
|
||
|
|
||
|
%install
|
||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||
|
|
||
|
mkdir -p %{buildroot}%{_javadir}/beanutils
|
||
|
|
||
|
install -p -m 644 dist/commons-beanutils-%{version}.jar \
|
||
|
%{buildroot}%{_javadir}/beanutils/%{name}-%{version}.jar
|
||
|
install -p -m 644 dist/commons-beanutils-core-%{version}.jar \
|
||
|
%{buildroot}%{_javadir}/beanutils/%{name}-core-%{version}.jar
|
||
|
install -p -m 644 dist/commons-beanutils-bean-collections-%{version}.jar \
|
||
|
%{buildroot}%{_javadir}/beanutils/%{name}-bean-collections-%{version}.jar
|
||
|
|
||
|
(
|
||
|
cd %{buildroot}%{_javadir}/beanutils
|
||
|
for jar in *-%{version}*; do
|
||
|
ln -sf ${jar} `echo $jar| sed "s|apache-||g"`
|
||
|
done
|
||
|
)
|
||
|
|
||
|
(
|
||
|
cd %{buildroot}%{_javadir}/beanutils
|
||
|
for jar in *-%{version}*; do
|
||
|
ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`
|
||
|
done
|
||
|
)
|
||
|
|
||
|
mkdir -p %{buildroot}%{_javadocdir}/%{name}-%{version}
|
||
|
cp -pr dist/docs/api/* %{buildroot}%{_javadocdir}/%{name}-%{version}
|
||
|
ln -s %{name}-%{version} %{buildroot}%{_javadocdir}/%{name}
|
||
|
|
||
|
%clean
|
||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||
|
|
||
|
%files
|
||
|
%defattr(-,root,root)
|
||
|
%dir %{_javadir}/beanutils
|
||
|
%{_javadir}/beanutils/apache-commons-beanutils-%{version}.jar
|
||
|
%{_javadir}/beanutils/apache-commons-beanutils-bean-collections-%{version}.jar
|
||
|
%{_javadir}/beanutils/apache-commons-beanutils-bean-collections.jar
|
||
|
%{_javadir}/beanutils/apache-commons-beanutils-core-%{version}.jar
|
||
|
%{_javadir}/beanutils/apache-commons-beanutils-core.jar
|
||
|
%{_javadir}/beanutils/apache-commons-beanutils.jar
|
||
|
%{_javadir}/beanutils/commons-beanutils-%{version}.jar
|
||
|
%{_javadir}/beanutils/commons-beanutils-bean-collections-%{version}.jar
|
||
|
%{_javadir}/beanutils/commons-beanutils-bean-collections.jar
|
||
|
%{_javadir}/beanutils/commons-beanutils-core-%{version}.jar
|
||
|
%{_javadir}/beanutils/commons-beanutils-core.jar
|
||
|
%{_javadir}/beanutils/commons-beanutils.jar
|
||
|
%doc dist/LICENSE.txt dist/NOTICE.txt
|
||
|
%doc dist/README.txt dist/RELEASE-NOTES.txt
|
||
|
|
||
|
%files javadoc
|
||
|
%defattr(-,root,root)
|
||
|
%{_javadocdir}/%{name}-%{version}
|
||
|
%{_javadocdir}/%{name}
|
||
|
|
||
|
%changelog
|
||
|
* Tue Aug 16 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 1.8.3-2mamba
|
||
|
- obsolete apache-commons-beanutils18
|
||
|
|
||
|
* Tue Apr 27 2010 Automatic Build System <autodist@mambasoft.it> 1.8.3-1mamba
|
||
|
- automatic update by autodist
|
||
|
|
||
|
* Tue Jan 26 2010 Automatic Build System <autodist@mambasoft.it> 1.8.2-1mamba
|
||
|
- automatic update by autodist
|
||
|
|
||
|
* Fri Oct 23 2009 Automatic Build System <autodist@mambasoft.it> 1.8.1-1mamba
|
||
|
- automatic update by autodist
|
||
|
|
||
|
* Sun Apr 12 2009 gil <puntogil@libero.it> 1.8.0-1mamba
|
||
|
- update to 1.8.0
|
||
|
- renamed to legacy apache-commons-beanutils (ex jakarta)
|
||
|
|
||
|
* Fri Mar 06 2009 gil <puntogil@libero.it> 1.7.0-1mamba
|
||
|
- package created by autospec
|