90bcef2
%global with_docs 0
90bcef2
cb4567f
Name:           activemq-cpp
f537987
Version:        3.9.4
f537987
Release:        1%{?dist}
cb4567f
Summary:        C++ implementation of JMS-like messaging client
cb4567f
cb4567f
Group:          Development/Libraries
cb4567f
License:        ASL 2.0
cb4567f
URL:            http://activemq.apache.org/cms/
58a1b08
Source0:        http://www.apache.org/dist/activemq/activemq-cpp/%{version}/activemq-cpp-library-%{version}-src.tar.gz
33ffad7
Patch0:         activemq-cpp-3.8.2-system-zlib.patch
cb4567f
# Some local texmf configuration to increase default pool_size.
169a338
Patch1:         activemq-cpp-local-texmf.patch
f537987
# Openssl 1.1.0
f537987
# http://activemq.2283324.n4.nabble.com/activemq-cpp-3-9-4-fails-to-build-fedora-rawhide-openssl-1-1-0e-related-td4724037.html
f537987
Patch2:         activemq-cpp-openssl1.patch
cb4567f
90bcef2
BuildRequires:  openssl-devel
33ffad7
BuildRequires:  zlib-devel
90bcef2
%if %{?with_docs}0
cb4567f
BuildRequires:  doxygen
cb4567f
BuildRequires:  graphviz
cb4567f
BuildRequires:  tex(latex)
cb4567f
%endif
a6acb69
BuildRequires:  apr-util-devel >= 1.3
a6acb69
BuildRequires:  cppunit-devel >= 1.10.2
a6acb69
BuildRequires:  libuuid-devel
cb4567f
cb4567f
%description
cb4567f
activemq-cpp is a JMS-like API for C++ for interfacing with Message 
cb4567f
Brokers such as Apache ActiveMQ.  C++ messaging service helps to make your 
cb4567f
C++ client code much neater and easier to follow. To get a better feel for 
cb4567f
CMS try the API Reference. 
cb4567f
ActiveMQ-CPP is a client only library, a message broker such as Apache 
cb4567f
ActiveMQ is still needed for your clients to communicate.  
cb4567f
cb4567f
%package devel
cb4567f
Summary:        C++ implementation header files for JMS-like messaging
cb4567f
Group:          Development/Libraries
cb4567f
Requires:       %{name} = %{version}-%{release}
cb4567f
Requires:       pkgconfig
cb4567f
%if %{?fedora}%{!?fedora:0} >= 12 || %{?rhel}%{!?rhel:0} >= 6
a6acb69
Requires:  libuuid-devel
cb4567f
%else
a6acb69
Requires:  e2fsprogs-devel
cb4567f
%endif
cb4567f
cb4567f
%description devel
cb4567f
activemq-cpp is a JMS-like API for C++ for interfacing with Message 
cb4567f
Brokers such as Apache ActiveMQ.  C++ messaging service helps to make 
cb4567f
your C++ client code much neater and easier to follow. To get a better
cb4567f
feel for CMS try the API Reference.  ActiveMQ-CPP is a client only 
cb4567f
library, a message broker such as Apache ActiveMQ is still needed 
cb4567f
for your clients to communicate.  
cb4567f
cb4567f
%{name}-devel contains development header files.
cb4567f
90bcef2
%if %{?with_docs}0
cb4567f
%package doc
cb4567f
Summary:        C++ implementation header files for JMS-like messaging
cb4567f
Group:          Documentation
cb4567f
%if %{?fedora}%{!?fedora:0} >= 10 || %{?rhel}%{!?rhel:0} >= 6
cb4567f
BuildArch:      noarch
cb4567f
%endif
cb4567f
cb4567f
%description doc
cb4567f
activemq-cpp is a JMS-like API for C++ for interfacing with Message 
cb4567f
Brokers such as Apache ActiveMQ.  C++ messaging service helps to make 
cb4567f
your C++ client code much neater and easier to follow. To get a better
cb4567f
feel for CMS try the API Reference.  ActiveMQ-CPP is a client only 
cb4567f
library, a message broker such as Apache ActiveMQ is still needed 
cb4567f
for your clients to communicate.  
cb4567f
cb4567f
%{name}-doc contains api documentation.
90bcef2
%endif
cb4567f
cb4567f
%prep
405c8ba
%setup -q -n activemq-cpp-library-%{version}
33ffad7
%patch0 -p1
33ffad7
rm -r src/main/decaf/internal/util/zip
90bcef2
%if %{?with_docs}0
cb4567f
%patch1 -p1
90bcef2
%endif
f537987
%patch2 -p1
405c8ba
chmod 644 LICENSE.txt
405c8ba
chmod 644 src/main/activemq/transport/mock/MockTransport.cpp
cb4567f
cb4567f
cb4567f
%build
cb4567f
# Build pdf(30MB) rather than default html(400MB). 
90bcef2
%if %{?with_docs}0
cb4567f
%configure --disable-static --disable-doxygen-html --enable-doxygen-pdf
90bcef2
%else
90bcef2
%configure --disable-static
90bcef2
%endif
90bcef2
cb4567f
make %{?_smp_mflags}
90bcef2
%if %{?with_docs}0
cb4567f
make %{?_smp_mflags}  doxygen-run
cb4567f
cp -p texmf.cnf doc/latex/texmf.cnf
cb4567f
make %{?_smp_mflags} doxygen-pdf
90bcef2
%endif
cb4567f
cb4567f
%install
cb4567f
rm -rf $RPM_BUILD_ROOT
cb4567f
make install DESTDIR=$RPM_BUILD_ROOT
cb4567f
rm $RPM_BUILD_ROOT/%{_libdir}/lib%{name}.la
cb4567f
rm $RPM_BUILD_ROOT/%{_bindir}/example
cb4567f
cb4567f
%check
cb4567f
make %{?_smp_mflags} check
cb4567f
cb4567f
%post -p /sbin/ldconfig
cb4567f
%postun -p /sbin/ldconfig
cb4567f
cb4567f
%files
cb4567f
%defattr(-,root,root,-)
cb4567f
%{_libdir}/lib%{name}.so.*
cb4567f
%doc LICENSE.txt  NOTICE.txt  README.txt  RELEASE_NOTES.txt
cb4567f
cb4567f
%files devel
cb4567f
%defattr(-,root,root,-)
cb4567f
%{_libdir}/lib%{name}.so
cb4567f
%{_includedir}/%{name}-%{version}
cb4567f
%{_libdir}/pkgconfig/%{name}.pc
cb4567f
%{_bindir}/activemqcpp-config
cb4567f
90bcef2
%if %{?with_docs}0
cb4567f
%files doc
cb4567f
%defattr(-,root,root,-)
cb4567f
%doc doc/%{name}.pdf
90bcef2
%endif
cb4567f
cb4567f
%changelog
f537987
* Fri Apr 13 2018 Steve Traylen <steve.traylen@cern.ch> - 3.9.4-1
f537987
- New from upstream
f537987
- Add patch for openssl1
f537987
48cb158
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.8.4-8
48cb158
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
48cb158
0edac77
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.8.4-7
0edac77
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
0edac77
ef2931b
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.8.4-6
ef2931b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
ef2931b
fabd26c
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.8.4-5
fabd26c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
fabd26c
b005c79
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.8.4-4
b005c79
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
b005c79
591112c
* Tue Jun 16 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.8.4-3
591112c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
591112c
3746100
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 3.8.4-2
3746100
- Rebuilt for GCC 5 C++11 ABI change
3746100
a6acb69
* Wed Mar 11 2015 Steve Traylen <steve.traylen@cern.ch> - 3.8.4-1
a6acb69
- Upstream to 3.8.4
a6acb69
a6acb69
* Wed Aug 27 2014 Steve Traylen <steve.traylen@cern.ch> - 3.8.3-1
58a1b08
- Upstream to 3.8.3
58a1b08
f4fc83b
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.8.2-4
f4fc83b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
f4fc83b
bbef24b
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.8.2-3
bbef24b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
bbef24b
33ffad7
* Thu May 29 2014 Ville Skyttä <ville.skytta@iki.fi> - 3.8.2-2
33ffad7
- Patch to use system zlib instead of bundled one
33ffad7
da47d6a
* Thu Jan 23 2014 Steve Traylen <steve.traylen@cern.ch> - 3.8.2-1
da47d6a
- Upstream to 3.8.2
da47d6a
95cc01a
* Wed Sep 4 2013 Steve Traylen <steve.traylen@cern.ch> - 3.7.1-1
95cc01a
- Upstream to 3.7.1
95cc01a
923842f
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4.4-3
923842f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
923842f
7da9a48
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4.4-2
7da9a48
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
7da9a48
90bcef2
* Sun Sep 16 2012 Steve Traylen <steve.traylen@cern.ch> - 3.4.4-1
90bcef2
- Upstream to 3.4.4
90bcef2
bd98c5b
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4.1-3
bd98c5b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
bd98c5b
f0d732a
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4.1-2
f0d732a
- Rebuilt for c++ ABI breakage
f0d732a
95cc01a
* Sun Feb 12 2012 Steve Traylen <steve.traylen@cern.ch> - 3.4.1-1
169a338
- Upstream to 3.4.1
169a338
- Add patch for gcc47, AMQCPP-389
169a338
05f8229
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4.0-2
05f8229
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
05f8229
95cc01a
* Sun Jul 10 2011 Steve Traylen <steve.traylen@cern.ch> - 3.4.0-1
90f817d
- Upstream to 3.4.0
90f817d
0332ea2
* Mon Apr 18 2011 Steve Traylen <steve.traylen@cern.ch> - 3.3.0-1
0332ea2
- Upstream to 3.3.0
0332ea2
1c57dac
* Mon Mar 7 2011 Steve Traylen <steve.traylen@cern.ch> - 3.2.5-1
088fd1e
- autoconf step removed.
1c57dac
- Upstream to 3.2.5
1c57dac
449ced5
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.4-2
449ced5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
449ced5
885c796
* Sun Feb 6 2011 Steve Traylen <steve.traylen@cern.ch> - 3.2.4-1
885c796
- Upstream to 3.2.4
885c796
f915ebf
* Wed Nov 10 2010 Steve Traylen <steve.traylen@cern.ch> - 3.2.3-1
f915ebf
- Upstream to 3.2.3
f915ebf
183c192
* Thu Jul 22 2010 Steve Traylen <steve.traylen@cern.ch> - 3.2.1-1
183c192
- Upstream to 3.2.1
fff9a20
- Add BR of openssl-devel since library now supports ssl 
fff9a20
  connections.
