jboss-vfs/jboss-vfs.spec
2023-08-07 16:05:54 +08:00

60 lines
1.9 KiB
RPMSpec

%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}
Name: jboss-vfs
Version: 3.3.0
Release: 1
Summary: JBoss Virtual File System
License: ASL 2.0
URL: https://github.com/jbossas/jboss-vfs/
Source0: https://github.com/jbossas/jboss-vfs/archive/refs/tags/%{namedversion}.tar.gz
BuildArch: noarch
BuildRequires: maven-local mvn(junit:junit) mvn(org.jboss:jboss-parent:pom:)
BuildRequires: mvn(org.jboss.logging:jboss-logging)
BuildRequires: mvn(org.jboss.logging:jboss-logging-annotations)
BuildRequires: mvn(org.jboss.logging:jboss-logging-processor)
BuildRequires: mvn(org.jboss.spec.javax.annotation:jboss-annotations-api_1.2_spec)
BuildRequires: java-11-openjdk-devel
Requires: java-11-openjdk
Requires: javapackages-tools
%description
This package contains the JBoss Virtual File System.
%package javadoc
Summary: Javadoc for jboss-vfs
%description javadoc
This package contains the API documentation for jboss-vfs.
%prep
%setup -q -n jboss-vfs-%{namedversion}
find . -name "*.ear" -type f -print -delete
find . -name "*.jar" -type f -print -delete
find . -name "*.war" -type f -print -delete
find . -name "*.zip" -type f -print -delete
%pom_remove_plugin :maven-checkstyle-plugin
%pom_add_dep org.jboss.spec.javax.annotation:jboss-annotations-api_1.2_spec:1.0.2.Final
%build
export JAVA_HOME=%{_jvmdir}/java-11-openjdk
export CFLAGS="${RPM_OPT_FLAGS}"
export CXXFLAGS="${RPM_OPT_FLAGS}"
%mvn_build -f
%install
%mvn_install
%files -f .mfiles
%license LICENSE.txt
%files javadoc -f .mfiles-javadoc
%license LICENSE.txt
%changelog
* Mon Aug 07 2023 Ge Wang <wang__ge@126.com> - 3.3.0-1
- update to 3.3.0
* Wed May 25 2022 liyanan <liyanan32@h-partners.com> - 3.2.17-1
- update to 3.2.17
* Thu Aug 20 2020 yaokai <yaokai13@huawei.com> - 3.2.12-1
- Package init