From a6edaaef9e1cf0f95c9d6373d8c04ea780ff0c0e Mon Sep 17 00:00:00 2001 From: Irina Boverman Date: Wed, 29 Jul 2020 13:57:48 -0400 Subject: [PATCH] Added rubygem-qpid_proton package --- qpid-proton.spec | 47 ++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 44 insertions(+), 3 deletions(-) diff --git a/qpid-proton.spec b/qpid-proton.spec index 34dc34f..9098221 100644 --- a/qpid-proton.spec +++ b/qpid-proton.spec @@ -13,7 +13,7 @@ Name: qpid-proton Version: 0.31.0 -Release: 4%{?dist} +Release: 5%{?dist} Summary: A high performance, lightweight messaging library License: ASL 2.0 URL: http://qpid.apache.org/proton/ @@ -40,6 +40,9 @@ BuildRequires: python3-sphinx BuildRequires: glibc-headers BuildRequires: cyrus-sasl-devel BuildRequires: jsoncpp-devel +BuildRequires: python3-setuptools +BuildRequires: ruby-devel +BuildRequires: rubygems-devel %description Proton is a high performance, lightweight messaging library. It can be used in @@ -211,6 +214,30 @@ BuildArch: noarch %files tests %doc %{proton_datadir}/tests + +%package -n rubygem-%{gem_name} +Group: System Environment/Libraries +Summary: Ruby language bindings for the Qpid Proton messaging framework +Obsoletes: rubygem-%{gem_name}-doc + +%description -n rubygem-%{gem_name} +Proton is a high performance, lightweight messaging library. It can be used in +the widest range of messaging applications including brokers, client libraries, +routers, bridges, proxies, and more. Proton is based on the AMQP 1.0 messaging +standard. + +%files -n rubygem-%{gem_name} +%dir %{gem_instdir} +%{gem_libdir} +%{gem_extdir_mri} +%exclude %{gem_cache} +%{gem_spec} +%doc %{gem_instdir}/LICENSE.txt +%doc %{gem_instdir}/licenses.xml +%doc %{gem_instdir}/examples +%doc %{gem_instdir}/tests + + %prep %setup -q -n %{name}-%{version} %patch0 -p1 @@ -253,12 +280,26 @@ install -pm 644 %{SOURCE1} %{buildroot}%{proton_licensedir} install -pm 644 %{buildroot}%{proton_datadir}/LICENSE.txt %{buildroot}%{proton_licensedir} rm -f %{buildroot}%{proton_datadir}/LICENSE.txt +cd ruby/gem/ +mkdir -p %{buildroot}%{gem_instdir} +install -dm 755 %{buildroot}%{gem_dir}/specifications +mkdir -p %{buildroot}%{gem_extdir_mri} +cp -a ../cproton.so %{buildroot}%{gem_extdir_mri}/ +touch %{buildroot}%{gem_extdir_mri}/gem.build_complete +chmod 644 %{buildroot}%{gem_extdir_mri}/gem.build_complete +cp -a examples tests lib %{buildroot}%{gem_instdir}/ +install -pm 644 LICENSE.txt %{buildroot}%{gem_instdir}/ +install -pm 644 %{SOURCE1} %{buildroot}%{gem_instdir}/ +install -pm 644 %{gem_name}.gemspec %{buildroot}%{gem_spec} + # clean up files that are not shipped rm -rf %{buildroot}%{_exec_prefix}/bindings rm -rf %{buildroot}%{_libdir}/java rm -rf %{buildroot}%{_libdir}/libproton-jni.so rm -rf %{buildroot}%{_datarootdir}/java rm -rf %{buildroot}%{_libdir}/proton.cmake +rm -rf %{buildroot}%{_libdir}/ruby +rm -rf %{buildroot}%{_datarootdir}/ruby rm -fr %{buildroot}%{proton_datadir}/examples/CMakeFiles rm -f %{buildroot}%{proton_datadir}/examples/Makefile rm -f %{buildroot}%{proton_datadir}/examples/*.cmake @@ -312,8 +353,8 @@ rm -f %{buildroot}%{proton_datadir}/CMakeLists.txt %check %changelog -* Wed Jul 29 2020 Fedora Release Engineering - 0.31.0-5 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild +* Tue Jul 28 2020 Irina Boverman - 0.31.0-5 +- Added rubygem-qpid_proton subpackage * Mon Jun 1 2020 Irina Boverman - 0.31.0-4 - Corrected cmake for c/cpp examples