Files
activemq-cpp/activemq-cpp.spec

113 lines
2.8 KiB
RPMSpec

#
# spec file for package
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%global soname libactivemq-cpp18
Name: activemq-cpp
Version: 3.8.2
Release: 1
License: Apache-2.0
Summary: C++ Messaging Service library
Url: https://activemq.apache.org/cms/index.html
Group: Development/Libraries/C_C++
Source0: %{name}-library-%{version}-src.tar.bz2
Source1: %{name}-library-%{version}-src.tar.bz2.asc
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: gcc-c++
BuildRequires: doxygen
BuildRequires: pkgconfig(cppunit)
BuildRequires: pkgconfig(openssl)
BuildRequires: pkgconfig(apr-1)
BuildRequires: pkg-config
BuildRequires: perl
BuildRequires: graphviz
%description
CMS (stands for C++ Messaging Service) is a JMS-like API for C++
for interfacing with Message Brokers such as Apache ActiveMQ. CMS
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 -n %{soname}
Summary: Shared Library for %{name}
%description -n %{soname}
Shared Library for %{name}.
%package devel
Summary: Devel files for %{name}
Requires: %{soname} = %{version}
%description devel
Headers, so file and pkg-config files for %{name}.
%package doc
Summary: Documentation for %{name}
Group: Documentation/HTML
%description doc
Doxygen documentation for %{name}.
%prep
%setup -q -n %{name}-library-%{version}
chmod a-x LICENSE.txt
%build
%configure
make %{?_smp_mflags}
make doxygen-run
%install
%make_install
rm -rf %{buildroot}/%{_libdir}/*.a
rm -rf %{buildroot}/%{_libdir}/*.la
%check
make check
%post -n %{soname} -p /sbin/ldconfig
%postun -n %{soname} -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc LICENSE.txt NOTICE.txt README.txt RELEASE_NOTES.txt
%{_bindir}/activemqcpp-config
%{_bindir}/example
%files -n %{soname}
%defattr(-,root,root)
%doc LICENSE.txt
%{_libdir}/libactivemq-cpp.so.*
%files devel
%defattr(-,root,root)
%{_includedir}/%{name}-%{version}/
%{_libdir}/libactivemq-cpp.so
%{_libdir}/pkgconfig/activemq-cpp.pc
%files doc
%defattr(-,root,root)
%doc doc/html
%changelog