Name: jcommon Version: 1.0.23 Release: 1 Summary: JFree Java utility classes License: LGPLv2+ URL: http://www.jfree.org/jcommon Source: https://github.com/jfree/jcommon/archive/v1.0.23.tar.gz BuildRequires: maven-local maven-plugin-bundle sonatype-oss-parent Requires: java-headless, jpackage-utils BuildArch: noarch %description JCommon is a collection of useful classes used by JFreeChart, JFreeReport and other projects. %package javadoc Summary: Javadoc for jcommon Requires: jcommon = %{version}-%{release} jpackage-utils %description javadoc Javadoc for jcommon. %prep %setup -q find . -name "*.jar" -exec rm -f {} \; MVN_BUNDLE_PLUGIN_EXTRA_XML="true org.jfree.jcommon Fedora Project %{version} <_nouses>true " %pom_remove_plugin :maven-gpg-plugin %pom_remove_plugin :nexus-staging-maven-plugin %pom_remove_plugin :cobertura-maven-plugin %pom_remove_plugin :maven-site-plugin %pom_add_plugin org.apache.felix:maven-bundle-plugin . "$MVN_BUNDLE_PLUGIN_EXTRA_XML" %pom_xpath_set "pom:packaging" "bundle" %build %mvn_build %install %mvn_install %files -f .mfiles %doc LICENSE README.md %files javadoc -f .mfiles-javadoc %changelog * Thu Aug 20 2020 yaokai - 1.0.23-1 - Package init