forked from pool/stax2-api
Compare commits
11 Commits
aaec2d00d8
...
b34ebddd0f
Author | SHA256 | Date | |
---|---|---|---|
b34ebddd0f | |||
52ff5c1f01 | |||
c677e43d96 | |||
c93178c6f1 | |||
f45fd5da6b | |||
ca9217fa7a | |||
1bc07d5c36 | |||
35c3b76502 | |||
7a59a7eea4 | |||
df0985879a | |||
ff7e84a477 |
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:7872551a4d8ba75aaa25bea4709df943d90989ffb672a505f71e020aa20eacaa
|
||||
size 127125
|
3
stax2-api-4.2.1.tar.gz
Normal file
3
stax2-api-4.2.1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:e9c1609c601b18f500d9b162e39adca9c28aee6673b024f641e448147fddd407
|
||||
size 128806
|
131
stax2-api-build.xml
Normal file
131
stax2-api-build.xml
Normal file
@@ -0,0 +1,131 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<project name="stax2-api" default="package" basedir=".">
|
||||
|
||||
<!-- ====================================================================== -->
|
||||
<!-- Build environment properties -->
|
||||
<!-- ====================================================================== -->
|
||||
|
||||
<property name="project.groupId" value="org.codehaus.woodstox"/>
|
||||
<property name="project.artifactId" value="stax2-api"/>
|
||||
<property name="project.version" value="4.2.1"/>
|
||||
|
||||
<property name="compiler.release" value="8"/>
|
||||
<property name="compiler.source" value="1.${compiler.release}"/>
|
||||
<property name="compiler.target" value="${compiler.source}"/>
|
||||
|
||||
<property name="build.finalName" value="${project.artifactId}-${project.version}"/>
|
||||
<property name="build.dir" value="target"/>
|
||||
<property name="build.outputDir" value="${build.dir}/classes"/>
|
||||
<property name="build.srcDir" value="src/main/java"/>
|
||||
<property name="build.resourceDir" value="src/main/resources"/>
|
||||
|
||||
<property name="reporting.outputDirectory" value="${build.dir}/site"/>
|
||||
|
||||
<!-- ====================================================================== -->
|
||||
<!-- Cleaning up target -->
|
||||
<!-- ====================================================================== -->
|
||||
|
||||
<target name="clean" description="Clean the output directory">
|
||||
<delete dir="${build.dir}"/>
|
||||
</target>
|
||||
|
||||
<!-- ====================================================================== -->
|
||||
<!-- Compilation target -->
|
||||
<!-- ====================================================================== -->
|
||||
|
||||
<target name="compile" description="Compile the code">
|
||||
<mkdir dir="${build.outputDir}"/>
|
||||
<javac destdir="${build.outputDir}"
|
||||
nowarn="true"
|
||||
debug="true"
|
||||
optimize="true"
|
||||
encoding="utf-8"
|
||||
deprecation="true"
|
||||
release="${compiler.release}"
|
||||
target="${compiler.target}"
|
||||
verbose="false"
|
||||
fork="false"
|
||||
source="${compiler.source}">
|
||||
<src>
|
||||
<pathelement location="${build.srcDir}"/>
|
||||
</src>
|
||||
</javac>
|
||||
<copy todir="${build.outputDir}">
|
||||
<fileset dir="${build.resourceDir}"/>
|
||||
</copy>
|
||||
</target>
|
||||
|
||||
<!-- ====================================================================== -->
|
||||
<!-- Javadoc target -->
|
||||
<!-- ====================================================================== -->
|
||||
|
||||
<target name="javadoc" description="Generates the Javadoc of the application">
|
||||
<javadoc sourcepath="${build.srcDir}"
|
||||
packagenames="*"
|
||||
destdir="${reporting.outputDirectory}/apidocs"
|
||||
access="protected"
|
||||
source="${compiler.source}"
|
||||
verbose="false"
|
||||
version="true"
|
||||
use="true"
|
||||
author="true"
|
||||
splitindex="false"
|
||||
nodeprecated="false"
|
||||
nodeprecatedlist="false"
|
||||
notree="false"
|
||||
noindex="false"
|
||||
nohelp="false"
|
||||
nonavbar="false"
|
||||
serialwarn="false"
|
||||
encoding="utf-8"
|
||||
linksource="false"
|
||||
breakiterator="false"
|
||||
maxmemory="1g">
|
||||
</javadoc>
|
||||
</target>
|
||||
|
||||
<!-- ====================================================================== -->
|
||||
<!-- Package target -->
|
||||
<!-- ====================================================================== -->
|
||||
|
||||
<target name="package" depends="compile" description="Package the application">
|
||||
<jar jarfile="${build.dir}/${build.finalName}.jar"
|
||||
compress="true"
|
||||
index="false"
|
||||
basedir="${build.outputDir}"
|
||||
excludes="**/package.html">
|
||||
<manifest>
|
||||
<attribute name="Automatic-Module-Name" value="org.codehaus.stax2"/>
|
||||
<attribute name="Bundle-Description" value="Stax2 API is an extension to basic Stax 1.0 API that adds significant new functionality, such as full-featured bi-direction validation interface and high-performance Typed Access API."/>
|
||||
<attribute name="Bundle-DocURL" value="http://github.com/FasterXML/stax2-api"/>
|
||||
<attribute name="Bundle-License" value="http://www.opensource.org/licenses/bsd-license.php"/>
|
||||
<attribute name="Bundle-ManifestVersion" value="2"/>
|
||||
<attribute name="Bundle-Name" value="Stax2 API"/>
|
||||
<attribute name="Bundle-SymbolicName" value="${project.artifactId}"/>
|
||||
<attribute name="Bundle-Vendor" value="fasterml.com"/>
|
||||
<attribute name="Bundle-Version" value="${project.version}"/>
|
||||
<attribute name="Export-Package" value="org.codehaus.stax2.evt;uses:="javax.xml.stream,javax.xml.stream.events,org.codehaus.stax2";version="${project.version}",org.codehaus.stax2.io;uses:="javax.xml.transform";version="${project.version}",org.codehaus.stax2.osgi;uses:="org.codehaus.stax2,org.codehaus.stax2.validation";version="${project.version}",org.codehaus.stax2.ri.dom;uses:="javax.xml.namespace,javax.xml.stream,javax.xml.transform.dom,org.codehaus.stax2,org.codehaus.stax2.ri,org.codehaus.stax2.ri.typed,org.codehaus.stax2.typed,org.codehaus.stax2.validation,org.w3c.dom";version="${project.version}",org.codehaus.stax2.ri.evt;uses:="javax.xml.namespace,javax.xml.stream,javax.xml.stream.events,javax.xml.stream.util,org.codehaus.stax2,org.codehaus.stax2.evt";version="${project.version}",org.codehaus.stax2.ri.typed;uses:="javax.xml.namespace,org.codehaus.stax2.ri,org.codehaus.stax2.typed";version="${project.version}",org.codehaus.stax2.ri;uses:="javax.xml.namespace,javax.xml.stream,javax.xml.stream.events,javax.xml.stream.util,org.codehaus.stax2,org.codehaus.stax2.evt,org.codehaus.stax2.ri.typed,org.codehaus.stax2.typed,org.codehaus.stax2.util,org.codehaus.stax2.validation";version="${project.version}",org.codehaus.stax2.typed;uses:="javax.xml.namespace,javax.xml.stream";version="${project.version}",org.codehaus.stax2.util;uses:="javax.xml.namespace,javax.xml.stream,javax.xml.stream.util,org.codehaus.stax2,org.codehaus.stax2.typed,org.codehaus.stax2.validation";version="${project.version}",org.codehaus.stax2.validation;uses:="javax.xml.namespace,javax.xml.stream";version="${project.version}",org.codehaus.stax2;uses:="javax.xml.namespace,javax.xml.stream,org.codehaus.stax2.typed,org.codehaus.stax2.validation";version="${project.version}""/>
|
||||
<attribute name="Implementation-Title" value="Stax2 API"/>
|
||||
<attribute name="Implementation-Vendor-Id" value="${project.groupId}"/>
|
||||
<attribute name="Implementation-Vendor" value="fasterxml.com"/>
|
||||
<attribute name="Implementation-Version" value="${project.version}"/>
|
||||
<attribute name="Import-Package" value="javax.xml.namespace,javax.xml.stream,javax.xml.stream.events,javax.xml.stream.util,javax.xml.transform,javax.xml.transform.dom,org.codehaus.stax2,org.codehaus.stax2.evt,org.codehaus.stax2.ri,org.codehaus.stax2.ri.evt,org.codehaus.stax2.ri.typed,org.codehaus.stax2.typed,org.codehaus.stax2.util,org.codehaus.stax2.validation,org.w3c.dom"/>
|
||||
<attribute name="JavaPackages-ArtifactId" value="${project.artifactId}"/>
|
||||
<attribute name="JavaPackages-GroupId" value="${project.groupId}"/>
|
||||
<attribute name="JavaPackages-Version" value="${project.version}"/>
|
||||
<attribute name="Require-Capability" value="osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=${compiler.target}))""/>
|
||||
<attribute name="Specification-Title" value="Stax2 API"/>
|
||||
<attribute name="Specification-Vendor" value="fasterxml.com"/>
|
||||
<attribute name="Specification-Version" value="${project.version}"/>
|
||||
</manifest>
|
||||
</jar>
|
||||
</target>
|
||||
|
||||
<!-- ====================================================================== -->
|
||||
<!-- A dummy target for the package named after the type it creates -->
|
||||
<!-- ====================================================================== -->
|
||||
|
||||
<target name="jar" depends="package" description="Builds the jar for the application"/>
|
||||
|
||||
</project>
|
@@ -1,3 +1,35 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Mar 28 06:03:38 UTC 2025 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
- Rewrite to use Ant to build. This prevents potential cycles with
|
||||
upcoming Maven 4
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Sep 9 14:51:33 UTC 2023 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
- Reproducible builds: use SOURCE_DATE_EPOCH for timestamp
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Aug 25 12:46:12 UTC 2023 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
- Update to version 4.2.1
|
||||
* 4.2.1 (14-May-2020)
|
||||
+ #12: Fix to XML declaration write when 'standaloneSet' is
|
||||
specified
|
||||
* 4.2 (13-Mar-2019)
|
||||
+ #15: Add Java 9+ module info using Moditect
|
||||
+ Increase visibility of some of methods of
|
||||
'Stax2EventReaderImpl'
|
||||
* 4.1 (28-Mar-2018)
|
||||
+ Add 'Automatic-Module-Name' for Java 9
|
||||
+ Upgrade JDK baseline requirement Java 6 (from Java 5);
|
||||
+ remove 'stax-api' dependency (since bundled on Java 6)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Mar 23 19:00:28 UTC 2022 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
- Build with java source and target levels 8
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Nov 24 16:46:53 UTC 2019 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package stax2-api
|
||||
#
|
||||
# Copyright (c) 2019 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -17,18 +17,18 @@
|
||||
|
||||
|
||||
Name: stax2-api
|
||||
Version: 4.0.0
|
||||
Version: 4.2.1
|
||||
Release: 0
|
||||
Summary: Experimental API extending basic StAX implementation
|
||||
License: BSD-2-Clause
|
||||
Group: Development/Libraries/Java
|
||||
URL: http://wiki.fasterxml.com/WoodstoxStax2
|
||||
Source0: https://github.com/FasterXML/%{name}/archive/%{name}-%{version}.tar.gz
|
||||
Source1: %{name}-build.xml
|
||||
BuildRequires: ant
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: maven-local
|
||||
BuildRequires: mvn(com.fasterxml:oss-parent:pom:)
|
||||
BuildRequires: mvn(javax.xml.stream:stax-api)
|
||||
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
|
||||
BuildRequires: java-devel >= 1.8
|
||||
BuildRequires: javapackages-local >= 6
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
@@ -48,25 +48,27 @@ This package contains the API documentation for %{name}.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-%{name}-%{version}
|
||||
|
||||
%pom_xpath_remove pom:Import-Package
|
||||
|
||||
%pom_remove_plugin :maven-javadoc-plugin
|
||||
cp %{SOURCE1} build.xml
|
||||
|
||||
%build
|
||||
|
||||
%{mvn_file} :%{name} %{name}
|
||||
%{mvn_build} -f \
|
||||
%if %{?pkg_vcmp:%pkg_vcmp java-devel >= 9}%{!?pkg_vcmp:0}
|
||||
-- -Dmaven.compiler.release=6
|
||||
%endif
|
||||
ant jar javadoc
|
||||
|
||||
%install
|
||||
%mvn_install
|
||||
# jar
|
||||
install -dm 0755 %{buildroot}%{_javadir}
|
||||
install -pm 0644 target/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
|
||||
# pom
|
||||
install -dm 0755 %{buildroot}%{_mavenpomdir}
|
||||
%{mvn_install_pom} pom.xml %{buildroot}%{_mavenpomdir}/%{name}.pom
|
||||
%add_maven_depmap %{name}.pom %{name}.jar
|
||||
# javadoc
|
||||
install -dm 0755 %{buildroot}%{_javadocdir}
|
||||
cp -r target/site/apidocs %{buildroot}%{_javadocdir}/%{name}
|
||||
%fdupes -s %{buildroot}%{_javadocdir}
|
||||
|
||||
%files -f .mfiles
|
||||
|
||||
%files javadoc -f .mfiles-javadoc
|
||||
%files javadoc
|
||||
%{_javadocdir}/%{name}
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user