%bcond_with itext
Name: maven-doxia
Epoch: 0
Version: 1.12.0
Release: 8%{?dist}
Summary: Content generation framework
License: Apache-2.0
URL: https://maven.apache.org/doxia/
VCS: git:https://github.com/apache/maven-doxia.git
Source0: https://repo1.maven.org/maven2/org/apache/maven/doxia/doxia/%{version}/doxia-%{version}-source-release.zip
Source1: https://repo1.maven.org/maven2/org/apache/maven/doxia/doxia/%{version}/doxia-%{version}-source-release.zip.asc
Source2: https://downloads.apache.org/maven/KEYS
# Build against iText 2.x
# https://issues.apache.org/jira/browse/DOXIA-53
Patch0: 0001-Fix-itext-dependency.patch
# Build against commons-configuration 2.x
Patch1: 0002-Commons-configuration2.patch
# Build against flexmark 0.60+
Patch2: 0003-Update-to-flexmark-0.60.patch
BuildArch: noarch
ExclusiveArch: %{java_arches} noarch
BuildRequires: gnupg2
BuildRequires: maven-local
BuildRequires: mvn(com.vladsch.flexmark:flexmark)
BuildRequires: mvn(com.vladsch.flexmark:flexmark-ext-abbreviation)
BuildRequires: mvn(com.vladsch.flexmark:flexmark-ext-autolink)
BuildRequires: mvn(com.vladsch.flexmark:flexmark-ext-definition)
BuildRequires: mvn(com.vladsch.flexmark:flexmark-ext-escaped-character)
BuildRequires: mvn(com.vladsch.flexmark:flexmark-ext-gfm-strikethrough)
BuildRequires: mvn(com.vladsch.flexmark:flexmark-ext-tables)
BuildRequires: mvn(com.vladsch.flexmark:flexmark-ext-typographic)
BuildRequires: mvn(com.vladsch.flexmark:flexmark-ext-wikilink)
BuildRequires: mvn(com.vladsch.flexmark:flexmark-util)
BuildRequires: mvn(commons-collections:commons-collections)
BuildRequires: mvn(commons-io:commons-io)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.commons:commons-configuration2)
BuildRequires: mvn(org.apache.commons:commons-lang3)
BuildRequires: mvn(org.apache.commons:commons-text)
BuildRequires: mvn(org.apache.httpcomponents:httpclient)
BuildRequires: mvn(org.apache.httpcomponents:httpcore)
BuildRequires: mvn(org.apache.maven:maven-parent:pom:)
BuildRequires: mvn(org.apache.maven.plugins:maven-invoker-plugin)
BuildRequires: mvn(org.apache.xmlgraphics:fop)
BuildRequires: mvn(org.codehaus.modello:modello-maven-plugin)
BuildRequires: mvn(org.codehaus.plexus:plexus-component-annotations)
BuildRequires: mvn(org.codehaus.plexus:plexus-component-metadata)
BuildRequires: mvn(org.codehaus.plexus:plexus-container-default)
BuildRequires: mvn(org.codehaus.plexus:plexus-utils)
BuildRequires: mvn(org.xmlunit:xmlunit-core)
BuildRequires: mvn(org.xmlunit:xmlunit-matchers)
%if %{with itext}
BuildRequires: mvn(com.lowagie:itext)
%endif
%description
Doxia is a content generation framework which aims to provide its users
with powerful techniques for generating static and dynamic content.
Doxia can be used to generate static sites in addition to being
incorporated into dynamic content generation systems like blogs, wikis
and content management systems.
%package core
Summary: Core module for %{name}
%description core
This package provides %{summary}.
%package logging-api
Summary: Logging-api module for %{name}
%description logging-api
This package provides %{summary}.
%package module-apt
Summary: APT module for %{name}
%description module-apt
This package provides %{summary}.
%package module-confluence
Summary: Confluence module for %{name}
%description module-confluence
This package provides %{summary}.
%package module-docbook-simple
Summary: Simplified DocBook module for %{name}
%description module-docbook-simple
This package provides %{summary}.
%package module-fml
Summary: FML module for %{name}
%description module-fml
This package provides %{summary}.
%package module-fo
Summary: FO module for %{name}
%description module-fo
This package provides %{summary}.
%if %{with itext}
%package module-itext
Summary: iText module for %{name}
%description module-itext
This package provides %{summary}.
%endif
%package module-latex
Summary: Latex module for %{name}
%description module-latex
This package provides %{summary}.
%package module-markdown
Summary: Markdown module for %{name}
%description module-markdown
This package provides %{summary}.
%package module-rtf
Summary: RTF module for %{name}
%description module-rtf
This package provides %{summary}.
%package modules
Summary: Doxia modules for several markup languages.
%description modules
This package provides %{summary}.
%package module-twiki
Summary: TWiki module for %{name}
%description module-twiki
This package provides %{summary}.
%package module-xdoc
Summary: XDoc module for %{name}
%description module-xdoc
This package provides %{summary}.
%package module-xhtml
Summary: XHTML module for %{name}
%description module-xhtml
This package provides %{summary}.
%package module-xhtml5
Summary: XHTML5 module for %{name}
%description module-xhtml5
This package provides %{summary}.
%package sink-api
Summary: Sink-api module for %{name}
%description sink-api
This package provides %{summary}.
%package tests
Summary: Tests for %{name}
%description tests
This package provides %{summary}.
%package test-docs
Summary: Test-docs module for %{name}
%description test-docs
This package provides %{summary}.
%package javadoc
Summary: Javadoc for %{name}
%description javadoc
API documentation for %{name}.
%prep
%{gpgverify} --data=%{SOURCE0} --signature=%{SOURCE1} --keyring=%{SOURCE2}
%autosetup -p1 -n doxia-%{version}
for f in $(find . -name '*.java' -o -name '*.xml'); do
sed -i.orig 's/\r//' $f
touch -r $f.orig $f
rm -f $f.orig
done
# we don't have clirr-maven-plugin
%pom_remove_plugin org.codehaus.mojo:clirr-maven-plugin pom.xml
# we don't have maven-install-plugin
%pom_remove_plugin :maven-install-plugin doxia-modules/doxia-module-markdown
# complains
%pom_remove_plugin :apache-rat-plugin
# use java 5 generics in modello plugin
%pom_xpath_inject "pom:plugin[pom:artifactId[text()='modello-maven-plugin']]"\
"/pom:executions/pom:execution/pom:configuration" \
"true" doxia-modules/doxia-module-fml/pom.xml
# build for java 8 at a minimum
%pom_xpath_set '//pom:javaVersion' 8
# we don't have maven-clean-plugin or maven-site-plugin
%pom_xpath_remove '//pom:goals' doxia-modules/doxia-module-markdown
# Fix build issue with plexus-containers 2.2.0
%pom_add_dep com.google.inject:guice::test
# requires network
rm doxia-core/src/test/java/org/apache/maven/doxia/util/XmlValidatorTest.java
%mvn_package :::tests: tests
%if %{without itext}
%pom_disable_module doxia-module-itext doxia-modules
sed -i '/doxia-module-itext/d' doxia-modules/pom.xml
%endif
%build
%mvn_build -s
%install
%mvn_install
%files -f .mfiles-doxia
%doc README.md
%license LICENSE NOTICE
%files core -f .mfiles-doxia-core
%files logging-api -f .mfiles-doxia-logging-api
%license LICENSE NOTICE
%files module-apt -f .mfiles-doxia-module-apt
%files module-confluence -f .mfiles-doxia-module-confluence
%files module-docbook-simple -f .mfiles-doxia-module-docbook-simple
%files module-fml -f .mfiles-doxia-module-fml
%files module-fo -f .mfiles-doxia-module-fo
%if %{with itext}
%files module-itext -f .mfiles-doxia-module-itext
%endif
%files module-latex -f .mfiles-doxia-module-latex
%files module-markdown -f .mfiles-doxia-module-markdown
%files module-rtf -f .mfiles-doxia-module-rtf
%files modules -f .mfiles-doxia-modules
%files module-twiki -f .mfiles-doxia-module-twiki
%files module-xdoc -f .mfiles-doxia-module-xdoc
%files module-xhtml -f .mfiles-doxia-module-xhtml
%files module-xhtml5 -f .mfiles-doxia-module-xhtml5
%files sink-api -f .mfiles-doxia-sink-api
%files test-docs -f .mfiles-doxia-test-docs
%files tests -f .mfiles-tests
%license LICENSE NOTICE
%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE
%changelog
* Thu Jul 18 2024 Fedora Release Engineering - 0:1.12.0-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
* Tue Feb 27 2024 Jiri Vanek - 0:1.12.0-7
- Rebuilt for java-21-openjdk as system jdk
* Tue Feb 06 2024 Mikolaj Izdebski - 0:1.12.0-6
- Fix build with plexus-containers 2.2.0
* Thu Jan 25 2024 Fedora Release Engineering - 0:1.12.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Sun Jan 21 2024 Fedora Release Engineering - 0:1.12.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Wed Aug 30 2023 Jerry James - 0:1.12.0-3
- Enable markdown support
- Build for Java 8 at a minimum
* Wed Jul 19 2023 Jerry James - 0:1.12.0-2
- Enable fop support
* Sat Jun 10 2023 Jerry James - 0:1.12.0-1
- Version 1.12.0
* Thu Jan 19 2023 Fedora Release Engineering - 0:1.11.1-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Mon Nov 28 2022 Jerry James - 0:1.11.1-3
- Convert License tag to SPDX
* Thu Jul 21 2022 Fedora Release Engineering - 0:1.11.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Fri Jul 08 2022 Jiri Vanek - 0:1.11.1-2
- Rebuilt for Drop i686 JDKs
* Wed Jun 8 2022 Jerry James - 0:1.11.1-1
- Version 1.11.1
- Drop old obsoletes
- Verify sources with gpg
- Minor spec file cleanups
* Sat Feb 05 2022 Jiri Vanek - 0:1.9.1-7
- Rebuilt for java-17-openjdk as system jdk
* Thu Jan 20 2022 Fedora Release Engineering - 0:1.9.1-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Thu Jul 22 2021 Fedora Release Engineering - 0:1.9.1-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Tue Jan 26 2021 Fedora Release Engineering - 0:1.9.1-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Tue Jul 28 2020 Fedora Release Engineering - 0:1.9.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Fri Jul 10 2020 Jiri Vanek - 0:1.9.1-2
- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11
* Thu May 07 2020 Fabio Valentini - 0:1.9.1-1
- Update to version 1.9.1.
* Wed Jan 29 2020 Fedora Release Engineering - 0:1.9-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Tue Oct 08 2019 Fabio Valentini - 0:1.9-3
- Disable fop support.
* Wed Sep 25 2019 Fabio Valentini - 0:1.9-2
- Conditionally Obsolete maven-doxia-module-itext.
* Wed Sep 18 2019 Marian Koncek - 0:1.9-1
- Update to upstream version 1.9
- Obsolete markdown module
* Tue Sep 03 2019 Fabio Valentini - 0:1.7-12
- Disable itext support.
* Thu Jul 25 2019 Fedora Release Engineering - 0:1.7-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Fri Feb 01 2019 Fedora Release Engineering - 0:1.7-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Tue Aug 07 2018 Michael Simacek - 0:1.7-9
- Disable failing test for now
* Tue Jul 17 2018 Michael Simacek - 0:1.7-8
- Regenerate BuildRequires
* Fri Jul 13 2018 Fedora Release Engineering - 0:1.7-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Thu Feb 08 2018 Fedora Release Engineering - 0:1.7-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Wed Jul 26 2017 Fedora Release Engineering - 0:1.7-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Mon Jul 10 2017 Mikolaj Izdebski - 0:1.7-4
- Don't require log4j12 unless built with FOP
* Mon Jul 03 2017 Michael Simacek - 0:1.7-3
- Add missing BR on log4j
* Tue Feb 07 2017 Michael Simacek - 0:1.7-2
- Add conditional for fop
* Mon May 02 2016 Michael Simacek - 0:1.7-1
- Update to upstream version 1.7
* Thu Feb 04 2016 Fedora Release Engineering - 0:1.6-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Tue Aug 18 2015 Michael Simacek - 0:1.6-4
- Port to fop-2.0
- Cleanup bundled class from sitetools
* Wed Jun 17 2015 Fedora Release Engineering - 0:1.6-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Fri Mar 20 2015 Mikolaj Izdebski - 0:1.6-2
- Rebuild for fop update
* Thu Jul 17 2014 Mikolaj Izdebski - 0:1.6-1
- Update to upstream version 1.6
* Wed Jun 11 2014 Michael Simacek - 0:1.5-7
- Change BR classworlds to plexus-classworlds
* Sat Jun 07 2014 Fedora Release Engineering - 0:1.5-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Mon May 12 2014 Mikolaj Izdebski - 0:1.5-5
- Build-require pegdown >= 1.4.2-2
* Wed Mar 26 2014 Michal Srb - 0:1.5-4
- Disable bad tests which rely on ordering in set
* Tue Mar 04 2014 Stanislav Ochotnicky - 0:1.5-3
- Use Requires: java-headless rebuild (#1067528)
* Wed Feb 19 2014 Mikolaj Izdebski - 0:1.5-2
- Fix unowned directory
* Tue Dec 10 2013 Michael Simacek - 0:1.5-1
- Update to upstream version 1.5
- Move back RenderingContext.java that was moved to doxia-sitetools which
doesn't have a release yet
* Thu Dec 5 2013 Mikolaj Izdebski - 0:1.4-6
- BuildRequire plexus-containers-container-default 1.5.5-14
- Resolves: rhbz#1036584
* Mon Nov 25 2013 Stanislav Ochotnicky - 0:1.4-5
- Rebuild after itext versioned jar fixed
* Thu Nov 7 2013 Mikolaj Izdebski - 0:1.4-4
- Port to Commons Collections 1.10
* Wed Nov 6 2013 Mikolaj Izdebski - 0:1.4-3
- Enable tests
* Sat Aug 03 2013 Fedora Release Engineering - 0:1.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Mon Apr 29 2013 Michal Srb - 0:1.4-1
- Update to upstream version 1.4
- Enable markdown module
- Remove unneeded patch
* Tue Apr 23 2013 Stanislav Ochotnicky - 0:1.3-3
- Remove ant-nodeps BuildRequires
* Mon Apr 8 2013 Mikolaj Izdebski - 0:1.3-2
- Conditionally disable itext module
* Tue Mar 19 2013 Michal Srb - 0:1.3-1
- Update to upstream version 1.3
- Remove temporary dependencies on subpackages
* Thu Feb 7 2013 Mikolaj Izdebski - 0:1.2-9
- Remove runtime requirement on POM: httpcomponents-project
* Wed Feb 06 2013 Java SIG - 0:1.2-9
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
- Replace maven BuildRequires with maven-local
* Thu Dec 20 2012 Stanislav Ochotnicky - 0:1.2-8
- Add httpcomponents-project to doxia-core requires
* Thu Dec 20 2012 Mikolaj Izdebski - 0:1.2-7
- Temporarly require all subpackages in the main package
* Wed Dec 19 2012 Michal Srb
- Splitted into multiple subpackages (Resolves: #888710)
* Mon Dec 10 2012 Michal Srb - 0:1.2-5
- Migrated to plexus-components-component-default (Resolves: #878553)
- Removed custom depmap and its occurrence in spec file
- Fixed various rpmlint warnings
* Thu Jul 19 2012 Fedora Release Engineering - 0:1.2-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Mon Jan 9 2012 Stanislav Ochotnicky - 0:1.2-3
- Remove plexus-xmlrpc from BR
- Update patches to work without plexus-maven-plugin
* Fri May 6 2011 Stanislav Ochotnicky - 0:1.2-2
- Add forgotten missing requires
* Fri May 6 2011 Stanislav Ochotnicky - 0:1.2-1
- Update to latest upstream (1.2)
- Use maven 3 to build
- Remove version limits on BR/R (not valid anymore anyway)
- Remove "assert" patch (no explanation for it's existence)
* Tue Feb 22 2011 Stanislav Ochotnicky - 0:1.1.4-3
- Change oro to jakarta-oro in BR/R
* Tue Feb 08 2011 Fedora Release Engineering - 0:1.1.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Thu Dec 23 2010 Stanislav Ochotnicky - 0:1.1.4-1
- Update to 1.1.4
- Migrate from tomca5 to tomca6
- Versionless jars and javadocs
- Remove old skip-plugin patch
- Replace add-default-role-hint patch with remove-plexus-component patch
- Rename few jakarta BRs/Rs to apache names
* Tue Sep 7 2010 Stanislav Ochotnicky - 0:1.1.3-1
- New bugfix version
- Fix javadoc generation error
- Use %%{_mavenpomdir} macro
- Update BRs to latest maven plugin names
- Use new plexus-containers components
- Remove/update old patches
* Tue May 25 2010 Alexander Kurtakov 0:1.1.2-3
- Update for transitional maven state.
- Install doxia-modules pom.
* Wed May 5 2010 Mary Ellen Foster 0:1.1.2-2
- Add BuildRequirement on fop
* Fri Feb 12 2010 Mary Ellen Foster 0:1.1.2-1
- Update to 1.1.2
- Add update_maven_depmap to post and postun
- Temporarily disable javadoc until maven2-plugin-javadoc is rebuilt against
the new doxia
* Mon Dec 21 2009 Alexander Kurtakov 0:1.0-0.8.a10.4
- BR maven2-plugin-plugin.
* Mon Dec 21 2009 Alexander Kurtakov 0:1.0-0.8.a10.3
- BR maven2-plugin-assembly.
* Mon Dec 21 2009 Alexander Kurtakov 0:1.0-0.8.a10.2
- BR maven-surefire-provider-junit.
* Tue Sep 01 2009 Andrew Overholt 0:1.0-0.8.a10.1
- Add tomcat5 BR
* Tue Sep 01 2009 Andrew Overholt 0:1.0-0.8.a10
- Add tomcat5-servlet-2.4-api BR
* Tue Sep 01 2009 Andrew Overholt 0:1.0-0.7.a10
- Fix plexus-cli BR version
* Mon Aug 31 2009 Andrew Overholt 0:1.0-0.6.a10
- Add itext and plexus-cli BRs
* Wed Aug 26 2009 Andrew Overholt 0:1.0-0.5.a10
- Update to 1.0 alpha 10 courtesy of Deepak Bhole
- Remove gcj support
- Add patch to build against iText 2.x (with back-ported XML classes)
* Sat Jul 25 2009 Fedora Release Engineering - 0:1.0-0.4.a7.2.10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Wed Feb 25 2009 Fedora Release Engineering - 0:1.0-0.3.a7.2.10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
* Wed Aug 13 2008 Deepak Bhole 1.0-0.2.a7.2.10
- Fix broken release tag
* Wed Aug 13 2008 Deepak Bhole 1.0-0.2.a7.2.9
- Build for ppc64
* Wed Jul 9 2008 Tom "spot" Callaway 1.0-0.2.a7.2.8
- drop repotag
* Thu May 29 2008 Tom "spot" Callaway 1.0-0.2.a7.2jpp.7
- fix license tag
* Thu Feb 28 2008 Deepak Bhole 1.0-0.2.a7.2jpp.6
- Rebuild
* Fri Sep 21 2007 Deepak Bhole 1.0-0.1.a7.3jpp.5
- Build with maven
- ExcludeArch ppc64
* Sat Sep 01 2007 Deepak Bhole 0:1.0-0.1.a7.3jpp.4
- Rebuild without maven (fpr initial ppc build)
* Tue Mar 20 2007 Deepak Bhole 0:1.0-0.1.a7.3jpp.3
- Added switch to ignore failures for the time being
* Tue Mar 20 2007 Deepak Bhole 0:1.0-0.1.a7.3jpp.2
- Build with maven
* Tue Feb 27 2007 Tania Bento 0:1.0-0.1.a7.3jpp.1
- Fixed %%Release.
- Fixed %%BuildRoot.
- Removed %%Vendor.
- Removed %%Distribution.
- Removed %%post and %%postun sections for javadoc.
- Fixed instructios on how to generate source drop.
- Fixed %%Summary.
- Added gcj support option.
- Marked configuration file as %%config(noreplace) in %%files section.
* Tue Oct 17 2006 Deepak Bhole 1.0-0.a7.3jpp
- Update for maven2 9jpp
* Fri Jun 23 2006 Deepak Bhole - 0:1.0-0.a7.2jpp
- Fix versions in the depmap
* Wed Mar 15 2006 Deepak Bhole - 0:1.0-0.a7.1jpp
- Initial build