2025-06-02 14:11:08 +00:00
committed by Git OBS Bridge
commit edcafef65a
8 changed files with 668 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

202
LICENSE-2.0.txt Normal file
View File

@@ -0,0 +1,202 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

15
_service Normal file
View File

@@ -0,0 +1,15 @@
<services>
<service name="tar_scm" mode="disabled">
<param name="scm">git</param>
<param name="url">https://github.com/apache/maven-doxia.git</param>
<param name="revision">doxia-2.0.0</param>
<param name="match-tag">doxia-*</param>
<param name="versionformat">@PARENT_TAG@</param>
<param name="versionrewrite-pattern">doxia-(.*)</param>
</service>
<service name="recompress" mode="disabled">
<param name="file">*.tar</param>
<param name="compression">xz</param>
</service>
<service name="set_version" mode="disabled"/>
</services>

BIN
maven-doxia-2.0.0.tar.xz (Stored with Git LFS) Normal file

Binary file not shown.

BIN
maven-doxia-build.tar.xz (Stored with Git LFS) Normal file

Binary file not shown.

228
maven-doxia.changes Normal file
View File

@@ -0,0 +1,228 @@
-------------------------------------------------------------------
Thu Oct 3 14:00:26 UTC 2024 - Fridrich Strba <fstrba@suse.com>
- Upgrade to upstream version 2.0.0
* Sub-task
+ DOXIA-599: Replace <a /> element's name attribute with id
attribute
+ DOXIA-668: Remove all obsolete attributes in HTML5
+ DOXIA-672: Parse id attribute only on <a /> elements by
default
+ DOXIA-674: Replace table border handling with new CSS class
+ DOXIA-675: Replace table alignment attributes with CSS styles
* Bug
+ DOXIA-590: Either provided element class or default class
gets ignored
+ DOXIA-598: Generated XHTML5 content does not pass W3 HTML5
Validation Service
+ DOXIA-619: Sink.sectionTitle1() creates <h2> instead of <h1>
+ DOXIA-641: AptParser throws exception if title is not present
+ DOXIA-649: Plexus to Sisu migration missed singleton
annotation
+ DOXIA-662: Non unique IDs generated by IndexingSink
+ DOXIA-671: Double quotes contained in markdown page are
removed in HTML output
+ DOXIA-689: Restore incorrectly removed (HTML5) attributes
+ DOXIA-690: Markdown Parser: Multiline metadata incorrectly
rendered
+ DOXIA-691: APT: Emit multiple authors in separate meta tags
+ DOXIA-692: Markdown Sink: Incorrect escape characters
+ DOXIA-693: Markdown Sink: Incorrect ordered list item prefixes
+ DOXIA-694: Markdown Sink: Too many line separators
+ DOXIA-695: Support of h6 in xhtml output is broken
+ DOXIA-699: Xhtml5Parser may emit sectionX() without
sectionX_() when using both <hX> and <section>
+ DOXIA-704: style and class attributes not merged when
user-supplied in XHTML5 sink
+ DOXIA-706: Sink.text(String, SinkEventAttributes) not properly
supported by Xhtml5BaseSink
+ DOXIA-714: MarkdownSink: Fix table justification and figures
+ DOXIA-715: Sink.text(String, SinkEventAttributes) not properly
supported by AptSink and MarkdownSink
+ DOXIA-724: Sink pipeline returned by
AbstractParser.getWrappedSink(...) has wrong order
+ DOXIA-726: MarkdownSink: Incorrect escaping of <,>,",' and &
+ DOXIA-727: MarkdownSink: Incorrect escaping inside code spans
+ DOXIA-734: XHTML 1.0 elements/attributes which are obsolete in
XHTML5 no longer detected by XdocParser/FmlParser
+ DOXIA-737: [REGRESSION] Making EmitAnchorsForIndexableEntries
by default does not extract document titles anymore
+ DOXIA-740: Rendering Markdown silently truncates files that
skip a heading level
* New Feature
+ DOXIA-569: Add Markdown Sink to be able to convert anything to
Markdown
+ DOXIA-660: Add ability to hide table rows via CSS
+ DOXIA-722: Optionally create anchors for indexable entries
(used in TOC macro)
* Improvement
+ DOXIA-617: doxia-module-markdown: Add support for --- header
section marks
+ DOXIA-665: Add anchors around FML parts
+ DOXIA-667: Add <summary> and <details> to recognized tag list
+ DOXIA-669: Improve/rework CachedFileEntityResolver
+ DOXIA-676: Remove all obsolete elements in HTML5 and add new
ones
+ DOXIA-679: Introduce Sink#tableRows(void) method
+ DOXIA-680: Don't wrap elements in anchors
+ DOXIA-684: replace flexmark-all dependency with core + only
the used extensions
+ DOXIA-685: Replace SinkEventAttributes#BOXED with #SOURCE to
clearly separate between regular verbatim and verbatim source
(code)
+ DOXIA-687: Introduce Sink#verbatim(void) method
+ DOXIA-700: Streamline, update and simplify Doxia ID generation
+ DOXIA-709: Clarify usage of overlapping Sink methods
+ DOXIA-711: Introduce SinkWrapper with factory
+ DOXIA-716: Update and unify XMLReader creation and
configuration
+ DOXIA-723: Optionally expose document location in Sink
+ DOXIA-728: MarkdownSink: Support blockquotes
+ DOXIA-731: Simplify HTML emitted from Sink.verbatim(...)
+ DOXIA-732: Do not fail for duplicate anchor names
+ DOXIA-738: Add Footnote extention for Markdown module
+ DOXIA-739: Disable source code highlighters for verbatim
blocks for Markdown
* Task
+ DOXIA-534: Remove Doxia Logging API
+ DOXIA-630: Remove all deprecated modules
+ DOXIA-631: Remove all deprecated macros
+ DOXIA-632: Remove remaining deprecated code
+ DOXIA-633: Drop and replace usage of HttpComponents in Core
+ DOXIA-634: Drop and replace usage of Commons Lang in Core
+ DOXIA-635: Drop and replace usage of Commons IO in Markdown
Module
+ DOXIA-638: Replace Plexus Container Default with Sisu Plexus
Shim
+ DOXIA-643: Upgrade to Java 8
+ DOXIA-644: Replace Plexus Annotations with Java Inject along
with JUnit 5
+ DOXIA-645: Clean up exceptions
+ DOXIA-650: Make MarkdownParser to be a text parser with text
markup
+ DOXIA-652: Drop build-info.properties in favor of default
pom.properties
+ DOXIA-656: Make XHTML5 default implementation of HTML
+ DOXIA-657: Deprecate XHML(4) module
+ DOXIA-663: Remove deprecated XHTML module
+ DOXIA-666: Remove code duplication Xhtml5Sink
+ DOXIA-670: Drop dead XdocSink#link(String, String) method
+ DOXIA-673: Remove compat handling of absent Sink#tableRows()
calls
+ DOXIA-678: Add missing elements in Xhtml5BaseParser
+ DOXIA-688: Remove empty alt attribute value on images which
causes the browser not to render replacement icon
+ DOXIA-702: Fix dependency warnings in Markdown module
+ DOXIA-705: Remove remaining deprecated/duplicated code
- Removed patch:
* 0002-Commons-configuration2.patch
+ The upstream version is already ported to
commons-configuration2
-------------------------------------------------------------------
Sun Sep 29 19:57:08 UTC 2024 - Fridrich Strba <fstrba@suse.com>
- A runtime dependency needs to be resolved with %%mvn_install
-------------------------------------------------------------------
Mon Jun 10 16:37:25 UTC 2024 - Fridrich Strba <fstrba@suse.com>
- Use plexus-metadata-generator executable directly to simplify
build classpath
-------------------------------------------------------------------
Tue Apr 2 17:22:22 UTC 2024 - Fridrich Strba <fstrba@suse.com>
- Add dependency on plexus-xml where relevant
* this will be needed for smooth upgrade to plexus-utils 4.0.0
-------------------------------------------------------------------
Wed Feb 21 05:58:59 UTC 2024 - Fridrich Strba <fstrba@suse.com>
- Use %patch -P N instead of deprecated %patchN.
-------------------------------------------------------------------
Tue Sep 26 21:09:43 UTC 2023 - Fridrich Strba <fstrba@suse.com>
- Added patch:
* 0002-Commons-configuration2.patch
+ port to commons-configuration2 in order to remove dependency
on old commons-lang
-------------------------------------------------------------------
Sat Sep 23 17:46:16 UTC 2023 - Fridrich Strba <fstrba@suse.com>
- Upgrade to upstream version 1.12.0
* Changes
+ DOXIA-409: Upgrade to FOP 2.2
+ DOXIA-497: Fix rendering links and paragraphs inside tables
+ DOXIA-584: Rewrite .md and .markdown links to .html
+ DOXIA-576 Upgrade HttpComponents: httpclient to 4.5.8 and
httpcore to 4.4.11
+ DOXIA-570: Escape links to xml based figureGraphics image
elements
+ SECURITY: Use HTTPS to resolve dependencies in Maven Build
+ MNGSITE-393: remove old Maven 1 and 2 info
+ DOXIA-612: update commons-lang to 3.8.1
+ DOXIA-610: Drop dependency to outdated Log4j
+ Fix Java 7 compatibility that was broken with DOXIA-616
+ DOXIA-618: import tests from maven-site-plugin
+ DOXIA-609: Fixed crosslinks starting with a dot in markdown
files
+ replace deprecated class from commons-lang
+ fill in some generic types
- Removed patch:
* 0001-Fix-itext-dependency.patch
+ no need to patch a module that we disable
-------------------------------------------------------------------
Fri May 13 09:03:45 UTC 2022 - Fridrich Strba <fstrba@suse.com>
- Fix build with modello 2.0.0
-------------------------------------------------------------------
Tue Feb 22 18:20:02 UTC 2022 - Fridrich Strba <fstrba@suse.com>
- Do not build against the log4j12 packages
-------------------------------------------------------------------
Tue Feb 22 11:34:40 UTC 2022 - Fridrich Strba <fstrba@suse.com>
- Fix the version of the log4j that doxia-module-fo needs at
runtime
-------------------------------------------------------------------
Tue May 11 13:06:41 UTC 2021 - Fridrich Strba <fstrba@suse.com>
- Do not build against the legacy guava20 any more
-------------------------------------------------------------------
Sat Mar 14 08:07:06 UTC 2020 - Fridrich Strba <fstrba@suse.com>
- Set obsoletes to make upgrades easier
-------------------------------------------------------------------
Wed Mar 11 11:37:57 UTC 2020 - Fridrich Strba <fstrba@suse.com>
- Update to upstream version 1.9.1
- Removed patches:
* 0002-Update-to-Plexus-Container-1.5.5.patch
* 0003-Disable-tests-which-rely-on-ordering-in-set.patch
* 0004-Port-to-fop-2.0.patch
+ Not needed in this build any more
-------------------------------------------------------------------
Tue Oct 1 12:18:33 UTC 2019 - Fridrich Strba <fstrba@suse.com>
- Build against the compatibility package log4j12
-------------------------------------------------------------------
Thu Apr 4 15:53:45 UTC 2019 - Jan Engelhardt <jengelh@inai.de>
- Trim marketing and filler wording from description.
-------------------------------------------------------------------
Thu Mar 28 15:13:45 UTC 2019 - Fridrich Strba <fstrba@suse.com>
- Initial packaging of maven-doxia 1.7
- Generate and customize ant build files

