| |
@@ -3,8 +3,8 @@
|
| |
|
| |
Summary: Fast Scanner Generator
|
| |
Name: jflex
|
| |
- Version: 1.6.1
|
| |
- Release: 14%{?dist}
|
| |
+ Version: 1.7.0
|
| |
+ Release: 1%{?dist}
|
| |
License: BSD
|
| |
URL: http://jflex.de/
|
| |
BuildArch: noarch
|
| |
@@ -16,20 +16,21 @@
|
| |
Source4: %{name}.1
|
| |
Source5: create-tarball.sh
|
| |
|
| |
- BuildRequires: maven-local
|
| |
- BuildRequires: ant
|
| |
BuildRequires: jflex
|
| |
- BuildRequires: junit
|
| |
- BuildRequires: sonatype-oss-parent
|
| |
- BuildRequires: java-devel
|
| |
- BuildRequires: java_cup
|
| |
+ BuildRequires: maven-local
|
| |
+ BuildRequires: mvn(java_cup:java_cup)
|
| |
+ BuildRequires: mvn(junit:junit)
|
| |
+ BuildRequires: mvn(org.apache.ant:ant)
|
| |
+
|
| |
%if %{with desktop}
|
| |
BuildRequires: desktop-file-utils
|
| |
%endif
|
| |
+
|
| |
%if %{with emacs}
|
| |
BuildRequires: emacs
|
| |
Requires: emacs-filesystem >= %{_emacs_version}
|
| |
%endif
|
| |
+
|
| |
# Explicit javapackages-tools requires since scripts use
|
| |
# /usr/share/java-utils/java-functions
|
| |
Requires: javapackages-tools
|
| |
@@ -56,13 +57,27 @@
|
| |
%mvn_file : %{name}
|
| |
%pom_add_dep java_cup:java_cup
|
| |
|
| |
- %pom_remove_plugin :maven-antrun-plugin
|
| |
%pom_remove_plugin :jflex-maven-plugin
|
| |
+ %pom_remove_plugin :cup-maven-plugin
|
| |
+ %pom_remove_plugin :maven-shade-plugin
|
| |
+ %pom_remove_dep :cup_runtime
|
| |
|
| |
# Tests fail with 320k stacks (default on i686), so lets increase
|
| |
# stack to 16M to avoid stack overflows. See rhbz#1119308
|
| |
%pom_xpath_inject "pom:plugin[pom:artifactId='maven-surefire-plugin']/pom:configuration" "<argLine>-Xss16384k</argLine>"
|
| |
|
| |
+ %pom_xpath_remove "pom:plugin[pom:artifactId='maven-site-plugin']" parent.xml
|
| |
+ %pom_xpath_remove "pom:plugin[pom:artifactId='fmt-maven-plugin']" parent.xml
|
| |
+ %pom_xpath_remove "pom:plugin[pom:artifactId='cup-maven-plugin']" parent.xml
|
| |
+ %pom_xpath_remove "pom:plugin[pom:artifactId='maven-shade-plugin']" parent.xml
|
| |
+
|
| |
+ %pom_xpath_remove "pom:dependency[pom:artifactId='plexus-compiler-javac-errorprone']" parent.xml
|
| |
+ %pom_xpath_remove "pom:dependency[pom:artifactId='error_prone_core']" parent.xml
|
| |
+ %pom_xpath_remove "pom:compilerId" parent.xml
|
| |
+ %pom_xpath_remove "pom:compilerArgs" parent.xml
|
| |
+
|
| |
+ sed -i /%%inputstreamctor/d src/main/jflex/LexScan.flex
|
| |
+
|
| |
%build
|
| |
java -jar $(find-jar java_cup) -parser LexParse -interface -destdir src/main/java src/main/cup/LexParse.cup
|
| |
jflex -d src/main/java/jflex --skel src/main/jflex/skeleton.nested src/main/jflex/LexScan.flex
|
| |
@@ -116,6 +131,9 @@
|
| |
|
| |
|
| |
%changelog
|
| |
+ * Wed Aug 14 2019 Fabio Valentini <decathorpe@gmail.com> - 1.7.0-1
|
| |
+ - Update to version 1.7.0.
|
| |
+
|
| |
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.1-14
|
| |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
| |
|
| |
This requires a patch for qdox (which I will push with another PR shortly).
The update to 1.7.0 is already available from MBI and the modular branches.