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