Name: unit-api Version: 1.0 Release: 7 Summary: JSR 363 - Units of Measurement API License: BSD URL: http://unitsofmeasurement.github.io/ Source0: https://github.com/unitsofmeasurement/unit-api/archive/refs/tags/1.0/1.0.tar.gz BuildRequires: maven-local mvn(junit:junit) mvn(org.apache.felix:maven-bundle-plugin) mvn(org.sonatype.oss:oss-parent:pom:) BuildArch: noarch %description The Unit of Measurement API provides a set of java language progranmming interfaces for handling units and quantities.The interfaces provides a layer which separates client code,that would call the API, from library code, which implements the API. %package help Summary: Javadoc for unit-api Provides: unit-api-javadoc = %{version}-%{release} Obsoletes: unit-api-javadoc < %{version}-%{release} %description help This package contains javadoc for unit-api. %prep %autosetup -n unit-api-%{version} -p1 find . -name "*.class" -print -delete find . -name "*.jar" -print -delete %pom_remove_plugin :coveralls-maven-plugin %pom_remove_plugin :findbugs-maven-plugin %pom_remove_plugin :formatter-maven-plugin %pom_remove_plugin :jacoco-maven-plugin %pom_remove_plugin :license-maven-plugin %pom_remove_plugin :maven-checkstyle-plugin %pom_remove_plugin :maven-javadoc-plugin %pom_remove_plugin :maven-pmd-plugin %pom_remove_plugin :maven-site-plugin %pom_remove_plugin :maven-source-plugin %pom_remove_plugin :maven-jar-plugin %pom_add_plugin org.apache.maven.plugins:maven-jar-plugin:'${maven.jar.version}' . " test-jar " %pom_remove_plugin :maven-bundle-plugin %pom_add_plugin org.apache.felix:maven-bundle-plugin:'${felix.version}' . " true \${project.name} \${project.version} \${project.organization.name} Unit-API contributors \${project.organization.url} bundle-manifest process-classes manifest " %mvn_file : unit-api %mvn_file :unit-api:tests: unit-api-tests %mvn_package :unit-api:tests: unit-api %build %mvn_build %install %mvn_install %files -f .mfiles %license LICENSE.txt %files help -f .mfiles-javadoc %doc README.md %changelog * Thu Nov 10 2022 caodongxia - 1.0-7 - Modify invalid source0 * Wed Apr 15 2020 zhangtao - 1.0-6 - Package init