Blame SPECS/librabbitmq.spec

604137
Name: librabbitmq
604137
Summary: C-language AMQP client library
604137
Version: 0.8.0
604137
Release: 2%{?dist}
604137
License: MIT
604137
Group: System Environment/Libraries
604137
URL: https://github.com/alanxz/rabbitmq-c
604137
Source0: https://github.com/alanxz/rabbitmq-c/releases/download/v%{version}/rabbitmq-c-%{version}.tar.gz
604137
604137
BuildRequires: cmake > 2.8
604137
BuildRequires: openssl-devel
604137
BuildRequires: popt-devel
604137
BuildRequires: xmlto
604137
BuildRequires: doxygen
604137
604137
%description
604137
This is a C-language AMQP client library for use with v2.0+ of
604137
the RabbitMQ broker.
604137
604137
%package devel
604137
Summary: Header files and development libraries for librabbitmq
604137
Group: Development/Libraries
604137
Requires: %{name}%{?_isa} = %{version}-%{release}
604137
604137
%description devel
604137
This package contains the header files and development libraries
604137
for librabbitmq.
604137
604137
%package examples
604137
Summary: Examples built using the librabbitmq
604137
Group: Development/Libraries
604137
Requires: %{name}%{?_isa} = %{version}-%{release}
604137
604137
%description examples
604137
This package contains examples built using librabbitmq.
604137
604137
%prep
604137
%setup -q -n rabbitmq-c-%{version}
604137
604137
%build
604137
%cmake -DBUILD_EXAMPLES:BOOL=ON \
604137
       -DBUILD_TOOLS_DOCS:BOOL=ON \
604137
       -DBUILD_STATIC_LIBS:BOOL=ON
604137
604137
make %{_smp_mflags}
604137
604137
%install
604137
make install DESTDIR=%{buildroot}
604137
604137
# drop static lib, it's only needed for tests
604137
rm %{buildroot}%{_libdir}/*.a
604137
604137
%check
604137
make test
604137
604137
%post -p /sbin/ldconfig
604137
604137
%postun -p /sbin/ldconfig
604137
604137
604137
%files
604137
%license LICENSE-MIT
604137
%{_libdir}/%{name}.so.*
604137
604137
%files devel
604137
%doc AUTHORS THANKS TODO *.md
604137
%{_libdir}/%{name}.so
604137
%{_includedir}/amqp*
604137
%{_libdir}/pkgconfig/%{name}.pc
604137
604137
%files examples
604137
%{_bindir}/amqp-*
604137
%doc %{_mandir}/man*/*
604137
604137
%changelog
604137
* Mon Dec 04 2017 Than Ngo <than@redhat.com> - 0.8.0-2
604137
- Related: #1363736 - fix explicit package version requirement
604137
604137
* Wed Nov 29 2017 Than Ngo <than@redhat.com> - 0.8.0-1
604137
- Initial RPM