af9803
%bcond_without  markdown
af9803
%bcond_without  fop
af9803
af9803
%global parent maven-doxia
af9803
%global subproj sitetools
af9803
af9803
Name:           %{parent}-%{subproj}
af9803
Version:        1.7.5
af9803
Release:        2%{?dist}
af9803
Summary:        Doxia content generation framework
af9803
License:        ASL 2.0
af9803
URL:            http://maven.apache.org/doxia/
af9803
BuildArch:      noarch
af9803
af9803
Source0:        http://repo2.maven.org/maven2/org/apache/maven/doxia/doxia-sitetools/%{version}/doxia-%{subproj}-%{version}-source-release.zip
af9803
af9803
Patch0:         0001-Port-to-plexus-utils-3.0.24.patch
af9803
Patch1:         0002-Remove-dependency-on-velocity-tools.patch
af9803
af9803
BuildRequires:  maven-local
af9803
BuildRequires:  mvn(commons-collections:commons-collections)
af9803
BuildRequires:  mvn(commons-io:commons-io)
af9803
BuildRequires:  mvn(commons-lang:commons-lang)
af9803
BuildRequires:  mvn(org.apache.maven.doxia:doxia-core)
af9803
BuildRequires:  mvn(org.apache.maven.doxia:doxia-logging-api)
af9803
BuildRequires:  mvn(org.apache.maven.doxia:doxia-module-apt)
af9803
BuildRequires:  mvn(org.apache.maven.doxia:doxia-module-fml)
af9803
%if %{with fop}
af9803
BuildRequires:  mvn(org.apache.maven.doxia:doxia-module-fo)
af9803
%endif
af9803
%if %{with markdown}
af9803
BuildRequires:  mvn(org.apache.maven.doxia:doxia-module-markdown)
af9803
%endif
af9803
BuildRequires:  mvn(org.apache.maven.doxia:doxia-module-xdoc)
af9803
BuildRequires:  mvn(org.apache.maven.doxia:doxia-module-xhtml)
af9803
BuildRequires:  mvn(org.apache.maven.doxia:doxia-sink-api)
af9803
BuildRequires:  mvn(org.apache.maven:maven-artifact)
af9803
BuildRequires:  mvn(org.apache.maven:maven-artifact:2.2.1)
af9803
BuildRequires:  mvn(org.apache.maven:maven-artifact-manager)
af9803
BuildRequires:  mvn(org.apache.maven:maven-model:2.2.1)
af9803
BuildRequires:  mvn(org.apache.maven:maven-parent:pom:)
af9803
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
af9803
BuildRequires:  mvn(org.apache.maven:maven-project)
af9803
BuildRequires:  mvn(org.apache.maven.reporting:maven-reporting-api)
af9803
BuildRequires:  mvn(org.apache.velocity:velocity)
af9803
BuildRequires:  mvn(org.codehaus.modello:modello-maven-plugin)
af9803
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-annotations)
af9803
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-metadata)
af9803
BuildRequires:  mvn(org.codehaus.plexus:plexus-container-default)
af9803
BuildRequires:  mvn(org.codehaus.plexus:plexus-i18n)
af9803
BuildRequires:  mvn(org.codehaus.plexus:plexus-interpolation)
af9803
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)
af9803
BuildRequires:  mvn(org.codehaus.plexus:plexus-velocity)
af9803
BuildRequires:  mvn(xalan:xalan)
af9803
BuildRequires:  mvn(xml-apis:xml-apis)
af9803
af9803
Provides:      maven-doxia-tools = %{version}-%{release}
af9803
Obsoletes:     maven-doxia-tools < 1.7
af9803
af9803
%description
af9803
Doxia is a content generation framework which aims to provide its
af9803
users with powerful techniques for generating static and dynamic
af9803
content. Doxia can be used to generate static sites in addition to
af9803
being incorporated into dynamic content generation systems like blogs,
af9803
wikis and content management systems.
af9803
af9803
%package javadoc
af9803
Summary:        Javadoc for %{name}
af9803
af9803
%description javadoc
af9803
API documentation for %{name}.
af9803
af9803
%prep
af9803
%setup -q -n doxia-%{subproj}-%{version}
af9803
%patch0 -p1
af9803
%patch1 -p1
af9803
af9803
# complains
af9803
%pom_remove_plugin :apache-rat-plugin
af9803
%pom_remove_plugin :maven-enforcer-plugin
af9803
af9803
%pom_remove_plugin org.codehaus.mojo:clirr-maven-plugin
af9803
%pom_remove_dep net.sourceforge.htmlunit:htmlunit doxia-site-renderer/pom.xml
af9803
%pom_remove_dep -r :velocity-tools
af9803
af9803
%pom_xpath_inject "pom:plugin[pom:artifactId[text()='modello-maven-plugin']]/pom:configuration" \
af9803
    "<useJava5>true</useJava5>" doxia-decoration-model
