2012-04-02 15:27:15 +02:00
|
|
|
#
|
|
|
|
# spec file for package apache-commons-beanutils
|
|
|
|
#
|
2024-02-20 12:53:41 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2012-04-02 15:27:15 +02:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2018-09-21 09:44:37 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2012-04-02 15:27:15 +02:00
|
|
|
#
|
|
|
|
|
2014-07-07 17:02:20 +02:00
|
|
|
|
2012-04-02 15:27:15 +02:00
|
|
|
%define base_name beanutils
|
|
|
|
%define short_name commons-%{base_name}
|
|
|
|
Name: apache-commons-beanutils
|
2019-08-22 08:45:06 +02:00
|
|
|
Version: 1.9.4
|
2012-04-02 15:27:15 +02:00
|
|
|
Release: 0
|
2014-07-07 17:02:20 +02:00
|
|
|
Summary: Utility methods for accessing and modifying the properties of JavaBeans
|
2012-04-02 15:27:15 +02:00
|
|
|
License: Apache-2.0
|
2019-10-03 10:54:56 +02:00
|
|
|
URL: https://commons.apache.org/beanutils
|
2018-09-21 09:44:37 +02:00
|
|
|
Source0: http://www.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz
|
|
|
|
Source1: http://www.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz.asc
|
2017-09-14 11:26:17 +02:00
|
|
|
Patch0: jdk9.patch
|
2019-08-22 08:45:06 +02:00
|
|
|
Patch1: apache-commons-beanutils-fix-build-version.patch
|
2012-04-02 15:27:15 +02:00
|
|
|
BuildRequires: ant
|
2012-04-02 15:46:05 +02:00
|
|
|
BuildRequires: commons-collections
|
|
|
|
BuildRequires: commons-logging
|
2018-05-15 08:06:42 +02:00
|
|
|
BuildRequires: fdupes
|
2023-09-29 15:12:14 +02:00
|
|
|
BuildRequires: javapackages-local >= 6
|
2012-04-02 15:27:15 +02:00
|
|
|
BuildRequires: xml-commons-apis
|
|
|
|
Provides: %{short_name} = %{version}-%{release}
|
|
|
|
Obsoletes: %{short_name} < %{version}-%{release}
|
|
|
|
Provides: jakarta-%{short_name} = %{version}-%{release}
|
|
|
|
Obsoletes: jakarta-%{short_name} < %{version}-%{release}
|
2014-07-08 13:36:09 +02:00
|
|
|
BuildArch: noarch
|
2012-04-02 15:27:15 +02:00
|
|
|
|
|
|
|
%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
|
|
|
|
Summary: Javadoc for jakarta-commons-beanutils
|
|
|
|
|
|
|
|
%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
|
2024-02-20 12:53:41 +01:00
|
|
|
%autosetup -p1 -n %{short_name}-%{version}-src
|
2024-02-22 08:14:58 +01:00
|
|
|
|
|
|
|
# The previous empty line needs to be maintained for sle12 compatibility
|
2012-04-02 15:27:15 +02:00
|
|
|
sed -i 's/\r//' *.txt
|
2014-07-07 17:02:20 +02:00
|
|
|
# bug in ant build
|
|
|
|
touch README.txt
|
2012-04-02 15:27:15 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
export CLASSPATH=%(build-classpath commons-collections commons-logging)
|
2023-09-29 15:12:14 +02:00
|
|
|
%{ant} -Dbuild.sysclasspath=first dist
|
2012-04-02 15:27:15 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
# jars
|
2014-07-08 13:36:09 +02:00
|
|
|
install -d -m 755 %{buildroot}%{_javadir}
|
2023-09-29 15:12:14 +02:00
|
|
|
install -m 644 dist/%{short_name}-%{version}.jar %{buildroot}%{_javadir}/%{short_name}.jar
|
|
|
|
ln -sf %{short_name}.jar %{buildroot}%{_javadir}/%{name}.jar
|
2012-04-02 15:27:15 +02:00
|
|
|
|
2018-10-23 19:31:05 +02:00
|
|
|
# poms
|
2014-07-08 13:36:09 +02:00
|
|
|
install -d -m 755 %{buildroot}%{_mavenpomdir}
|
2023-09-29 15:12:14 +02:00
|
|
|
%{mvn_install_pom} pom.xml %{buildroot}%{_mavenpomdir}/%{short_name}.pom
|
|
|
|
%add_maven_depmap %{short_name}.pom %{short_name}.jar -a "%{short_name}:%{short_name}-core,%{short_name}:%{short_name}-bean-collections"
|
2012-04-02 15:27:15 +02:00
|
|
|
|
|
|
|
# javadoc
|
2014-07-08 13:36:09 +02:00
|
|
|
install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
|
|
|
|
cp -pr dist/docs/api/* %{buildroot}%{_javadocdir}/%{name}
|
2018-05-15 08:06:42 +02:00
|
|
|
%fdupes -s %{buildroot}%{_javadocdir}/%{name}
|
2012-04-02 15:27:15 +02:00
|
|
|
|
2023-09-29 15:12:14 +02:00
|
|
|
%files -f .mfiles
|
|
|
|
%{_javadir}/%{name}.jar
|
|
|
|
%license LICENSE.txt NOTICE.txt
|
|
|
|
%doc RELEASE-NOTES.txt
|
2012-04-02 15:27:15 +02:00
|
|
|
|
|
|
|
%files javadoc
|
|
|
|
%{_javadocdir}/%{name}
|
|
|
|
|
|
|
|
%changelog
|