74c574d
Name:           activemq-cpp
13671a5
Version:        3.1.2
c0e9996
Release:        1%{?dist}
74c574d
Summary:        C++ implementation of JMS-like messaging client
74c574d
74c574d
Group:          Development/Libraries
74c574d
License:        ASL 2.0
74c574d
URL:            http://activemq.apache.org/cms/
c0e9996
Source0:        http://www.apache.org/dist/activemq/activemq-cpp/source/activemq-cpp-library-%{version}-src.tar.gz
74c574d
# Some local texmf configuration to increase default pool_size.
74c574d
Patch1:         %{name}-local-texmf.patch
74c574d
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
74c574d
74c574d
BuildRequires:  doxygen
74c574d
BuildRequires:  graphviz
74c574d
%if %{?fedora}%{!?fedora:0} >= 9 || %{?rhel}%{!?rhel:0} >= 6
74c574d
BuildRequires:  tex(latex)
74c574d
%else
74c574d
BuildRequires:  tetex-latex
74c574d
%endif
74c574d
74c574d
BuildRequires:  automake >= 1.10
74c574d
BuildRequires:  autoconf >= 2.60
74c574d
BuildRequires:  libtool  >= 1.5.24
74c574d
BuildRequires:  apr-util-devel%{?_isa} >= 1.3
74c574d
BuildRequires:  cppunit-devel%{?_isa} >= 1.10.2
74c574d
74c574d
%if %{?fedora}%{!?fedora:0} >= 12 || %{?rhel}%{!?rhel:0} >= 6
74c574d
BuildRequires:  libuuid-devel%{?_isa}
74c574d
%else
74c574d
BuildRequires:  e2fsprogs-devel%{?_isa}
74c574d
%endif
74c574d
74c574d
%description
74c574d
activemq-cpp is a JMS-like API for C++ for interfacing with Message 
74c574d
Brokers such as Apache ActiveMQ.  C++ messaging service helps to make your 
74c574d
C++ client code much neater and easier to follow. To get a better feel for 
74c574d
CMS try the API Reference. 
74c574d
ActiveMQ-CPP is a client only library, a message broker such as Apache 
74c574d
ActiveMQ is still needed for your clients to communicate.  
74c574d
74c574d
%package devel
74c574d
Summary:        C++ implementation header files for JMS-like messaging
74c574d
Group:          Development/Libraries
74c574d
Requires:       %{name} = %{version}-%{release}
74c574d
Requires:       pkgconfig
74c574d
%if %{?fedora}%{!?fedora:0} >= 12 || %{?rhel}%{!?rhel:0} >= 6
74c574d
Requires:  libuuid-devel%{?_isa}
74c574d
%else
74c574d
Requires:  e2fsprogs-devel%{?_isa}
74c574d
%endif
74c574d
74c574d
74c574d
74c574d
74c574d
%description devel
74c574d
activemq-cpp is a JMS-like API for C++ for interfacing with Message 
74c574d
Brokers such as Apache ActiveMQ.  C++ messaging service helps to make 
74c574d
your C++ client code much neater and easier to follow. To get a better
74c574d
feel for CMS try the API Reference.  ActiveMQ-CPP is a client only 
74c574d
library, a message broker such as Apache ActiveMQ is still needed 
74c574d
for your clients to communicate.  
74c574d
74c574d
%{name}-devel contains development header files.
74c574d
74c574d
74c574d
%package doc
74c574d
Summary:        C++ implementation header files for JMS-like messaging
74c574d
Group:          Documentation
74c574d
%if %{?fedora}%{!?fedora:0} >= 10 || %{?rhel}%{!?rhel:0} >= 6
74c574d
BuildArch:      noarch
74c574d
%endif
74c574d
74c574d
%description doc
74c574d
activemq-cpp is a JMS-like API for C++ for interfacing with Message 
74c574d
Brokers such as Apache ActiveMQ.  C++ messaging service helps to make 
74c574d
your C++ client code much neater and easier to follow. To get a better
74c574d
feel for CMS try the API Reference.  ActiveMQ-CPP is a client only 
74c574d
library, a message broker such as Apache ActiveMQ is still needed 
74c574d
for your clients to communicate.  
74c574d
74c574d
%{name}-doc contains api documentation.
74c574d
74c574d
%prep
c0e9996
%setup -q -n activemq-cpp-library-%{version}
74c574d
%patch1 -p1
c0e9996
chmod 644 LICENSE.txt
c0e9996
chmod 644 src/main/activemq/transport/mock/MockTransport.cpp
74c574d
74c574d
74c574d
%build
74c574d
./autogen.sh
74c574d
# Build pdf(30MB) rather than default html(400MB). 
74c574d
%configure --disable-static --disable-doxygen-html --enable-doxygen-pdf
74c574d
make %{?_smp_mflags}
74c574d
make %{?_smp_mflags}  doxygen-run
74c574d
cp -p texmf.cnf doc/latex/texmf.cnf
74c574d
make %{?_smp_mflags} doxygen-pdf
74c574d
74c574d
74c574d
%install
74c574d
rm -rf $RPM_BUILD_ROOT
74c574d
make install DESTDIR=$RPM_BUILD_ROOT
74c574d
rm $RPM_BUILD_ROOT/%{_libdir}/lib%{name}.la
74c574d
rm $RPM_BUILD_ROOT/%{_bindir}/example
74c574d
74c574d
%clean
74c574d
rm -rf $RPM_BUILD_ROOT
74c574d
74c574d
%check
74c574d
make %{?_smp_mflags} check
74c574d
74c574d
%post -p /sbin/ldconfig
74c574d
%postun -p /sbin/ldconfig
74c574d
74c574d
%files
74c574d
%defattr(-,root,root,-)
74c574d
%{_libdir}/lib%{name}.so.*
74c574d
%doc LICENSE.txt  NOTICE.txt  README.txt  RELEASE_NOTES.txt
74c574d
74c574d
%files devel
74c574d
%defattr(-,root,root,-)
74c574d
%{_libdir}/lib%{name}.so
74c574d
%{_includedir}/%{name}-%{version}
74c574d
%{_libdir}/pkgconfig/%{name}.pc
74c574d
%{_bindir}/activemqcpp-config
74c574d
74c574d
%files doc
74c574d
%defattr(-,root,root,-)
74c574d
%doc doc/%{name}.pdf
74c574d
74c574d
%changelog
13671a5
* Fri Apr 3 2010 Steve Traylen <steve.traylen@cern.ch> - 3.1.2-1
13671a5
- Upstream to 3.1.2
13671a5
13671a5
* Tue Jan 9 2010 Steve Traylen <steve.traylen@cern.ch> - 3.1.0-1
13671a5
- Upstream to 3.1.0
13671a5
c0e9996
* Fri Dec 11 2009 Steve Traylen <steve.traylen@cern.ch> - 3.0.1-1
c0e9996
- Upstream to 3.0.1
c0e9996
- Tar ball name change.
13671a5
74c574d
* Fri Dec 11 2009 Steve Traylen <steve.traylen@cern.ch> - 2.2.6-5
74c574d
- Add libuuid-devel as Requires to -devel package.
13671a5
74c574d
* Sat Nov 14 2009 Steve Traylen <steve.traylen@cern.ch> - 2.2.6-4
74c574d
- Remove patch to relocate headers from versioned directory.
74c574d
- Add make smp options to make check.
13671a5
74c574d
* Fri Nov 6 2009 Steve Traylen <steve.traylen@cern.ch> - 2.2.6-3
74c574d
- Relocate headers to non versioned directory with patch0
13671a5
74c574d
* Fri Nov 6 2009 Steve Traylen <steve.traylen@cern.ch> - 2.2.6-2
74c574d
- Adapted to Fedora guidelines.
13671a5
74c574d
* Thu Feb 26 2009 Ricardo Rocha <ricardo.rocha@cern.ch> - 2.2.6-1
74c574d
- First version of the spec file
74c574d
74c574d