add patch

This commit is contained in:
xiaohuang09 2023-08-31 13:55:11 +08:00
parent 415cf7aea1
commit 19a7f64e31
3 changed files with 7002 additions and 4 deletions

6985
hessian-20230907.patch Normal file

File diff suppressed because it is too large Load Diff

View File

@ -37,6 +37,11 @@
<artifactId>servlet-api</artifactId>
<version>2.5</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>3.2.18.RELEASE</version>
</dependency>
</dependencies>

View File

@ -1,15 +1,18 @@
Name: hessian
Summary: Java implementation of a binary protocol for web services
Version: 4.0.65
Release: 1
Release: 2
Epoch: 0
License: ASL 1.1
URL: http://hessian.caucho.com/
Source0: http://caucho.com/download/%{name}-%{version}-src.jar
Source1: https://repo1.maven.org/maven2/com/caucho/%{name}/%{version}/%{name}-%{version}.pom
Source2: https://opensource.org/licenses/Apache-1.1#/Apache-1.1.html#/Apache-1.1
BuildRequires: maven-local mvn(javax.servlet:javax.servlet-api)
BuildRequires: maven-local mvn(javax.servlet:javax.servlet-api) mvn(org.springframework:spring-web)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
Patch1: %{name}-20230907.patch
BuildArch: noarch
%description
This is the Java implementation of Caucho's Hession binary transport
@ -21,7 +24,8 @@ Summary: API documentation for %{name}
API documentation for %{name}.
%prep
%setup -q -c
%autosetup -c -p1
mkdir src
mv com src/
rm -r META-INF
@ -29,6 +33,7 @@ rm -r src/com/caucho/hessian/test
cp -p %{SOURCE1} pom.xml
cp -p %{SOURCE2} apache.license.html
%pom_change_dep :servlet-api javax.servlet:javax.servlet-api:3.1.0
%pom_change_dep :spring-web org.springframework:spring-web:3.2.18.RELEASE
%pom_remove_plugin :maven-gpg-plugin
%pom_remove_plugin :maven-javadoc-plugin
%pom_remove_plugin :maven-source-plugin
@ -69,6 +74,9 @@ cp -p %{SOURCE2} apache.license.html
%license apache.license.html
%changelog
* Tue Aug 29 2023 Bin Huang <huangbin54@huawei.com> - 0:4.0.65-2
- commit patch
* Mon Aug 21 2023 Bin Huang <huangbin54@huawei.com> - 0:4.0.65-1
- Package update version to 4.0.65