1610f9
# Copyright (c) 2000-2009, JPackage Project
1610f9
# All rights reserved.
1610f9
#
1610f9
# Redistribution and use in source and binary forms, with or without
1610f9
# modification, are permitted provided that the following conditions
1610f9
# are met:
1610f9
#
1610f9
# 1. Redistributions of source code must retain the above copyright
1610f9
#    notice, this list of conditions and the following disclaimer.
1610f9
# 2. Redistributions in binary form must reproduce the above copyright
1610f9
#    notice, this list of conditions and the following disclaimer in the
1610f9
#    documentation and/or other materials provided with the
1610f9
#    distribution.
1610f9
# 3. Neither the name of the JPackage Project nor the names of its
1610f9
#    contributors may be used to endorse or promote products derived
1610f9
#    from this software without specific prior written permission.
1610f9
#
1610f9
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
1610f9
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
1610f9
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
1610f9
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
1610f9
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
1610f9
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
1610f9
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
1610f9
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
1610f9
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
1610f9
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
1610f9
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1610f9
#
1610f9
1610f9
%global __requires_exclude ^mvn\\(org\\.apache\\.ant:ant\\)$
1610f9
1610f9
Summary:        Extract class/interface/method definitions from sources
1610f9
Name:           qdox
1610f9
Version:        1.12.1
1610f9
Release:        10%{?dist}
1610f9
Epoch:          0
1610f9
License:        ASL 2.0
1610f9
URL:            http://qdox.codehaus.org/
1610f9
Group:          Development/Libraries
1610f9
Source0:        http://repo2.maven.org/maven2/com/thoughtworks/qdox/qdox/%{version}/%{name}-%{version}-project.tar.bz2
1610f9
Source1:        qdox-MANIFEST.MF
1610f9
1610f9
BuildRequires:  jpackage-utils >= 0:1.7.4
1610f9
BuildRequires:  java-devel >= 1:1.6.0
1610f9
BuildRequires:  ant >= 0:1.6
1610f9
BuildRequires:  ant-junit >= 0:1.6
1610f9
BuildRequires:  junit >= 0:3.8.1
1610f9
BuildRequires:  byaccj
1610f9
BuildRequires:  jflex
1610f9
BuildRequires:  maven-local
1610f9
BuildRequires:  maven-changes-plugin
1610f9
BuildRequires:  maven-clean-plugin
1610f9
BuildRequires:  maven-dependency-plugin
1610f9
BuildRequires:  maven-deploy-plugin
1610f9
BuildRequires:  maven-install-plugin
1610f9
BuildRequires:  maven-site-plugin
1610f9
BuildRequires:  maven-surefire-plugin
1610f9
BuildRequires:  maven-surefire-provider-junit
1610f9
BuildRequires:  maven-release-plugin
1610f9
BuildRequires:  zip
1610f9
1610f9
BuildArch:      noarch
1610f9
Obsoletes:      qdox-manual <= 0:1.9.2
1610f9
1610f9
1610f9
%description
1610f9
QDox is a high speed, small footprint parser
1610f9
for extracting class/interface/method definitions
1610f9
from source files complete with JavaDoc @tags.
1610f9
It is designed to be used by active code
1610f9
generators or documentation tools.
1610f9
1610f9
%package javadoc
1610f9
Summary:        Javadoc for %{name}
1610f9
Group:          Documentation
1610f9
1610f9
%description javadoc
1610f9
API docs for %{name}.
1610f9
1610f9
1610f9
%prep
1610f9
%setup -q 
1610f9
find -name *.jar -delete
1610f9
rm -rf bootstrap
1610f9
1610f9
# Ant changed groupId
1610f9
%pom_remove_dep ant:ant
1610f9
%pom_add_dep org.apache.ant:ant
1610f9
1610f9
# We don't need these plugins
1610f9
%pom_remove_plugin :maven-antrun-plugin
1610f9
%pom_remove_plugin :maven-jflex-plugin
1610f9
%pom_remove_plugin :maven-resources-plugin
1610f9
%pom_remove_plugin :xsite-maven-plugin
1610f9
%pom_xpath_remove pom:build/pom:extensions
1610f9
1610f9
%mvn_file : %{name}
1610f9
%mvn_alias : "qdox:qdox"
1610f9
1610f9
# %%mvn_install macro can't install apidocs from custom directory, use default one
1610f9
%pom_xpath_remove pom:reporting/pom:outputDirectory
1610f9
1610f9
%build
1610f9
# Generate scanner (upstream does this with maven-jflex-plugin)
1610f9
jflex \
1610f9
      -d src/java \
