!2 delete deps
From: @hht8 Reviewed-by: @luo-haibo Signed-off-by: @luo-haibo
This commit is contained in:
commit
0bf0f56f4e
229
maven-doxia.spec
229
maven-doxia.spec
@ -1,183 +1,232 @@
|
|||||||
Name: maven-doxia
|
%bcond_with itext
|
||||||
Version: 1.7
|
%bcond_without markdown
|
||||||
Release: 11
|
%bcond_without fop
|
||||||
Epoch: 0
|
Name: maven-doxia
|
||||||
Summary: Content generation framework
|
Version: 1.7
|
||||||
License: ASL 2.0
|
Release: 12
|
||||||
URL: http://maven.apache.org/doxia/
|
Epoch: 0
|
||||||
Source0: https://repo1.maven.org/maven2/org/apache/maven/doxia/doxia/%{version}/doxia-%{version}-source-release.zip
|
Summary: Content generation framework
|
||||||
BuildArch: noarch
|
License: ASL 2.0
|
||||||
BuildRequires: maven-local mvn(commons-lang:commons-lang) mvn(junit:junit)
|
URL: http://maven.apache.org/doxia/
|
||||||
BuildRequires: mvn(org.apache.httpcomponents:httpclient) mvn(org.apache.httpcomponents:httpcore)
|
Source0: http://repo2.maven.org/maven2/org/apache/maven/doxia/doxia/%{version}/doxia-%{version}-source-release.zip
|
||||||
BuildRequires: mvn(org.apache.maven:maven-parent:pom:) mvn(org.codehaus.modello:modello-maven-plugin)
|
Patch1: 0001-Fix-itext-dependency.patch
|
||||||
BuildRequires: mvn(org.codehaus.plexus:plexus-component-annotations) mvn(org.codehaus.plexus:plexus-component-metadata)
|
Patch2: 0002-Update-to-Plexus-Container-1.5.5.patch
|
||||||
BuildRequires: mvn(org.codehaus.plexus:plexus-container-default) mvn(org.codehaus.plexus:plexus-utils)
|
Patch3: 0003-Disable-tests-which-rely-on-ordering-in-set.patch
|
||||||
BuildRequires: mvn(xmlunit:xmlunit) mvn(com.lowagie:itext) mvn(org.pegdown:pegdown)
|
Patch4: 0004-Port-to-fop-2.0.patch
|
||||||
BuildRequires: mvn(commons-collections:commons-collections) mvn(commons-configuration:commons-configuration)
|
BuildArch: noarch
|
||||||
BuildRequires: mvn(log4j:log4j:1.2.12) mvn(org.apache.xmlgraphics:fop)
|
BuildRequires: maven-local mvn(commons-lang:commons-lang) mvn(junit:junit)
|
||||||
Obsoletes: maven-doxia-book < %{epoch}:%{version}-%{release} maven-doxia-maven-plugin < %{epoch}:%{version}-%{release}
|
BuildRequires: mvn(org.apache.httpcomponents:httpclient)
|
||||||
|
BuildRequires: mvn(org.apache.httpcomponents:httpcore) mvn(org.apache.maven:maven-parent:pom:)
|
||||||
Patch0001: 0001-Fix-itext-dependency.patch
|
BuildRequires: mvn(org.codehaus.modello:modello-maven-plugin)
|
||||||
Patch0002: 0002-Update-to-Plexus-Container-1.5.5.patch
|
BuildRequires: mvn(org.codehaus.plexus:plexus-component-annotations)
|
||||||
Patch0003: 0003-Disable-tests-which-rely-on-ordering-in-set.patch
|
BuildRequires: mvn(org.codehaus.plexus:plexus-component-metadata)
|
||||||
Patch0004: 0004-Port-to-fop-2.0.patch
|
BuildRequires: mvn(org.codehaus.plexus:plexus-container-default)
|
||||||
|
BuildRequires: mvn(org.codehaus.plexus:plexus-utils) mvn(xmlunit:xmlunit)
|
||||||
|
%if %{with fop}
|
||||||
|
BuildRequires: mvn(commons-collections:commons-collections)
|
||||||
|
BuildRequires: mvn(commons-configuration:commons-configuration) mvn(log4j:log4j:1.2.12)
|
||||||
|
BuildRequires: mvn(org.apache.xmlgraphics:fop)
|
||||||
|
%endif
|
||||||
|
%if %{with itext}
|
||||||
|
BuildRequires: mvn(com.lowagie:itext)
|
||||||
|
%endif
|
||||||
|
%if %{with markdown}
|
||||||
|
BuildRequires: mvn(org.pegdown:pegdown)
|
||||||
|
%endif
|
||||||
|
Obsoletes: maven-doxia-book < %{epoch}:%{version}-%{release}
|
||||||
|
Obsoletes: maven-doxia-maven-plugin < %{epoch}:%{version}-%{release}
|
||||||
%description
|
%description
|
||||||
Doxia is a content generation framework which aims to provide its users with powerful techniques for generating static
|
Doxia is a content generation framework which aims to provide its
|
||||||
and dynamic content: Doxia can be used in web-based publishing context to generate static sites, in addition to being
|
users with powerful techniques for generating static and dynamic
|
||||||
incorporated into dynamic content generation systems like blogs, wikis and content management systems.
|
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
|
%package core
|
||||||
Summary: Core module for maven-doxia
|
Summary: Core module for %{name}
|
||||||
|
|
||||||
%description core
|
%description core
|
||||||
This package provides core module for maven-doxia.
|
This package provides %{summary}.
|
||||||
|
|
||||||
%package logging-api
|
%package logging-api
|
||||||
Summary: Logging-api module for maven-doxia
|
Summary: Logging-api module for %{name}
|
||||||
|
|
||||||
%description logging-api
|
%description logging-api
|
||||||
This package provides logging-api module for maven-doxia.
|
This package provides %{summary}.
|
||||||
|
|
||||||
%package module-apt
|
%package module-apt
|
||||||
Summary: APT module for maven-doxia
|
Summary: APT module for %{name}
|
||||||
|
|
||||||
%description module-apt
|
%description module-apt
|
||||||
This package provides APT module for maven-doxia.
|
This package provides %{summary}.
|
||||||
|
|
||||||
%package module-confluence
|
%package module-confluence
|
||||||
Summary: Confluence module for maven-doxia
|
Summary: Confluence module for %{name}
|
||||||
|
|
||||||
%description module-confluence
|
%description module-confluence
|
||||||
This package provides confluence module for maven-doxia.
|
This package provides %{summary}.
|
||||||
|
|
||||||
%package module-docbook-simple
|
%package module-docbook-simple
|
||||||
Summary: Simplified DocBook module for maven-doxia
|
Summary: Simplified DocBook module for %{name}
|
||||||
|
|
||||||
%description module-docbook-simple
|
%description module-docbook-simple
|
||||||
This package provides docBook module for maven-doxia.
|
This package provides %{summary}.
|
||||||
|
|
||||||
%package module-fml
|
%package module-fml
|
||||||
Summary: FML module for maven-doxia
|
Summary: FML module for %{name}
|
||||||
|
|
||||||
%description module-fml
|
%description module-fml
|
||||||
This package provides FML module for maven-doxia.
|
This package provides %{summary}.
|
||||||
|
%if %{with fop}
|
||||||
|
|
||||||
%package module-fo
|
%package module-fo
|
||||||
Summary: FO module for maven-doxia
|
Summary: FO module for %{name}
|
||||||
|
|
||||||
%description module-fo
|
%description module-fo
|
||||||
This package provides FO module for maven-doxia.
|
This package provides %{summary}.
|
||||||
|
%endif
|
||||||
|
%if %{with itext}
|
||||||
|
|
||||||
%package module-itext
|
%package module-itext
|
||||||
Summary: iText module for maven-doxia
|
Summary: iText module for %{name}
|
||||||
|
|
||||||
%description module-itext
|
%description module-itext
|
||||||
This package provides iText module for maven-doxia.
|
This package provides %{summary}.
|
||||||
|
%endif
|
||||||
|
%if %{with markdown}
|
||||||
|
|
||||||
%package module-markdown
|
%package module-markdown
|
||||||
Summary: Markdown module for maven-doxia
|
Summary: Markdown module for %{name}
|
||||||
|
|
||||||
%description module-markdown
|
%description module-markdown
|
||||||
This package provides markdown module for maven-doxia.
|
This package provides %{summary}.
|
||||||
|
%endif
|
||||||
|
|
||||||
%package module-latex
|
%package module-latex
|
||||||
Summary: Latex module for maven-doxia
|
Summary: Latex module for %{name}
|
||||||
|
|
||||||
%description module-latex
|
%description module-latex
|
||||||
This package provides latex module for maven-doxia.
|
This package provides %{summary}.
|
||||||
|
|
||||||
%package module-rtf
|
%package module-rtf
|
||||||
Summary: RTF module for maven-doxia
|
Summary: RTF module for %{name}
|
||||||
|
|
||||||
%description module-rtf
|
%description module-rtf
|
||||||
This package provides RTF module for maven-doxia.
|
This package provides %{summary}.
|
||||||
|
|
||||||
%package modules
|
%package modules
|
||||||
Summary: Doxia modules for several markup languages.
|
Summary: Doxia modules for several markup languages.
|
||||||
|
|
||||||
%description modules
|
%description modules
|
||||||
This package provides doxia modules for several markup languages.
|
This package provides %{summary}.
|
||||||
|
|
||||||
%package module-twiki
|
%package module-twiki
|
||||||
Summary: TWiki module for maven-doxia
|
Summary: TWiki module for %{name}
|
||||||
|
|
||||||
%description module-twiki
|
%description module-twiki
|
||||||
This package provides twiki module for maven-doxia.
|
This package provides %{summary}.
|
||||||
|
|
||||||
%package module-xdoc
|
%package module-xdoc
|
||||||
Summary: XDoc module for maven-doxia
|
Summary: XDoc module for %{name}
|
||||||
|
|
||||||
%description module-xdoc
|
%description module-xdoc
|
||||||
This package provides xdoc module for maven-doxia.
|
This package provides %{summary}.
|
||||||
|
|
||||||
%package module-xhtml
|
%package module-xhtml
|
||||||
Summary: XHTML module for maven-doxia
|
Summary: XHTML module for %{name}
|
||||||
|
|
||||||
%description module-xhtml
|
%description module-xhtml
|
||||||
This package provides xhtml module for maven-doxia.
|
This package provides %{summary}.
|
||||||
|
|
||||||
%package sink-api
|
%package sink-api
|
||||||
Summary: Sink-api module for maven-doxia
|
Summary: Sink-api module for %{name}
|
||||||
|
|
||||||
%description sink-api
|
%description sink-api
|
||||||
This package provides sink-api module for maven-doxia.
|
This package provides %{summary}.
|
||||||
|
|
||||||
%package tests
|
%package tests
|
||||||
Summary: Tests for maven-doxia
|
Summary: Tests for %{name}
|
||||||
|
|
||||||
%description tests
|
%description tests
|
||||||
This package provides tests for maven-doxia.
|
This package provides %{summary}.
|
||||||
|
|
||||||
%package help
|
%package test-docs
|
||||||
Summary: Help document for maven-doxia
|
Summary: Test-docs module for %{name}
|
||||||
Provides: %{name}-javadoc = %{version}-%{release} %{name}-test-docs = %{version}-%{release}
|
%description test-docs
|
||||||
Obsoletes:%{name}-javadoc < %{version}-%{release} %{name}-test-docs < %{version}-%{release}
|
This package provides %{summary}.
|
||||||
|
|
||||||
%description help
|
%package javadoc
|
||||||
Help document for maven-doxia.
|
Summary: Javadoc for %{name}
|
||||||
|
%description javadoc
|
||||||
|
API documentation for %{name}.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n doxia-%{version} -p1
|
%setup -q -n doxia-%{version}
|
||||||
|
%patch1 -p1
|
||||||
|
%patch2 -p1
|
||||||
|
%patch3 -p1
|
||||||
|
%patch4 -p1
|
||||||
%pom_remove_plugin org.codehaus.mojo:clirr-maven-plugin pom.xml
|
%pom_remove_plugin org.codehaus.mojo:clirr-maven-plugin pom.xml
|
||||||
%pom_remove_plugin :apache-rat-plugin
|
%pom_remove_plugin :apache-rat-plugin
|
||||||
%pom_xpath_inject "pom:plugin[pom:artifactId[text()='modello-maven-plugin']]"\
|
%pom_xpath_inject "pom:plugin[pom:artifactId[text()='modello-maven-plugin']]"\
|
||||||
"/pom:executions/pom:execution/pom:configuration" \
|
"/pom:executions/pom:execution/pom:configuration" \
|
||||||
"<useJava5>true</useJava5>" doxia-modules/doxia-module-fml/pom.xml
|
"<useJava5>true</useJava5>" doxia-modules/doxia-module-fml/pom.xml
|
||||||
|
|
||||||
rm doxia-core/src/test/java/org/apache/maven/doxia/util/XmlValidatorTest.java
|
rm doxia-core/src/test/java/org/apache/maven/doxia/util/XmlValidatorTest.java
|
||||||
rm doxia-modules/doxia-module-markdown/src/test/java/org/apache/maven/doxia/module/markdown/MarkdownParserTest.java
|
rm doxia-modules/doxia-module-markdown/src/test/java/org/apache/maven/doxia/module/markdown/MarkdownParserTest.java
|
||||||
%mvn_package :::tests: tests
|
%mvn_package :::tests: tests
|
||||||
|
%if %{without itext}
|
||||||
|
%pom_disable_module doxia-module-itext doxia-modules
|
||||||
|
%endif
|
||||||
|
%if %{without markdown}
|
||||||
|
%pom_disable_module doxia-module-markdown doxia-modules
|
||||||
|
%endif
|
||||||
|
%if %{without fop}
|
||||||
|
%pom_disable_module doxia-module-fo doxia-modules
|
||||||
|
%endif
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export MAVEN_OPTS="-Xmx512m -XX:MaxPermSize=128m"
|
|
||||||
%mvn_build -s
|
%mvn_build -s
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%mvn_install
|
%mvn_install
|
||||||
|
|
||||||
%files -f .mfiles-doxia
|
%files -f .mfiles-doxia
|
||||||
%dir %{_javadir}/maven-doxia
|
%dir %{_javadir}/%{name}
|
||||||
%doc LICENSE NOTICE
|
%doc LICENSE NOTICE
|
||||||
|
|
||||||
%files core -f .mfiles-doxia-core
|
%files core -f .mfiles-doxia-core
|
||||||
|
|
||||||
%files logging-api -f .mfiles-doxia-logging-api
|
%files logging-api -f .mfiles-doxia-logging-api
|
||||||
|
%doc LICENSE NOTICE
|
||||||
|
|
||||||
%files module-apt -f .mfiles-doxia-module-apt
|
%files module-apt -f .mfiles-doxia-module-apt
|
||||||
|
|
||||||
%files module-confluence -f .mfiles-doxia-module-confluence
|
%files module-confluence -f .mfiles-doxia-module-confluence
|
||||||
|
|
||||||
%files module-docbook-simple -f .mfiles-doxia-module-docbook-simple
|
%files module-docbook-simple -f .mfiles-doxia-module-docbook-simple
|
||||||
|
|
||||||
%files module-fml -f .mfiles-doxia-module-fml
|
%files module-fml -f .mfiles-doxia-module-fml
|
||||||
|
%if %{with fop}
|
||||||
|
|
||||||
%files module-fo -f .mfiles-doxia-module-fo
|
%files module-fo -f .mfiles-doxia-module-fo
|
||||||
|
%endif
|
||||||
|
%if %{with itext}
|
||||||
|
|
||||||
%files module-itext -f .mfiles-doxia-module-itext
|
%files module-itext -f .mfiles-doxia-module-itext
|
||||||
|
%endif
|
||||||
|
%if %{with markdown}
|
||||||
|
|
||||||
%files module-markdown -f .mfiles-doxia-module-markdown
|
%files module-markdown -f .mfiles-doxia-module-markdown
|
||||||
|
%endif
|
||||||
|
|
||||||
%files module-latex -f .mfiles-doxia-module-latex
|
%files module-latex -f .mfiles-doxia-module-latex
|
||||||
|
|
||||||
%files module-rtf -f .mfiles-doxia-module-rtf
|
%files module-rtf -f .mfiles-doxia-module-rtf
|
||||||
|
|
||||||
%files modules -f .mfiles-doxia-modules
|
%files modules -f .mfiles-doxia-modules
|
||||||
|
|
||||||
%files module-twiki -f .mfiles-doxia-module-twiki
|
%files module-twiki -f .mfiles-doxia-module-twiki
|
||||||
|
|
||||||
%files module-xdoc -f .mfiles-doxia-module-xdoc
|
%files module-xdoc -f .mfiles-doxia-module-xdoc
|
||||||
|
|
||||||
%files module-xhtml -f .mfiles-doxia-module-xhtml
|
%files module-xhtml -f .mfiles-doxia-module-xhtml
|
||||||
|
|
||||||
%files sink-api -f .mfiles-doxia-sink-api
|
%files sink-api -f .mfiles-doxia-sink-api
|
||||||
|
|
||||||
|
%files test-docs -f .mfiles-doxia-test-docs
|
||||||
|
|
||||||
%files tests -f .mfiles-tests
|
%files tests -f .mfiles-tests
|
||||||
%files help -f .mfiles-javadoc -f .mfiles-doxia-test-docs
|
%doc LICENSE NOTICE
|
||||||
|
|
||||||
|
%files javadoc -f .mfiles-javadoc
|
||||||
|
%doc LICENSE NOTICE
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Tue Jan 21 2020 lihao <lihao129@huawei.com> - 0:1.7-11
|
* Sat Sep 19 2020 huanghaitao <huanghaitao8@huawei.com> - 1.7-12
|
||||||
|
- delete depends
|
||||||
|
|
||||||
|
* Tue Jan 21 2020 lihao <lihao129@huawei.com> - 1.7-11
|
||||||
- init package
|
- init package
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user