214 lines
7.1 KiB
RPMSpec
214 lines
7.1 KiB
RPMSpec
%global namedreltag -alpha-9
|
|
%global namedversion %{version}%{?namedreltag}
|
|
|
|
Name: shrinkwrap-descriptors
|
|
Version: 2.0.0
|
|
Release: 1
|
|
Summary: ShrinkWrap sub-project for creating Archive Descriptors
|
|
License: ASL 2.0
|
|
Url: http://arquillian.org/modules/descriptors-shrinkwrap/
|
|
Source0: https://github.com/shrinkwrap/descriptors/archive/%{namedversion}.tar.gz
|
|
# Related to SHRINKDESC-137
|
|
Patch0: shrinkwrap-descriptors-2.0.0-alpha-8-saxon9.4.patch
|
|
|
|
BuildArch: noarch
|
|
BuildRequires: graphviz maven-local mvn(com.sun.codemodel:codemodel)
|
|
BuildRequires: mvn(com.sun.xml.dtd-parser:dtd-parser) mvn(com.thoughtworks.qdox:qdox)
|
|
BuildRequires: mvn(commons-logging:commons-logging) mvn(dom4j:dom4j) mvn(jdepend:jdepend)
|
|
BuildRequires: mvn(junit:junit) mvn(net.sf.saxon:saxon) mvn(org.apache.ant:ant)
|
|
BuildRequires: mvn(org.apache.ant:ant-testutil) mvn(org.apache.commons:commons-lang3)
|
|
BuildRequires: mvn(org.apache.maven:maven-core) mvn(org.apache.maven:maven-plugin-api)
|
|
BuildRequires: mvn(org.apache.maven.plugins:maven-clean-plugin)
|
|
BuildRequires: mvn(org.apache.maven.plugins:maven-enforcer-plugin)
|
|
BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin)
|
|
BuildRequires: mvn(org.apache.maven.plugins:maven-release-plugin)
|
|
BuildRequires: mvn(org.apache.maven.plugins:maven-source-plugin)
|
|
BuildRequires: mvn(org.apache.maven.plugin-testing:maven-plugin-testing-harness)
|
|
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
|
|
BuildRequires: mvn(org.codehaus.mojo:buildnumber-maven-plugin)
|
|
BuildRequires: mvn(org.jboss:jboss-parent:pom:) mvn(org.jboss.apiviz:apiviz)
|
|
BuildRequires: mvn(org.mockito:mockito-all) mvn(xmlunit:xmlunit)
|
|
|
|
%description
|
|
ShrinkWrap sub-project for creating Archive Descriptors
|
|
This package contains the ShrinkWrap Descriptors API Base.
|
|
API Base for Client View of the ShrinkWrap Descriptors Project.
|
|
|
|
%package ant
|
|
Summary: ShrinkWrap Descriptors Ant Extension
|
|
%description ant
|
|
Extension module for ShrinkWrap Descriptors Ant Tasks.
|
|
|
|
%package api-javaee
|
|
Summary: ShrinkWrap Descriptors Generated Java EE API
|
|
%description api-javaee
|
|
Client View of the ShrinkWrap Descriptors Project.
|
|
|
|
%package api-javaee-prototype
|
|
Summary: ShrinkWrap Descriptors Prototype Java EE API
|
|
%description api-javaee-prototype
|
|
Client View of the ShrinkWrap Descriptors Project.
|
|
|
|
%package api-jboss
|
|
Summary: ShrinkWrap Descriptors Generated JBoss API
|
|
%description api-jboss
|
|
Client View of the JBoss related ShrinkWrap Descriptors Project.
|
|
|
|
%package api-misc
|
|
Summary: ShrinkWrap Descriptors Generated Misc API
|
|
%description api-misc
|
|
Client View of the ShrinkWrap Descriptors Project.
|
|
|
|
%package bom
|
|
Summary: ShrinkWrap Descriptors Bill of Materials
|
|
%description bom
|
|
Centralized dependency Management for the
|
|
ShrinkWrap Descriptors Project.
|
|
|
|
%package build-resources
|
|
Summary: Shrinkwrap Descriptors Build Resources
|
|
%description build-resources
|
|
Shrinkwrap Descriptors Build Resources.
|
|
|
|
%package depchain
|
|
Summary: ShrinkWrap Descriptors Dependency Chain
|
|
%description depchain
|
|
Single-POM Definition to export the ShrinkWrap Descriptors
|
|
artifacts in proper scope.
|
|
|
|
%package gen
|
|
Summary: ShrinkWrap Descriptors Source Generator
|
|
%description gen
|
|
Generates various deployment descriptors via XSLT transformation.
|
|
|
|
%package impl-base
|
|
Summary: ShrinkWrap Descriptors Implementation
|
|
License: ASL 2.0 and LGPLv2+
|
|
%description impl-base
|
|
Implementation of the ShrinkWrap Descriptors Project.
|
|
|
|
%package impl-javaee
|
|
Summary: ShrinkWrap Descriptors Generated Java EE Implementation
|
|
%description impl-javaee
|
|
Generated Implementation of the ShrinkWrap Descriptors Project.
|
|
|
|
%package impl-javaee-prototype
|
|
Summary: ShrinkWrap Descriptors Prototype Java EE Implementation
|
|
%description impl-javaee-prototype
|
|
Prototype Implementation of the ShrinkWrap Descriptors Project.
|
|
|
|
%package impl-jboss
|
|
Summary: ShrinkWrap Descriptors Generated JBoss Implementation
|
|
%description impl-jboss
|
|
Generated JBoss Implementation of the ShrinkWrap Descriptors Project.
|
|
|
|
%package impl-misc
|
|
Summary: ShrinkWrap Descriptors Generated Misc Implementation
|
|
%description impl-misc
|
|
Generated JBoss Implementation of the ShrinkWrap Descriptors Project.
|
|
|
|
%package metadata-parser
|
|
Summary: ShrinkWrap Descriptors Metadata Parser
|
|
%description metadata-parser
|
|
XSD and DTD parser for the ShrinkWrap Descriptors.
|
|
|
|
%package metadata-parser-test
|
|
Summary: ShrinkWrap Descriptors Metadata Parser Tests
|
|
%description metadata-parser-test
|
|
Hand-coded Tests for the generated descriptors via metadata plugin.
|
|
|
|
%package parent
|
|
Summary: ShrinkWrap Descriptors Aggregator POM
|
|
%description parent
|
|
ShrinkWrap Descriptors Aggregator POM.
|
|
|
|
%package spi
|
|
Summary: ShrinkWrap Descriptors SPI
|
|
%description spi
|
|
Service Provider Interface of the ShrinkWrap Descriptors Project.
|
|
|
|
%package test-util
|
|
Summary: ShrinkWrap Descriptors Test Utilities
|
|
%description test-util
|
|
Commonly used custom assertions.
|
|
|
|
%package javadoc
|
|
Summary: Javadoc for %{name}
|
|
%description javadoc
|
|
This package contains javadoc for %{name}.
|
|
|
|
%prep
|
|
%setup -q -n descriptors-%{namedversion}
|
|
%patch0 -p1
|
|
rm -r gen/doc/*
|
|
%pom_remove_plugin -r :maven-checkstyle-plugin
|
|
%pom_remove_dep :saxon-dom metadata-parser
|
|
%pom_remove_dep -r org.easytesting:fest-assert
|
|
%pom_disable_module test
|
|
%pom_add_dep org.apache.maven:maven-core::test metadata-parser
|
|
%pom_xpath_set -r "pom:addClasspath" false ant metadata-parser
|
|
rm metadata-parser/src/test/java/org/jboss/shrinkwrap/descriptor/metadata/mojo/MetadataParserMojoTest.java
|
|
%mvn_package :%{name}-impl-base::tests: %{name}-impl-base
|
|
|
|
%build
|
|
export JAVA5_HOME=%{_jvmdir}/java
|
|
%mvn_build -s
|
|
|
|
%install
|
|
%mvn_install
|
|
|
|
%files -f .mfiles-%{name}-api-base
|
|
%license LICENSE
|
|
|
|
%files ant -f .mfiles-%{name}-ant
|
|
|
|
%files api-javaee -f .mfiles-%{name}-api-javaee
|
|
|
|
%files api-javaee-prototype -f .mfiles-%{name}-api-javaee-prototype
|
|
|
|
%files api-jboss -f .mfiles-%{name}-api-jboss
|
|
|
|
%files api-misc -f .mfiles-%{name}-api-misc
|
|
|
|
%files bom -f .mfiles-%{name}-bom
|
|
%license LICENSE
|
|
|
|
%files build-resources -f .mfiles-%{name}-build-resources
|
|
%license LICENSE
|
|
|
|
%files depchain -f .mfiles-%{name}-depchain
|
|
%license LICENSE
|
|
|
|
%files gen -f .mfiles-%{name}-gen
|
|
%doc gen/readme.txt
|
|
%license LICENSE
|
|
|
|
%files impl-base -f .mfiles-%{name}-impl-base
|
|
|
|
%files impl-javaee -f .mfiles-%{name}-impl-javaee
|
|
|
|
%files impl-javaee-prototype -f .mfiles-%{name}-impl-javaee-prototype
|
|
|
|
%files impl-jboss -f .mfiles-%{name}-impl-jboss
|
|
|
|
%files impl-misc -f .mfiles-%{name}-impl-misc
|
|
|
|
%files metadata-parser -f .mfiles-%{name}-metadata-parser
|
|
|
|
%files metadata-parser-test -f .mfiles-%{name}-metadata-parser-test
|
|
|
|
%files parent -f .mfiles-%{name}-parent
|
|
%license LICENSE
|
|
|
|
%files spi -f .mfiles-%{name}-spi
|
|
|
|
%files test-util -f .mfiles-%{name}-test-util
|
|
%license LICENSE
|
|
|
|
%files javadoc -f .mfiles-javadoc
|
|
%license LICENSE
|
|
|
|
%changelog
|
|
* Wed Aug 12 2020 maminjie <maminjie1@huawei.com> - 2.0.0-1
|
|
- package init
|