Update to 2.2
This commit is contained in:
parent
89d91368e9
commit
ec2d58a4db
Binary file not shown.
BIN
unit-api-2.2.tar.gz
Normal file
BIN
unit-api-2.2.tar.gz
Normal file
Binary file not shown.
@ -1,12 +1,16 @@
|
|||||||
Name: unit-api
|
Name: unit-api
|
||||||
Version: 1.0
|
Version: 2.2
|
||||||
Release: 6
|
Release: 1
|
||||||
Summary: JSR 363 - Units of Measurement API
|
Summary: JSR 363 - Units of Measurement API
|
||||||
License: BSD
|
License: BSD
|
||||||
URL: http://unitsofmeasurement.github.io/
|
URL: http://unitsofmeasurement.github.io/
|
||||||
Source0: https://github.com/unitsofmeasurement/unit-api/archive/%{version}/unit-api-%{version}.tar.gz
|
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:)
|
BuildRequires: maven-local mvn(junit:junit) mvn(org.apache.felix:maven-bundle-plugin) mvn(org.sonatype.oss:oss-parent:pom:)
|
||||||
|
BuildRequires: mvn(tech.uom:uom-parent:pom:) mvn(org.apache.maven.plugins:maven-install-plugin) mvn(org.apache.maven.plugins:maven-antrun-plugin)
|
||||||
|
BuildRequires: mvn(org.junit.jupiter:junit-jupiter-api) mvn(javax.inject:javax.inject) mvn(org.apache.maven.surefire:surefire-junit-platform)
|
||||||
|
BuildRequires: java-11-openjdk-devel
|
||||||
|
Requires: java-11-openjdk
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -27,16 +31,17 @@ This package contains javadoc for unit-api.
|
|||||||
find . -name "*.class" -print -delete
|
find . -name "*.class" -print -delete
|
||||||
find . -name "*.jar" -print -delete
|
find . -name "*.jar" -print -delete
|
||||||
|
|
||||||
|
sed -i 's/jakarta.inject/javax.inject/' src/test/java/javax/measure/spi/ServiceProviderTest.java
|
||||||
%pom_remove_plugin :coveralls-maven-plugin
|
%pom_remove_plugin :coveralls-maven-plugin
|
||||||
%pom_remove_plugin :findbugs-maven-plugin
|
|
||||||
%pom_remove_plugin :formatter-maven-plugin
|
%pom_remove_plugin :formatter-maven-plugin
|
||||||
%pom_remove_plugin :jacoco-maven-plugin
|
%pom_remove_plugin :jacoco-maven-plugin
|
||||||
%pom_remove_plugin :license-maven-plugin
|
%pom_remove_plugin :license-maven-plugin
|
||||||
%pom_remove_plugin :maven-checkstyle-plugin
|
|
||||||
%pom_remove_plugin :maven-javadoc-plugin
|
%pom_remove_plugin :maven-javadoc-plugin
|
||||||
%pom_remove_plugin :maven-pmd-plugin
|
%pom_remove_plugin :maven-pmd-plugin
|
||||||
%pom_remove_plugin :maven-site-plugin
|
%pom_remove_plugin :maven-site-plugin
|
||||||
%pom_remove_plugin :maven-source-plugin
|
%pom_remove_plugin :maven-source-plugin
|
||||||
|
%pom_remove_dep :jakarta.inject-api
|
||||||
|
%pom_add_dep javax.inject:javax.inject
|
||||||
|
|
||||||
%pom_remove_plugin :maven-jar-plugin
|
%pom_remove_plugin :maven-jar-plugin
|
||||||
%pom_add_plugin org.apache.maven.plugins:maven-jar-plugin:'${maven.jar.version}' . "
|
%pom_add_plugin org.apache.maven.plugins:maven-jar-plugin:'${maven.jar.version}' . "
|
||||||
@ -47,44 +52,28 @@ find . -name "*.jar" -print -delete
|
|||||||
</goals>
|
</goals>
|
||||||
</execution>
|
</execution>
|
||||||
</executions>"
|
</executions>"
|
||||||
%pom_remove_plugin :maven-bundle-plugin
|
|
||||||
%pom_add_plugin org.apache.felix:maven-bundle-plugin:'${felix.version}' . "
|
|
||||||
<extensions>true</extensions>
|
|
||||||
<configuration>
|
|
||||||
<instructions>
|
|
||||||
<Specification-Title>\${project.name}</Specification-Title>
|
|
||||||
<Specification-Version>\${project.version}</Specification-Version>
|
|
||||||
<Specification-Vendor>\${project.organization.name}</Specification-Vendor>
|
|
||||||
<Implementation-Vendor>Unit-API contributors</Implementation-Vendor>
|
|
||||||
<Implementation-URL>\${project.organization.url}</Implementation-URL>
|
|
||||||
</instructions>
|
|
||||||
</configuration>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<id>bundle-manifest</id>
|
|
||||||
<phase>process-classes</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>manifest</goal>
|
|
||||||
</goals>
|
|
||||||
</execution>
|
|
||||||
</executions>"
|
|
||||||
|
|
||||||
%mvn_file : unit-api
|
%mvn_file : unit-api
|
||||||
%mvn_file :unit-api:tests: unit-api-tests
|
%mvn_file :unit-api:tests: unit-api-tests
|
||||||
%mvn_package :unit-api:tests: unit-api
|
%mvn_package :unit-api:tests: unit-api
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
java11_version=`rpm -qa | grep java-11-openjdk-11`
|
||||||
|
export JAVA_HOME=/usr/lib/jvm/$java11_version
|
||||||
%mvn_build
|
%mvn_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%mvn_install
|
%mvn_install
|
||||||
|
|
||||||
%files -f .mfiles
|
%files -f .mfiles
|
||||||
%license LICENSE.txt
|
%license LICENSE
|
||||||
|
|
||||||
%files help -f .mfiles-javadoc
|
%files help -f .mfiles-javadoc
|
||||||
%doc README.md
|
%doc README.md
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Aug 25 2023 wangkai <13474090681@163.com> - 2.2-1
|
||||||
|
- Update to 2.2
|
||||||
|
|
||||||
* Wed Apr 15 2020 zhangtao <zhangtao221@huawei.com> - 1.0-6
|
* Wed Apr 15 2020 zhangtao <zhangtao221@huawei.com> - 1.0-6
|
||||||
- Package init
|
- Package init
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user