diff --git a/README.md b/README.md index 8fcf2ef..c7b4e70 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # rabbitmq-c +RabbitMQ C AMQP client library. + diff --git a/rabbitmq-c.spec b/rabbitmq-c.spec new file mode 100644 index 0000000..1a18f10 --- /dev/null +++ b/rabbitmq-c.spec @@ -0,0 +1,80 @@ +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 +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 0.11.0-1mamba +- package created using the webbuild interface