File activemq-cpp.spec of Package activemq-cpp

#
# spec file for package activemq-cpp
#
# Copyright (c) 2021 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#


%global soname libactivemq-cpp19
Name:           activemq-cpp
Version:        3.9.5
Release:        0
Summary:        C++ Messaging Service library
License:        Apache-2.0
Group:          Development/Languages/C and C++
URL:            https://activemq.apache.org/cms/index.html
Source0:        https://downloads.apache.org/activemq/%{name}/%{version}/%{name}-library-%{version}-src.tar.bz2
Source1:        https://downloads.apache.org/activemq/%{name}/%{version}/%{name}-library-%{version}-src.tar.bz2.asc
BuildRequires:  doxygen
BuildRequires:  gcc-c++
BuildRequires:  graphviz
BuildRequires:  perl
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(apr-1)
BuildRequires:  pkgconfig(cppunit)
BuildRequires:  pkgconfig(openssl)

%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 activemq-cpp
Group:          System/Libraries

%description -n %{soname}
Shared Library for activemq-cpp.

%package devel
Summary:        Devel files for activemq-cpp
Group:          Development/Libraries/C and C++
Requires:       %{soname} = %{version}

%description devel
Headers, so file and pkg-config files for activemq-cpp.

%package doc
Summary:        Documentation for activemq-cpp
Group:          Documentation/HTML

%description doc
Doxygen documentation for activemq-cpp.

%prep
%setup -q -n %{name}-library-%{version}

chmod a-x LICENSE.txt

%build
%configure
make %{?_smp_mflags}

make %{?_smp_mflags} doxygen-run

%install
%make_install

rm -rf %{buildroot}/%{_libdir}/*.a
find %{buildroot} -type f -name "*.la" -delete -print

%check
make %{?_smp_mflags} check

%post -n %{soname} -p /sbin/ldconfig
%postun -n %{soname} -p /sbin/ldconfig

%files
%license LICENSE.txt
%doc NOTICE.txt README.txt RELEASE_NOTES.txt
%{_bindir}/activemqcpp-config
%{_bindir}/example

%files -n %{soname}
%license LICENSE.txt
%{_libdir}/libactivemq-cpp.so.*

%files devel
%{_includedir}/%{name}-%{version}/
%{_libdir}/libactivemq-cpp.so
%{_libdir}/pkgconfig/activemq-cpp.pc

%files doc
%doc doc/html

%changelog
openSUSE Build Service is sponsored by