183c192
95cc01a
* Sat Apr 3 2010 Steve Traylen <steve.traylen@cern.ch> - 3.1.2-1
a64fe8d
- Upstream to 3.1.2
a64fe8d
95cc01a
* Sat Jan 9 2010 Steve Traylen <steve.traylen@cern.ch> - 3.1.0-1
96b8b33
- Upstream to 3.1.0
96b8b33
405c8ba
* Fri Dec 11 2009 Steve Traylen <steve.traylen@cern.ch> - 3.0.1-1
405c8ba
- Upstream to 3.0.1
405c8ba
- Tar ball name change.
a64fe8d
cb4567f
* Fri Dec 11 2009 Steve Traylen <steve.traylen@cern.ch> - 2.2.6-5
cb4567f
- Add libuuid-devel as Requires to -devel package.
a64fe8d
cb4567f
* Sat Nov 14 2009 Steve Traylen <steve.traylen@cern.ch> - 2.2.6-4
cb4567f
- Remove patch to relocate headers from versioned directory.
cb4567f
- Add make smp options to make check.
a64fe8d
cb4567f
* Fri Nov 6 2009 Steve Traylen <steve.traylen@cern.ch> - 2.2.6-3
cb4567f
- Relocate headers to non versioned directory with patch0
a64fe8d
cb4567f
* Fri Nov 6 2009 Steve Traylen <steve.traylen@cern.ch> - 2.2.6-2
cb4567f
- Adapted to Fedora guidelines.
a64fe8d
cb4567f
* Thu Feb 26 2009 Ricardo Rocha <ricardo.rocha@cern.ch> - 2.2.6-1
cb4567f
- First version of the spec file
cb4567f
cb4567f