jboss-modules/jboss-modules.spec
2020-08-31 10:19:52 +08:00

50 lines
1.5 KiB
RPMSpec

%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}
Name: jboss-modules
Version: 1.5.2
Release: 1
Summary: A Modular Classloading System
License: ASL 2.0 and xpp
URL: https://github.com/jbossas/jboss-modules
Source0: https://github.com/jbossas/jboss-modules/archive/%{namedversion}/jboss-modules-%{namedversion}.tar.gz
BuildArch: noarch
BuildRequires: maven-local mvn(junit:junit) mvn(org.jboss:jboss-parent:pom:)
BuildRequires: mvn(org.jboss.shrinkwrap:shrinkwrap-impl-base)
%if 0%{?fedora}
BuildRequires: graphviz mvn(jdepend:jdepend) mvn(org.jboss.apiviz:apiviz)
%endif
%description
Ths package contains A Modular Classloading System.
%package javadoc
Summary: Javadoc for %{name}
%description javadoc
This package contains the API documentation for %{name}.
%prep
%setup -q -n %{name}-%{namedversion}
if [ %{?rhel} ]; then
%pom_remove_plugin :maven-javadoc-plugin
fi
%pom_remove_plugin :maven-source-plugin
%pom_remove_plugin :maven-checkstyle-plugin
rm src/test/java/org/jboss/modules/MavenResourceTest.java \
src/test/java/org/jboss/modules/maven/MavenSettingsTest.java
%build
%mvn_build
%install
%mvn_install
%files -f .mfiles
%doc README.md
%license LICENSE.txt XPP3-LICENSE.txt
%files javadoc -f .mfiles-javadoc
%license LICENSE.txt XPP3-LICENSE.txt
%changelog
* Wed Aug 26 2020 Shaoqiang Kang <kangshaoqiang1@huawei.com> - 1.5.2-1
- Package init