feb6f5
%bcond_with bootstrap
feb6f5
feb6f5
%global upstream_version %(echo %{version} | tr '~' '-')
feb6f5
feb6f5
Name:           qdox
feb6f5
Version:        2.0.0
feb6f5
Release:        8%{?dist}
feb6f5
Summary:        Extract class/interface/method definitions from sources
feb6f5
License:        ASL 2.0
feb6f5
URL:            https://github.com/paul-hammant/qdox
feb6f5
BuildArch:      noarch
feb6f5
feb6f5
# ./generate-tarball.sh
feb6f5
Source0:        %{name}-%{version}.tar.gz
feb6f5
Source1:        qdox-MANIFEST.MF
feb6f5
# Remove bundled binaries which are possibly proprietary
feb6f5
Source2:        generate-tarball.sh
feb6f5
feb6f5
Patch0:         0001-Port-to-JFlex-1.7.0.patch
feb6f5
feb6f5
BuildRequires:  maven-local
feb6f5
BuildRequires:  byaccj
feb6f5
%if %{with bootstrap}
feb6f5
BuildRequires:  javapackages-bootstrap
feb6f5
%else
feb6f5
BuildRequires:  jflex
feb6f5
%endif
feb6f5
feb6f5
%description
feb6f5
QDox is a high speed, small footprint parser
feb6f5
for extracting class/interface/method definitions
feb6f5
from source files complete with JavaDoc @tags.
feb6f5
It is designed to be used by active code
feb6f5
generators or documentation tools.
feb6f5
feb6f5
%package javadoc
feb6f5
Summary:        Javadoc for %{name}
feb6f5
feb6f5
%description javadoc
feb6f5
API docs for %{name}.
feb6f5
feb6f5
%prep
feb6f5
%setup -q -n %{name}-%{upstream_version}
feb6f5
%patch0 -p1
feb6f5
feb6f5
# remove unnecessary dependency on parent POM
feb6f5
%pom_remove_parent
feb6f5
feb6f5
# We don't need these plugins
feb6f5
%pom_remove_plugin :animal-sniffer-maven-plugin
feb6f5
%pom_remove_plugin :maven-assembly-plugin
feb6f5
%pom_remove_plugin :maven-failsafe-plugin
feb6f5
%pom_remove_plugin :maven-invoker-plugin
feb6f5
%pom_remove_plugin :maven-jflex-plugin
feb6f5
%pom_remove_plugin :maven-enforcer-plugin
feb6f5
%pom_remove_plugin :exec-maven-plugin
feb6f5
feb6f5
%mvn_file : %{name}
feb6f5
%mvn_alias : qdox:qdox
feb6f5
feb6f5
%build
feb6f5
%{?jpb_env}
feb6f5
feb6f5
# Generate scanners (upstream does this with maven-jflex-plugin)
feb6f5
jflex -d src/main/java/com/thoughtworks/qdox/parser/impl src/grammar/lexer.flex
feb6f5
jflex -d src/main/java/com/thoughtworks/qdox/parser/impl src/grammar/commentlexer.flex
feb6f5
feb6f5
# Generate parsers (upstream does this with exec-maven-plugin)
feb6f5
(cd ./src/main/java/com/thoughtworks/qdox/parser/impl
feb6f5
 byaccj -v -Jnorun -Jnoconstruct -Jclass=DefaultJavaCommentParser -Jpackage=com.thoughtworks.qdox.parser.impl ../../../../../../../grammar/commentparser.y
feb6f5
 byaccj -v -Jnorun -Jnoconstruct -Jclass=Parser -Jimplements=CommentHandler -Jsemantic=Value -Jpackage=com.thoughtworks.qdox.parser.impl -Jstack=500 ../../../../../../../grammar/parser.y
feb6f5
)
feb6f5
feb6f5
# Build artifact
feb6f5
%mvn_build -f
feb6f5
feb6f5
# Inject OSGi manifests
feb6f5
jar ufm target/%{name}-%{upstream_version}.jar %{SOURCE1}
feb6f5
feb6f5
%install
feb6f5
%mvn_install
feb6f5
feb6f5
%files -f .mfiles
feb6f5
%license LICENSE.txt
feb6f5
%doc README.md
feb6f5
feb6f5
%files javadoc -f .mfiles-javadoc
feb6f5
%license LICENSE.txt
feb6f5
feb6f5
%changelog
feb6f5
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 2.0.0-8
feb6f5
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
feb6f5
  Related: rhbz#1991688
