wildfly-elytron/wildfly-elytron.spec
2023-11-13 21:16:59 +08:00

72 lines
2.1 KiB
RPMSpec
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}
Name: wildfly-elytron
Version: 1.6.8
Release: 2
Summary: Security, Authentication, and Authorization SPIs for the WildFly project
License: ASL 2.0 and LGPLv2+
URL: http://wildfly.org/
Source0: https://github.com/wildfly-security/wildfly-elytron/archive/refs/tags/%{namedversion}.tar.gz
Source1: xmvn-reactor
BuildRequires: maven-local java-1.8.0-openjdk-devel maven
BuildArch: noarch
%description
WildFly Elytron is a new WildFly sub-project which
is completely replacing the combination of PicketBox and
JAAS as the WildFly client and server security mechanism.
An "elytron" (ĕl´·ĭ·trŏn, plural "elytra") is the hard,
protective casing over a wing of certain flying insects
(e.g. beetles).
%package javadoc
Summary: Javadoc for %{name}
%description javadoc
This package contains javadoc for %{name}.
%prep
%setup -q -n %{name}-%{namedversion}
rm -rf src/test/java/org/wildfly/security/x500/cert/acme/AcmeClientSpiTest.java
cp %{SOURCE1} ./.xmvn-reactor
echo `pwd` > absolute_prefix.log
sed -i 's/\//\\\//g' absolute_prefix.log
absolute_prefix=`head -n 1 absolute_prefix.log`
sed -i 's/absolute-prefix/'"$absolute_prefix"'/g' .xmvn-reactor
%pom_remove_plugin :maven-checkstyle-plugin
%mvn_file org.wildfly.security:%{name} %{name}
%build
ulimit -n 2048
%if "%{_arch}" != "riscv64"
mvn package verify org.apache.maven.plugins:maven-javadoc-plugin:aggregate
%else
mvn package verify org.apache.maven.plugins:maven-javadoc-plugin:aggregate -Dmaven.test.skip
%endif
%install
%mvn_install
%files -f .mfiles
%doc README.md
%license LICENSE.txt
%files javadoc
/usr/share/javadoc/wildfly-elytron
%license LICENSE.txt
%changelog
* Mon Nov 13 2023 laokz <zhangkai@iscas.ac.cn> - 1.6.8-2
- riscv64: skip time consuming tests
* Tue Nov 08 2022 Ge Wang <wangge20@h-partners.com> - 1.6.8-1
- upgrade to version 1.6.8
* Fri Jun 24 2022 Ge Wang <wangge20@h-partners.com> - 1.2.0-1
- upgrade to version 1.2.0
* Mon Aug 17 2020 maminjie <maminjie1@huawei.com> - 1.0.2-1
- package init