From 244d02f137ac1a4e970ddb3381dee5c1b9cdf074 Mon Sep 17 00:00:00 2001 From: gil Date: Mon, 14 Nov 2016 17:22:36 +0100 Subject: [PATCH] Initial import (#1382995). --- .gitignore | 1 + sources | 1 + unit-api.spec | 114 ++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 116 insertions(+) create mode 100644 unit-api.spec diff --git a/.gitignore b/.gitignore index e69de29..b65e493 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/unit-api-1.0.tar.gz diff --git a/sources b/sources index e69de29..91b25af 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +0bfbd2c216d714974095d3e0a74bba05 unit-api-1.0.tar.gz diff --git a/unit-api.spec b/unit-api.spec new file mode 100644 index 0000000..2483c1c --- /dev/null +++ b/unit-api.spec @@ -0,0 +1,114 @@ +Name: unit-api +Version: 1.0 +Release: 1%{?dist} +Summary: JSR 363 - Units of Measurement API +# JSR-363 has been approved as an official JCP standard (https://jcp.org/en/jsr/results?id=5877) +License: BSD +URL: http://unitsofmeasurement.github.io/ +Source0: https://github.com/unitsofmeasurement/unit-api/archive/%{version}/%{name}-%{version}.tar.gz + +BuildRequires: maven-local +BuildRequires: mvn(junit:junit) +BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) +BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:) + +BuildArch: noarch + +%description +The Unit of Measurement library provides a set of +Java language programming interfaces for handling +units and quantities. The interfaces provide a layer +which separates client code, which would call the +API, from library code, which implements the API. + +The specification contains Interfaces and abstract +classes with methods for unit operations: + +* Checking of unit compatibility +* Expression of a quantity in various units +* Arithmetic operations on units + +%package javadoc +Summary: Javadoc for %{name} + +%description javadoc +This package contains javadoc for %{name}. + +%prep +%setup -q -n %{name}-%{version} +find . -name "*.class" -print -delete +find . -name "*.jar" -print -delete + +# Not available plugins +%pom_remove_plugin :coveralls-maven-plugin +%pom_remove_plugin :findbugs-maven-plugin +%pom_remove_plugin :formatter-maven-plugin +# Useless tasks +%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 + +# Remove duplicate pom entry +%pom_remove_plugin :maven-jar-plugin +%pom_add_plugin org.apache.maven.plugins:maven-jar-plugin:'${maven.jar.version}' . " + + + + test-jar + + +" +# Fix pom entries +%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 : %{name} +%mvn_file :%{name}:tests: %{name}-tests +%mvn_package :%{name}:tests: %{name} + +%build + +%mvn_build + +%install +%mvn_install + +%files -f .mfiles +%doc README.md +%license LICENSE.txt + +%files javadoc -f .mfiles-javadoc +%license LICENSE.txt + +%changelog +* Fri Sep 16 2016 gil cattaneo 1.0-1 +- update to 1.0 + +* Wed Sep 02 2015 gil cattaneo 0.7-1 +- update to 0.7 + +* Sun Oct 20 2013 gil cattaneo 0.6.2-0.1.RC1 +- initial rpm