summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVít Ondruch <vondruch@redhat.com>2015-01-23 16:21:00 +0100
committerVít Ondruch <vondruch@redhat.com>2015-01-23 16:21:00 +0100
commitb498a1de3fc1ea1a67b56cf03bf163375418be00 (patch)
tree761e8a6ce553710cd81a9eec63e91eb4e6b13046
parent83406a43abd02991aa96b65712f4c0600df70163 (diff)
downloadrubygem-debug_inspector-b498a1de3fc1ea1a67b56cf03bf163375418be00.tar.gz
rubygem-debug_inspector-b498a1de3fc1ea1a67b56cf03bf163375418be00.tar.xz
rubygem-debug_inspector-b498a1de3fc1ea1a67b56cf03bf163375418be00.zip
Update to recent guidelines + review fixes.
-rw-r--r--rubygem-debug_inspector.spec26
1 files changed, 13 insertions, 13 deletions
diff --git a/rubygem-debug_inspector.spec b/rubygem-debug_inspector.spec
index 1fd3cd8..9bf0a1f 100644
--- a/rubygem-debug_inspector.spec
+++ b/rubygem-debug_inspector.spec
@@ -3,21 +3,18 @@
Name: rubygem-%{gem_name}
Version: 0.0.2
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: A Ruby wrapper for the MRI 2.0 debug_inspector API
Group: Development/Languages
License: MIT
URL: https://github.com/banister/debug_inspector
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
-Requires: ruby(release)
-Requires: ruby(rubygems)
BuildRequires: ruby(release)
-BuildRequires: rubygems-devel
-BuildRequires: ruby-devel
-Provides: rubygem(%{gem_name}) = %{version}
+BuildRequires: rubygems-devel
+BuildRequires: ruby-devel
%description
-A Ruby wrapper for the MRI 2.0 debug_inspector API
+A Ruby wrapper for the MRI 2.0 debug_inspector API.
%package doc
@@ -27,7 +24,7 @@ Requires: %{name} = %{version}-%{release}
BuildArch: noarch
%description doc
-Documentation for %{name}
+Documentation for %{name}.
%prep
gem unpack %{SOURCE0}
@@ -49,28 +46,31 @@ mkdir -p %{buildroot}%{gem_dir}
cp -pa .%{gem_dir}/* \
%{buildroot}%{gem_dir}/
-mkdir -p %{buildroot}%{gem_extdir_mri}/lib
-# TODO: move the extensions
-mv %{buildroot}%{gem_instdir}/lib/debug_inspector.so %{buildroot}%{gem_extdir_mri}/lib/
+mkdir -p %{buildroot}%{gem_extdir_mri}
+cp -a .%{gem_extdir_mri}/{gem.build_complete,*.so} %{buildroot}%{gem_extdir_mri}/
+# Prevent dangling symlink in -debuginfo (rhbz#878863).
+rm -rf %{buildroot}%{gem_instdir}/ext/
chmod -x %{buildroot}%{gem_dir}/gems/%{gem_name}-%{version}/Rakefile
%files
+%doc %{gem_instdir}/README.md
%dir %{gem_instdir}
%{gem_libdir}
-%exclude %{gem_instdir}/ext
%{gem_extdir_mri}
%exclude %{gem_cache}
%{gem_spec}
%files doc
%doc %{gem_docdir}
-%{gem_instdir}/README.md
%{gem_instdir}/Rakefile
%{gem_instdir}/debug_inspector.gemspec
%changelog
+* Fri Jan 23 2015 Vít Ondruch <vondruch@redhat.com> - 0.0.2-2
+- Update to recent guidelines + review fixes.
+
* Mon May 06 2013 Anuj More - 0.0.2-1
- Initial package