!1 Package init

Merge pull request !1 from openeuler-compute/init
This commit is contained in:
openeuler-ci-bot 2019-12-17 16:47:09 +08:00 committed by Gitee
commit 01d78e5d53
2 changed files with 47 additions and 0 deletions

47
geronimo-validation.spec Normal file
View File

@ -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" "<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
* Tue Dec 10 2019 mengxian <mengxian@huawei.com> - 1.1-20
- Package init

Binary file not shown.