diff --git a/apache-commons-validator.spec b/apache-commons-validator.spec new file mode 100644 index 0000000000000000000000000000000000000000..1959466bfc2f86d71d620f353bf4495b1d5254bd --- /dev/null +++ b/apache-commons-validator.spec @@ -0,0 +1,50 @@ +%global short_name commons-validator +Name: apache-%{short_name} +Version: 1.5.0 +Release: 1 +Summary: Apache Commons Validator +License: ASL 2.0 +URL: http://commons.apache.org/validator/ +Source0: http://www.apache.org/dist/commons/validator/source/%{short_name}-%{version}-src.tar.gz +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) +%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 +%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 +* Tue Aug 4 2020 yanan li - 1.5.0-1 +- Package init diff --git a/apache-commons-validator.yaml b/apache-commons-validator.yaml new file mode 100644 index 0000000000000000000000000000000000000000..13830eb80616cd0a94315679d3ac06214ba5cc56 --- /dev/null +++ b/apache-commons-validator.yaml @@ -0,0 +1,5 @@ +git_url: https://github.com/apache/commons-validator.git +version_control: github +src_repo: apache/commons-validator +tag_prefix: "VALIDATOR_" +seperator: "_" diff --git a/commons-validator-1.5.0-src.tar.gz b/commons-validator-1.5.0-src.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..4508a141384d93951095d388c6cb174343ebb5df Binary files /dev/null and b/commons-validator-1.5.0-src.tar.gz differ