Compare commits
No commits in common. "stream-javapackages-tools-201801-rhel-8.9.0" and "c8-stream-201902" have entirely different histories.
stream-jav
...
c8-stream-
13
.gitignore
vendored
13
.gitignore
vendored
@ -1,12 +1 @@
|
|||||||
qdox-1.6.1-src.tar.gz
|
SOURCES/qdox-2.0~M10.tar.gz
|
||||||
qdox-1.9.2-src.tar.gz
|
|
||||||
qdox-1.10.1.tar.bz2
|
|
||||||
qdox-1.11-project.tar.bz2
|
|
||||||
qdox-1.12-project.tar.bz2
|
|
||||||
/qdox-1.12.1-project.tar.bz2
|
|
||||||
/qdox-2.0-M2-project.tar.gz
|
|
||||||
/qdox-2.0-M3-project.tar.gz
|
|
||||||
/qdox-2.0-M5-project.tar.gz
|
|
||||||
/qdox-2.0-M7-project.tar.gz
|
|
||||||
/qdox-2.0-M9-project.tar.gz
|
|
||||||
/qdox-2.0-M9.tar.gz
|
|
||||||
|
1
.qdox.metadata
Normal file
1
.qdox.metadata
Normal file
@ -0,0 +1 @@
|
|||||||
|
23152becb77e6cbae4f4587bb557af3441f6734f SOURCES/qdox-2.0~M10.tar.gz
|
39
SOURCES/0001-Port-to-JFlex-1.7.0.patch
Normal file
39
SOURCES/0001-Port-to-JFlex-1.7.0.patch
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
From 31f530b26bd4625ffe41aa16c48836455ef81c23 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Mikolaj Izdebski <mizdebsk@redhat.com>
|
||||||
|
Date: Fri, 7 Jun 2019 10:39:34 +0200
|
||||||
|
Subject: [PATCH] Port to JFlex 1.7.0
|
||||||
|
|
||||||
|
---
|
||||||
|
src/grammar/lexer.flex | 2 +-
|
||||||
|
.../java/com/thoughtworks/qdox/library/ClassLoaderLibrary.java | 2 +-
|
||||||
|
2 files changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/src/grammar/lexer.flex b/src/grammar/lexer.flex
|
||||||
|
index 9b567ff..cd9d5b6 100644
|
||||||
|
--- a/src/grammar/lexer.flex
|
||||||
|
+++ b/src/grammar/lexer.flex
|
||||||
|
@@ -168,7 +168,7 @@ import java.util.*;
|
||||||
|
}
|
||||||
|
|
||||||
|
public JFlexLexer( java.io.InputStream stream, java.io.Writer writer ) {
|
||||||
|
- this( stream );
|
||||||
|
+ this( new java.io.InputStreamReader( stream, java.nio.charset.Charset.forName( "UTF-8" ) ) );
|
||||||
|
this.writer = writer;
|
||||||
|
}
|
||||||
|
|
||||||
|
diff --git a/src/main/java/com/thoughtworks/qdox/library/ClassLoaderLibrary.java b/src/main/java/com/thoughtworks/qdox/library/ClassLoaderLibrary.java
|
||||||
|
index c947f9b..5b415c0 100644
|
||||||
|
--- a/src/main/java/com/thoughtworks/qdox/library/ClassLoaderLibrary.java
|
||||||
|
+++ b/src/main/java/com/thoughtworks/qdox/library/ClassLoaderLibrary.java
|
||||||
|
@@ -112,7 +112,7 @@ public class ClassLoaderLibrary
|
||||||
|
if ( sourceStream != null )
|
||||||
|
{
|
||||||
|
Builder builder = getModelBuilder();
|
||||||
|
- JavaLexer lexer = new JFlexLexer( sourceStream );
|
||||||
|
+ JavaLexer lexer = new JFlexLexer( new java.io.InputStreamReader( sourceStream, java.nio.charset.Charset.forName( "UTF-8" ) ) );
|
||||||
|
Parser parser = new Parser( lexer, builder );
|
||||||
|
parser.setDebugLexer( debugLexer );
|
||||||
|
parser.setDebugParser( debugParser );
|
||||||
|
--
|
||||||
|
2.21.0
|
||||||
|
|
@ -3,15 +3,14 @@ set -e
|
|||||||
|
|
||||||
name=qdox
|
name=qdox
|
||||||
version="$(sed -n 's/Version:\s*//p' *.spec)"
|
version="$(sed -n 's/Version:\s*//p' *.spec)"
|
||||||
vertag="$(sed -n 's/%global\s*vertag\s*//p' *.spec)"
|
|
||||||
|
|
||||||
# RETRIEVE
|
# RETRIEVE
|
||||||
wget "http://repo2.maven.org/maven2/com/thoughtworks/qdox/qdox/${version}-${vertag}/${name}-${version}-${vertag}-project.tar.gz" -O "${name}-${version}-${vertag}.orig.tar.gz"
|
wget "http://repo2.maven.org/maven2/com/thoughtworks/qdox/qdox/${version/'~'/'-'}/${name}-${version/'~'/'-'}-project.tar.gz" -O "${name}-${version}.orig.tar.gz"
|
||||||
|
|
||||||
rm -rf tarball-tmp
|
rm -rf tarball-tmp
|
||||||
mkdir tarball-tmp
|
mkdir tarball-tmp
|
||||||
cd tarball-tmp
|
cd tarball-tmp
|
||||||
tar xf "../${name}-${version}-${vertag}.orig.tar.gz"
|
tar xf "../${name}-${version}.orig.tar.gz"
|
||||||
|
|
||||||
# CLEAN TARBALL
|
# CLEAN TARBALL
|
||||||
find -name '*.jar' -delete
|
find -name '*.jar' -delete
|
||||||
@ -19,6 +18,6 @@ find -name '*.class' -delete
|
|||||||
# contains possibly proprietary binaries of YACC
|
# contains possibly proprietary binaries of YACC
|
||||||
rm -r */bootstrap
|
rm -r */bootstrap
|
||||||
|
|
||||||
tar cf "../${name}-${version}-${vertag}.tar.gz" *
|
tar cf "../${name}-${version}.tar.gz" *
|
||||||
cd ..
|
cd ..
|
||||||
rm -r tarball-tmp "${name}-${version}-${vertag}.orig.tar.gz"
|
rm -r tarball-tmp "${name}-${version}.orig.tar.gz"
|
@ -1,20 +1,20 @@
|
|||||||
%global vertag M9
|
%global upstream_version %(echo %{version} | tr '~' '-')
|
||||||
|
|
||||||
Summary: Extract class/interface/method definitions from sources
|
|
||||||
Name: qdox
|
Name: qdox
|
||||||
Version: 2.0
|
Version: 2.0~M10
|
||||||
Release: 3.%{vertag}%{?dist}
|
Release: 2%{?dist}
|
||||||
Epoch: 0
|
Summary: Extract class/interface/method definitions from sources
|
||||||
License: ASL 2.0
|
License: ASL 2.0
|
||||||
URL: https://github.com/paul-hammant/qdox
|
URL: https://github.com/paul-hammant/qdox
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
# ./generate-tarball.sh
|
# ./generate-tarball.sh
|
||||||
Source0: %{name}-%{version}-%{vertag}.tar.gz
|
Source0: %{name}-%{version}.tar.gz
|
||||||
Source1: qdox-MANIFEST.MF
|
Source1: qdox-MANIFEST.MF
|
||||||
# Remove bundled binaries which are possibly proprietary
|
# Remove bundled binaries which are possibly proprietary
|
||||||
Source2: generate-tarball.sh
|
Source2: generate-tarball.sh
|
||||||
|
|
||||||
|
Patch0: 0001-Port-to-JFlex-1.7.0.patch
|
||||||
|
|
||||||
BuildRequires: maven-local
|
BuildRequires: maven-local
|
||||||
BuildRequires: mvn(org.apache.maven.plugins:maven-assembly-plugin)
|
BuildRequires: mvn(org.apache.maven.plugins:maven-assembly-plugin)
|
||||||
@ -38,11 +38,9 @@ Summary: Javadoc for %{name}
|
|||||||
%description javadoc
|
%description javadoc
|
||||||
API docs for %{name}.
|
API docs for %{name}.
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-%{version}-%{vertag}
|
%setup -q -n %{name}-%{upstream_version}
|
||||||
find -name *.jar -delete
|
%patch0 -p1
|
||||||
rm -rf bootstrap
|
|
||||||
|
|
||||||
# We don't need these plugins
|
# We don't need these plugins
|
||||||
%pom_remove_plugin :animal-sniffer-maven-plugin
|
%pom_remove_plugin :animal-sniffer-maven-plugin
|
||||||
@ -57,14 +55,14 @@ rm -rf bootstrap
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
# Generate scanners (upstream does this with maven-jflex-plugin)
|
# Generate scanners (upstream does this with maven-jflex-plugin)
|
||||||
jflex --inputstreamctor -d src/main/java/com/thoughtworks/qdox/parser/impl src/grammar/lexer.flex
|
jflex -d src/main/java/com/thoughtworks/qdox/parser/impl src/grammar/lexer.flex
|
||||||
jflex --inputstreamctor -d src/main/java/com/thoughtworks/qdox/parser/impl src/grammar/commentlexer.flex
|
jflex -d src/main/java/com/thoughtworks/qdox/parser/impl src/grammar/commentlexer.flex
|
||||||
|
|
||||||
# Build artifact
|
# Build artifact
|
||||||
%mvn_build -f -- -Dqdox.byaccj.executable=byaccj
|
%mvn_build -f -- -Dqdox.byaccj.executable=byaccj
|
||||||
|
|
||||||
# Inject OSGi manifests
|
# Inject OSGi manifests
|
||||||
jar ufm target/%{name}-%{version}*.jar %{SOURCE1}
|
jar ufm target/%{name}-%{upstream_version}.jar %{SOURCE1}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%mvn_install
|
%mvn_install
|
||||||
@ -76,6 +74,18 @@ jar ufm target/%{name}-%{version}*.jar %{SOURCE1}
|
|||||||
%doc LICENSE.txt
|
%doc LICENSE.txt
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Nov 05 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.0~M10-2
|
||||||
|
- Mass rebuild for javapackages-tools 201902
|
||||||
|
|
||||||
|
* Wed Sep 18 2019 Marian Koncek <mkoncek@redhat.com> - 2.0~M10-1
|
||||||
|
- Update to upstream version 2.0~M10
|
||||||
|
|
||||||
|
* Fri Jun 07 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.0-5.M9
|
||||||
|
- Port to JFlex 1.7.0
|
||||||
|
|
||||||
|
* Fri May 24 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.0-4.M9
|
||||||
|
- Mass rebuild for javapackages-tools 201901
|
||||||
|
|
||||||
* Tue Jul 31 2018 Michael Simacek <msimacek@redhat.com> - 0:2.0-3.M9
|
* Tue Jul 31 2018 Michael Simacek <msimacek@redhat.com> - 0:2.0-3.M9
|
||||||
- Repack tarball to remove possibly proprietary binaries
|
- Repack tarball to remove possibly proprietary binaries
|
||||||
|
|
Loading…
Reference in New Issue
Block a user