81 lines
2.0 KiB
RPMSpec
81 lines
2.0 KiB
RPMSpec
|
Name: rabbitmq-c
|
||
|
Version: 0.11.0
|
||
|
Release: 1mamba
|
||
|
Summary: RabbitMQ C AMQP client library
|
||
|
Group: Applications/Networking
|
||
|
Vendor: openmamba
|
||
|
Distribution: openmamba
|
||
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||
|
URL: https://github.com/alanxz/rabbitmq-c
|
||
|
Source: https://github.com/alanxz/rabbitmq-c.git/v%{version}/rabbitmq-c-%{version}.tar.bz2
|
||
|
License: MIT
|
||
|
## AUTOBUILDREQ-BEGIN
|
||
|
BuildRequires: glibc-devel
|
||
|
BuildRequires: libopenssl-devel
|
||
|
BuildRequires: libpopt-devel
|
||
|
## AUTOBUILDREQ-END
|
||
|
BuildRequires: cmake
|
||
|
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
|
||
|
|
||
|
%description
|
||
|
RabbitMQ C AMQP client library.
|
||
|
|
||
|
%package -n lib%{name}
|
||
|
Group: System/Libraries
|
||
|
Summary: Shared libraries for %{name}
|
||
|
|
||
|
%description -n lib%{name}
|
||
|
This package contains shared libraries for %{name}.
|
||
|
|
||
|
%package -n lib%{name}-devel
|
||
|
Group: Development/Libraries
|
||
|
Summary: Development files for %{name}
|
||
|
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
|
||
|
Requires: pkg-config
|
||
|
|
||
|
%description -n lib%{name}-devel
|
||
|
This package contains libraries and header files for developing applications that use %{name}.
|
||
|
|
||
|
|
||
|
%debug_package
|
||
|
|
||
|
%prep
|
||
|
%setup -q
|
||
|
|
||
|
%build
|
||
|
%cmake -d build
|
||
|
%make
|
||
|
|
||
|
%install
|
||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||
|
%makeinstall -C build
|
||
|
|
||
|
%clean
|
||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||
|
|
||
|
%post -n lib%{name} -p /sbin/ldconfig
|
||
|
%postun -n lib%{name} -p /sbin/ldconfig
|
||
|
|
||
|
%files
|
||
|
%defattr(-,root,root)
|
||
|
%{_bindir}/amqp-*
|
||
|
|
||
|
%files -n lib%{name}
|
||
|
%defattr(-,root,root)
|
||
|
%{_libdir}/librabbitmq.so.*
|
||
|
%doc AUTHORS THANKS
|
||
|
|
||
|
%files -n lib%{name}-devel
|
||
|
%defattr(-,root,root)
|
||
|
%{_includedir}/amqp*.h
|
||
|
%{_libdir}/librabbitmq.a
|
||
|
%{_libdir}/librabbitmq.so
|
||
|
%{_libdir}/pkgconfig/librabbitmq.pc
|
||
|
%dir %{_libdir}/cmake/rabbitmq-c
|
||
|
%{_libdir}/cmake/rabbitmq-c/rabbitmq-*.cmake
|
||
|
%doc ChangeLog.md README.md TODO
|
||
|
|
||
|
%changelog
|
||
|
* Fri May 06 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 0.11.0-1mamba
|
||
|
- package created using the webbuild interface
|