package init

This commit is contained in:
lyn1001 2020-08-24 14:08:12 +08:00
parent a71f72c167
commit a8738af683
5 changed files with 117 additions and 0 deletions

View File

@ -0,0 +1,45 @@
diff -ruN jboss-jstl-1.2-api-1.0.3.Final/pom.xml jboss-jstl-1.2-api-1.0.3.Final_modified/pom.xml
--- jboss-jstl-1.2-api-1.0.3.Final/pom.xml 2012-03-18 21:42:07.000000000 -0400
+++ jboss-jstl-1.2-api-1.0.3.Final_modified/pom.xml 2015-10-19 13:26:53.500409162 -0400
@@ -32,6 +32,41 @@
<build>
<plugins>
+ <!-- copy /usr/share/java/xalan-j2.jar to a directory we want javac to endorse -->
+ <plugin>
+ <artifactId>maven-resources-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>copy-resource-one</id>
+ <phase>generate-sources</phase>
+ <goals>
+ <goal>copy-resources</goal>
+ </goals>
+ <configuration>
+ <outputDirectory>${project.build.directory}/endorsed</outputDirectory>
+ <resources>
+ <resource>
+ <directory>/usr/share/java</directory>
+ <includes>
+ <include>xalan-j2.jar</include>
+ </includes>
+ </resource>
+ </resources>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <!-- endorse xalan-j2.jar to avoid the confusion with xml.jar for org.apache.xpath.res.XPATHErrorResources -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <compilerArguments>
+ <endorseddirs>${project.build.directory}/endorsed</endorseddirs>
+ </compilerArguments>
+ </configuration>
+ </plugin>
+
<!-- Include LICENSE.txt in the META-INF directory -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>

View File

@ -0,0 +1,13 @@
diff --git a/LICENSE b/LICENSE
index b40a0f4..2a9d428 100644
--- a/LICENSE
+++ b/LICENSE
@@ -3,7 +3,7 @@ The GNU General Public License (GPL)
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
-59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies of this license
document, but changing it is not allowed.

54
jboss-jstl-1.2-api.spec Normal file
View File

@ -0,0 +1,54 @@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}
%global pname jboss-jstl-api_spec
%global oname jboss-jstl-api_1.2_spec
Name: jboss-jstl-1.2-api
Version: 1.1.2
Release: 1
Summary: JSP Standard Template Library 1.2 API
License: ASL 2.0 and (CDDL or GPLv2 with exceptions)
URL: https://github.com/jboss/jboss-jstl-api_spec
Source0: https://github.com/jboss/jboss-jstl-api_spec/archive/%{oname}-%{namedversion}.tar.gz
Patch0: %{name}-fix-fsf-address.patch
Patch1: %{name}-endorse_xalan.patch
BuildRequires: maven-local mvn(junit:junit) mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.easymock:easymock) mvn(org.jboss:jboss-parent:pom:)
BuildRequires: mvn(org.jboss.spec.javax.el:jboss-el-api_3.0_spec)
BuildRequires: mvn(org.jboss.spec.javax.servlet:jboss-servlet-api_3.1_spec)
BuildRequires: mvn(org.jboss.spec.javax.servlet.jsp:jboss-jsp-api_2.3_spec) mvn(xalan:xalan)
BuildArch: noarch
%description
Java Server Pages Standard Template Library 1.2 API.
%package help
Summary: Javadoc for %{name}
Provides: %{name}-javadoc = %{version}-%{release}
Obsoletes: %{name}-javadoc < %{version}-%{release}
%description help
This package contains the API documentation for %{name}.
%prep
%setup -q -n %{pname}-%{oname}-%{namedversion}
%patch0 -p1
%if 0%{?el7}
%patch1 -p1
%endif
%pom_remove_plugin :maven-source-plugin
%mvn_file : %{name}
%build
%mvn_build
%install
%mvn_install
%files -f .mfiles
%license LICENSE README
%doc CHANGES.txt README.md
%files javadoc -f .mfiles-javadoc
%license LICENSE README
%changelog
* Mon Aug 24 2020 liyanan <liyanan32@huawei.com> - 1.1.2-1
- package init

5
jboss-jstl-1.2-api.yaml Normal file
View File

@ -0,0 +1,5 @@
git_url: https://github.com/jboss/jboss-jstl-api_spec.git
version_control: github
src_repo: jboss/jboss-jstl-api_spec
tag_prefix: "jboss-jstl-api_1.2_spec-"
seperator: "."

Binary file not shown.