diff --git a/.cvsignore b/.cvsignore index e69de29..7499bc0 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +activemq-cpp-2.2.6-src.tar.gz diff --git a/activemq-cpp-local-texmf.patch b/activemq-cpp-local-texmf.patch new file mode 100644 index 0000000..8989a32 --- /dev/null +++ b/activemq-cpp-local-texmf.patch @@ -0,0 +1,24 @@ +diff -uNr activemq-cpp-2.2.6.ORIG/texmf.cnf activemq-cpp-2.2.6/texmf.cnf +--- activemq-cpp-2.2.6.ORIG/texmf.cnf 1970-01-01 01:00:00.000000000 +0100 ++++ activemq-cpp-2.2.6/texmf.cnf 2009-11-07 20:47:00.466113909 +0100 +@@ -0,0 +1,2 @@ ++pool_size = 4000000 ++ +diff -uNr activemq-cpp-2.2.6.ORIG/doxygen-include.am activemq-cpp-2.2.6/doxygen-include.am +--- activemq-cpp-2.2.6.ORIG/doxygen-include.am 2009-01-23 14:56:26.000000000 +0100 ++++ activemq-cpp-2.2.6/doxygen-include.am 2009-11-07 20:52:10.558509912 +0100 +@@ -153,12 +153,12 @@ + rm -f *.aux *.toc *.idx *.ind *.ilg *.log *.out; \ + $(DX_PDFLATEX) refman.tex; \ + $(DX_MAKEINDEX) refman.idx; \ +- $(DX_PDFLATEX) refman.tex; \ ++ TEXMFCNF=.: $(DX_PDFLATEX) refman.tex; \ + countdown=5; \ + while $(DX_EGREP) 'Rerun (LaTeX|to get cross-references right)' \ + refman.log > /dev/null 2>&1 \ + && test $$countdown -gt 0; do \ +- $(DX_PDFLATEX) refman.tex; \ ++ TEXMFCNF=.: $(DX_PDFLATEX) refman.tex; \ + countdown=`expr $$countdown - 1`; \ + done; \ + mv refman.pdf ../@PACKAGE@.pdf diff --git a/activemq-cpp.spec b/activemq-cpp.spec new file mode 100644 index 0000000..208d04e --- /dev/null +++ b/activemq-cpp.spec @@ -0,0 +1,145 @@ +Name: activemq-cpp +Version: 2.2.6 +Release: 5%{?dist} +Summary: C++ implementation of JMS-like messaging client + +Group: Development/Libraries +License: ASL 2.0 +URL: http://activemq.apache.org/cms/ +Source0: http://www.apache.org/dyn/closer.cgi/activemq/activemq-cpp/source/activemq-cpp-%{version}-src.tar.gz +# Some local texmf configuration to increase default pool_size. +Patch1: %{name}-local-texmf.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: doxygen +BuildRequires: graphviz +%if %{?fedora}%{!?fedora:0} >= 9 || %{?rhel}%{!?rhel:0} >= 6 +BuildRequires: tex(latex) +%else +BuildRequires: tetex-latex +%endif + +BuildRequires: automake >= 1.10 +BuildRequires: autoconf >= 2.60 +BuildRequires: libtool >= 1.5.24 +BuildRequires: apr-util-devel%{?_isa} >= 1.3 +BuildRequires: cppunit-devel%{?_isa} >= 1.10.2 + +%if %{?fedora}%{!?fedora:0} >= 12 || %{?rhel}%{!?rhel:0} >= 6 +BuildRequires: libuuid-devel%{?_isa} +%else +BuildRequires: e2fsprogs-devel%{?_isa} +%endif + +%description +activemq-cpp is a JMS-like API for C++ for interfacing with Message +Brokers such as Apache ActiveMQ. C++ messaging service helps to make your +C++ client code much neater and easier to follow. To get a better feel for +CMS try the API Reference. +ActiveMQ-CPP is a client only library, a message broker such as Apache +ActiveMQ is still needed for your clients to communicate. + +%package devel +Summary: C++ implementation header files for JMS-like messaging +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} +Requires: pkgconfig +%if %{?fedora}%{!?fedora:0} >= 12 || %{?rhel}%{!?rhel:0} >= 6 +Requires: libuuid-devel%{?_isa} +%else +Requires: e2fsprogs-devel%{?_isa} +%endif + + + + +%description devel +activemq-cpp is a JMS-like API for C++ for interfacing with Message +Brokers such as Apache ActiveMQ. C++ messaging service helps to make +your C++ client code much neater and easier to follow. To get a better +feel for CMS try the API Reference. ActiveMQ-CPP is a client only +library, a message broker such as Apache ActiveMQ is still needed +for your clients to communicate. + +%{name}-devel contains development header files. + + +%package doc +Summary: C++ implementation header files for JMS-like messaging +Group: Documentation +%if %{?fedora}%{!?fedora:0} >= 10 || %{?rhel}%{!?rhel:0} >= 6 +BuildArch: noarch +%endif + +%description doc +activemq-cpp is a JMS-like API for C++ for interfacing with Message +Brokers such as Apache ActiveMQ. C++ messaging service helps to make +your C++ client code much neater and easier to follow. To get a better +feel for CMS try the API Reference. ActiveMQ-CPP is a client only +library, a message broker such as Apache ActiveMQ is still needed +for your clients to communicate. + +%{name}-doc contains api documentation. + +%prep +%setup -q +%patch1 -p1 + + + +%build +mkdir config +./autogen.sh +# Build pdf(30MB) rather than default html(400MB). +%configure --disable-static --disable-doxygen-html --enable-doxygen-pdf +make %{?_smp_mflags} +make %{?_smp_mflags} doxygen-run +cp -p texmf.cnf doc/latex/texmf.cnf +make %{?_smp_mflags} doxygen-pdf + + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT +rm $RPM_BUILD_ROOT/%{_libdir}/lib%{name}.la +rm $RPM_BUILD_ROOT/%{_bindir}/example + +%clean +rm -rf $RPM_BUILD_ROOT + +%check +make %{?_smp_mflags} check + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root,-) +%{_libdir}/lib%{name}.so.* +%doc LICENSE.txt NOTICE.txt README.txt RELEASE_NOTES.txt + +%files devel +%defattr(-,root,root,-) +%{_libdir}/lib%{name}.so +%{_includedir}/%{name}-%{version} +%{_libdir}/pkgconfig/%{name}.pc +%{_bindir}/activemqcpp-config + +%files doc +%defattr(-,root,root,-) +%doc doc/%{name}.pdf + +%changelog +* Fri Dec 11 2009 Steve Traylen - 2.2.6-5 +- Add libuuid-devel as Requires to -devel package. +* Sat Nov 14 2009 Steve Traylen - 2.2.6-4 +- Remove patch to relocate headers from versioned directory. +- Add make smp options to make check. +* Fri Nov 6 2009 Steve Traylen - 2.2.6-3 +- Relocate headers to non versioned directory with patch0 +* Fri Nov 6 2009 Steve Traylen - 2.2.6-2 +- Adapted to Fedora guidelines. +* Thu Feb 26 2009 Ricardo Rocha - 2.2.6-1 +- First version of the spec file + + diff --git a/import.log b/import.log new file mode 100644 index 0000000..0975c89 --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +activemq-cpp-2_2_6-5_fc13:HEAD:activemq-cpp-2.2.6-5.fc13.src.rpm:1260816471 diff --git a/sources b/sources index e69de29..0ea5cd6 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +1222f0d6c5f86ef3ed5a558a533c7564 activemq-cpp-2.2.6-src.tar.gz