[rubygem-qpid_proton] First official build for Fedora.

Darryl L. Pierce mcpierce at fedoraproject.org
Wed Mar 6 12:24:36 UTC 2013


commit 442c8baa9587ad6f7567a83bd860c3e24c95f770
Author: Darryl L. Pierce <dpierce at redhat.com>
Date:   Wed Mar 6 07:09:35 2013 -0500

    First official build for Fedora.
    
    - Resolves: BZ#906843

 .gitignore               |    1 +
 rubygem-qpid_proton.spec |  114 ++++++++++++++++++++++++++++++++++++++++++++++
 sources                  |    1 +
 3 files changed, 116 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..ffad52b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/qpid_proton-0.4.gem
diff --git a/rubygem-qpid_proton.spec b/rubygem-qpid_proton.spec
new file mode 100644
index 0000000..631af29
--- /dev/null
+++ b/rubygem-qpid_proton.spec
@@ -0,0 +1,114 @@
+# Generated from qpid_proton-0.0.1.gem by gem2rpm -*- rpm-spec -*-
+%global gem_name qpid_proton
+%global rubyabi 1.9.1
+
+Summary:       Ruby language bindings for the Qpid Proton messaging framework
+Name:          rubygem-%{gem_name}
+Version:       0.4
+Release:       2%{?dist}
+Group:         Development/Languages
+License:       ASL 2.0
+
+URL:           http://qpid.apache.org/proton
+# rubygems.org is currently read-only and the newer gem cannot be pushed ATM.
+Source0:       http://rubygems.org/gems/%{gem_name}-%{version}.gem
+
+%if 0%{?fedora} >= 19
+BuildRequires: ruby(release)
+%else
+BuildRequires: ruby(release) >= %{rubyabi}
+BuildRequires: ruby
+%endif
+BuildRequires: ruby-devel
+BuildRequires: rubygems-devel
+BuildRequires: qpid-proton-devel = %{version}
+BuildRequires: libuuid-devel
+
+%if 0%{?fedora} >= 19
+Requires:      ruby(release)
+%else
+Requires:      ruby(release) >= %{rubyabi}
+%endif
+Requires:      rubygems
+Requires:      qpid-proton = %{version}
+
+Provides:      rubygem(%{gem_name}) = %{version}
+
+%description
+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.
+
+
+%package doc
+Summary:   Documentation for %{name}
+Group:     Documentation
+Requires:  %{name} = %{version}-%{release}
+BuildArch: noarch
+
+%description doc
+%{summary}.
+
+%prep
+gem unpack %{SOURCE0}
+%setup -q -D -T -n %{gem_name}-%{version}
+
+gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
+
+# apply any patches here
+
+
+%build
+gem build %{gem_name}.gemspec
+
+export CONFIGURE_ARGS="--with-cflags='%{optflags}'"
+%gem_install 
+
+
+%install
+mkdir -p %{buildroot}%{gem_dir}
+cp -a ./%{gem_dir}/* %{buildroot}%{gem_dir}/
+
+mkdir -p %{buildroot}%{gem_extdir_mri}/lib/
+mv %{buildroot}%{gem_instdir}/lib/cproton.so \
+   %{buildroot}%{gem_extdir_mri}/lib/
+
+rm -rf %{buildroot}%{gem_instdir}/ext
+
+
+%check
+
+
+%files
+%dir %{gem_instdir}
+%{gem_libdir}
+%{gem_extdir_mri}
+%exclude %{gem_cache}
+%{gem_spec}
+%doc %{gem_instdir}/LICENSE
+
+
+%files doc
+%doc %{gem_docdir}
+%doc %{gem_instdir}/ChangeLog
+%doc %{gem_instdir}/TODO
+
+%changelog
+* Wed Mar  6 2013 Darryl L. Pierce <dpierce at redhat.com> - 0.4-2
+* First official build for Fedora.
+* Resolves: BZ#906843
+
+* Sat Mar  2 2013 Darryl L. Pierce <dpierce at redhat.com> - 0.4-1.1
+- Changed the BR for Ruby to match F19 packaging guidelines.
+- Changed install to use the gem_install macro.
+- Fixed the installation of the native library.
+
+* Fri Mar  1 2013 Darryl L. Pierce <dpierce at redhat.com> - 0.4-1
+- Rebased on Proton 0.4.
+
+* Mon Feb 25 2013 Darryl L. Pierce <dpierce at redhat.com> - 0.3-1.1
+- Updated to meet the new Fedora 19 packaging guidelines.
+
+* Fri Feb  1 2013 Darryl L. Pierce <dpierce at redhat.com> - 0.3-1
+- Initial package
diff --git a/sources b/sources
index e69de29..bc4ae3f 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+f00fff99224f33361a72e01a793af308  qpid_proton-0.4.gem


More information about the scm-commits mailing list