2ac5f4
# Copyright (c) 2000-2005, JPackage Project
2ac5f4
# All rights reserved.
2ac5f4
#
2ac5f4
# Redistribution and use in source and binary forms, with or without
2ac5f4
# modification, are permitted provided that the following conditions
2ac5f4
# are met:
2ac5f4
#
2ac5f4
# 1. Redistributions of source code must retain the above copyright
2ac5f4
#    notice, this list of conditions and the following disclaimer.
2ac5f4
# 2. Redistributions in binary form must reproduce the above copyright
2ac5f4
#    notice, this list of conditions and the following disclaimer in the
2ac5f4
#    documentation and/or other materials provided with the
2ac5f4
#    distribution.
2ac5f4
# 3. Neither the name of the JPackage Project nor the names of its
2ac5f4
#    contributors may be used to endorse or promote products derived
2ac5f4
#    from this software without specific prior written permission.
2ac5f4
#
2ac5f4
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
2ac5f4
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
2ac5f4
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
2ac5f4
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
2ac5f4
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
2ac5f4
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
2ac5f4
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
2ac5f4
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
2ac5f4
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
2ac5f4
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
2ac5f4
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2ac5f4
#
2ac5f4
2ac5f4
%global parent maven-doxia
2ac5f4
%global subproj sitetools
2ac5f4
2ac5f4
Name:           %{parent}-%{subproj}
2ac5f4
Version:        1.4
a8454a
Release:        3%{?dist}
2ac5f4
Summary:        Doxia content generation framework
2ac5f4
License:        ASL 2.0
2ac5f4
Group:          Development/Tools
2ac5f4
URL:            http://maven.apache.org/doxia/
2ac5f4
2ac5f4
Source0:        http://repo2.maven.org/maven2/org/apache/maven/doxia/doxia-sitetools/%{version}/doxia-%{subproj}-%{version}-source-release.zip
2ac5f4
2ac5f4
2ac5f4
Patch1:         0001-Remove-dependency-on-velocity-tools.patch
2ac5f4
2ac5f4
BuildRequires:  maven-local
2ac5f4
BuildRequires:  java-devel
2ac5f4
BuildRequires:  mvn(commons-collections:commons-collections)
2ac5f4
BuildRequires:  mvn(org.apache.maven.doxia:doxia-core)
2ac5f4
BuildRequires:  mvn(org.apache.maven.doxia:doxia-logging-api)
2ac5f4
BuildRequires:  mvn(org.apache.maven.doxia:doxia-module-apt)
2ac5f4
BuildRequires:  mvn(org.apache.maven.doxia:doxia-module-fml)
2ac5f4
BuildRequires:  mvn(org.apache.maven.doxia:doxia-module-fo)
2ac5f4
BuildRequires:  mvn(org.apache.maven.doxia:doxia-module-xdoc)
2ac5f4
BuildRequires:  mvn(org.apache.maven.doxia:doxia-module-xhtml)
2ac5f4
BuildRequires:  mvn(org.apache.maven.doxia:doxia-sink-api)
2ac5f4
BuildRequires:  mvn(org.apache.maven:maven-parent)
2ac5f4
BuildRequires:  mvn(org.apache.velocity:velocity)
2ac5f4
BuildRequires:  mvn(org.codehaus.plexus:plexus-container-default)
2ac5f4
BuildRequires:  mvn(org.codehaus.plexus:plexus-i18n)
2ac5f4
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)
2ac5f4
BuildRequires:  mvn(org.codehaus.plexus:plexus-velocity)
2ac5f4
BuildRequires:  mvn(xalan:xalan)
2ac5f4
BuildRequires:  mvn(xml-apis:xml-apis)
2ac5f4
2ac5f4
BuildArch:      noarch
2ac5f4
2ac5f4
%description
2ac5f4
Doxia is a content generation framework which aims to provide its
2ac5f4
users with powerful techniques for generating static and dynamic
2ac5f4
content. Doxia can be used to generate static sites in addition to
2ac5f4
being incorporated into dynamic content generation systems like blogs,
2ac5f4
wikis and content management systems.
2ac5f4
2ac5f4
%package javadoc
2ac5f4
Summary:        Javadoc for %{name}
2ac5f4
Group:          Documentation
2ac5f4
2ac5f4
%description javadoc
2ac5f4
API documentation for %{name}.
2ac5f4
2ac5f4
%prep
2ac5f4
%setup -q -n doxia-%{subproj}-%{version}
2ac5f4
2ac5f4
# upstream added support for velocity toolmanager, but it also means new
2ac5f4
# dependency on velocity-tools. we don't want to depend on this package
2ac5f4
# (it depends on struts 1) so this patch reverts upstream changes
2ac5f4
%patch1 -p1
2ac5f4
%pom_remove_dep :velocity-tools doxia-site-renderer
2ac5f4
2ac5f4
%pom_remove_plugin org.codehaus.mojo:clirr-maven-plugin
2ac5f4
%pom_remove_dep net.sourceforge.htmlunit:htmlunit doxia-site-renderer/pom.xml
2ac5f4
2ac5f4
2ac5f4
%pom_xpath_inject "pom:plugin[pom:artifactId[text()='modello-maven-plugin']]/pom:configuration" \
2ac5f4
    "<useJava5>true</useJava5>" doxia-decoration-model
