Blame SPECS/qdox.spec

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