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