Blame SPECS/qdox.spec

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