!5 Update to version 1.9.10

From: @wang--ge 
Reviewed-by: @cherry530 
Signed-off-by: @cherry530
This commit is contained in:
openeuler-ci-bot 2024-01-24 03:06:09 +00:00 committed by Gitee
commit 77ae9adb06
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 11 additions and 24 deletions

Binary file not shown.

Binary file not shown.

View File

@ -1,10 +1,10 @@
Name: mimepull
Version: 1.9.6
Release: 3
Version: 1.9.10
Release: 1
Summary: Streaming API to access attachments from a MIME message
License: CDDL-1.1 and GPLv2 with exceptions
URL: http://mimepull.java.net
Source0: https://github.com/javaee/metro-mimepull/archive/mimepull-1.9.6.tar.gz
Source0: https://github.com/javaee/metro-mimepull/archive/%{version}/metro-mimepull-%{version}.tar.gz
BuildArch: noarch
BuildRequires: maven-local mvn(junit:junit) mvn(net.java:jvnet-parent:pom:)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
@ -24,7 +24,7 @@ Summary: Javadoc for %{name}
This package contains the API documentation for %{name}.
%prep
%autosetup -n metro-mimepull-mimepull-%{version} -p1
%autosetup -n metro-mimepull-%{version} -p1
%pom_remove_plugin :cobertura-maven-plugin
%pom_remove_plugin :findbugs-maven-plugin
%pom_remove_plugin :glassfish-copyright-maven-plugin
@ -35,28 +35,12 @@ This package contains the API documentation for %{name}.
%pom_remove_dep org.tmatesoft.svnkit:svnkit
%pom_xpath_remove pom:providerImplementations
%pom_remove_plugin :maven-enforcer-plugin
%pom_add_plugin org.apache.maven.plugins:maven-enforcer-plugin:1.0.1 . '
<executions>
<execution>
<id>enforce-versions</id>
<goals>
<goal>enforce</goal>
</goals>
</execution>
</executions>
<configuration>
<rules>
<requireJavaVersion>
<version>[1.7,)</version>
</requireJavaVersion>
<requireMavenVersion>
<version>[3.0.3,)</version>
</requireMavenVersion>
<DependencyConvergence/>
</rules>
</configuration>'
iconv -f iso8859-1 -t utf-8 LICENSE > LICENSE.conv && mv -f LICENSE.conv LICENSE
sed -i 's/\r//' LICENSE
sed -i '/<release>7/d' pom.xml
sed -i '/<release>9/,+1d;:go;1,1!{P;N;D};N;bgo' pom.xml
sed -i '$d' pom.xml
rm -rf src/main/java/module-info.java
%build
%mvn_build -b
@ -71,6 +55,9 @@ sed -i 's/\r//' LICENSE
%license LICENSE
%changelog
* Wed Jan 24 2024 Ge Wang <wang__ge@126.com> - 1.9.10-1
- Update to version 1.9.10
* Fri Aug 18 2023 Ge Wang <wang__ge@126.com> - 1.9.6-3
- Fix build failure due to buildnumber-maven-plugin updated