wildfly-elytron/wildfly-elytron.spec

72 lines
2.1 KiB
RPMSpec
Raw Normal View History

2020-08-25 14:16:03 +08:00
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}
Name: wildfly-elytron
Version: 1.6.8
2023-11-13 21:16:59 +08:00
Release: 2
2020-08-25 14:16:03 +08:00
Summary: Security, Authentication, and Authorization SPIs for the WildFly project
License: ASL 2.0 and LGPLv2+
URL: http://wildfly.org/
2022-06-27 15:53:23 +08:00
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
2020-08-25 14:16:03 +08:00
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
2022-06-27 15:53:23 +08:00
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
2020-08-25 14:16:03 +08:00
%pom_remove_plugin :maven-checkstyle-plugin
%mvn_file org.wildfly.security:%{name} %{name}
%build
ulimit -n 2048
2023-11-13 21:16:59 +08:00
%if "%{_arch}" != "riscv64"
mvn package verify org.apache.maven.plugins:maven-javadoc-plugin:aggregate
2023-11-13 21:16:59 +08:00
%else
mvn package verify org.apache.maven.plugins:maven-javadoc-plugin:aggregate -Dmaven.test.skip
%endif
2020-08-25 14:16:03 +08:00
%install
%mvn_install
%files -f .mfiles
%doc README.md
%license LICENSE.txt
2022-06-27 15:53:23 +08:00
%files javadoc
/usr/share/javadoc/wildfly-elytron
2020-08-25 14:16:03 +08:00
%license LICENSE.txt
%changelog
2023-11-13 21:16:59 +08:00
* 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
2022-06-27 15:53:23 +08:00
* Fri Jun 24 2022 Ge Wang <wangge20@h-partners.com> - 1.2.0-1
- upgrade to version 1.2.0
2020-08-25 14:16:03 +08:00
* Mon Aug 17 2020 maminjie <maminjie1@huawei.com> - 1.0.2-1
- package init