52 lines
2.0 KiB
RPMSpec
52 lines
2.0 KiB
RPMSpec
%global namedreltag .Final
|
|
%global namedversion %{version}%{?namedreltag}
|
|
Name: jboss-logging-tools1
|
|
Version: 1.2.1
|
|
Release: 1
|
|
Summary: JBoss Logging I18n Annotation Processor
|
|
License: ASL 2.0 and LGPLv2+
|
|
URL: https://github.com/jboss-logging/jboss-logging-tools
|
|
Source0: https://github.com/jboss-logging/jboss-logging-tools/archive/%{namedversion}.tar.gz
|
|
Patch0: https://github.com/jboss-logging/jboss-logging-tools/commit/9a07a05d8437948c353fd13ce3311d0c5c4c0a79.patch
|
|
BuildArch: noarch
|
|
BuildRequires: maven-local mvn(org.apache.maven.surefire:surefire-testng)
|
|
BuildRequires: mvn(org.jboss:jboss-parent:pom:) mvn(org.jboss.jdeparser:jdeparser:1)
|
|
BuildRequires: mvn(org.jboss.logging:jboss-logging) mvn(org.jboss.logmanager:jboss-logmanager)
|
|
BuildRequires: mvn(org.testng:testng)
|
|
%description
|
|
This package contains JBoss Logging I18n Annotation Processor
|
|
|
|
%package javadoc
|
|
Summary: Javadoc for jboss-logging-tools1
|
|
%description javadoc
|
|
This package contains the API documentation for jboss-logging-tools1.
|
|
|
|
%prep
|
|
%setup -q -n jboss-logging-tools-%{namedversion}
|
|
%patch0 -p1
|
|
cp -p annotations/src/main/resources/META-INF/LICENSE.txt LICENSE-ASL.txt
|
|
cp -p processor/src/main/resources/META-INF/LICENSE.txt LICENSE-LGPL.txt
|
|
%pom_disable_module processor-tests
|
|
%pom_xpath_set pom:properties/pom:version.org.jboss.jdeparser 1
|
|
%pom_xpath_inject pom:project "<version>%{namedversion}</version>" annotations
|
|
%pom_xpath_inject pom:project "<version>%{namedversion}</version>" processor
|
|
%pom_change_dep :jdeparser ::1 processor
|
|
%pom_change_dep :jboss-logging-annotations ::'%{namedversion}' processor
|
|
%mvn_compat_version : %{namedversion} %{version} 1
|
|
|
|
%build
|
|
%mvn_build -- -Dmaven.test.failure.ignore=true
|
|
|
|
%install
|
|
%mvn_install
|
|
|
|
%files -f .mfiles
|
|
%license LICENSE-ASL.txt LICENSE-LGPL.txt
|
|
|
|
%files javadoc -f .mfiles-javadoc
|
|
%license LICENSE-ASL.txt LICENSE-LGPL.txt
|
|
|
|
%changelog
|
|
* Fri Aug 21 2020 yaokai <yaokai13@huawei.com> - 1.2.1-1
|
|
- Package init
|