feb6f5
feb6f5
* Wed Jun 09 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.0.0-7
feb6f5
- Rebuild to workaround DistroBaker issue
feb6f5
feb6f5
* Tue Jun 08 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.0.0-6
feb6f5
- Bootstrap Maven for CentOS Stream 9
feb6f5
feb6f5
* Mon May 17 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.0.0-5
feb6f5
- Bootstrap build
feb6f5
- Non-bootstrap build
feb6f5
feb6f5
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0:2.0.0-4
feb6f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
feb6f5
feb6f5
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0:2.0.0-3
feb6f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
feb6f5
feb6f5
* Sat Jul 11 2020 Jiri Vanek <jvanek@redhat.com> - 0:2.0.0-2
feb6f5
- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11
feb6f5
feb6f5
* Wed Feb 26 2020 Marian Koncek <mkoncek@redhat.com> - 2.0.0-1
feb6f5
- Update to upstream version 2.0.0
feb6f5
feb6f5
* Thu Feb 13 2020 Fabio Valentini <decathorpe@gmail.com> - 0:2.0.0-1
feb6f5
- Update to version 2.0.0.
feb6f5
feb6f5
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0:2.0-8.M9
feb6f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
feb6f5
feb6f5
* Fri Nov 22 2019 Fabio Valentini <decathorpe@gmail.com> - 0:2.0-7.M9
feb6f5
- Remove unnecessary dependency on parent POM.
feb6f5
feb6f5
* Tue Nov 05 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.0~M10-2
feb6f5
- Mass rebuild for javapackages-tools 201902
feb6f5
feb6f5
* Wed Sep 18 2019 Marian Koncek <mkoncek@redhat.com> - 2.0~M10-1
feb6f5
- Update to upstream version 2.0~M10
feb6f5
feb6f5
* Sun Aug 18 2019 Fabio Valentini <decathorpe@gmail.com> - 0:2.0-6.M9
feb6f5
- Port to jflex 1.7.0.
feb6f5
feb6f5
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0:2.0-5.M9
feb6f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
feb6f5
feb6f5
* Fri Jun 07 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.0-5.M9
feb6f5
- Port to JFlex 1.7.0
feb6f5
feb6f5
* Fri May 24 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.0-4.M9
feb6f5
- Mass rebuild for javapackages-tools 201901
feb6f5
feb6f5
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0:2.0-4.M9
feb6f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
feb6f5
feb6f5
* Tue Jul 31 2018 Michael Simacek <msimacek@redhat.com> - 0:2.0-3.M9
feb6f5
- Repack tarball to remove possibly proprietary binaries
feb6f5
feb6f5
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0:2.0-2.M9
feb6f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
feb6f5
feb6f5
* Tue Jun 05 2018 Michael Simacek <msimacek@redhat.com> - 0:2.0-1.M9
feb6f5
- Update to upstream version 2.0-M9
feb6f5
feb6f5
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0:2.0-0.12.M7
feb6f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
feb6f5
feb6f5
* Mon Sep 25 2017 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:2.0-0.11.M7
feb6f5
- Elimitate race condition when injecting JAR manifest
feb6f5
- Resolves: rhbz#1495243
feb6f5
feb6f5
* Tue Sep 12 2017 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:2.0-0.10.M7
feb6f5
- Update to upstream version 2.0-M7
feb6f5
feb6f5
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0:2.0-0.9.M5
feb6f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
feb6f5
feb6f5
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0:2.0-0.8.M5
feb6f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
feb6f5
feb6f5
* Fri Jan 20 2017 Michael Simacek <msimacek@redhat.com> - 0:2.0-0.7.M5
feb6f5
- Backport patch for misparsed comments
feb6f5
feb6f5
* Tue Jan 17 2017 Michael Simacek <msimacek@redhat.com> - 0:2.0-0.6.M5
feb6f5
- Update to upstream version 2.0-M5
feb6f5
feb6f5
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0:2.0-0.5.M3
feb6f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
feb6f5
feb6f5
* Mon Jun 22 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:2.0-0.4.M3
feb6f5
- Update to upstream version 2.0-M3
feb6f5
feb6f5
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:2.0-0.3.M2
feb6f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
feb6f5
feb6f5
* Tue Mar 24 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:2.0-0.2.M2
feb6f5
- Regenerate build-requires
feb6f5
- Remove obsoletes on qdox-manual
feb6f5
feb6f5
* Mon Oct 27 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:2.0-1.M2
feb6f5
- Update to upstream version 2.0-M2
feb6f5
feb6f5
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.12.1-10
feb6f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
feb6f5
feb6f5
* Thu May 29 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.12.1-9
feb6f5
- Build with %%mvn_build
feb6f5
feb6f5
* Tue Mar 04 2014 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0:1.12.1-8
feb6f5
- Use Requires: java-headless rebuild (#1067528)
feb6f5
feb6f5
* Mon Aug 12 2013 akurtakov <akurtakov@localhost.localdomain> 0:1.12.1-7
feb6f5
- Fix FTBFS bug#993187 .
feb6f5
feb6f5
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.12.1-6
feb6f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
feb6f5
feb6f5
* Sat Feb 23 2013 Alexander Kurtakov <akurtako@redhat.com> 0:1.12.1-5
feb6f5
- Remove wagon-webdav extension.
feb6f5
feb6f5
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.12.1-4
feb6f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
feb6f5
feb6f5
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 0:1.12.1-3
feb6f5
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
feb6f5
- Replace maven BuildRequires with maven-local
feb6f5
feb6f5
* Wed Jan  9 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.12.1-2
feb6f5
- Run jflex manually before Maven build is started
feb6f5
- Resolves: rhbz#879653
feb6f5
feb6f5
* Tue Dec 11 2012 Alexander Kurtakov <akurtako@redhat.com> 0:1.12.1-1
feb6f5
- Update to latest upstream release.
feb6f5
feb6f5
* Tue Nov 13 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0:1.12-7
feb6f5
- Add license to javadoc subpackage
feb6f5
feb6f5
* Wed Aug 1 2012 Alexander Kurtakov <akurtako@redhat.com> 0:1.12-6
feb6f5
- Inject osgi metadata from eclipse orbit.
feb6f5
feb6f5
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.12-5
feb6f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
feb6f5
feb6f5
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.12-4
feb6f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
feb6f5
feb6f5
* Fri Jun 10 2011 Alexander Kurtakov <akurtako@redhat.com> 0:1.12-3
feb6f5
- Build with maven 3.x.
feb6f5
- Adapt to current guidelines.
feb6f5
feb6f5
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.12-2
feb6f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
feb6f5
feb6f5
* Tue Oct 5 2010 Alexander Kurtakov <akurtako@redhat.com> 0:1.12-1
feb6f5
- Update to new version.
feb6f5
feb6f5
* Mon Jun 7 2010 Alexander Kurtakov <akurtako@redhat.com> 0:1.11-3
feb6f5
- Make sure to remove all yacc executables.
feb6f5
feb6f5
* Mon Jun 7 2010 Alexander Kurtakov <akurtako@redhat.com> 0:1.11-2
feb6f5
- Symlink byaccj to both yacc.linux and yacc.linux.x86_64 to keep it building as noarch.
feb6f5
feb6f5
* Mon Mar 15 2010 Alexander Kurtakov <akurtako@redhat.com> 0:1.11-1
feb6f5
- Update to 1.11.
feb6f5
feb6f5
* Mon Feb 15 2010 Alexander Kurtakov <akurtako@redhat.com> 0:1.10.1-2
feb6f5
- Rebuild for rhbz#565013.
feb6f5
feb6f5
* Thu Jan 14 2010 Alexander Kurtakov <akurtako@redhat.com> 0:1.10.1-1
feb6f5
- Update to upstream 1.10.1.
feb6f5
feb6f5
* Sat Sep 19 2009 Alexander Kurtakov <akurtako@redhat.com> 0:1.9.2-2
feb6f5
- Remove not needed sources.
feb6f5
feb6f5
* Tue Aug 18 2009 Alexander Kurtakov <akurtako@redhat.com> 0:1.9.2-1
feb6f5
- Update to 1.9.2.
feb6f5
feb6f5
* Fri Apr 03 2009 Ralph Apel <r.apel at r-apel.de> 0:1.8-1.jpp5
feb6f5
- 1.8 as qdox18 because of qdox frozen at 1.6.1 in JPP-5
feb6f5
feb6f5
* Tue Jul 01 2008 Ralph Apel <r.apel at r-apel.de> 0:1.6.3-5.jpp5
feb6f5
- Restore to devel
feb6f5
- Drop mockobjects BR
feb6f5
feb6f5
* Fri Jun 13 2008 Ralph Apel <r.apel at r-apel.de> 0:1.6.3-4.jpp5
feb6f5
- Add com.thoughtworks.qdox groupId to depmap frag
feb6f5
feb6f5
* Tue Feb 26 2008 Ralph Apel <r.apel at r-apel.de> 0:1.6.3-3jpp
feb6f5
- Add settings file
feb6f5
- Fix pom marking jmock dependency as of scope test
feb6f5
- Fix -jpp-depmap.xml for asm2-parent
feb6f5
feb6f5
* Mon Nov 26 2007 Ralph Apel <r.apel at r-apel.de> 0:1.6.3-2jpp
feb6f5
- Fix maven macro value
feb6f5
feb6f5
* Thu Nov 22 2007 Ralph Apel <r.apel at r-apel.de> 0:1.6.3-1jpp
feb6f5
- Upgrade to 1.6.3
feb6f5
feb6f5
* Wed May 30 2007 Ralph Apel <r.apel at r-apel.de> 0:1.6.2-1jpp
feb6f5
- Upgrade to 1.6.2
feb6f5
- Activate tests while building with ant
feb6f5
- Make Vendor, Distribution based on macro
feb6f5
- Install depmap frags, poms
feb6f5
feb6f5
* Thu Mar 22 2007 Vivek Lakshmanan <vivekl@redhat.com> 0:1.6.1-1jpp.ep1.4
feb6f5
- Rebuild with fixed component-info.xml
feb6f5
feb6f5
* Fri Feb 23 2007 Ralph Apel <r.apel at r-apel.de> 0:1.5-3jpp
feb6f5
- Add option to build without maven
feb6f5
- Omit tests when building without maven
feb6f5
- Add gcj_support option
feb6f5
feb6f5
* Mon Feb 20 2006 Ralph Apel <r.apel at r-apel.de> - 0:1.5-2jpp
feb6f5
- Rebuild for JPP-1.7, adapting to maven-1.1
feb6f5
feb6f5
* Wed Nov 16 2005 Ralph Apel <r.apel at r-apel.de> - 0:1.5-1jpp
feb6f5
- Upgrade to 1.5
feb6f5
- Build is now done with maven and requires jflex and byaccj
feb6f5
feb6f5
* Wed Aug 25 2004 Fernando Nasser <fnasser@redhat.com> - 0:1.4-3jpp
feb6f5
- Rebuild with Ant 1.6.2
feb6f5
feb6f5
* Fri Aug 06 2004 Ralph Apel <r.apel at r-apel.de> - 0:1.4-2jpp
feb6f5
- Upgrade to ant-1.6.X
feb6f5
feb6f5
* Mon Jun 07 2004 Ralph Apel <r.apel at r-apel.de> - 0:1.4-1jpp
feb6f5
- Upgrade to 1.4
feb6f5
- Drop Requires: mockobjects (Build/Test only)
feb6f5
feb6f5
* Tue Feb 24 2004 Ralph Apel <r.apel at r-apel.de> - 0:1.3-1jpp
feb6f5
- First JPackage release