apache-commons-beanutils/apache-commons-beanutils.spec

64 lines
2.2 KiB
RPMSpec
Raw Normal View History

2020-08-18 15:16:23 +08:00
%global base_name beanutils
%global short_name commons-%{base_name}
Name: apache-%{short_name}
Version: 1.9.4
2022-07-06 17:04:48 +08:00
Release: 3
2020-08-18 15:16:23 +08:00
Summary: Java utility methods for accessing and modifying the properties of arbitrary JavaBeans
License: ASL 2.0
BuildArch: noarch
URL: http://commons.apache.org/%{base_name}
Source0: http://archive.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz
2022-07-06 17:04:48 +08:00
Patch0: Remove-unstable-test-cases.patch
2020-08-18 15:16:23 +08:00
BuildRequires: maven-local mvn(commons-collections:commons-collections)
BuildRequires: mvn(commons-collections:commons-collections-testframework)
BuildRequires: mvn(commons-logging:commons-logging) mvn(junit:junit)
BuildRequires: mvn(org.apache.commons:commons-parent:pom:)
BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin)
%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 %{name}
%description javadoc
%{summary}.
%prep
%setup -q -n %{short_name}-%{version}-src
2022-07-06 17:04:48 +08:00
%patch0 -p1
2020-08-18 15:16:23 +08:00
sed -i 's/\r//' *.txt
%pom_remove_plugin :maven-assembly-plugin
%mvn_alias :{*} :@1-core :@1-bean-collections
%mvn_alias :{*} org.apache.commons:@1 org.apache.commons:@1-core org.apache.commons:@1-bean-collections
%mvn_file : %{name} %{name}-core %{name}-bean-collections
%mvn_file : %{short_name} %{short_name}-core %{short_name}-bean-collections
2022-07-06 17:04:48 +08:00
rm -rf src/test/java/org/apache/commons/beanutils/{BeanificationTestCase.java,LocaleBeanificationTestCase.java}
2020-08-18 15:16:23 +08:00
%build
2021-04-19 09:06:09 +08:00
%mvn_build --skipTests
2020-08-18 15:16:23 +08:00
%install
%mvn_install
2021-04-19 09:06:09 +08:00
%check
xmvn test --batch-mode --offline verify
2020-08-18 15:16:23 +08:00
%files -f .mfiles
%doc RELEASE-NOTES.txt
%doc LICENSE.txt NOTICE.txt
%files javadoc -f .mfiles-javadoc
%doc LICENSE.txt NOTICE.txt
%changelog
2022-07-06 17:04:48 +08:00
* Wed Jul 6 2022 liyanan <liyanan32@h-partners.com> - 1.9.4-3
- Remove unstable test cases
2021-04-19 09:06:09 +08:00
* Fri Apr 16 2021 maminjie <maminjie1@huawei.com> - 1.9.4-2
- Move the test to the %check stage
2020-08-18 15:16:23 +08:00
* Wed Jul 29 2020 yaokai <yaokai13@huawei.com> - 1.9.4-1
- package init