[rubygem-qpid] First official build for Fedora 18.

Darryl L. Pierce mcpierce at fedoraproject.org
Mon Apr 30 21:49:38 UTC 2012


commit 0bf13e35393c103ebdc7aac91b81e59905d5e14a
Author: Darryl L. Pierce <dpierce at redhat.com>
Date:   Mon Apr 30 17:49:14 2012 -0400

    First official build for Fedora 18.

 rubygem-qpid.spec |  170 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 170 insertions(+), 0 deletions(-)
---
diff --git a/rubygem-qpid.spec b/rubygem-qpid.spec
new file mode 100644
index 0000000..8dd2e60
--- /dev/null
+++ b/rubygem-qpid.spec
@@ -0,0 +1,170 @@
+# Generated from qpid-0.16.0.gem by gem2rpm -*- rpm-spec -*-
+%global gem_name qpid
+
+# The following globals are Fedora release-specific:
+%if "%{fedora}" == "16"
+%global rubyabi 1.8
+
+%{!?ruby_sitearch: %global ruby_sitearch %(ruby -rrbconfig -e 'puts Config::CONFIG["sitearchdir"] ')}
+%global gemname %{gem_name}
+%global gemdir %{gem_dir}
+%global gem_extdir %{ruby_sitearch}
+%else
+%global rubyabi 1.9.1
+%endif
+
+Summary:       Ruby bindings for the Qpid messaging framework
+Name:          rubygem-%{gem_name}
+Version:       0.16.0
+Release:       9%{?dist}
+Group:         Development/Languages
+# BZ#817639 to remove the Boost license text from LICENSE file
+License:       ASL 2.0
+URL:           http://qpid.apache.org
+# Eventually the gem will be moved to rubygems.org. Currently there's a gem
+# there already named qpid. The owner, Tarik Al-Kasab, has agreed to release
+# the name to us, but hasn't done so as of yet.
+Source0:       http://mcpierce.fedorapeople.org/sources/%{gem_name}-%{version}.gem
+Provides:      rubygem(%{gem_name}) = %{version}
+Provides:      ruby-qpid = %{version}-%{release}
+Obsoletes:     ruby-qpid < 0.8-2
+
+BuildRequires: ruby(abi) = %{rubyabi}
+BuildRequires: ruby >= %{rubyabi}
+BuildRequires: ruby-devel >= %{rubyabi}
+BuildRequires: ruby(rubygems)
+BuildRequires: rubygems-devel
+BuildRequires: qpid-cpp-client-devel
+BuildRequires: rubygem-minitest
+
+# On Fedora 16 we have to include rspec core to get the rspec command
+%if "%{fedora}" == "16"
+BuildRequires: rubygem-rspec-core
+%else
+BuildRequires: rubygem-rspec
+%endif
+
+Requires:      ruby(abi) = %{rubyabi}
+Requires:      ruby(rubygems)
+Requires:      ruby >= %{rubyabi}
+
+
+%description
+Qpid is an enterprise messaging framework. This package provides Ruby
+language bindings based on that framework.
+
+
+%package doc
+Summary:   Documentation for %{name}
+Group:     Documentation
+Requires:  %{name} = %{version}-%{release}
+BuildArch: noarch
+
+
+%description doc
+Documentation for %{name}
+
+
+%prep
+%setup -q -c -T -n %{gem_name}-%{version}
+mkdir -p .%{gem_dir}
+export CONFIGURE_ARGS="--with-cflags='%{optflags}'"
+gem install --local --install-dir .%{gem_dir} \
+            -V \
+            --force \
+            --rdoc \
+            %{SOURCE0}
+
+
+%build
+
+
+%install
+install -d -m0755 %{buildroot}%{gem_dir}
+install -d -m0755 %{buildroot}%{gem_extdir}/lib
+
+cp -a .%{gem_dir}/* \
+      %{buildroot}%{gem_dir}/
+
+mkdir -p %{buildroot}%{gem_extdir}/
+mv %{buildroot}%{gem_instdir}/lib/cqpid.so \
+   %{buildroot}%{gem_extdir}/lib
+
+rm -rf %{buildroot}%{gem_instdir}/ext
+
+%check
+pushd .%{gem_instdir}
+# only execute the Rspec tests since the Cucumber tests
+# require a locally running Qpid broker
+rspec spec/qpid/*_spec.rb
+popd
+
+
+%files
+%dir %{gem_instdir}
+%{gem_libdir}
+%{gem_extdir}
+%exclude %{gem_cache}
+%{gem_spec}
+%doc %{gem_instdir}/LICENSE
+
+
+%files doc
+%doc %{gem_docdir}
+%doc %{gem_instdir}/README.rdoc
+%{gem_instdir}/examples
+%{gem_instdir}/features
+%{gem_instdir}/spec
+%{gem_instdir}/Rakefile
+%doc %{gem_instdir}/TODO
+
+
+%changelog
+* Thu Apr 30 2012 Darryl L. Pierce <dpierce at redhat.com> - 0.16.0-9
+- Changed the location of the F16 installed .so to the sitearch directory.
+
+* Thu Apr 30 2012 Darryl L. Pierce <dpierce at redhat.com> - 0.16.0-8
+- Modified the specfile to build on Fedora 16 & Fedora 17.
+- On Fedora 16, added BuildRequires: rubygem-rspec-core
+- Added the full URL to the source gem.
+- Added a note about the official location for the source gem.
+
+* Mon Apr 30 2012 Darryl L. Pierce <dpierce at redhat.com> - 0.16.0-7
+- Added a note about removing the Boost license from LICENSE in future.
+- Changed how the Rspec tests are invoked.
+- Removed gem_libname macro from use.
+
+* Thu Apr 26 2012 Darryl L. Pierce <dpierce at redhat.com> - 0.16.0-6
+- Removed cucumber dependency.
+- Changed from using rake to using rspec directly for running tests.
+- Added macros for running Rspec from the command line.
+- Dropped dependencies which are no longer necessary:
+  * rubygem-cucumber
+  * rubygem-rake
+  * rubygem-rake-compiler
+- Removed the ext/cqpid directory from the installed RPM.
+- Removed incorrect use of $REQUIRE_PATH
+
+* Tue Apr 24 2012 Darryl L. Pierce <dpierce at redhat.com> - 0.16.0-5
+- Added Boost to the list of licenses.
+- Unit tests are now executed.
+- Added BR for rubygem-rake, rubygem-rake-compiler and rubygem-minitest.
+- Moved the cqpid.so file to the exts directory.
+- Moved examples, features, spec and Rakefile to the -doc package.
+- Cleared up package ownerships for files.
+
+* Fri Apr 13 2012 Darryl L. Pierce <dpierce at redhat.com> - 0.16.0-4
+- Replaced old RPM Ruby macros with newer versions.
+- Added BuildRequires: rubygems-devel
+
+* Thu Apr 12 2012 Darryl L. Pierce <dpierce at redhat.com> - 0.16.0-3
+- Specified which version is provided for ruby-qpid
+- Changed the Ruby version required to 1.9 for Rawhide
+- Added Obsoletes: ruby-qpid
+
+* Wed Apr 11 2012 Darryl L. Pierce <dpierce at redhat.com> - 0.16.0-2
+- Added Provides: ruby-qpid
+- Removed the runtime dependency on qpid-cpp-client-devel
+
+* Mon Apr 09 2012 Darryl L. Pierce <dpierce at redhat.com> - 0.16.0-1
+- Initial packaging of release 0.16.


More information about the scm-commits mailing list