[rubygem-qpid_messaging] Removed Group field from the doc subpackage.
Darryl L. Pierce
mcpierce at fedoraproject.org
Wed Dec 26 13:32:43 UTC 2012
commit 4d0e105c9445adb3f14bcfc4c7e3a27cd86c982e
Author: Darryl L. Pierce <dpierce at redhat.com>
Date: Wed Dec 26 08:32:21 2012 -0500
Removed Group field from the doc subpackage.
- Updated the specfile to match current Ruby packaging guidelines.
rubygem-qpid_messaging.spec | 55 ++++++++++++++++--------------------------
1 files changed, 21 insertions(+), 34 deletions(-)
---
diff --git a/rubygem-qpid_messaging.spec b/rubygem-qpid_messaging.spec
index 6d2a55e..13077ca 100644
--- a/rubygem-qpid_messaging.spec
+++ b/rubygem-qpid_messaging.spec
@@ -1,7 +1,5 @@
%global gem_name qpid_messaging
%global qpid_version 0.18
-
-# The following globals are Fedora release-specific:
%global rubyabi 1.9.1
Summary: Ruby bindings for the Qpid messaging framework
@@ -15,20 +13,19 @@ Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
Provides: rubygem(%{gem_name}) = %{version}
+BuildRequires: ruby(abi) = %{rubyabi}
+BuildRequires: ruby-devel
+BuildRequires: rubygems-devel
+BuildRequires: qpid-cpp-client-devel = %{qpid_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 = %{qpid_version}
-BuildRequires: rubygem-minitest
-BuildRequires: rubygem-rspec
-
Requires: ruby(abi) = %{rubyabi}
-Requires: ruby(rubygems)
+Requires: rubygems
%description
@@ -38,52 +35,38 @@ 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}
+%{Summary}.
%prep
-%setup -q -c -T -n %{gem_name}-%{version}
+gem unpack %{SOURCE0}
+%setup -q -D -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
+gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
-mkdir -p .%{gem_dir}
+# apply patches here
%build
+gem build %{gem_name}.gemspec
-
-%install
export CONFIGURE_ARGS="--with-cflags='%{optflags}'"
-gem install --local --install-dir .%{gem_dir} \
+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}/
+%install
+mkdir -p %{buildroot}%{gem_dir}
+cp -a ./%{gem_dir}/* %{buildroot}%{gem_dir}/
mkdir -p %{buildroot}%{gem_extdir}/
mv %{buildroot}%{gem_instdir}/lib/cqpid.so \
@@ -115,6 +98,10 @@ rm -rf %{buildroot}%{gem_instdir}/ext
%changelog
+* Wed Dec 26 2012 Darryl L. Pierce <dpierce at redhat.com> - 0.18.1-1.1
+- Removed Group field from the doc subpackage.
+- Updated the specfile to match current Ruby packaging guidelines.
+
* Mon Sep 24 2012 Darryl L. Pierce <dpierce at redhat.com> - 0.18.1-1
- Rebased on qpid_messaging 0.18.1.
- Added the ChangeLog to the files in the -doc package.
More information about the scm-commits
mailing list