42c24ad
%bcond_with fop
6303ba2
Stanislav Ochotnicky 2be2f6f
%global parent maven-doxia
Stanislav Ochotnicky 2be2f6f
%global subproj sitetools
Andrew Overholt 4ab0050
Andrew Overholt 4ab0050
Name:           %{parent}-%{subproj}
0b96bac
Version:        1.9.1
42c24ad
Release:        2%{?dist}
Andrew Overholt 4ab0050
Summary:        Doxia content generation framework
Andrew Overholt 4ab0050
License:        ASL 2.0
Andrew Overholt 4ab0050
URL:            http://maven.apache.org/doxia/
4302d65
BuildArch:      noarch
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
8046d43
Patch0:         0001-Port-to-plexus-utils-3.0.24.patch
50fcdfa
Patch1:         0002-Remove-dependency-on-velocity-tools.patch
8046d43
Stanislav Ochotnicky e34b160
BuildRequires:  maven-local
ad4e21d
BuildRequires:  mvn(commons-collections:commons-collections)
a422581
BuildRequires:  mvn(commons-io:commons-io)
4331b73
BuildRequires:  mvn(org.apache.commons:commons-lang3)
ad4e21d
BuildRequires:  mvn(org.apache.maven.doxia:doxia-core)
ad4e21d
BuildRequires:  mvn(org.apache.maven.doxia:doxia-logging-api)
50fcdfa
BuildRequires:  mvn(org.apache.maven.doxia:doxia-module-apt)
50fcdfa
BuildRequires:  mvn(org.apache.maven.doxia:doxia-module-fml)
6303ba2
%if %{with fop}
ad4e21d
BuildRequires:  mvn(org.apache.maven.doxia:doxia-module-fo)
6303ba2
%endif
50fcdfa
BuildRequires:  mvn(org.apache.maven.doxia:doxia-module-xdoc)
ad4e21d
BuildRequires:  mvn(org.apache.maven.doxia:doxia-module-xhtml)
0b96bac
BuildRequires:  mvn(org.apache.maven.doxia:doxia-module-xhtml5)
ad4e21d
BuildRequires:  mvn(org.apache.maven.doxia:doxia-sink-api)
c885dd9
BuildRequires:  mvn(org.apache.maven:maven-artifact)
c885dd9
BuildRequires:  mvn(org.apache.maven:maven-artifact:2.2.1)
c885dd9
BuildRequires:  mvn(org.apache.maven:maven-artifact-manager)
c885dd9
BuildRequires:  mvn(org.apache.maven:maven-model:2.2.1)
4302d65
BuildRequires:  mvn(org.apache.maven:maven-parent:pom:)
c885dd9
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
c885dd9
BuildRequires:  mvn(org.apache.maven:maven-project)
c885dd9
BuildRequires:  mvn(org.apache.maven.reporting:maven-reporting-api)
ad4e21d
BuildRequires:  mvn(org.apache.velocity:velocity)
a422581
BuildRequires:  mvn(org.codehaus.modello:modello-maven-plugin)
a422581
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-annotations)
a422581
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-metadata)
ad4e21d
BuildRequires:  mvn(org.codehaus.plexus:plexus-container-default)
ad4e21d
BuildRequires:  mvn(org.codehaus.plexus:plexus-i18n)
c885dd9
BuildRequires:  mvn(org.codehaus.plexus:plexus-interpolation)
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
e6222c4
Provides:      maven-doxia-tools = %{version}-%{release}
4c851aa
Obsoletes:     maven-doxia-tools < 1.7
e6222c4
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
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}
8046d43
%patch0 -p1
50fcdfa
%patch1 -p1
Andrew Overholt 4ab0050
c885dd9
# complains
c885dd9
%pom_remove_plugin :apache-rat-plugin
42c24ad
%pom_remove_plugin -r :maven-enforcer-plugin
265f99d
c4d3b18
%pom_remove_plugin org.codehaus.mojo:clirr-maven-plugin
c4d3b18
%pom_remove_dep net.sourceforge.htmlunit:htmlunit doxia-site-renderer/pom.xml
50fcdfa
%pom_remove_dep -r :velocity-tools
Andrew Overholt 4ab0050
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)
c885dd9
%pom_remove_dep -r :doxia-module-itext
86d97e1
6303ba2
%pom_remove_dep -r :doxia-module-markdown
0b96bac
6303ba2
%if %{without fop}
6303ba2
%pom_remove_dep -r :doxia-module-fo
6303ba2
rm -r doxia-doc-renderer/src/main/java/org/apache/maven/doxia/docrenderer/pdf/fo
6303ba2
%endif
6303ba2
e6222c4
%mvn_alias :doxia-integration-tools org.apache.maven.shared:maven-doxia-tools
e6222c4
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
c4d3b18
%files -f .mfiles
1d75dc5
%dir %{_javadir}/%{name}
0b96bac
%doc LICENSE NOTICE
Stanislav Ochotnicky 208677c
c4d3b18
%files javadoc -f .mfiles-javadoc
0b96bac
%doc LICENSE NOTICE
Andrew Overholt 4ab0050
Andrew Overholt 4ab0050
%changelog
42c24ad
* Tue Oct 08 2019 Fabio Valentini <decathorpe@gmail.com> - 1.9.1-2
42c24ad
- Disable fop support.
42c24ad
0b96bac
* Mon Sep 02 2019 Marian Koncek <mkoncek@redhat.com> - 1.9.1-1
0b96bac
- Update to upstream version 1.9.1
0b96bac
4331b73
* Mon Sep 02 2019 Fabio Valentini <decathorpe@gmail.com> - 1.7.5-6
4331b73
- Disable support for markdown.
4331b73
65d5912
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.5-5
65d5912
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
65d5912
16129d3
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.5-4
16129d3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
16129d3
f5786b4
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.5-3
f5786b4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
f5786b4
8bf0277
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.5-2
8bf0277
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
8bf0277
3f1724e
* Mon Oct 23 2017 Michael Simacek <msimacek@redhat.com> - 1.7.5-1
3f1724e
- Update to upstream version 1.7.5
3f1724e
fa12b71
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.4-4
fa12b71
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
fa12b71
6303ba2
* Tue Feb 07 2017 Michael Simacek <msimacek@redhat.com> - 1.7.4-3
6303ba2
- Add conditionals for fop and markdown
6303ba2
50fcdfa
* Mon Feb 06 2017 Michael Simacek <msimacek@redhat.com> - 1.7.4-2
50fcdfa
- Remove dependency on velocity-tools
50fcdfa
6162262
* Mon Nov 14 2016 Michael Simacek <msimacek@redhat.com> - 1.7.4-1
6162262
- Update to upstream version 1.7.4
6162262
54f75a5
* Wed Nov 09 2016 Michael Simacek <msimacek@redhat.com> - 1.7.3-1
54f75a5
- Update to upstream version 1.7.3
54f75a5
e554616
* Wed Nov 02 2016 Michael Simacek <msimacek@redhat.com> - 1.7.2-1
e554616
- Update to upstream version 1.7.2
e554616
8046d43
* Thu May 12 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.7.1-3
8046d43
- Port to plexus-utils 3.0.24
8046d43
e6222c4
* Thu May 05 2016 Michael Simacek <msimacek@redhat.com> - 1.7.1-2
e6222c4
- Add Provides and Obsoletes for maven-doxia-tools
e6222c4
c885dd9
* Wed May 04 2016 Michael Simacek <msimacek@redhat.com> - 1.7.1-1
c885dd9
- Update to upstream version 1.7.1
c885dd9
6e20f2b
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.6-3
6e20f2b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
6e20f2b
c09ee27
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6-2
c09ee27
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
c09ee27
4302d65
* Thu Jul 17 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.6-1
4302d65
- Update to upstream version 1.6
4302d65
4e3ba14
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-6
4e3ba14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
4e3ba14
Stanislav Ochotnicky 5b9c429
* Tue Mar 04 2014 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.4-5
Stanislav Ochotnicky 5b9c429
- Use Requires: java-headless rebuild (#1067528)
Stanislav Ochotnicky 5b9c429
490321a
* Wed Feb 19 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.4-4
490321a
- Fix unowned directory
490321a
a422581
* Tue Oct  1 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.4-3
a422581
- Add missing build dependencies
a422581
2d7b9d6
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-2
2d7b9d6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
2d7b9d6
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