package init
This commit is contained in:
parent
00bbdf90e8
commit
2bb0f62ffe
66
apache-commons-el.spec
Normal file
66
apache-commons-el.spec
Normal file
@ -0,0 +1,66 @@
|
||||
%global base_name el
|
||||
%global short_name commons-%{base_name}
|
||||
Name: apache-%{short_name}
|
||||
Version: 1.0
|
||||
Release: 1
|
||||
Summary: The Apache Commons Extension Language
|
||||
License: ASL 1.1
|
||||
URL: http://commons.apache.org/el
|
||||
BuildArch: noarch
|
||||
Source0: http://archive.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz
|
||||
Source1: https://repo1.maven.org/maven2/%{short_name}/%{short_name}/%{version}/%{short_name}-%{version}.pom
|
||||
Patch0: %{short_name}-%{version}-license.patch
|
||||
Patch1: %{short_name}-eclipse-manifest.patch
|
||||
Patch2: %{short_name}-enum.patch
|
||||
BuildRequires: ant junit javapackages-local apache-commons-logging glassfish-jsp-api
|
||||
BuildRequires: glassfish-servlet-api
|
||||
|
||||
%description
|
||||
An implementation of standard interfaces and abstract classes for
|
||||
javax.servlet.jsp.el which is part of the JSP 2.0 specification.
|
||||
|
||||
%package javadoc
|
||||
Summary: API documentation for %{name}
|
||||
%description javadoc
|
||||
%{summary}.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{short_name}-%{version}-src
|
||||
%patch0 -p1 -b .license
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
find . -type f -name "*.jar" -exec rm -f {} \;
|
||||
cat > build.properties <<EOBP
|
||||
build.compiler=modern
|
||||
junit.jar=$(build-classpath junit)
|
||||
servlet-api.jar=$(build-classpath glassfish-servlet-api)
|
||||
jsp-api.jar=$(build-classpath glassfish-jsp-api)
|
||||
servletapi.build.notrequired=true
|
||||
jspapi.build.notrequired=true
|
||||
EOBP
|
||||
find . -iname 'ELParser.java' -exec sed -i 's:enum:enum1:g' \{\} \;
|
||||
|
||||
%build
|
||||
export CLASSPATH=
|
||||
export OPT_JAR_LIST=:
|
||||
%{ant} \
|
||||
-Dfinal.name=%{short_name} \
|
||||
-Dj2se.javadoc=%{_javadocdir}/java \
|
||||
jar javadoc
|
||||
|
||||
%install
|
||||
%mvn_artifact %{SOURCE1} dist/%{short_name}.jar
|
||||
%mvn_alias "commons-el:commons-el" "org.apache.commons:commons-el"
|
||||
%mvn_file : %{name} %{short_name}
|
||||
%mvn_install -J dist/docs/api
|
||||
|
||||
%files -f .mfiles
|
||||
%license LICENSE.txt
|
||||
%doc STATUS.html
|
||||
|
||||
%files javadoc -f .mfiles-javadoc
|
||||
%license LICENSE.txt
|
||||
|
||||
%changelog
|
||||
* Sat Jul 25 2020 chengzihan <chengzihan2@huawei.com> - 1.0-1
|
||||
- Package init
|
||||
4
apache-commons-el.yaml
Normal file
4
apache-commons-el.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: NA
|
||||
src_repo: NA
|
||||
tag_prefix: NA
|
||||
seperator: NA
|
||||
31
commons-el-1.0-license.patch
Normal file
31
commons-el-1.0-license.patch
Normal file
@ -0,0 +1,31 @@
|
||||
--- commons-el-1.0-src/build.xml.old 2003-12-17 16:00:14.000000000 +0200
|
||||
+++ commons-el-1.0-src/build.xml 2003-12-17 16:00:27.000000000 +0200
|
||||
@@ -230,8 +230,8 @@
|
||||
<target name="dist" depends="compile,javadoc"
|
||||
description="Create binary distribution">
|
||||
<mkdir dir="${dist.home}"/>
|
||||
- <copy file="../LICENSE"
|
||||
- todir="${dist.home}"/>
|
||||
+ <copy file="LICENSE.txt"
|
||||
+ tofile="${dist.home}/LICENSE"/>
|
||||
<copy file="RELEASE-NOTES.txt"
|
||||
todir="${dist.home}"/>
|
||||
<antcall target="jar"/>
|
||||
@@ -242,7 +242,7 @@
|
||||
description="Create jar">
|
||||
<mkdir dir="${dist.home}"/>
|
||||
<mkdir dir="${build.home}/classes/META-INF"/>
|
||||
- <copy file="../LICENSE"
|
||||
+ <copy file="LICENSE.txt"
|
||||
tofile="${build.home}/classes/META-INF/LICENSE.txt"/>
|
||||
<jar jarfile="${commons-el.jar}"
|
||||
manifest="${build.home}/conf/MANIFEST.MF">
|
||||
@@ -257,7 +257,7 @@
|
||||
<copy todir="${build.home}/classes/META-INF" filtering="on">
|
||||
<fileset dir="${conf.home}" includes="*.MF"/>
|
||||
</copy>
|
||||
- <copy file="../LICENSE"
|
||||
+ <copy file="LICENSE.txt"
|
||||
tofile="${build.home}/classes/META-INF/LICENSE.txt"/>
|
||||
<jar jarfile="${commons-el.jar}"
|
||||
manifest="${build.home}/classes/META-INF/MANIFEST.MF">
|
||||
BIN
commons-el-1.0-src.tar.gz
Normal file
BIN
commons-el-1.0-src.tar.gz
Normal file
Binary file not shown.
125
commons-el-1.0.pom
Normal file
125
commons-el-1.0.pom
Normal file
@ -0,0 +1,125 @@
|
||||
<project>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>commons-el</groupId>
|
||||
<artifactId>commons-el</artifactId>
|
||||
<name>EL</name>
|
||||
<version>1.0</version>
|
||||
<description>JSP 2.0 Expression Language Interpreter Implementation</description>
|
||||
<url>http://jakarta.apache.org/commons/el/</url>
|
||||
<issueManagement>
|
||||
<url>http://issues.apache.org/bugzilla/</url>
|
||||
</issueManagement>
|
||||
<ciManagement>
|
||||
<notifiers>
|
||||
<notifier>
|
||||
<address>commons-dev@jakarta.apache.org</address>
|
||||
</notifier>
|
||||
</notifiers>
|
||||
</ciManagement>
|
||||
<inceptionYear>2003</inceptionYear>
|
||||
<mailingLists>
|
||||
<mailingList>
|
||||
<name>Commons Dev List</name>
|
||||
<subscribe>commons-dev-subscribe@jakarta.apache.org</subscribe>
|
||||
<unsubscribe>commons-dev-unsubscribe@jakarta.apache.org</unsubscribe>
|
||||
<archive>http://mail-archives.apache.org/eyebrowse/SummarizeList?listName=commons-dev@jakarta.apache.org</archive>
|
||||
</mailingList>
|
||||
<mailingList>
|
||||
<name>Commons User List</name>
|
||||
<subscribe>commons-user-subscribe@jakarta.apache.org</subscribe>
|
||||
<unsubscribe>commons-user-unsubscribe@jakarta.apache.org</unsubscribe>
|
||||
<archive>http://mail-archives.apache.org/eyebrowse/SummarizeList?listName=commons-user@jakarta.apache.org</archive>
|
||||
</mailingList>
|
||||
</mailingLists>
|
||||
<developers>
|
||||
<developer>
|
||||
<id>arista</id>
|
||||
<name>Nathan Abramson</name>
|
||||
<email>arista@alum.mit.edu</email>
|
||||
<organization>Massachusetts Institute of Technology</organization>
|
||||
</developer>
|
||||
<developer>
|
||||
<id>shawn</id>
|
||||
<name>Shawn Bayern</name>
|
||||
<email>shawn@apache.org</email>
|
||||
<organization>Apache Software Foundation</organization>
|
||||
</developer>
|
||||
<developer>
|
||||
<id>pierred</id>
|
||||
<name>Pierre Delisle</name>
|
||||
<email>pierre.delisle@sun.com</email>
|
||||
<organization>Sun Microsystems, Inc.</organization>
|
||||
</developer>
|
||||
<developer>
|
||||
<id>craigmcc</id>
|
||||
<name>Craig McClanahan</name>
|
||||
<email>craigmcc@apache.org</email>
|
||||
<organization>Apache Software Foundation</organization>
|
||||
</developer>
|
||||
<developer>
|
||||
<id>luehe</id>
|
||||
<name>Jan Luehe</name>
|
||||
<email>jan.luehe@sun.com</email>
|
||||
<organization>Sun Microsystems, Inc.</organization>
|
||||
</developer>
|
||||
</developers>
|
||||
<licenses>
|
||||
<license>
|
||||
<name>The Apache Software License, Version 2.0</name>
|
||||
<url>/LICENSE.txt</url>
|
||||
</license>
|
||||
</licenses>
|
||||
<scm>
|
||||
<connection>scm:svn:http://svn.apache.org/repos/asf/jakarta/commons/proper/el/trunk</connection>
|
||||
<url>http://svn.apache.org/repos/asf/jakarta/commons/proper/el/trunk</url>
|
||||
</scm>
|
||||
<organization>
|
||||
<name>The Apache Software Foundation</name>
|
||||
<url>http://jakarta.apache.org</url>
|
||||
</organization>
|
||||
<build>
|
||||
<sourceDirectory>src/java</sourceDirectory>
|
||||
<testSourceDirectory>src/test</testSourceDirectory>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<configuration>
|
||||
<includes>
|
||||
<include>**/*Test.java</include>
|
||||
</includes>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>servletapi</groupId>
|
||||
<artifactId>servletapi</artifactId>
|
||||
<version>2.4-20040521</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>jspapi</groupId>
|
||||
<artifactId>jsp-api</artifactId>
|
||||
<version>2.0-20040521</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>commons-logging</groupId>
|
||||
<artifactId>commons-logging</artifactId>
|
||||
<version>1.0.3</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<distributionManagement>
|
||||
<repository>
|
||||
<id>default</id>
|
||||
<name>Default Repository</name>
|
||||
<url>file:///www/jakarta.apache.org/builds/jakarta-commons/el/</url>
|
||||
</repository>
|
||||
<site>
|
||||
<id>default</id>
|
||||
<name>Default Site</name>
|
||||
<url>scp://jakarta.apache.org//www/jakarta.apache.org/commons/el/</url>
|
||||
</site>
|
||||
</distributionManagement>
|
||||
</project>
|
||||
19
commons-el-eclipse-manifest.patch
Normal file
19
commons-el-eclipse-manifest.patch
Normal file
@ -0,0 +1,19 @@
|
||||
--- commons-el-1.0-src/src/conf/MANIFEST.MF.orig 2007-07-11 12:47:24.000000000 -0400
|
||||
+++ commons-el-1.0-src/src/conf/MANIFEST.MF 2007-07-11 12:49:32.000000000 -0400
|
||||
@@ -9,3 +9,16 @@
|
||||
Implementation-Title: org.apache.commons.el
|
||||
Implementation-Vendor: Apache Software Foundation
|
||||
Implementation-Version: 1.0
|
||||
+Import-Package: javax.servlet;version="2.4",javax.servlet.http;version
|
||||
+ ="2.4",javax.servlet.jsp;version="2.0",javax.servlet.jsp.el;version="
|
||||
+ 2.0",javax.servlet.jsp.resources;version="2.0",javax.servlet.jsp.tage
|
||||
+ xt;version="2.0",javax.servlet.resources;version="2.4"
|
||||
+Bundle-ManifestVersion: 2
|
||||
+Export-Package: org.apache.commons.el;version="1.0.0",org.apache.commo
|
||||
+ ns.el.parser;version="1.0.0"
|
||||
+Bundle-Version: 1.0.0.v200806031608
|
||||
+Bundle-SymbolicName: org.apache.commons.el
|
||||
+Bundle-Name: Apache Commons JSP 2.0 Expression Language Interpreter
|
||||
+Bundle-RequiredExecutionEnvironment: CDC-1.0/Foundation-1.0,J2SE-1.3
|
||||
+Bundle-Localization: plugin
|
||||
+Bundle-Vendor: Apache Software Foundation
|
||||
28
commons-el-enum.patch
Normal file
28
commons-el-enum.patch
Normal file
@ -0,0 +1,28 @@
|
||||
--- commons-el-1.0-src/build.xml.orig 2007-07-20 15:34:15.000000000 -0400
|
||||
+++ commons-el-1.0-src/build.xml 2007-07-20 15:36:48.000000000 -0400
|
||||
@@ -171,6 +171,8 @@
|
||||
<javac srcdir="${source.home}"
|
||||
destdir="${build.home}/classes"
|
||||
debug="${compile.debug}"
|
||||
+ source="1.4"
|
||||
+ target="1.4"
|
||||
deprecation="${compile.deprecation}"
|
||||
optimize="${compile.optimize}">
|
||||
<classpath refid="compile.classpath"/>
|
||||
@@ -186,6 +188,8 @@
|
||||
<javac srcdir="${test.home}"
|
||||
destdir="${build.home}/tests"
|
||||
debug="${compile.debug}"
|
||||
+ source="1.4"
|
||||
+ target="1.4"
|
||||
deprecation="${compile.deprecation}"
|
||||
optimize="${compile.optimize}">
|
||||
<classpath refid="test.classpath"/>
|
||||
@@ -214,6 +218,7 @@
|
||||
<mkdir dir="${dist.home}/docs/api"/>
|
||||
<javadoc sourcepath="${source.home}"
|
||||
destdir="${dist.home}/docs/api"
|
||||
+ source="1.4"
|
||||
packagenames="org.apache.commons.*"
|
||||
author="true"
|
||||
private="true"
|
||||
Loading…
x
Reference in New Issue
Block a user