You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ta...@apache.org on 2010/09/08 17:01:09 UTC

svn commit: r995079 - /activemq/activemq-cpp/trunk/activemq-cpp/activemq-cpp.spec

Author: tabish
Date: Wed Sep  8 15:01:09 2010
New Revision: 995079

URL: http://svn.apache.org/viewvc?rev=995079&view=rev
Log:
RPM Spec for: https://issues.apache.org/activemq/browse/AMQCPP-204

Create an SRPM, RPM, Debug Info RPM, Devel RPM and Documentation RPM

Added:
    activemq/activemq-cpp/trunk/activemq-cpp/activemq-cpp.spec

Added: activemq/activemq-cpp/trunk/activemq-cpp/activemq-cpp.spec
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/activemq-cpp.spec?rev=995079&view=auto
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/activemq-cpp.spec (added)
+++ activemq/activemq-cpp/trunk/activemq-cpp/activemq-cpp.spec Wed Sep  8 15:01:09 2010
@@ -0,0 +1,120 @@
+Name:           activemq-cpp
+Version:        3.2.2
+Release:        1%{?dist}
+Summary:        C++ Implementation of a JMS style Messaging Client
+
+Group:          Development/Libraries
+License:        ASL 2.0
+URL:            http://activemq.apache.org/cms/
+Source0:        http://www.apache.org/dist/activemq/activemq-cpp/source/activemq-cpp-library-%{version}-src.tar.gz
+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.61
+BuildRequires:  libtool  >= 1.5.24
+BuildRequires:  apr-util-devel%{?_isa} >= 1.3
+BuildRequires:  cppunit-devel%{?_isa} >= 1.10.2
+BuildRequires:  openssl-devel%{?_isa} >= 0.98.0
+
+%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 or the getting started page on the ActiveMQ-CPP
+website.
+ActiveMQ-CPP is a client only library, a message broker such as Apache
+ActiveMQ is still needed for your clients to communicate with one another.
+
+
+%package        devel
+Summary:        Development files for using the %{name} library
+Group:          Development/Libraries
+Requires:       %{name} = %{version}-%{release}
+Requires:       pkgconfig
+
+%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 or the getting started page on the ActiveMQ-CPP
+website.
+ActiveMQ-CPP is a client only library, a message broker such as Apache
+ActiveMQ is still needed for your clients to communicate with one another.
+
+The %{name}-devel package contains header files for developing
+applications that use %{name} to communicate with ActiveMQ brokers.
+
+%{name}-devel contains development header files.
+
+%package doc
+Summary:        C++ implementation header files for JMS-like messaging
+Group:          Documentation for the CMS API
+%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 -n activemq-cpp-library-%{version}
+
+%build
+./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
+make %{?_smp_mflags} doxygen-pdf
+
+%install
+rm -rf $RPM_BUILD_ROOT
+make install DESTDIR=$RPM_BUILD_ROOT
+find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
+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
+
+* Wed Sep 08 2010 Tim Bish <ri...@cern.ch> - 3.2.3
+- Create a new Spec by porting the Fedora Version.