Files
libamqpcpp/libamqpcpp.spec

102 lines
2.2 KiB
RPMSpec
Raw Normal View History

%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
Group: Development/Libraries/C++
%if 0%{?suse_version}
License: Apache-2.0
%else
License: ASL 2.0
%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