diff --git a/geronimo-validation.spec b/geronimo-validation.spec new file mode 100644 index 0000000..9c5a646 --- /dev/null +++ b/geronimo-validation.spec @@ -0,0 +1,47 @@ +%global spec_name_ver geronimo-validation_1.0_spec-%{version} +%global pom_prefix pom:project/pom + +Name: geronimo-validation +Version: 1.1 +Release: 20 +Summary: Geronimo implementation of JSR 303 +License: ASL 2.0 +URL: http://geronimo.apache.org/ +Source0: %{spec_name_ver}.tar.xz +BuildArch: noarch +BuildRequires: maven-local geronimo-parent-poms geronimo-osgi-support + +%description +This is the Geronimo implementation of JSR-303, the Bean +Validation API specification. + +%package_help + + +%prep +%autosetup -n %{spec_name_ver} +%pom_xpath_set "%{pom_prefix}:parent/pom:groupId" org.apache.geronimo.specs +%pom_xpath_set "%{pom_prefix}:parent/pom:artifactId" specs +%pom_xpath_set "%{pom_prefix}:parent/pom:version" 1.4 +%pom_xpath_inject "%{pom_prefix}:parent" "../pom.xml" +%pom_xpath_set "%{pom_prefix}:packaging" jar + +%mvn_file : %{name} + +%build + +%mvn_build -- -Dproject.build.sourceEncoding=UTF-8 + +%install +%mvn_install + +%files -f .mfiles +%license LICENSE NOTICE + +%files help -f .mfiles-javadoc + +%changelog +* Tue Dec 10 2019 mengxian - 1.1-20 +- Package init + + diff --git a/geronimo-validation_1.0_spec-1.1.tar.xz b/geronimo-validation_1.0_spec-1.1.tar.xz new file mode 100644 index 0000000..94fd01a Binary files /dev/null and b/geronimo-validation_1.0_spec-1.1.tar.xz differ