Update to upstream version 2.0-M2

This commit is contained in:
Mikolaj Izdebski 2014-10-27 12:57:05 +01:00
parent 251e0c7a8c
commit 0a81a0602a
3 changed files with 22 additions and 77 deletions

1
.gitignore vendored
View File

@ -4,3 +4,4 @@ qdox-1.10.1.tar.bz2
qdox-1.11-project.tar.bz2 qdox-1.11-project.tar.bz2
qdox-1.12-project.tar.bz2 qdox-1.12-project.tar.bz2
/qdox-1.12.1-project.tar.bz2 /qdox-1.12.1-project.tar.bz2
/qdox-2.0-M2-project.tar.gz

View File

@ -1,42 +1,14 @@
# Copyright (c) 2000-2009, JPackage Project %global vertag M2
# 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.
#
Summary: Extract class/interface/method definitions from sources Summary: Extract class/interface/method definitions from sources
Name: qdox Name: qdox
Version: 1.12.1 Version: 2.0
Release: 10%{?dist} Release: 0.1.%{vertag}%{?dist}
Epoch: 0 Epoch: 0
License: ASL 2.0 License: ASL 2.0
URL: http://qdox.codehaus.org/ URL: http://qdox.codehaus.org/
Group: Development/Libraries
Source0: http://repo2.maven.org/maven2/com/thoughtworks/qdox/qdox/%{version}/%{name}-%{version}-project.tar.bz2 Source0: http://repo2.maven.org/maven2/com/thoughtworks/qdox/qdox/%{version}-%{vertag}/%{name}-%{version}-%{vertag}-project.tar.gz
Source1: qdox-MANIFEST.MF Source1: qdox-MANIFEST.MF
BuildRequires: jpackage-utils >= 0:1.7.4 BuildRequires: jpackage-utils >= 0:1.7.4
@ -48,20 +20,10 @@ BuildRequires: byaccj
BuildRequires: jflex BuildRequires: jflex
BuildRequires: maven-local BuildRequires: maven-local
BuildRequires: maven-assembly-plugin BuildRequires: maven-assembly-plugin
BuildRequires: maven-compiler-plugin
BuildRequires: maven-changes-plugin BuildRequires: maven-changes-plugin
BuildRequires: maven-clean-plugin BuildRequires: exec-maven-plugin
BuildRequires: maven-invoker-plugin
BuildRequires: maven-plugin-cobertura BuildRequires: maven-plugin-cobertura
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
BuildRequires: maven-surefire-provider-junit
BuildRequires: maven-release-plugin
BuildRequires: zip
Requires: java-headless >= 1:1.6.0 Requires: java-headless >= 1:1.6.0
@ -78,55 +40,34 @@ generators or documentation tools.
%package javadoc %package javadoc
Summary: Javadoc for %{name} Summary: Javadoc for %{name}
Group: Documentation
Requires: jpackage-utils
%description javadoc %description javadoc
API docs for %{name}. API docs for %{name}.
%prep %prep
%setup -q %setup -q -n %{name}-%{version}-%{vertag}
find -name *.jar -delete find -name *.jar -delete
rm -rf bootstrap rm -rf bootstrap
# Ant changed groupId
%pom_remove_dep ant:ant
%pom_add_dep org.apache.ant:ant
%pom_remove_dep jmock:jmock
# We don't need these plugins # We don't need these plugins
%pom_remove_plugin :maven-antrun-plugin %pom_remove_plugin :animal-sniffer-maven-plugin
%pom_remove_plugin :maven-failsafe-plugin
%pom_remove_plugin :maven-jflex-plugin %pom_remove_plugin :maven-jflex-plugin
%pom_remove_plugin :maven-resources-plugin
%pom_remove_plugin :xsite-maven-plugin
%pom_xpath_remove pom:build/pom:extensions %pom_xpath_remove pom:build/pom:extensions
%mvn_file : %{name} %mvn_file : %{name}
%mvn_alias : qdox:qdox %mvn_alias : qdox:qdox
%build %pom_xpath_set pom:workingDirectory '${basedir}/src/main/java/com/thoughtworks/qdox/parser/impl'
# 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) %build
dir=src/java/com/thoughtworks/qdox/parser/impl # Generate scanners (upstream does this with maven-jflex-plugin)
mkdir -p $dir jflex --inputstreamctor -d src/main/java/com/thoughtworks/qdox/parser/impl src/grammar/lexer.flex
(cd ./$dir jflex --inputstreamctor -d src/main/java/com/thoughtworks/qdox/parser/impl src/grammar/commentlexer.flex
byaccj \
-v \
-Jnorun \
-Jnoconstruct \
-Jclass=Parser \
-Jsemantic=Value \
-Jpackage=com.thoughtworks.qdox.parser.impl \
../../../../../../grammar/parser.y)
# Build artifact # Build artifact
%mvn_build -f %mvn_build -f -- -Dqdox.byaccj.executable=byaccj
# Inject OSGi manifests # Inject OSGi manifests
mkdir -p META-INF mkdir -p META-INF
@ -135,7 +76,7 @@ touch META-INF/MANIFEST.MF
zip -u target/%{name}-%{version}.jar META-INF/MANIFEST.MF zip -u target/%{name}-%{version}.jar META-INF/MANIFEST.MF
%install %install
%mvn_install -J target/apidocs %mvn_install
%files -f .mfiles %files -f .mfiles
%doc LICENSE.txt README.txt %doc LICENSE.txt README.txt
@ -144,6 +85,9 @@ zip -u target/%{name}-%{version}.jar META-INF/MANIFEST.MF
%doc LICENSE.txt %doc LICENSE.txt
%changelog %changelog
* Mon Oct 27 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:2.0-1.M2
- Update to upstream version 2.0-M2
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.12.1-10 * Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.12.1-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild

View File

@ -1 +1 @@
69a60c49393894b5f037e34a91687e99 qdox-1.12.1-project.tar.bz2 6fe749f471248897da464051f7ab998b qdox-2.0-M2-project.tar.gz