[rubygem-qpid_messaging] Moved the gem install statement to the install section.
Darryl L. Pierce
mcpierce at fedoraproject.org
Mon Aug 13 19:32:11 UTC 2012
commit 047a074088c29cae0238744dd2cb3bf07113cee4
Author: Darryl L. Pierce <dpierce at redhat.com>
Date: Mon Aug 13 15:30:43 2012 -0400
Moved the gem install statement to the install section.
.gitignore | 1 +
rubygem-qpid_messaging.spec | 123 +++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 125 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..3628bf1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/qpid_messaging-0.16.0.gem
diff --git a/rubygem-qpid_messaging.spec b/rubygem-qpid_messaging.spec
new file mode 100644
index 0000000..0de1fab
--- /dev/null
+++ b/rubygem-qpid_messaging.spec
@@ -0,0 +1,123 @@
+%global gem_name qpid_messaging
+
+# The following globals are Fedora release-specific:
+%global rubyabi 1.9.1
+
+Summary: Ruby bindings for the Qpid messaging framework
+Name: rubygem-%{gem_name}
+Version: 0.16.0
+Release: 1.2%{?dist}
+License: ASL 2.0
+
+URL: http://qpid.apache.org
+Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
+
+Provides: rubygem(%{gem_name}) = %{version}
+
+# the following to be removed with Fedora 20
+Provides: rubygem(qpid) = %{version}
+Provides: ruby-qpid = %{version}
+Obsoletes: ruby-qpid < 0.8-2
+Obsoletes: rubygem(qpid) <= 0.16
+
+BuildRequires: ruby-devel
+BuildRequires: rubygems-devel
+BuildRequires: qpid-cpp-client-devel
+BuildRequires: rubygem-minitest
+BuildRequires: rubygem-rspec
+
+Requires: ruby(abi) = %{rubyabi}
+Requires: ruby(rubygems)
+
+
+%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}
+
+# Leave this in for applying patches
+# apply patches
+# pushd ..
+# gem unpack %{SOURCE0}
+# pushd %{gem_name}-%{version}
+# gem spec %{SOURCE0} --local --ruby > %{gem_name}.spec
+#
+# %patch1 -p6
+#
+# gem build %{gem_name}.spec
+# popd
+# popd
+
+mkdir -p .%{gem_dir}
+
+
+%build
+
+
+%install
+export CONFIGURE_ARGS="--with-cflags='%{optflags}'"
+gem install --local --install-dir .%{gem_dir} \
+ -V \
+ --force \
+ --rdoc \
+ %{SOURCE0}
+
+# use ../%{gem_name}-%{version}/%{gem_name}-%{version}.gem when patching
+
+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
+
+
+%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
+* Mon Aug 13 2012 Darryl L. Pierce <dpierce at redhat.com> - 0.16.0-1.2
+- Moved the gem install statement to the install section.
+
+* Wed Aug 1 2012 Darryl L. Pierce <dpierce at redhat.com> - 0.16.0-1.1
+- Added BR for ruby-devel.
+
+* Thu Jul 19 2012 Darryl L. Pierce <dpierce at redhat.com> - 0.16.0-1
+- Initial repackaging.
diff --git a/sources b/sources
index e69de29..4c99718 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+236068ea23f0eec26214de1a771a95dc qpid_messaging-0.16.0.gem
More information about the scm-commits
mailing list