2017-02-08 17:40:07 +00:00
|
|
|
#
|
|
|
|
|
# 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/
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
2017-02-04 08:54:50 +00:00
|
|
|
%define major 2
|
|
|
|
|
%define minor 6
|
|
|
|
|
%define patch 2
|
|
|
|
|
|
2017-02-08 17:40:07 +00:00
|
|
|
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++
|
|
|
|
|
Url: https://github.com/CopernicaMarketingSoftware/AMQP-CPP
|
2017-02-08 17:42:42 +00:00
|
|
|
Source0: https://github.com/CopernicaMarketingSoftware/AMQP-CPP/archive/v%{version}.tar.gz#/AMQP-CPP-%{version}.tar.gz
|
2017-02-08 17:40:07 +00:00
|
|
|
Patch0: Makefile.patch
|
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
|
BuildRequires: make
|
2017-02-04 08:54:50 +00:00
|
|
|
|
|
|
|
|
%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}
|
2017-02-08 17:40:07 +00:00
|
|
|
Summary: C++ library for asynchronous non-blocking communication with RabbitMQ
|
|
|
|
|
Group: System/Libraries
|
2017-02-04 08:54:50 +00:00
|
|
|
|
|
|
|
|
%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
|
2017-02-08 17:40:07 +00:00
|
|
|
Summary: Header files and libraries for %{name}
|
|
|
|
|
Group: Development/Libraries/C++
|
|
|
|
|
Requires: %{name}%{major}_%{minor} = %{version}
|
2017-02-04 08:54:50 +00:00
|
|
|
|
|
|
|
|
%description devel
|
2017-02-08 17:38:43 +00:00
|
|
|
Provides the header files and libraries for %{name}.
|
2017-02-04 08:54:50 +00:00
|
|
|
|
|
|
|
|
%package examples
|
2017-02-08 17:40:07 +00:00
|
|
|
Summary: Example code for %{name}
|
|
|
|
|
Group: Development/Tools/Other
|
2017-02-04 08:54:50 +00:00
|
|
|
|
|
|
|
|
%description examples
|
2017-02-08 17:38:43 +00:00
|
|
|
Provides examples for using %{name}.
|
2017-02-04 08:54:50 +00:00
|
|
|
|
|
|
|
|
%build
|
2017-02-08 17:38:43 +00:00
|
|
|
make %{?_smp_mflags}
|
2017-02-04 08:54:50 +00:00
|
|
|
|
|
|
|
|
%install
|
2017-02-08 17:38:43 +00:00
|
|
|
make install DESTDIR=%{buildroot} LIBDIR=%{_libdir}
|
2017-02-04 08:54:50 +00:00
|
|
|
|
|
|
|
|
%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
|