fb43b11
fb43b11
# The normal* variables refer to the standard packaging.
d00e1fd
# The compattwo* variables refer to a newer compat packages.
fb43b11
# The compat* variables refer to the compat packages.
0e79cfb
%global         globrelease 6
3f87876
0e79cfb
%global         normalver 3.8.3
3f87876
%global         normalso  18
3f87876
fb43b11
%global         compatver 3.2.5
fb43b11
%global         compatso  12
fb43b11
3f87876
%global         compattwover 3.4.0
3f87876
%global         compattwoso  14
3f87876
3f87876
%global         compatthreever 3.7.1
3f87876
%global         compatthreeso  17
3f87876
3f87876
3f87876
cb4567f
Name:           activemq-cpp
fb43b11
Version:        %{normalver}
3f87876
Release:        %{globrelease}%{?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/
0402f45
Source0:        http://www.apache.org/dist/activemq/activemq-cpp/%{normalver}/activemq-cpp-library-%{normalver}-src.tar.gz
fb43b11
Source1:        http://www.apache.org/dist/activemq/activemq-cpp/source/activemq-cpp-library-%{compatver}-src.tar.gz
d00e1fd
Source2:        http://www.apache.org/dist/activemq/activemq-cpp/source/activemq-cpp-library-%{compattwover}-src.tar.gz
3f87876
Source3:        http://www.apache.org/dist/activemq/activemq-cpp/source/activemq-cpp-library-%{compatthreever}-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
3f87876
Requires:       %{name} = %{normalver}-%{globrelease}%{?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
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
fb43b11
%package compat
fb43b11
Version:        %{compatver}
3f87876
Release:        %{globrelease}%{?dist}
fb43b11
Summary:        C++ implementation of JMS-like messaging client
fb43b11
Group:          Development/Libraries
fb43b11
fb43b11
%description compat
fb43b11
activemq-cpp is a JMS-like API for C++ for interfacing with Message 
fb43b11
Brokers such as Apache ActiveMQ.  C++ messaging service helps to make your 
fb43b11
C++ client code much neater and easier to follow. To get a better feel for 
fb43b11
CMS try the API Reference. 
fb43b11
ActiveMQ-CPP is a client only library, a message broker such as Apache 
fb43b11
ActiveMQ is still needed for your clients to communicate.  
fb43b11
fb43b11
This package contains activemq-cpp libraries for applications to bind to.
fb43b11
d00e1fd
%package -n activemq-cpp%{compattwover}-compat
d00e1fd
Version:        %{compattwover}
3f87876
Release:        %{globrelease}%{?dist}
d00e1fd
Summary:        C++ implementation of JMS-like messaging client
d00e1fd
Group:          Development/Libraries
d00e1fd
d00e1fd
%description -n  activemq-cpp%{compattwover}-compat
d00e1fd
activemq-cpp is a JMS-like API for C++ for interfacing with Message 
d00e1fd
Brokers such as Apache ActiveMQ.  C++ messaging service helps to make your 
d00e1fd
C++ client code much neater and easier to follow. To get a better feel for 
d00e1fd
CMS try the API Reference. 
d00e1fd
ActiveMQ-CPP is a client only library, a message broker such as Apache 
d00e1fd
ActiveMQ is still needed for your clients to communicate.  
d00e1fd
d00e1fd
This package contains activemq-cpp libraries for applications to bind to.
d00e1fd
3f87876
%package -n activemq-cpp%{compatthreever}-compat
3f87876
Version:        %{compatthreever}
3f87876
Release:        %{globrelease}%{?dist}
3f87876
Summary:        C++ implementation of JMS-like messaging client
3f87876
Group:          Development/Libraries
3f87876
3f87876
%description -n  activemq-cpp%{compatthreever}-compat
3f87876
activemq-cpp is a JMS-like API for C++ for interfacing with Message 
3f87876
Brokers such as Apache ActiveMQ.  C++ messaging service helps to make your 
3f87876
C++ client code much neater and easier to follow. To get a better feel for 
3f87876
CMS try the API Reference. 
3f87876
ActiveMQ-CPP is a client only library, a message broker such as Apache 
3f87876
ActiveMQ is still needed for your clients to communicate.  
3f87876
3f87876
This package contains activemq-cpp libraries for applications to bind to.
d00e1fd
fb43b11
cb4567f
%prep
fb43b11
#extract source1 as well 0 , the compat lib.
3f87876
%setup -q -n activemq-cpp-library-%{normalver} -a 1 -a 2 -a 3
fb43b11
pushd activemq-cpp-library-%{compatver}
fb43b11
%patch1 -p1
fb43b11
chmod 644 LICENSE.txt
fb43b11
chmod 644 src/main/activemq/transport/mock/MockTransport.cpp
fb43b11
popd
d00e1fd
pushd activemq-cpp-library-%{compattwover}
d00e1fd
%patch1 -p1
d00e1fd
chmod 644 LICENSE.txt
d00e1fd
chmod 644 src/main/activemq/transport/mock/MockTransport.cpp
d00e1fd
popd
d00e1fd
3f87876
pushd activemq-cpp-library-%{compatthreever}
3f87876
%patch1 -p1
3f87876
chmod 644 LICENSE.txt
3f87876
chmod 644 src/main/activemq/transport/mock/MockTransport.cpp
3f87876
popd
3f87876
3f87876
cb4567f
%patch1 -p1
405c8ba
chmod 644 LICENSE.txt
405c8ba
chmod 644 src/main/activemq/transport/mock/MockTransport.cpp
cb4567f
cb4567f
cb4567f
%build
fb43b11
pushd activemq-cpp-library-%{compatver}
fb43b11
%configure --disable-static --disable-doxygen-html --enable-doxygen-pdf
fb43b11
make %{?_smp_mflags}
fb43b11
popd
d00e1fd
pushd activemq-cpp-library-%{compattwover}
d00e1fd
%configure --disable-static --disable-doxygen-html --enable-doxygen-pdf
d00e1fd
make %{?_smp_mflags}
d00e1fd
popd
d00e1fd
3f87876
pushd activemq-cpp-library-%{compatthreever}
3f87876
%configure --disable-static --disable-doxygen-html --enable-doxygen-pdf
3f87876
make %{?_smp_mflags}
3f87876
popd
3f87876
3f87876
3f87876
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
fb43b11
pushd activemq-cpp-library-%{compatver}
fb43b11
make install DESTDIR=$RPM_BUILD_ROOT
fb43b11
rm $RPM_BUILD_ROOT/%{_libdir}/lib%{name}.la
fb43b11
rm $RPM_BUILD_ROOT/%{_bindir}/example
fb43b11
# Remove the devel files from the compat package
fb43b11
# we only one the runtime stuff.
fb43b11
rm $RPM_BUILD_ROOT/%{_bindir}/activemqcpp-config
fb43b11
rm -rf $RPM_BUILD_ROOT/%{_includedir}/activemq-cpp-%{compatver}
fb43b11
rm  $RPM_BUILD_ROOT/%{_libdir}/libactivemq-cpp.so
fb43b11
rm  $RPM_BUILD_ROOT/%{_libdir}/pkgconfig/activemq-cpp.pc
fb43b11
popd
fb43b11
d00e1fd
pushd activemq-cpp-library-%{compattwover}
d00e1fd
make install DESTDIR=$RPM_BUILD_ROOT
d00e1fd
rm $RPM_BUILD_ROOT/%{_libdir}/lib%{name}.la
d00e1fd
rm $RPM_BUILD_ROOT/%{_bindir}/example
d00e1fd
# Remove the devel files from the compat package
d00e1fd
# we only one the runtime stuff.
d00e1fd
rm $RPM_BUILD_ROOT/%{_bindir}/activemqcpp-config
d00e1fd
rm -rf $RPM_BUILD_ROOT/%{_includedir}/activemq-cpp-%{compattwover}
d00e1fd
rm  $RPM_BUILD_ROOT/%{_libdir}/libactivemq-cpp.so
d00e1fd
rm  $RPM_BUILD_ROOT/%{_libdir}/pkgconfig/activemq-cpp.pc
d00e1fd
popd
d00e1fd
3f87876
pushd activemq-cpp-library-%{compatthreever}
3f87876
make install DESTDIR=$RPM_BUILD_ROOT
3f87876
rm $RPM_BUILD_ROOT/%{_libdir}/lib%{name}.la
3f87876
rm $RPM_BUILD_ROOT/%{_bindir}/example
3f87876
# Remove the devel files from the compat package
3f87876
# we only one the runtime stuff.
3f87876
rm $RPM_BUILD_ROOT/%{_bindir}/activemqcpp-config
3f87876
rm -rf $RPM_BUILD_ROOT/%{_includedir}/activemq-cpp-%{compatthreever}
3f87876
rm  $RPM_BUILD_ROOT/%{_libdir}/libactivemq-cpp.so
3f87876
rm  $RPM_BUILD_ROOT/%{_libdir}/pkgconfig/activemq-cpp.pc
3f87876
popd
3f87876
d00e1fd
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,-)
fb43b11
%{_libdir}/lib%{name}.so.%{normalso}*
cb4567f
%doc LICENSE.txt  NOTICE.txt  README.txt  RELEASE_NOTES.txt
cb4567f
cb4567f
%files devel
cb4567f
%defattr(-,root,root,-)
cb4567f
%{_libdir}/lib%{name}.so
fb43b11
%{_includedir}/%{name}-%{normalver}
cb4567f
%{_libdir}/pkgconfig/%{name}.pc
cb4567f
%{_bindir}/activemqcpp-config
cb4567f
cb4567f
%files doc
cb4567f
%defattr(-,root,root,-)
cb4567f
%doc doc/%{name}.pdf
cb4567f
fb43b11
%files compat
fb43b11
%defattr(-,root,root,-)
fb43b11
%{_libdir}/lib%{name}.so.%{compatso}*
fb43b11
%doc LICENSE.txt
fb43b11
fb43b11
d00e1fd
%files -n  activemq-cpp%{compattwover}-compat
d00e1fd
%defattr(-,root,root,-)
d00e1fd
%{_libdir}/lib%{name}.so.%{compattwoso}*
d00e1fd
%doc LICENSE.txt
d00e1fd
3f87876
%files -n  activemq-cpp%{compatthreever}-compat
3f87876
%defattr(-,root,root,-)
3f87876
%{_libdir}/lib%{name}.so.%{compatthreeso}*
3f87876
%doc LICENSE.txt
3f87876
3f87876
cb4567f
%changelog
0e79cfb
* Wed Aug 27 2014 Steve Traylen <steve.traylen@cern.ch> - 3.8.3-6
0e79cfb
- Upstream to 3.8.3
0402f45
- Source URL changed.
0e79cfb
3f87876
* Sat Oct 29 2011 Steve Traylen <steve.traylen@cern.ch> - 3.8.2-5
3f87876
- Upstream to 3.8.2
3f87876
- Add another compat package activemq-cpp3.7.0-compat
3f87876
d00e1fd
* Sat Oct 29 2011 Steve Traylen <steve.traylen@cern.ch> - 3.7.0-1
d00e1fd
- Upstream to 3.7.0
d00e1fd
- Add another compat activemq-cpp3.4.0-compat package.
d00e1fd
411faca
* Sat Oct 29 2011 Steve Traylen <steve.traylen@cern.ch> - 3.4.0-2
411faca
- Fix rhbz#757629  and bump 3.2.5-3 compat package.
411faca
fb43b11
* Sat Oct 29 2011 Steve Traylen <steve.traylen@cern.ch> - 3.4.0-1
fb43b11
- Upstream to 3.4.0 and add a 3.2.5-2 compat package.
fb43b11
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
d00e1fd
* Sat Apr 3 2010 Steve Traylen <steve.traylen@cern.ch> - 3.1.2-1
a64fe8d
- Upstream to 3.1.2
a64fe8d
d00e1fd
* 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