%global namedreltag .Final %global namedversion %{version}%{?namedreltag} Name: jboss-classfilewriter Version: 1.1.2 Release: 1 Summary: JBoss Class File Writer License: ASL 2.0 URL: https://github.com/jbossas/jboss-classfilewriter Source0: https://github.com/jbossas/jboss-classfilewriter/archive/%{namedversion}.tar.gz Source1: http://www.apache.org/licenses/LICENSE-2.0.txt BuildArch: noarch BuildRequires: maven-local mvn(junit:junit) mvn(org.apache.felix:maven-bundle-plugin) BuildRequires: mvn(org.jboss:jboss-parent:pom:) %description This package contains JBoss Class File Writer %package help Summary: Javadoc for %{name} Provides: %{name}-javadoc = %{version}-%{release} Obsoletes: %{name}-javadoc < %{version}-%{release} %description help This package contains the API documentation for %{name}. %prep %setup -q -n %{name}-%{namedversion} cp -p %{SOURCE1} LICENSE sed -i 's/\r//' LICENSE %build %mvn_build %install %mvn_install %files -f .mfiles %license LICENSE %files help -f .mfiles-javadoc %license LICENSE %changelog * Mon Aug 24 2020 huanghaitao - 1.1.2-1 - package init