1610f9
      --skel src/grammar/skeleton.inner \
1610f9
      src/grammar/lexer.flex
1610f9
1610f9
# Generate parser (upstream does this with maven-antrun-plugin)
1610f9
dir=src/java/com/thoughtworks/qdox/parser/impl
1610f9
mkdir -p $dir
1610f9
(cd ./$dir
1610f9
byaccj \
1610f9
       -v \
1610f9
       -Jnorun \
1610f9
       -Jnoconstruct \
1610f9
       -Jclass=Parser \
1610f9
       -Jsemantic=Value \
1610f9
       -Jpackage=com.thoughtworks.qdox.parser.impl \
1610f9
       ../../../../../../grammar/parser.y)
1610f9
1610f9
# Build artifact
1610f9
%mvn_build -f
1610f9
1610f9
# Inject OSGi manifests
1610f9
mkdir -p META-INF
1610f9
cp -p %{SOURCE1} META-INF/MANIFEST.MF
1610f9
touch META-INF/MANIFEST.MF
1610f9
zip -u target/%{name}-%{version}.jar META-INF/MANIFEST.MF
1610f9
1610f9
%install
1610f9
%mvn_install
1610f9
1610f9
%files -f .mfiles
1610f9
%doc LICENSE.txt README.txt
1610f9
1610f9
%files javadoc -f .mfiles-javadoc
1610f9
%doc LICENSE.txt
1610f9
1610f9
%changelog
1610f9
* Tue Mar  1 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.12.1-10
1610f9
- Remove requires on ant
1610f9
- Resolves: rhbz#1284585
1610f9
1610f9
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 01.12.1-9
1610f9
- Mass rebuild 2013-12-27
1610f9
1610f9
* Tue Aug 27 2013 Michal Srb <msrb@redhat.com> - 0:1.12.1-8
1610f9
- Install javadoc
1610f9
1610f9
* Tue Aug 27 2013 Michal Srb <msrb@redhat.com> - 0:1.12.1-7
1610f9
- Migrate away from mvn-rpmbuild (Resolves: #997469)
1610f9
1610f9
* Fri Jun 28 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.12.1-6
1610f9
- Rebuild to regenerate API documentation
1610f9
- Resolves: CVE-2013-1571
1610f9
1610f9
* Sat Feb 23 2013 Alexander Kurtakov <akurtako@redhat.com> 0:1.12.1-5
1610f9
- Remove wagon-webdav extension.
1610f9
1610f9
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.12.1-4
1610f9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
1610f9
1610f9
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 0:1.12.1-3
1610f9
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
1610f9
- Replace maven BuildRequires with maven-local
1610f9
1610f9
* Wed Jan  9 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.12.1-2
1610f9
- Run jflex manually before Maven build is started
1610f9
- Resolves: rhbz#879653
1610f9
1610f9
* Tue Dec 11 2012 Alexander Kurtakov <akurtako@redhat.com> 0:1.12.1-1
1610f9
- Update to latest upstream release.
1610f9
1610f9
* Tue Nov 13 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0:1.12-7
1610f9
- Add license to javadoc subpackage
1610f9
1610f9
* Wed Aug 1 2012 Alexander Kurtakov <akurtako@redhat.com> 0:1.12-6
1610f9
- Inject osgi metadata from eclipse orbit.
1610f9
1610f9
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.12-5
1610f9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
1610f9
1610f9
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.12-4
1610f9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
1610f9
1610f9
* Fri Jun 10 2011 Alexander Kurtakov <akurtako@redhat.com> 0:1.12-3
1610f9
- Build with maven 3.x.
1610f9
- Adapt to current guidelines.
1610f9
1610f9
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.12-2
1610f9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
1610f9
1610f9
* Tue Oct 5 2010 Alexander Kurtakov <akurtako@redhat.com> 0:1.12-1
1610f9
- Update to new version.
1610f9
1610f9
* Mon Jun 7 2010 Alexander Kurtakov <akurtako@redhat.com> 0:1.11-3
1610f9
- Make sure to remove all yacc executables.
1610f9
1610f9
* Mon Jun 7 2010 Alexander Kurtakov <akurtako@redhat.com> 0:1.11-2
1610f9
- Symlink byaccj to both yacc.linux and yacc.linux.x86_64 to keep it building as noarch.
1610f9
1610f9
* Mon Mar 15 2010 Alexander Kurtakov <akurtako@redhat.com> 0:1.11-1
1610f9
- Update to 1.11.
1610f9
1610f9
* Mon Feb 15 2010 Alexander Kurtakov <akurtako@redhat.com> 0:1.10.1-2
1610f9
- Rebuild for rhbz#565013.
1610f9
1610f9
* Thu Jan 14 2010 Alexander Kurtakov <akurtako@redhat.com> 0:1.10.1-1
1610f9
- Update to upstream 1.10.1.
1610f9
1610f9
* Sat Sep 19 2009 Alexander Kurtakov <akurtako@redhat.com> 0:1.9.2-2
1610f9
- Remove not needed sources.
1610f9
1610f9
* Tue Aug 18 2009 Alexander Kurtakov <akurtako@redhat.com> 0:1.9.2-1
1610f9
- Update to 1.9.2.
1610f9
1610f9
* Fri Apr 03 2009 Ralph Apel <r.apel at r-apel.de> 0:1.8-1.jpp5
1610f9
- 1.8 as qdox18 because of qdox frozen at 1.6.1 in JPP-5
1610f9
1610f9
* Tue Jul 01 2008 Ralph Apel <r.apel at r-apel.de> 0:1.6.3-5.jpp5
1610f9
- Restore to devel
1610f9
- Drop mockobjects BR
1610f9
1610f9
* Fri Jun 13 2008 Ralph Apel <r.apel at r-apel.de> 0:1.6.3-4.jpp5
1610f9
- Add com.thoughtworks.qdox groupId to depmap frag
1610f9
1610f9
* Tue Feb 26 2008 Ralph Apel <r.apel at r-apel.de> 0:1.6.3-3jpp
1610f9
- Add settings file
1610f9
- Fix pom marking jmock dependency as of scope test
1610f9
- Fix -jpp-depmap.xml for asm2-parent
1610f9
1610f9
* Mon Nov 26 2007 Ralph Apel <r.apel at r-apel.de> 0:1.6.3-2jpp
1610f9
- Fix maven macro value
1610f9
1610f9
* Thu Nov 22 2007 Ralph Apel <r.apel at r-apel.de> 0:1.6.3-1jpp
1610f9
- Upgrade to 1.6.3
1610f9
1610f9
* Wed May 30 2007 Ralph Apel <r.apel at r-apel.de> 0:1.6.2-1jpp
1610f9
- Upgrade to 1.6.2
1610f9
- Activate tests while building with ant
1610f9
- Make Vendor, Distribution based on macro
1610f9
- Install depmap frags, poms
1610f9
1610f9
* Thu Mar 22 2007 Vivek Lakshmanan <vivekl@redhat.com> 0:1.6.1-1jpp.ep1.4
1610f9
- Rebuild with fixed component-info.xml
1610f9
1610f9
* Fri Feb 23 2007 Ralph Apel <r.apel at r-apel.de> 0:1.5-3jpp
1610f9
- Add option to build without maven
1610f9
- Omit tests when building without maven
1610f9
- Add gcj_support option
1610f9
1610f9
* Mon Feb 20 2006 Ralph Apel <r.apel at r-apel.de> - 0:1.5-2jpp
1610f9
- Rebuild for JPP-1.7, adapting to maven-1.1
1610f9
1610f9
* Wed Nov 16 2005 Ralph Apel <r.apel at r-apel.de> - 0:1.5-1jpp
1610f9
- Upgrade to 1.5
1610f9
- Build is now done with maven and requires jflex and byaccj
1610f9
1610f9
* Wed Aug 25 2004 Fernando Nasser <fnasser@redhat.com> - 0:1.4-3jpp
1610f9
- Rebuild with Ant 1.6.2
1610f9
1610f9
* Fri Aug 06 2004 Ralph Apel <r.apel at r-apel.de> - 0:1.4-2jpp
1610f9
- Upgrade to ant-1.6.X
1610f9
1610f9
* Mon Jun 07 2004 Ralph Apel <r.apel at r-apel.de> - 0:1.4-1jpp
1610f9
- Upgrade to 1.4
1610f9
- Drop Requires: mockobjects (Build/Test only)
1610f9
1610f9
* Tue Feb 24 2004 Ralph Apel <r.apel at r-apel.de> - 0:1.3-1jpp
1610f9
- First JPackage release