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