apache-commons-validator/apache-commons-validator.spec

65 lines
2.4 KiB
RPMSpec
Raw Permalink Normal View History

2020-08-19 13:55:27 +08:00
%global short_name commons-validator
Name: apache-%{short_name}
2023-12-12 15:54:02 +08:00
Version: 1.7
Release: 1
2020-08-19 13:55:27 +08:00
Summary: Apache Commons Validator
License: ASL 2.0
URL: http://commons.apache.org/validator/
2023-12-12 15:54:02 +08:00
Source0: http://archive.apache.org/dist/commons/validator/source/commons-validator-1.7-src.tar.gz
2020-08-19 13:55:27 +08:00
BuildArch: noarch
BuildRequires: maven-local mvn(commons-beanutils:commons-beanutils)
BuildRequires: mvn(commons-collections:commons-collections)
BuildRequires: mvn(commons-digester:commons-digester) mvn(commons-logging:commons-logging)
BuildRequires: mvn(junit:junit) mvn(org.apache.commons:commons-parent:pom:)
BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin)
2023-12-12 15:54:02 +08:00
BuildRequires: mvn(org.apache.commons:commons-csv)
2020-08-19 13:55:27 +08:00
%description
A common issue when receiving data either electronically or from user input is
verifying the integrity of the data. This work is repetitive and becomes even
more complicated when different sets of validation rules need to be applied to
the same set of data based on locale for example. Error messages may also vary
by locale. This package attempts to address some of these issues and speed
development and maintenance of validation rules.
%package javadoc
Summary: Javadoc for %{name}
%description javadoc
This package contains the API documentation for %{name}.
%prep
%setup -q -n %{short_name}-%{version}-src
sed -i 's/\r//' LICENSE.txt
sed -i 's/\r//' RELEASE-NOTES.txt
sed -i 's/\r//' NOTICE.txt
2023-12-12 15:54:02 +08:00
sed -i 's/${commons.checkstyle-plugin.version}/3.0.0/g' pom.xml
%pom_remove_plugin com.github.spotbugs:spotbugs-maven-plugin
%pom_remove_dep org.bitstrings.test:junit-clptr
rm -rf src/test/java/org/apache/commons/validator/routines/DomainValidatorStartupTest.java
2020-08-19 13:55:27 +08:00
%mvn_alias "%{short_name}:%{short_name}" "org.apache.commons:%{short_name}"
%mvn_file :commons-validator %{short_name} %{name}
%build
%mvn_build
%install
%mvn_install
%files -f .mfiles
%doc LICENSE.txt NOTICE.txt RELEASE-NOTES.txt
%files javadoc -f .mfiles-javadoc
%doc LICENSE.txt NOTICE.txt
%changelog
2023-12-12 15:54:02 +08:00
* Tue Dec 12 2023 Ge Wang <wang__Ge@126.com> - 1.7-1
- Update to version 1.7
* Tue Nov 15 2022 caodongxia <caodongxia@h-partners.com> - 1.5.0-3
- Modify invalid source0
2020-09-15 16:04:08 +08:00
* Mon Sep 14 2020 shaoqiang kang <kangshaoqiang1@huawei.com> - 1.5.0-2
- Modify source
2020-08-19 13:55:27 +08:00
* Tue Aug 4 2020 yanan li <liyanan032@huawei.com> - 1.5.0-1
- Package init