2ac5f4
2ac5f4
# There are two backends for generating PDFs: one based on iText and
2ac5f4
# one using FOP.  iText module is broken and only brings additional
2ac5f4
# dependencies.  Besides that upstream admits that iText support will
2ac5f4
# likely removed in future versions of Doxia.  In Fedora we remove
2ac5f4
# iText backend sooner in order to fix dependency problems.
2ac5f4
#
2ac5f4
# See also: http://maven.apache.org/doxia/faq.html#How_to_export_in_PDF
2ac5f4
# http://lists.fedoraproject.org/pipermail/java-devel/2013-April/004742.html
2ac5f4
rm -rf $(find -type d -name itext)
2ac5f4
%pom_remove_dep :itext doxia-doc-renderer
2ac5f4
%pom_remove_dep :doxia-module-itext doxia-doc-renderer
2ac5f4
2ac5f4
%build
2ac5f4
# tests can't run because of missing deps
2ac5f4
%mvn_build -f
2ac5f4
2ac5f4
%install
2ac5f4
%mvn_install
2ac5f4
2ac5f4
2ac5f4
%files -f .mfiles
2ac5f4
2ac5f4
%files javadoc -f .mfiles-javadoc
2ac5f4
2ac5f4
%changelog
a8454a
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.4-3
a8454a
- Mass rebuild 2013-12-27
a8454a
2ac5f4
* Fri Jun 28 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.4-2
2ac5f4
- Rebuild to regenerate API documentation
2ac5f4
- Resolves: CVE-2013-1571
2ac5f4
2ac5f4
* Mon Apr 29 2013 Michal Srb <msrb@redhat.com> - 1.4-1
2ac5f4
- Update to upstream version 1.4
2ac5f4
- Remove unneeded patch
2ac5f4
2ac5f4
* Tue Apr  9 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.3-4
2ac5f4
- Fix BuildRequires
2ac5f4
2ac5f4
* Tue Apr  9 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.3-3
2ac5f4
- Remove iText PDF backend
2ac5f4
2ac5f4
* Tue Apr 09 2013 Michal Srb <msrb@redhat.com>
2ac5f4
- Remove dependency on velocity-tools
2ac5f4
2ac5f4
* Wed Feb 06 2013 Michal Srb <msrb@redhat.com> - 1.3-1
2ac5f4
- Update to upstream version 1.3
2ac5f4
- Migrate from maven-doxia to doxia subpackages (#889145)
2ac5f4
- Build with xmvn
2ac5f4
- Replace patches with pom_ macros
2ac5f4
- Remove unnecessary depmap
2ac5f4
2ac5f4
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 1.2-6
2ac5f4
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
2ac5f4
- Replace maven BuildRequires with maven-local
2ac5f4
2ac5f4
* Wed Nov 28 2012 Tomas Radej <tradej@redhat.com> - 1.2-5
2ac5f4
- Removed (B)R on plexus-container-default
2ac5f4
2ac5f4
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-4
2ac5f4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
2ac5f4
2ac5f4
* Fri Jan 27 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.2-3
2ac5f4
- Remove dependency on plexux-xmlrpc
2ac5f4
- Add BR/R on java 1.7.0+
2ac5f4
2ac5f4
* Mon Jan 09 2012 Jaromir Capik <jcapik@redhat.com> - 1.2-2
2ac5f4
- Migration from plexus-maven-plugin to plexus-containers-component-metadata
2ac5f4
- Minor spec file changes according to the latest guidelines
2ac5f4
2ac5f4
* Fri May  6 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.2-1
2ac5f4
- Update to latest version (1.2)
2ac5f4
- Use maven 3 to build
2ac5f4
- Remove version limits on BR/R (not valid anymore anyway)
2ac5f4
2ac5f4
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.3-3
2ac5f4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
2ac5f4
2ac5f4
* Fri Dec 17 2010 Alexander Kurtakov <akurtako@redhat.com> 1.1.3-2
2ac5f4
- Adapt to current guidelines.
2ac5f4
2ac5f4
* Tue Sep  7 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.1.3-1
2ac5f4
- Update to 1.1.3
2ac5f4
- Enable javadoc generation again
2ac5f4
- Update maven plugins BRs
2ac5f4
- Make dependency on maven-doxia unversioned
2ac5f4
2ac5f4
* Thu Jun 17 2010 Deepak Bhole <dbhole@redhat.com> - 0:1.1.2-3
2ac5f4
- Rebuild with maven 2.2.1
2ac5f4
- Remove modello 1.0 patch
2ac5f4
2ac5f4
* Wed May  5 2010 Mary Ellen Foster <mefoster at gmail.com> 0:1.1.2-2
2ac5f4
- Add (Build)Requirement maven-shared-reporting-impl,
2ac5f4
  plexus-containers-container-default, jakarta-commons-configuration
2ac5f4
2ac5f4
* Fri Feb 12 2010 Mary Ellen Foster <mefoster at gmail.com> 0:1.1.2-1
2ac5f4
- Update to 1.1.2
2ac5f4
- Temporarily disable javadoc until maven2-plugin-javadoc is rebuilt against
2ac5f4
  the new doxia
2ac5f4
2ac5f4
* Mon Dec 21 2009 Alexander Kurtakov <akurtako@redhat.com> 1.0-0.2.a10.2
2ac5f4
- BR maven-surefire-provider-junit.
2ac5f4
2ac5f4
* Tue Sep 01 2009 Andrew Overholt <overholt@redhat.com> 1.0-0.2.a10.1
2ac5f4
- Add itext, tomcat5, and tomcat5-servlet-2.4-api BRs
2ac5f4
2ac5f4
* Fri Aug 28 2009 Andrew Overholt <overholt@redhat.com> 1.0-0.2.a10
2ac5f4
- First Fedora build
2ac5f4
2ac5f4
* Fri Jun 20 2000 Deepak Bhole <dbhole@redhat.com> 1.0-0.1.a10.0jpp.1
2ac5f4
- Initial build