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