Files
libamqpcpp/libamqpcpp.spec

117 lines
3.0 KiB
RPMSpec
Raw Normal View History

#
# spec file for package libamqpcpp
#
# Copyright (c) 2017 SUSE LINUX 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/
#
%define major 2
%define minor 6
%define patch 2
Name: libamqpcpp
Version: %{major}.%{minor}.%{patch}
Release: 1%{?dist}
Summary: C++ library for asynchronous non-blocking communication with RabbitMQ
License: Apache-2.0
Group: Development/Libraries/C++
%if 0%{?suse_version}
%else
%endif
Url: https://github.com/CopernicaMarketingSoftware/AMQP-CPP
Source0: %{url}/archive/v%{version}.tar.gz
Patch0: Makefile.patch
BuildRequires: gcc-c++
BuildRequires: make
%description
AMQP-CPP is a C++ library for communicating with a RabbitMQ message broker.
The library can be used to parse incoming data from a RabbitMQ server, and to
generate frames that can be sent to a RabbitMQ server.
%prep
%setup -q -n AMQP-CPP-%{version}
%patch0
%package -n %{name}%{major}_%{minor}
Summary: C++ library for asynchronous non-blocking communication with RabbitMQ
Group: System/Libraries
%description -n %{name}%{major}_%{minor}
AMQP-CPP is a C++ library for communicating with a RabbitMQ message broker.
The library can be used to parse incoming data from a RabbitMQ server, and to
generate frames that can be sent to a RabbitMQ server.
%package devel
Summary: Header files and libraries for %{name}
Group: Development/Libraries/C++
Requires: %{name}%{major}_%{minor} = %{version}
%description devel
Provides the header files and libraries for %{name}.
%package examples
Summary: Example code for %{name}
Group: Development/Tools/Other
%description examples
Provides examples for using %{name}.
%build
make %{?_smp_mflags}
%install
make install DESTDIR=%{buildroot} LIBDIR=%{_libdir}
%post -n %{name}%{major}_%{minor} -p /sbin/ldconfig
%postun -n %{name}%{major}_%{minor} -p /sbin/ldconfig
%files devel
%defattr(-,root,root,-)
%doc README*
%if 0%{?suse_version}
%doc LICENSE
%else
%license LICENSE
%endif
%dir %{_includedir}/amqpcpp
%{_includedir}/amqpcpp/*.h
%{_includedir}/amqpcpp.h
%{_libdir}/libamqpcpp.so
%files examples
%defattr(-,root,root,-)
%doc examples/*
%if 0%{?suse_version}
%doc LICENSE
%else
%license LICENSE
%endif
%files -n %{name}%{major}_%{minor}
%defattr(-,root,root,-)
%doc README*
%if 0%{?suse_version}
%doc LICENSE
%else
%license LICENSE
%endif
%{_libdir}/libamqpcpp.so.%{version}
%{_libdir}/libamqpcpp.so.%{major}.%{minor}
%changelog