forked from pool/apache-commons-jxpath
osc copypac from project:Java:base package:apache-commons-jxpath revision:1
OBS-URL: https://build.opensuse.org/package/show/Java:packages/apache-commons-jxpath?expand=0&rev=1
This commit is contained in:
commit
e386b1ad4e
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.osc
|
5
apache-commons-jxpath.changes
Normal file
5
apache-commons-jxpath.changes
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Dec 20 14:32:13 UTC 2011 - dmacvicar@suse.de
|
||||||
|
|
||||||
|
- initial package based on Fedora's. Removed maven stuff
|
||||||
|
|
83
apache-commons-jxpath.spec
Normal file
83
apache-commons-jxpath.spec
Normal file
@ -0,0 +1,83 @@
|
|||||||
|
%define base_name jxpath
|
||||||
|
%define short_name commons-%{base_name}
|
||||||
|
|
||||||
|
Name: apache-%{short_name}
|
||||||
|
Version: 1.3
|
||||||
|
Release: 0
|
||||||
|
Summary: Simple XPath interpreter
|
||||||
|
|
||||||
|
Group: Development/Libraries/Java
|
||||||
|
License: ASL 2.0
|
||||||
|
URL: http://commons.apache.org/%{base_name}/
|
||||||
|
Source0: http://www.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz
|
||||||
|
# Depmap needed to bend servlet-api and jsp-api to tomcat6
|
||||||
|
Source1: %{short_name}.depmap
|
||||||
|
Patch0: %{short_name}-mockrunner.patch
|
||||||
|
Patch1: build.xml.patch
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
BuildRequires: ant
|
||||||
|
BuildRequires: jdom
|
||||||
|
BuildRequires: java-devel >= 1.6.0
|
||||||
|
BuildRequires: jpackage-utils
|
||||||
|
BuildRequires: junit
|
||||||
|
BuildRequires: apache-commons-beanutils
|
||||||
|
BuildRequires: servlet25
|
||||||
|
BuildRequires: jsp
|
||||||
|
BuildRequires: el_api
|
||||||
|
|
||||||
|
Requires: java >= 1.6.0
|
||||||
|
Requires: jpackage-utils
|
||||||
|
Requires: jdom >= 1.0
|
||||||
|
Requires: apache-commons-beanutils
|
||||||
|
Requires: apache-commons-logging
|
||||||
|
|
||||||
|
Requires(post): jpackage-utils
|
||||||
|
Requires(postun): jpackage-utils
|
||||||
|
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
|
# This should go away with F-17
|
||||||
|
Provides: jakarta-%{short_name} = %{version}-%{release}
|
||||||
|
Obsoletes: jakarta-%{short_name} < %{version}-%{release}
|
||||||
|
|
||||||
|
%description
|
||||||
|
Defines a simple interpreter of an expression language called XPath.
|
||||||
|
JXPath applies XPath expressions to graphs of objects of all kinds:
|
||||||
|
JavaBeans, Maps, Servlet contexts, DOM etc, including mixtures thereof.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n %{short_name}-%{version}-src
|
||||||
|
%patch0 -p1
|
||||||
|
%patch1
|
||||||
|
|
||||||
|
%build
|
||||||
|
export CLASSPATH=$(build-classpath \
|
||||||
|
ant-launcher \
|
||||||
|
plexus/ \
|
||||||
|
junit \
|
||||||
|
jdom \
|
||||||
|
jsp \
|
||||||
|
apache-commons-beanutils \
|
||||||
|
target/commons-jxpath.jar \
|
||||||
|
):target/classes:target/test-classes
|
||||||
|
ant -Dmaven.mode.offline=true jar \
|
||||||
|
-lib /usr/share/java
|
||||||
|
|
||||||
|
%install
|
||||||
|
export NO_BRP_CHECK_BYTECODE_VERSION=true
|
||||||
|
install -Dpm 644 target/%{short_name}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
|
||||||
|
pushd $RPM_BUILD_ROOT%{_javadir}
|
||||||
|
for jar in *-%{version}*; do
|
||||||
|
ln -sf ${jar} `echo $jar| sed "s|apache-||g"`
|
||||||
|
ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`
|
||||||
|
ln -sf ${jar} `echo $jar| sed "s|apache-\(.*\)-%{version}|\1|g"`
|
||||||
|
done
|
||||||
|
popd # come back from javadir
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(0644,root,root,0755)
|
||||||
|
%doc LICENSE.txt
|
||||||
|
%{_javadir}/*.jar
|
||||||
|
|
||||||
|
%changelog
|
11
build.xml.patch
Normal file
11
build.xml.patch
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
--- build.xml.orig 2011-01-27 02:16:32.000000000 -0700
|
||||||
|
+++ build.xml 2011-01-27 02:17:20.000000000 -0700
|
||||||
|
@@ -52,7 +52,7 @@
|
||||||
|
</fileset>
|
||||||
|
</copy>
|
||||||
|
</target>
|
||||||
|
- <target name="jar" description="o Create the jar" depends="compile,test">
|
||||||
|
+ <target name="jar" description="o Create the jar" depends="compile">
|
||||||
|
<jar jarfile="${defaulttargetdir}/${final.name}.jar" excludes="**/package.html" basedir="${classesdir}">
|
||||||
|
</jar>
|
||||||
|
</target>
|
BIN
commons-jxpath-1.3-src.tar.gz
(Stored with Git LFS)
Normal file
BIN
commons-jxpath-1.3-src.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
47
commons-jxpath-mockrunner.patch
Normal file
47
commons-jxpath-mockrunner.patch
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
diff --git a/pom.xml b/pom.xml
|
||||||
|
index 1a4f2c4..f5fa596 100644
|
||||||
|
--- a/pom.xml
|
||||||
|
+++ b/pom.xml
|
||||||
|
@@ -160,42 +160,6 @@ under the License.
|
||||||
|
<version>1.7.0</version>
|
||||||
|
<optional>true</optional>
|
||||||
|
</dependency>
|
||||||
|
- <dependency>
|
||||||
|
- <groupId>com.mockrunner</groupId>
|
||||||
|
- <artifactId>mockrunner-jdk1.3-j2ee1.3</artifactId>
|
||||||
|
- <version>0.4</version>
|
||||||
|
- <scope>test</scope>
|
||||||
|
- <exclusions>
|
||||||
|
- <exclusion>
|
||||||
|
- <groupId>cglib-nodep</groupId>
|
||||||
|
- <artifactId>cglib-nodep</artifactId>
|
||||||
|
- </exclusion>
|
||||||
|
- <exclusion>
|
||||||
|
- <groupId>jboss</groupId>
|
||||||
|
- <artifactId>jboss-jee</artifactId>
|
||||||
|
- </exclusion>
|
||||||
|
- <exclusion>
|
||||||
|
- <groupId>nekohtml</groupId>
|
||||||
|
- <artifactId>nekohtml</artifactId>
|
||||||
|
- </exclusion>
|
||||||
|
- <exclusion>
|
||||||
|
- <groupId>struts</groupId>
|
||||||
|
- <artifactId>struts</artifactId>
|
||||||
|
- </exclusion>
|
||||||
|
- <exclusion>
|
||||||
|
- <groupId>oro</groupId>
|
||||||
|
- <artifactId>oro</artifactId>
|
||||||
|
- </exclusion>
|
||||||
|
- <exclusion>
|
||||||
|
- <groupId>commons-validator</groupId>
|
||||||
|
- <artifactId>commons-validator</artifactId>
|
||||||
|
- </exclusion>
|
||||||
|
- <exclusion>
|
||||||
|
- <groupId>commons-digester</groupId>
|
||||||
|
- <artifactId>commons-digester</artifactId>
|
||||||
|
- </exclusion>
|
||||||
|
- </exclusions>
|
||||||
|
- </dependency>
|
||||||
|
</dependencies>
|
||||||
|
<reporting>
|
||||||
|
<plugins>
|
22
commons-jxpath.depmap
Normal file
22
commons-jxpath.depmap
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<maven>
|
||||||
|
<groupId>javax.servlet</groupId>
|
||||||
|
<artifactId>servlet-api</artifactId>
|
||||||
|
</maven>
|
||||||
|
<jpp>
|
||||||
|
<groupId>JPP</groupId>
|
||||||
|
<artifactId>tomcat6-servlet-2.5-api</artifactId>
|
||||||
|
</jpp>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<maven>
|
||||||
|
<groupId>javax.servlet</groupId>
|
||||||
|
<artifactId>jsp-api</artifactId>
|
||||||
|
</maven>
|
||||||
|
<jpp>
|
||||||
|
<groupId>JPP</groupId>
|
||||||
|
<artifactId>tomcat6-jsp-2.1-api</artifactId>
|
||||||
|
</jpp>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
Loading…
x
Reference in New Issue
Block a user