diff --git a/qpid-proton.spec b/qpid-proton.spec index 36c3cd5..9e35edf 100644 --- a/qpid-proton.spec +++ b/qpid-proton.spec @@ -1,4 +1,5 @@ %global proton_datadir %{_datadir}/proton +%global gem_name qpid_proton %global __provides_exclude_from ^%{proton_datadir}/examples/.*$ %global __requires_exclude_from ^%{proton_datadir}/examples/.*$ @@ -12,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/ @@ -39,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 @@ -210,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 @@ -252,6 +280,18 @@ 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 @@ -311,6 +351,9 @@ rm -f %{buildroot}%{proton_datadir}/CMakeLists.txt %check %changelog +* Tue Jul 28 2020 Irina Boverman - 0.30.0-5 +- Added rubygem-qpid_proton subpackage + * Mon Jun 1 2020 Irina Boverman - 0.30.0-4 - Corrected cmake for c/cpp examples - Resolved PROTON-2228