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 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 . " true true \${project.groupId}.\${project.artifactId} \${project.name} \${project.version} bundle-manifest process-classes manifest " %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 - 4.0.38-1 - Package init