cb4567f
Name:           activemq-cpp
90f817d
Version:        3.4.0
1c57dac
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/
405c8ba
Source0:        http://www.apache.org/dist/activemq/activemq-cpp/source/activemq-cpp-library-%{version}-src.tar.gz
cb4567f
# Some local texmf configuration to increase default pool_size.
cb4567f
Patch1:         %{name}-local-texmf.patch
cb4567f
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
cb4567f
cb4567f
BuildRequires:  doxygen
cb4567f
BuildRequires:  graphviz
fff9a20
BuildRequires:  openssl-devel
cb4567f
%if %{?fedora}%{!?fedora:0} >= 9 || %{?rhel}%{!?rhel:0} >= 6
cb4567f
BuildRequires:  tex(latex)
cb4567f
%else
cb4567f
BuildRequires:  tetex-latex
cb4567f
%endif
cb4567f
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
cb4567f
Requires:       %{name} = %{version}-%{release}
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
cb4567f
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
cb4567f
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.
cb4567f
cb4567f
%prep
405c8ba
%setup -q -n activemq-cpp-library-%{version}
cb4567f
%patch1 -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). 
cb4567f
%configure --disable-static --disable-doxygen-html --enable-doxygen-pdf
cb4567f
make %{?_smp_mflags}
cb4567f
make %{?_smp_mflags}  doxygen-run
cb4567f
cp -p texmf.cnf doc/latex/texmf.cnf
cb4567f
make %{?_smp_mflags} doxygen-pdf
cb4567f
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
%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,-)
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
cb4567f
%files doc
cb4567f
%defattr(-,root,root,-)
cb4567f
%doc doc/%{name}.pdf
cb4567f
cb4567f
%changelog
90f817d
* Tue 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
a64fe8d
* Fri Apr 3 2010 Steve Traylen <steve.traylen@cern.ch> - 3.1.2-1
a64fe8d
- Upstream to 3.1.2
a64fe8d
96b8b33
* Tue 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