!1 Add package hessian

Merge pull request !1 from 王歌/master
This commit is contained in:
openeuler-ci-bot 2020-09-02 11:17:07 +08:00 committed by Gitee
commit ed5f9f41f3
5 changed files with 550 additions and 0 deletions

359
Apache-1.1 Normal file

File diff suppressed because one or more lines are too long

BIN
hessian-4.0.38-src.jar Normal file

Binary file not shown.

114
hessian-4.0.38.pom Normal file
View File

@ -0,0 +1,114 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.caucho</groupId>
<artifactId>hessian</artifactId>
<packaging>jar</packaging>
<version>4.0.38</version>
<name>Hessian</name>
<description>Hessian is a compact binary protocol for connecting web services.</description>
<url>http://hessian.caucho.com</url>
<licenses>
<license>
<name>The Apache Software License, Version 1.1</name>
<url>http://www.apache.org/licenses/LICENSE-1.1.txt</url>
<distribution>repo</distribution>
</license>
</licenses>
<developers>
<developer>
<id>ferg</id>
<name>Scott Ferguson</name>
<email>ferg@caucho.com</email>
</developer>
</developers>
<scm>
<url>svn://svn.caucho.com/home/svn/svnroot/resin/trunk/modules/hessian</url>
<connection>scm:svn:svn://svn.caucho.com/home/svn/svnroot/resin/trunk/modules/hessian</connection>
</scm>
<dependencies>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.5</version>
<scope>provided</scope>
</dependency>
</dependencies>
<properties>
<project.build.sourceEncoding>ISO-8859-1</project.build.sourceEncoding>
</properties>
<build>
<sourceDirectory>src</sourceDirectory>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.5</source>
<target>1.5</target>
<excludes>
<exclude>**/test/**</exclude>
</excludes>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.1.2</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
<configuration>
<excludes>
<exclude>**/test/**</exclude>
</excludes>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.9.1</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
<configuration>
<links>
<link>http://docs.oracle.com/javaee/6/api</link>
</links>
<sourceFileExcludes>
<exclude>**/test/**</exclude>
</sourceFileExcludes>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.1</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

73
hessian.spec Normal file
View File

@ -0,0 +1,73 @@
Name: hessian
Summary: Java implementation of a binary protocol for web services
Version: 4.0.38
Release: 1
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: mvn(org.apache.felix:maven-bundle-plugin)
BuildArch: noarch
%description
This is the Java implementation of Caucho's Hession binary transport
protocol for web services.
%package javadoc
Summary: API documentation for %{name}
%description javadoc
API documentation for %{name}.
%prep
%setup -q -c
mkdir src
mv com src/
rm -r META-INF
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_remove_plugin :maven-gpg-plugin
%pom_remove_plugin :maven-javadoc-plugin
%pom_remove_plugin :maven-source-plugin
%pom_xpath_set pom:properties/pom:project.build.sourceEncoding UTF-8
%pom_xpath_set "pom:project/pom:packaging" bundle
%pom_add_plugin org.apache.felix:maven-bundle-plugin:3.0.1 . "
<extensions>true</extensions>
<configuration>
<excludeDependencies>true</excludeDependencies>
<instructions>
<Bundle-SymbolicName>\${project.groupId}.\${project.artifactId}</Bundle-SymbolicName>
<Bundle-Name>\${project.name}</Bundle-Name>
<Bundle-Version>\${project.version}</Bundle-Version>
</instructions>
</configuration>
<executions>
<execution>
<id>bundle-manifest</id>
<phase>process-classes</phase>
<goals>
<goal>manifest</goal>
</goals>
</execution>
</executions>"
%mvn_config buildSettings/compilerSource 1.8
%mvn_file com.caucho:%{name} %{name}
%build
%mvn_build
%install
%mvn_install
%files -f .mfiles
%license apache.license.html
%files javadoc -f .mfiles-javadoc
%license apache.license.html
%changelog
* Sat Aug 15 2020 Ge Wang <wangge20@huawei.com> - 4.0.38-1
- Package init

4
hessian.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: NA
src_repo: NA
tag_prefix: NA
seperator: NA