Added rubygem-qpid_proton package

epel9
Irina Boverman 5 years ago
parent c4099a5506
commit a6edaaef9e

@ -13,7 +13,7 @@
Name: qpid-proton Name: qpid-proton
Version: 0.31.0 Version: 0.31.0
Release: 4%{?dist} Release: 5%{?dist}
Summary: A high performance, lightweight messaging library Summary: A high performance, lightweight messaging library
License: ASL 2.0 License: ASL 2.0
URL: http://qpid.apache.org/proton/ URL: http://qpid.apache.org/proton/
@ -40,6 +40,9 @@ BuildRequires: python3-sphinx
BuildRequires: glibc-headers BuildRequires: glibc-headers
BuildRequires: cyrus-sasl-devel BuildRequires: cyrus-sasl-devel
BuildRequires: jsoncpp-devel BuildRequires: jsoncpp-devel
BuildRequires: python3-setuptools
BuildRequires: ruby-devel
BuildRequires: rubygems-devel
%description %description
Proton is a high performance, lightweight messaging library. It can be used in Proton is a high performance, lightweight messaging library. It can be used in
@ -211,6 +214,30 @@ BuildArch: noarch
%files tests %files tests
%doc %{proton_datadir}/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 %prep
%setup -q -n %{name}-%{version} %setup -q -n %{name}-%{version}
%patch0 -p1 %patch0 -p1
@ -253,12 +280,26 @@ install -pm 644 %{SOURCE1} %{buildroot}%{proton_licensedir}
install -pm 644 %{buildroot}%{proton_datadir}/LICENSE.txt %{buildroot}%{proton_licensedir} install -pm 644 %{buildroot}%{proton_datadir}/LICENSE.txt %{buildroot}%{proton_licensedir}
rm -f %{buildroot}%{proton_datadir}/LICENSE.txt 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 # clean up files that are not shipped
rm -rf %{buildroot}%{_exec_prefix}/bindings rm -rf %{buildroot}%{_exec_prefix}/bindings
rm -rf %{buildroot}%{_libdir}/java rm -rf %{buildroot}%{_libdir}/java
rm -rf %{buildroot}%{_libdir}/libproton-jni.so rm -rf %{buildroot}%{_libdir}/libproton-jni.so
rm -rf %{buildroot}%{_datarootdir}/java rm -rf %{buildroot}%{_datarootdir}/java
rm -rf %{buildroot}%{_libdir}/proton.cmake rm -rf %{buildroot}%{_libdir}/proton.cmake
rm -rf %{buildroot}%{_libdir}/ruby
rm -rf %{buildroot}%{_datarootdir}/ruby
rm -fr %{buildroot}%{proton_datadir}/examples/CMakeFiles rm -fr %{buildroot}%{proton_datadir}/examples/CMakeFiles
rm -f %{buildroot}%{proton_datadir}/examples/Makefile rm -f %{buildroot}%{proton_datadir}/examples/Makefile
rm -f %{buildroot}%{proton_datadir}/examples/*.cmake rm -f %{buildroot}%{proton_datadir}/examples/*.cmake
@ -312,8 +353,8 @@ rm -f %{buildroot}%{proton_datadir}/CMakeLists.txt
%check %check
%changelog %changelog
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.31.0-5 * Tue Jul 28 2020 Irina Boverman <iboverma@redhat.com> - 0.31.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild - Added rubygem-qpid_proton subpackage
* Mon Jun 1 2020 Irina Boverman <iboverma@redhat.com> - 0.31.0-4 * Mon Jun 1 2020 Irina Boverman <iboverma@redhat.com> - 0.31.0-4
- Corrected cmake for c/cpp examples - Corrected cmake for c/cpp examples

Loading…
Cancel
Save