geronimo-validation/geronimo-validation.spec
2022-11-16 15:12:11 +08:00

51 lines
1.3 KiB
RPMSpec

%global spec_name_ver geronimo-validation_1.0_spec-%{version}
%global pom_prefix pom:project/pom
Name: geronimo-validation
Version: 1.1
Release: 21
Summary: Geronimo implementation of JSR 303
License: ASL 2.0
URL: http://geronimo.apache.org/
Source0: https://github.com/apache/geronimo-specs/archive/refs/tags/geronimo-validation_1.0_spec-%{version}.tar.gz
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 geronimo-specs-%{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" "<relativePath>../pom.xml</relativePath>"
%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
* Thu Nov 10 2022 liyanan <liyanan32@h-partners.com> - 1.1-21
- Change source
* Tue Dec 10 2019 mengxian <mengxian@huawei.com> - 1.1-20
- Package init