unretire package

This commit is contained in:
Jonathan Wright 2024-04-13 14:48:48 -05:00
commit bce6bced2e
6 changed files with 37 additions and 132 deletions

View file

@ -1,119 +1,76 @@
%global with_docs 0
Name: activemq-cpp
Version: 3.9.4
Release: 4%{?dist}
Version: 3.9.5
Release: 1%{?dist}
Summary: C++ implementation of JMS-like messaging client
License: ASL 2.0
License: Apache-2.0
URL: http://activemq.apache.org/cms/
Source0: http://www.apache.org/dist/activemq/activemq-cpp/%{version}/activemq-cpp-library-%{version}-src.tar.gz
Patch0: activemq-cpp-3.8.2-system-zlib.patch
# Some local texmf configuration to increase default pool_size.
Patch1: activemq-cpp-local-texmf.patch
# Openssl 1.1.0
# http://activemq.2283324.n4.nabble.com/activemq-cpp-3-9-4-fails-to-build-fedora-rawhide-openssl-1-1-0e-related-td4724037.html
Patch2: activemq-cpp-openssl1.patch
Patch: activemq-cpp-3.8.2-system-zlib.patch
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: openssl-devel
BuildRequires: zlib-devel
%if %{?with_docs}0
BuildRequires: doxygen
BuildRequires: graphviz
BuildRequires: tex(latex)
%endif
BuildRequires: apr-util-devel >= 1.3
BuildRequires: cppunit-devel >= 1.10.2
BuildRequires: libuuid-devel
%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.
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
Requires: %{name} = %{version}-%{release}
Requires: pkgconfig
%if %{?fedora}%{!?fedora:0} >= 12 || %{?rhel}%{!?rhel:0} >= 6
Requires: libuuid-devel
%else
Requires: e2fsprogs-devel
%endif
Requires: libuuid-devel
%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
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.
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.
%if %{?with_docs}0
%package doc
Summary: C++ implementation header files for JMS-like messaging
%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.
%endif
%prep
%setup -q -n activemq-cpp-library-%{version}
%patch0 -p1
%autosetup -n activemq-cpp-library-%{version} -p1
rm -r src/main/decaf/internal/util/zip
%if %{?with_docs}0
%patch1 -p1
%endif
%patch2 -p1
chmod 644 LICENSE.txt
chmod 644 src/main/activemq/transport/mock/MockTransport.cpp
%configure --disable-static
%build
# Build pdf(30MB) rather than default html(400MB).
%if %{?with_docs}0
%configure --disable-static --disable-doxygen-html --enable-doxygen-pdf
%else
%configure --disable-static
%endif
%make_build
make %{?_smp_mflags}
%if %{?with_docs}0
make %{?_smp_mflags} doxygen-run
cp -p texmf.cnf doc/latex/texmf.cnf
make %{?_smp_mflags} doxygen-pdf
%endif
%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
%make_install
rm %{buildroot}%{_libdir}/lib%{name}.la
rm %{buildroot}%{_bindir}/example
%check
make %{?_smp_mflags} check
make check
%ldconfig_scriptlets
%files
%{_libdir}/lib%{name}.so.*
%doc LICENSE.txt NOTICE.txt README.txt RELEASE_NOTES.txt
%license LICENSE.txt
%doc NOTICE.txt README.txt RELEASE_NOTES.txt
%files devel
%{_libdir}/lib%{name}.so
@ -121,12 +78,13 @@ make %{?_smp_mflags} check
%{_libdir}/pkgconfig/%{name}.pc
%{_bindir}/activemqcpp-config
%if %{?with_docs}0
%files doc
%doc doc/%{name}.pdf
%endif
%changelog
* Wed Apr 03 2024 Jonathan Wright <jonathan@almalinux.org> - 3.9.5-1
- Unorphan package
- Update to 3.9.5
- Overhaul spec file
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.9.4-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild