%global spec_ver 1.1 %global spec_name geronimo-commonj_%{spec_ver}_spec Name: geronimo-commonj Version: 1.1.0 Release: 1 Summary: CommonJ Specification License: ASL 2.0 URL: http://geronimo.apache.org/ # svn export https://svn.apache.org/repos/asf/geronimo/specs/tags/specs-1.4/geronimo-commonj_1.1_spec geronimo-commonj-1.1.0 # tar cvfJ geronimo-commonj-1.1.0.tar.xz geronimo-commonj-1.1.0 Source: %{name}-%{version}.tar.xz BuildArch: noarch BuildRequires: geronimo-parent-poms maven-local %description Geronimo CommonJ Specification. %package javadoc Summary: Javadoc for %{name} %description javadoc This package contains the API documentation for %{name}. %prep %setup -q %mvn_file :%{spec_name} %{name} %build %mvn_build -- -Dproject.build.sourceEncoding=UTF-8 %install %mvn_install %files -f .mfiles %license LICENSE.txt NOTICE.txt %files javadoc -f .mfiles-javadoc %license LICENSE.txt NOTICE.txt %changelog * Fri Aug 28 2020 wutao - 1.1.0-1 - package init