af9803
af9803
# There are two backends for generating PDFs: one based on iText and
af9803
# one using FOP.  iText module is broken and only brings additional
af9803
# dependencies.  Besides that upstream admits that iText support will
af9803
# likely removed in future versions of Doxia.  In Fedora we remove
af9803
# iText backend sooner in order to fix dependency problems.
af9803
#
af9803
# See also: http://maven.apache.org/doxia/faq.html#How_to_export_in_PDF
af9803
# http://lists.fedoraproject.org/pipermail/java-devel/2013-April/004742.html
af9803
rm -rf $(find -type d -name itext)
af9803
%pom_remove_dep -r :doxia-module-itext
af9803
af9803
%if %{without markdown}
af9803
%pom_remove_dep -r :doxia-module-markdown
af9803
%endif
af9803
%if %{without fop}
af9803
%pom_remove_dep -r :doxia-module-fo
af9803
rm -r doxia-doc-renderer/src/main/java/org/apache/maven/doxia/docrenderer/pdf/fo
af9803
%endif
af9803
af9803
%mvn_alias :doxia-integration-tools org.apache.maven.shared:maven-doxia-tools
af9803
af9803
%build
af9803
# tests can't run because of missing deps
af9803
%mvn_build -f
af9803
af9803
%install
af9803
%mvn_install
af9803
af9803
af9803
%files -f .mfiles
af9803
%dir %{_javadir}/%{name}
af9803
af9803
%files javadoc -f .mfiles-javadoc
af9803
af9803
%changelog
af9803
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.5-2
af9803
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
af9803
af9803
* Mon Oct 23 2017 Michael Simacek <msimacek@redhat.com> - 1.7.5-1
af9803
- Update to upstream version 1.7.5
af9803
af9803
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.4-4
af9803
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
af9803
af9803
* Tue Feb 07 2017 Michael Simacek <msimacek@redhat.com> - 1.7.4-3
af9803
- Add conditionals for fop and markdown
af9803
af9803
* Mon Feb 06 2017 Michael Simacek <msimacek@redhat.com> - 1.7.4-2
af9803
- Remove dependency on velocity-tools
af9803
af9803
* Mon Nov 14 2016 Michael Simacek <msimacek@redhat.com> - 1.7.4-1
af9803
- Update to upstream version 1.7.4
af9803
af9803
* Wed Nov 09 2016 Michael Simacek <msimacek@redhat.com> - 1.7.3-1
af9803
- Update to upstream version 1.7.3
af9803
af9803
* Wed Nov 02 2016 Michael Simacek <msimacek@redhat.com> - 1.7.2-1
af9803
- Update to upstream version 1.7.2
af9803
af9803
* Thu May 12 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.7.1-3
af9803
- Port to plexus-utils 3.0.24
af9803
af9803
* Thu May 05 2016 Michael Simacek <msimacek@redhat.com> - 1.7.1-2
af9803
- Add Provides and Obsoletes for maven-doxia-tools
af9803
af9803
* Wed May 04 2016 Michael Simacek <msimacek@redhat.com> - 1.7.1-1
af9803
- Update to upstream version 1.7.1
af9803
af9803
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.6-3
af9803
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
af9803
af9803
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6-2
af9803
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
af9803
af9803
* Thu Jul 17 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.6-1
af9803
- Update to upstream version 1.6
af9803
af9803
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-6
af9803
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
af9803
af9803
* Tue Mar 04 2014 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.4-5
af9803
- Use Requires: java-headless rebuild (#1067528)
af9803
af9803
* Wed Feb 19 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.4-4
af9803
- Fix unowned directory
af9803
af9803
* Tue Oct  1 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.4-3
af9803
- Add missing build dependencies
af9803
af9803
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-2
af9803
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
af9803
af9803
* Mon Apr 29 2013 Michal Srb <msrb@redhat.com> - 1.4-1
af9803
- Update to upstream version 1.4
af9803
- Remove unneeded patch
af9803
af9803
* Tue Apr  9 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.3-4
af9803
- Fix BuildRequires
af9803
af9803
* Tue Apr  9 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.3-3
af9803
- Remove iText PDF backend
af9803
af9803
* Tue Apr 09 2013 Michal Srb <msrb@redhat.com>
af9803
- Remove dependency on velocity-tools
af9803
af9803
* Wed Feb 06 2013 Michal Srb <msrb@redhat.com> - 1.3-1
af9803
- Update to upstream version 1.3
af9803
- Migrate from maven-doxia to doxia subpackages (#889145)
af9803
- Build with xmvn
af9803
- Replace patches with pom_ macros
af9803
- Remove unnecessary depmap
af9803
af9803
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 1.2-6
af9803
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
af9803
- Replace maven BuildRequires with maven-local
af9803
af9803
* Wed Nov 28 2012 Tomas Radej <tradej@redhat.com> - 1.2-5
af9803
- Removed (B)R on plexus-container-default
af9803
af9803
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-4
af9803
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
af9803
af9803
* Fri Jan 27 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.2-3
af9803
- Remove dependency on plexux-xmlrpc
af9803
- Add BR/R on java 1.7.0+
af9803
af9803
* Mon Jan 09 2012 Jaromir Capik <jcapik@redhat.com> - 1.2-2
af9803
- Migration from plexus-maven-plugin to plexus-containers-component-metadata
af9803
- Minor spec file changes according to the latest guidelines
af9803
af9803
* Fri May  6 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.2-1
af9803
- Update to latest version (1.2)
af9803
- Use maven 3 to build
af9803
- Remove version limits on BR/R (not valid anymore anyway)
af9803
af9803
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.3-3
af9803
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
af9803
af9803
* Fri Dec 17 2010 Alexander Kurtakov <akurtako@redhat.com> 1.1.3-2
af9803
- Adapt to current guidelines.
af9803
af9803
* Tue Sep  7 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.1.3-1
af9803
- Update to 1.1.3
af9803
- Enable javadoc generation again
af9803
- Update maven plugins BRs
af9803
- Make dependency on maven-doxia unversioned
af9803
af9803
* Thu Jun 17 2010 Deepak Bhole <dbhole@redhat.com> - 0:1.1.2-3
af9803
- Rebuild with maven 2.2.1
af9803
- Remove modello 1.0 patch
af9803
af9803
* Wed May  5 2010 Mary Ellen Foster <mefoster at gmail.com> 0:1.1.2-2
af9803
- Add (Build)Requirement maven-shared-reporting-impl,
af9803
  plexus-containers-container-default, jakarta-commons-configuration
af9803
af9803
* Fri Feb 12 2010 Mary Ellen Foster <mefoster at gmail.com> 0:1.1.2-1
af9803
- Update to 1.1.2
af9803
- Temporarily disable javadoc until maven2-plugin-javadoc is rebuilt against
af9803
  the new doxia
af9803
af9803
* Mon Dec 21 2009 Alexander Kurtakov <akurtako@redhat.com> 1.0-0.2.a10.2
af9803
- BR maven-surefire-provider-junit.
af9803
af9803
* Tue Sep 01 2009 Andrew Overholt <overholt@redhat.com> 1.0-0.2.a10.1
af9803
- Add itext, tomcat5, and tomcat5-servlet-2.4-api BRs
af9803
af9803
* Fri Aug 28 2009 Andrew Overholt <overholt@redhat.com> 1.0-0.2.a10
af9803
- First Fedora build
af9803
af9803
* Fri Jun 20 2000 Deepak Bhole <dbhole@redhat.com> 1.0-0.1.a10.0jpp.1
af9803
- Initial build