%global namedreltag .Final %global namedversion %{version}%{?namedreltag} Name: jboss-jms-2.0-api Version: 1.0.0 Release: 1 Summary: JBoss JMS API 2.0 Spec License: CDDL or GPLv2 with exceptions Url: http://www.jboss.org Source0: https://github.com/jboss/jboss-jms-api_spec/archive/jboss-jms-api_2.0_spec-%{namedversion}.tar.gz Source1: http://repository.jboss.org/licenses/cddl.txt BuildRequires: maven-local mvn(org.apache.felix:maven-bundle-plugin) BuildRequires: mvn(org.jboss:jboss-parent:pom:) BuildArch: noarch %description The Java Messaging Service 2.0 API classes %package javadoc Summary: Javadocs for %{name} %description javadoc This package contains the API documentation for %{name}. %prep %setup -q -n jboss-jms-api_spec-jboss-jms-api_2.0_spec-%{namedversion} %pom_remove_plugin :maven-source-plugin cp %{SOURCE1} . sed -i "s,59 Temple Place,51 Franklin Street,;s,Suite 330,Fifth Floor,;s,02111-1307,02110-1301," LICENSE %build %mvn_build %install %mvn_install %files -f .mfiles %dir %{_javadir}/%{name} %doc README %license LICENSE cddl.txt %files javadoc -f .mfiles-javadoc %license LICENSE cddl.txt %changelog * Thu Jul 30 2020 yaokai - 1.0.0-1 - package init