193
maven-doxia.spec Normal file
View File

@@ -0,0 +1,193 @@
#
# spec file for package maven-doxia
#
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: maven-doxia
Version: 2.0.0
Release: 0
Summary: Content generation framework
License: Apache-2.0
Group: Development/Libraries/Java
URL: https://maven.apache.org/doxia/
Source0: %{name}-%{version}.tar.xz
Source1: %{name}-build.tar.xz
Source2: https://www.apache.org/licenses/LICENSE-2.0.txt
BuildRequires: ant
BuildRequires: apache-commons-io
BuildRequires: apache-commons-lang3
BuildRequires: apache-commons-text
BuildRequires: atinject
BuildRequires: fdupes
BuildRequires: java-devel >= 1.8
BuildRequires: javapackages-local >= 6
BuildRequires: jetbrains-annotations
BuildRequires: modello
BuildRequires: objectweb-asm
BuildRequires: plexus-utils
BuildRequires: plexus-xml
BuildRequires: sisu-inject
BuildRequires: slf4j
BuildArch: noarch
%description
Doxia is a content generation framework which provides 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}
Group: Development/Libraries/Java
# Make the upgrades easier. The last version
# before 2.0.0 was 1.12.0
Obsoletes: %{name}-logging-api < 1.13
Obsoletes: %{name}-module-confluence < 1.13
Obsoletes: %{name}-module-docbook-simple < 1.13
Obsoletes: %{name}-module-fo < 1.13
Obsoletes: %{name}-module-itext < 1.13
Obsoletes: %{name}-module-latex < 1.13
Obsoletes: %{name}-module-markdown < 1.13
Obsoletes: %{name}-module-rtf < 1.13
Obsoletes: %{name}-module-twiki < 1.13
Obsoletes: %{name}-module-xhtml < 1.13
%description core
This package provides %{summary}.
%package module-apt
Summary: APT module for %{name}
Group: Development/Libraries/Java
%description module-apt
This package provides %{summary}.
%package module-fml
Summary: FML module for %{name}
Group: Development/Libraries/Java
%description module-fml
This package provides %{summary}.
%package module-xdoc
Summary: XDoc module for %{name}
Group: Development/Libraries/Java
%description module-xdoc
This package provides %{summary}.
%package module-xhtml5
Summary: XHTML5 module for %{name}
Group: Development/Libraries/Java
%description module-xhtml5
This package provides %{summary}.
%package sink-api
Summary: Sink-api module for %{name}
Group: Development/Libraries/Java
%description sink-api
This package provides %{summary}.
%package test-docs
Summary: Test-docs module for %{name}
Group: Development/Libraries/Java
%description test-docs
This package provides %{summary}.
%package javadoc
Summary: Javadoc for %{name}
Group: Documentation/HTML
%description javadoc
API documentation for %{name}.
%prep
%setup -q -a1
cp %{SOURCE2} LICENSE
%build
mkdir -p lib
build-jar-repository -s lib \
apache-commons-lang3 \
apache-commons-text/commons-text \
atinject \
commons-io \
jetbrains-annotations \
objectweb-asm/asm \
org.eclipse.sisu.inject \
plexus/utils \
plexus/xml \
slf4j/api
ant package javadoc
mkdir -p target/site/apidocs
%install
install -dm 0755 %{buildroot}%{_javadir}/%{name}
install -dm 0755 %{buildroot}%{_mavenpomdir}/%{name}
install -dm 0755 %{buildroot}%{_javadocdir}/%{name}
for i in \
doxia-sink-api \
doxia-test-docs \
doxia-core; do
install -pm 0644 ${i}/target/${i}-%{version}.jar %{buildroot}%{_javadir}/%{name}/${i}.jar
%{mvn_install_pom} ${i}/pom.xml %{buildroot}%{_mavenpomdir}/%{name}/${i}.pom
%add_maven_depmap %{name}/${i}.pom %{name}/${i}.jar -f ${i}
if [ -d ${i}/target/site/apidocs ]; then
cp -r ${i}/target/site/apidocs %{buildroot}%{_javadocdir}/%{name}/${i}
fi
done
for i in \
doxia-module-apt \
doxia-module-fml \
doxia-module-xdoc \
doxia-module-xhtml5; do
install -pm 0644 doxia-modules/${i}/target/${i}-%{version}.jar %{buildroot}%{_javadir}/%{name}/${i}.jar
%{mvn_install_pom} doxia-modules/${i}/pom.xml %{buildroot}%{_mavenpomdir}/%{name}/${i}.pom
%add_maven_depmap %{name}/${i}.pom %{name}/${i}.jar -f ${i}
if [ -d doxia-modules/${i}/target/site/apidocs ]; then
cp -r doxia-modules/${i}/target/site/apidocs %{buildroot}%{_javadocdir}/%{name}/${i}
fi
done
%fdupes -s %{buildroot}%{_javadocdir}
%files core -f .mfiles-doxia-core
%license LICENSE
%files module-apt -f .mfiles-doxia-module-apt
%files module-fml -f .mfiles-doxia-module-fml
%files module-xdoc -f .mfiles-doxia-module-xdoc
%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 javadoc
%{_javadocdir}/%{name}
%license LICENSE
%changelog