!1 引入兼容性生态需求包activemq
From: @cherry530 Reviewed-by: @small_leek Signed-off-by:
This commit is contained in:
commit
d212c5fd35
BIN
activemq-5.15.15.tar.gz
Normal file
BIN
activemq-5.15.15.tar.gz
Normal file
Binary file not shown.
62
activemq.spec
Normal file
62
activemq.spec
Normal file
@ -0,0 +1,62 @@
|
||||
%define check_testcase 0
|
||||
Name: activemq
|
||||
Version: 5.15.15
|
||||
Release: 1
|
||||
Summary: Open source messaging and Integration Patterns server
|
||||
License: ASL 2.0
|
||||
URL: http://activemq.apache.org
|
||||
Source0: https://github.com/apache/%{name}/archive/refs/tags/%{name}-%{version}.tar.gz
|
||||
Requires: java
|
||||
BuildRequires: maven java
|
||||
BuildArch: noarch
|
||||
%description
|
||||
The most popular and powerful open source messaging and Integration Patterns
|
||||
server.
|
||||
|
||||
%package javadoc
|
||||
Summary: Javadoc for %{name}
|
||||
%description javadoc
|
||||
This package contains javadoc for %{name}.
|
||||
|
||||
%prep
|
||||
%autosetup -n %{name}-%{name}-%{version}
|
||||
|
||||
%build
|
||||
%if %{check_testcase}
|
||||
mvn package
|
||||
%else
|
||||
mvn package -Dmaven.test.skip=True
|
||||
%endif
|
||||
|
||||
%install
|
||||
install -d -m755 %{buildroot}/%{_datadir}/javadoc
|
||||
install -d -m755 %{buildroot}/%{_datadir}/licenses
|
||||
install -d -m755 %{buildroot}/%{_datadir}/activemq
|
||||
cd assembly/target
|
||||
unzip -d ./file apache-activemq*.zip
|
||||
cd ./file/apache-activemq*
|
||||
for dir in bin examples webapps webapps-demo conf lib docs;do
|
||||
if [ "$dir" = "docs" || "$dir" = "examples" ]
|
||||
then
|
||||
cp -arf $dir %{buildroot}/%{_datadir}/javadoc
|
||||
else
|
||||
cp -arf $dir %{buildroot}/%{_datadir}/activemq
|
||||
|
||||
fi
|
||||
done
|
||||
cp README.txt %{buildroot}/%{_datadir}/activemq
|
||||
cp LICENSE %{buildroot}/%{_datadir}/licenses
|
||||
cp NOTICE %{buildroot}/%{_datadir}/licenses
|
||||
rm -rf ../../file
|
||||
cd %{_builddir}
|
||||
|
||||
%files
|
||||
%{_datadir}/activemq
|
||||
%license %{_datadir}/licenses/*
|
||||
|
||||
%files javadoc
|
||||
%{_datadir}/javadoc
|
||||
|
||||
%changelog
|
||||
* Mon Jul 19 2021 xuping <xuping33@huawei.com> - 5.15.15-1
|
||||
- package init
|
||||
4
activemq.yaml
Normal file
4
activemq.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: github
|
||||
src_repo: apache/activemq
|
||||
tag_prefix: ^activemq-
|
||||
separator: .
|
||||
Loading…
x
Reference in New Issue
Block a user