forked from pool/apache-commons-beanutils
118 lines
3.7 KiB
RPMSpec
118 lines
3.7 KiB
RPMSpec
|
#
|
||
|
# spec file for package apache-commons-beanutils
|
||
|
#
|
||
|
# Copyright (c) 2012 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/
|
||
|
#
|
||
|
# icecream 0
|
||
|
|
||
|
%define base_name beanutils
|
||
|
%define short_name commons-%{base_name}
|
||
|
|
||
|
Name: apache-commons-beanutils
|
||
|
Version: 1.8.3
|
||
|
Release: 0
|
||
|
Summary: Jakarta Commons BeanUtils Package
|
||
|
License: Apache-2.0
|
||
|
Group: Development/Libraries/Java
|
||
|
Source0: commons-beanutils-%{version}-src.tar.gz
|
||
|
#Patch: %{name}-java14compat.patch
|
||
|
URL: http://commons.apache.org/beanutils
|
||
|
|
||
|
BuildRequires: ant
|
||
|
BuildRequires: jakarta-commons-collections
|
||
|
BuildRequires: jakarta-commons-logging
|
||
|
BuildRequires: java-devel >= 1.6.0
|
||
|
BuildRequires: xml-commons-apis
|
||
|
|
||
|
Requires: jakarta-commons-collections >= 2.0
|
||
|
Requires: jakarta-commons-logging >= 1.0
|
||
|
|
||
|
BuildArch: noarch
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||
|
|
||
|
Provides: %{short_name} = %{version}-%{release}
|
||
|
Obsoletes: %{short_name} < %{version}-%{release}
|
||
|
Provides: jakarta-%{short_name} = %{version}-%{release}
|
||
|
Obsoletes: jakarta-%{short_name} < %{version}-%{release}
|
||
|
|
||
|
%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
|
||
|
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
|
||
|
sed -i 's/\r//' *.txt
|
||
|
|
||
|
%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}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
|
||
|
|
||
|
# main jar created from these, we install them just for safe measure
|
||
|
install -m 644 dist/%{short_name}-bean-collections-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-bean-collections.jar
|
||
|
install -m 644 dist/%{short_name}-core-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-core.jar
|
||
|
|
||
|
pushd $RPM_BUILD_ROOT%{_javadir}
|
||
|
for jar in *.jar; do
|
||
|
ln -sf ${jar} `echo $jar| sed "s|apache-||g"`
|
||
|
done
|
||
|
popd # come back from javadir
|
||
|
|
||
|
install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}
|
||
|
install -pm 644 pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom
|
||
|
|
||
|
# javadoc
|
||
|
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}
|
||
|
cp -pr dist/docs/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
|
||
|
|
||
|
%clean
|
||
|
rm -rf $RPM_BUILD_ROOT
|
||
|
|
||
|
|
||
|
%files
|
||
|
%defattr(0644,root,root,0755)
|
||
|
%doc *.txt
|
||
|
%{_javadir}/*
|
||
|
%{_mavenpomdir}/JPP-%{name}.pom
|
||
|
# % {_mavendepmapfragdir}/%{name}
|
||
|
|
||
|
%files javadoc
|
||
|
%defattr(0644,root,root,0755)
|
||
|
%{_javadocdir}/%{name}
|
||
|
|
||
|
%changelog
|