%global namedreltag .Final %global namedversion %{version}%{?namedreltag} Name: jboss-classfilewriter Version: 1.3.0 Release: 1 Summary: JBoss Class File Writer License: Apache-2.0 URL: https://github.com/jbossas/jboss-classfilewriter Source0: https://github.com/jbossas/jboss-classfilewriter/archive/refs/tags/%{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:) BuildRequires: mvn(org.apache.maven.plugins:maven-invoker-plugin) BuildRequires: java-11-openjdk-devel Requires: java-11-openjdk Requires: javapackages-tools %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 %autosetup -n %{name}-%{namedversion} -p1 cp -p %{SOURCE1} LICENSE sed -i 's/\r//' LICENSE %build export JAVA_HOME=%{_jvmdir}/java-11-openjdk export CFLAGS="${RPM_OPT_FLAGS}" export CXXFLAGS="${RPM_OPT_FLAGS}" %mvn_build %install %mvn_install %files -f .mfiles %license LICENSE %files help -f .mfiles-javadoc %license LICENSE %changelog * Mon Aug 21 2023 yaoxin - 1.3.0-1 - Update to 1.3.0 * Thu May 19 2022 Ge Wang - 1.2.5-1 - upgrade to version 1.2.5 * Mon Aug 24 2020 huanghaitao - 1.1.2-1 - package init