90bcef2
%global with_docs 0
90bcef2
9ca450d
%global globalversion 3.9.3
d38ec44
%global globalrelease 3
9ca450d
cb4567f
Name:           activemq-cpp
9ca450d
Version:        %{globalversion}
9ca450d
Release:        %{globalrelease}%{?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/
9ca450d
Source0:        http://www.apache.org/dist/activemq/activemq-cpp/%{globalversion}/activemq-cpp-library-%{globalversion}-src.tar.gz
9ca450d
Source1:        http://www.apache.org/dist/activemq/activemq-cpp/3.8.3/activemq-cpp-library-3.8.3-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
9ca450d
BuildRoot:      %{_tmppath}/%{name}-%{globalversion}-%{globalrelease}-root-%(%{__id_u} -n)
cb4567f
90bcef2
BuildRequires:  openssl-devel
33ffad7
BuildRequires:  zlib-devel
90bcef2
%if %{?with_docs}0
cb4567f
BuildRequires:  doxygen
cb4567f
BuildRequires:  graphviz
cb4567f
%if %{?fedora}%{!?fedora:0} >= 9 || %{?rhel}%{!?rhel:0} >= 6
cb4567f
BuildRequires:  tex(latex)
cb4567f
%else
cb4567f
BuildRequires:  tetex-latex
cb4567f
%endif
90bcef2
%endif
cb4567f
BuildRequires:  apr-util-devel%{?_isa} >= 1.3
cb4567f
BuildRequires:  cppunit-devel%{?_isa} >= 1.10.2
cb4567f
cb4567f
%if %{?fedora}%{!?fedora:0} >= 12 || %{?rhel}%{!?rhel:0} >= 6
cb4567f
BuildRequires:  libuuid-devel%{?_isa}
cb4567f
%else
cb4567f
BuildRequires:  e2fsprogs-devel%{?_isa}
cb4567f
%endif
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
d38ec44
Requires:       %{name} = %{globalversion}-%{globalrelease}%{?dist}
cb4567f
Requires:       pkgconfig
cb4567f
%if %{?fedora}%{!?fedora:0} >= 12 || %{?rhel}%{!?rhel:0} >= 6
cb4567f
Requires:  libuuid-devel%{?_isa}
cb4567f
%else
cb4567f
Requires:  e2fsprogs-devel%{?_isa}
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
9ca450d
%package -n activemq-cpp3.8
9ca450d
Version: 3.8.3
9ca450d
Release: %{globalrelease}%{?dist}
9ca450d
Summary: C++ implementation of JMS-like messaging client
9ca450d
9ca450d
%description -n activemq-cpp3.8
9ca450d
activemq-cpp is a JMS-like API for C++ for interfacing with Message 
9ca450d
Brokers such as Apache ActiveMQ.  C++ messaging service helps to make your 
9ca450d
C++ client code much neater and easier to follow. To get a better feel for 
9ca450d
CMS try the API Reference. 
9ca450d
ActiveMQ-CPP is a client only library, a message broker such as Apache 
9ca450d
ActiveMQ is still needed for your clients to communicate.  
9ca450d
cb4567f
%prep
9ca450d
%setup -q -n activemq-cpp-library-3.9.3 -a 1
9ca450d
pushd activemq-cpp-library-3.8.3
9ca450d
%patch0 -p1
9ca450d
rm -r src/main/decaf/internal/util/zip
9ca450d
chmod 644 LICENSE.txt
9ca450d
chmod 644 src/main/activemq/transport/mock/MockTransport.cpp
9ca450d
popd
9ca450d
33ffad7
%patch0 -p1
33ffad7
rm -r src/main/decaf/internal/util/zip
90bcef2
%if %{?with_docs}0
cb4567f
%patch1 -p1
90bcef2
%endif
405c8ba
chmod 644 LICENSE.txt
405c8ba
chmod 644 src/main/activemq/transport/mock/MockTransport.cpp
cb4567f
cb4567f
cb4567f
%build
9ca450d
pushd activemq-cpp-library-3.8.3
9ca450d
%configure --disable-static
9ca450d
make %{?_smp_mflags}
9ca450d
popd
9ca450d
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
9ca450d
pushd activemq-cpp-library-3.8.3
9ca450d
make install DESTDIR=$RPM_BUILD_ROOT
9ca450d
rm $RPM_BUILD_ROOT/%{_libdir}/lib%{name}.la
9ca450d
rm $RPM_BUILD_ROOT/%{_bindir}/example
9ca450d
# Remove devel from compat.
9ca450d
rm $RPM_BUILD_ROOT/%{_bindir}/activemqcpp-config
9ca450d
rm -rf $RPM_BUILD_ROOT/%{_includedir}/activemq-cpp-3.8.3
9ca450d
rm  $RPM_BUILD_ROOT/%{_libdir}/libactivemq-cpp.so
9ca450d
rm  $RPM_BUILD_ROOT/%{_libdir}/pkgconfig/activemq-cpp.pc
9ca450d
popd
9ca450d
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
%clean
cb4567f
rm -rf $RPM_BUILD_ROOT
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,-)
9ca450d
%{_libdir}/lib%{name}.so.19*
cb4567f
%doc LICENSE.txt  NOTICE.txt  README.txt  RELEASE_NOTES.txt
cb4567f
cb4567f
%files devel
cb4567f
%defattr(-,root,root,-)
cb4567f
%{_libdir}/lib%{name}.so
9ca450d
%{_includedir}/%{name}-%{globalversion}
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
9ca450d
%files -n activemq-cpp3.8
9ca450d
%{_libdir}/lib%{name}.so.18*
9ca450d
%doc LICENSE.txt
9ca450d
9ca450d
cb4567f
%changelog
d38ec44
* Fri Feb 17 2017 Steve Traylen <steve.traylen@cern.ch> - 3.9.3-3
d38ec44
- Correct inter dependecy.
d38ec44
d38ec44
* Wed Feb 15 2017 Steve Traylen <steve.traylen@cern.ch> - 3.9.3-3
9ca450d
- Upstream to 3.9.3
9ca450d
- Add activemqcpp-lib3.8 package to provide old version so.
9ca450d
58a1b08
* Wed Aug 27 2014 Steve Traylen <steve.traylen@cern.ch> - 3.8.4-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