200 lines
6.5 KiB
RPMSpec
200 lines
6.5 KiB
RPMSpec
Name: activemq
|
|
Version: 5.6.0
|
|
Release: 16%{?dist}
|
|
Summary: Open source messaging and Integration Patterns server
|
|
License: ASL 2.0
|
|
URL: http://activemq.apache.org
|
|
# git clone -b activemq-5.6.0 https://github.com/apache/activemq.git activemq-core-5.6.0
|
|
# rm -rf activemq-core-5.6.0/.git
|
|
# tar cJf activemq-core-5.6.0.tar.xz activemq-core-5.6.0
|
|
Source0: activemq-5.6.0.tar.xz
|
|
|
|
Patch0: activemq-5.6.0-jaas-CVE-2015-6524.patch
|
|
Patch1: activemq-5.6.0-CVE-2015-5254.patch
|
|
|
|
BuildRequires: maven-local
|
|
BuildRequires: mvn(com.thoughtworks.xstream:xstream)
|
|
BuildRequires: mvn(commons-net:commons-net)
|
|
BuildRequires: mvn(org.apache.derby:derby)
|
|
BuildRequires: mvn(org.apache.activemq:activeio-core)
|
|
BuildRequires: mvn(org.apache.activemq.protobuf:activemq-protobuf)
|
|
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
|
|
BuildRequires: mvn(org.apache.geronimo.specs:geronimo-jms_1.1_spec)
|
|
BuildRequires: mvn(org.apache.geronimo.specs:geronimo-jta_1.1_spec)
|
|
BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin)
|
|
BuildRequires: mvn(org.apache.maven.plugins:maven-clean-plugin)
|
|
BuildRequires: mvn(org.apache.xbean:maven-xbean-plugin)
|
|
BuildRequires: mvn(org.codehaus.jettison:jettison)
|
|
BuildRequires: mvn(org.codehaus.mojo:javacc-maven-plugin)
|
|
BuildRequires: mvn(org.jasypt:jasypt)
|
|
BuildRequires: mvn(org.springframework:spring-jms)
|
|
|
|
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}
|
|
|
|
%package core
|
|
Summary: ActiveMQ Core
|
|
|
|
%description core
|
|
ActiveMQ Core Library
|
|
|
|
%package jaas
|
|
Summary: ActiveMQ Jaas
|
|
|
|
%description jaas
|
|
ActiveMQ Jaas Library
|
|
|
|
%package kahadb
|
|
Summary: ActiveMQ KahaDB
|
|
|
|
%description kahadb
|
|
A file based persistence database that is local to the message broker that
|
|
is using it. It has been optimized for fast persistence and is the the default
|
|
storage mechanism from ActiveMQ 5.4 onwards. KahaDB uses less file descriptors
|
|
and provides faster recovery than its predecessor, the AMQ Message Store.
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{name}-%{version}
|
|
%patch0 -p1
|
|
%patch1 -p1
|
|
|
|
# Disable modules
|
|
for m in all camel console fileserver blueprint karaf \
|
|
openwire-generator optional pool ra rar run spring \
|
|
tooling web web-demo web-console xmpp jmdns_1.0
|
|
do
|
|
%pom_disable_module %{name}-${m}
|
|
done
|
|
|
|
%pom_disable_module assembly
|
|
|
|
# Remove missing plugin for activemq-core
|
|
%pom_remove_dep xsddoc:maven-xsddoc-plugin %{name}-core/pom.xml
|
|
|
|
# Remove missing plugin
|
|
%pom_remove_plugin org.codehaus.mojo:ianal-maven-plugin
|
|
%pom_remove_plugin -r :cobertura-maven-plugin
|
|
# Workaround for new bundle plugin
|
|
%pom_xpath_remove "pom:plugin[pom:artifactId = 'maven-bundle-plugin' ]/pom:configuration"
|
|
|
|
# Remove missing test dependencies
|
|
%pom_remove_dep org.springframework:spring-test
|
|
|
|
# Remove missing optional dependencies
|
|
%pom_remove_dep org.apache.geronimo.specs:geronimo-j2ee-management_1.1_spec
|
|
|
|
# Remove jmdns support
|
|
rm -rf %{name}-core/src/main/java/org/apache/activemq/transport/discovery/zeroconf
|
|
%pom_remove_dep org.apache.activemq:activemq-jmdns_1.0 %{name}-core/pom.xml
|
|
|
|
# Remove leveldb support
|
|
rm -rf %{name}-core/src/main/java/org/apache/activemq/store/leveldb
|
|
%pom_remove_dep org.fusesource.fuse-extra:fusemq-leveldb %{name}-core/pom.xml
|
|
|
|
# Remove mqtt support
|
|
rm -rf %{name}-core/src/main/java/org/apache/activemq/transport/mqtt
|
|
%pom_remove_dep org.fusesource.mqtt-client:mqtt-client %{name}-core/pom.xml
|
|
|
|
# Remove other optional dependencies
|
|
%pom_remove_dep org.apache.activemq:activemq-openwire-generator %{name}-core/pom.xml
|
|
%pom_remove_dep org.apache.geronimo.specs:geronimo-j2ee-management_1.1_spec %{name}-core/pom.xml
|
|
%pom_remove_dep org.apache.geronimo.specs:geronimo-jta_1.0.1B_spec %{name}-core/pom.xml
|
|
%pom_remove_dep org.apache.geronimo.specs:geronimo-jacc_1.1_spec %{name}-core/pom.xml
|
|
%pom_remove_dep org.apache.geronimo.specs:geronimo-annotation_1.0_spec %{name}-core/pom.xml
|
|
|
|
chmod 644 LICENSE README.txt
|
|
|
|
# Fix license file encoding
|
|
mv LICENSE LICENSE.orig
|
|
iconv -f iso-8859-1 -t utf-8 LICENSE.orig > LICENSE
|
|
|
|
%mvn_package ":activemq-core:{xsd}::" __noinstall
|
|
%mvn_package ":activemq-core:{jar,pom}:{}:" core
|
|
%mvn_package ":activemq-jaas:{jar,pom}:{}:" jaas
|
|
%mvn_package ":kahadb:{jar,pom}:{}:" kahadb
|
|
|
|
|
|
%build
|
|
%mvn_build -f
|
|
|
|
%install
|
|
%mvn_install
|
|
|
|
%files -f .mfiles
|
|
%doc README.txt
|
|
%license LICENSE NOTICE
|
|
|
|
%files javadoc -f .mfiles-javadoc
|
|
%license LICENSE NOTICE
|
|
|
|
%files core -f .mfiles-core
|
|
%license LICENSE NOTICE
|
|
|
|
%files jaas -f .mfiles-jaas
|
|
%license LICENSE NOTICE
|
|
|
|
%files kahadb -f .mfiles-kahadb
|
|
%license LICENSE NOTICE
|
|
|
|
%changelog
|
|
* Mon Jun 20 2016 gil cattaneo <puntogil@libero.it> 5.6.0-16
|
|
- add missing build requires
|
|
|
|
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 5.6.0-15
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
* Tue Dec 15 2015 gil cattaneo <puntogil@libero.it> 5.6.0-14
|
|
- fix for CVE-2015-5254 (rhbz#1291292,1291293)
|
|
|
|
* Sat Nov 28 2015 gil cattaneo <puntogil@libero.it> - 5.6.0-13
|
|
- rebuilt
|
|
|
|
* Fri Sep 25 2015 gil cattaneo <puntogil@libero.it> 5.6.0-12
|
|
- fix for CVE-2015-6524 (rhbz#1257246,1257248)
|
|
|
|
* Sun Aug 09 2015 gil cattaneo <puntogil@libero.it> 5.6.0-11
|
|
- fix FTBFS rhbz#1239362
|
|
- fix BR list and use BR mvn()-like
|
|
- introduce license macro
|
|
|
|
* Tue Jun 16 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.6.0-10
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
* Mon Jun 16 2014 Michal Srb <msrb@redhat.com> - 5.6.0-9
|
|
- Fix FTBFS
|
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.6.0-8
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
* Mon Oct 14 2013 Marek Goldmann <mgoldman@redhat.com> - 5.6.0-7
|
|
- Use xmvn
|
|
- Fixes Remove binary distribution usage, RHBZ#1018696
|
|
|
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.6.0-6
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
* Sun Mar 03 2013 Matt Spaulding <mspaulding06@gmail.com> - 5.6.0-5
|
|
- Removed optional geronimo-annotation dependency from activemq-core
|
|
|
|
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.6.0-4
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
* Wed Sep 19 2012 Matt Spaulding <mspaulding06@gmail.com> - 5.6.0-3
|
|
- Added NOTICE to all subpackages
|
|
|
|
* Wed Sep 19 2012 Matt Spaulding <mspaulding06@gmail.com> - 5.6.0-2
|
|
- Removed references to RPM_BUILD_ROOT for consistency
|
|
|
|
* Mon Sep 10 2012 Matt Spaulding <mspaulding06@gmail.com> - 5.6.0-1
|
|
- Initial RPM package
|
|
|