48 lines
1.1 KiB
RPMSpec
48 lines
1.1 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: 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
|
|
|
|
|