diff --git a/unit-api-1.0.tar.gz b/unit-api-1.0.tar.gz new file mode 100644 index 0000000..b40d306 Binary files /dev/null and b/unit-api-1.0.tar.gz differ diff --git a/unit-api.spec b/unit-api.spec new file mode 100644 index 0000000..83d3e89 --- /dev/null +++ b/unit-api.spec @@ -0,0 +1,90 @@ +Name: unit-api +Version: 1.0 +Release: 6 +Summary: JSR 363 - Units of Measurement API +License: BSD +URL: http://unitsofmeasurement.github.io/ +Source0: https://github.com/unitsofmeasurement/unit-api/archive/%{version}/unit-api-%{version}.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 +* Wed Apr 15 2020 zhangtao - 1.0-6 +- Package init