[rubygem-fattr/f17: 1/2] Updated to 2.2.0 for rubygem-main to work properly. Introduced %check section. Updated the license t
Vít Ondruch
vondruch at fedoraproject.org
Thu Mar 1 09:30:35 UTC 2012
commit df541e741c4e992341db9da99d753ce9b7c7f42e
Author: Vít Ondruch <vondruch at redhat.com>
Date: Thu Mar 1 10:28:53 2012 +0100
Updated to 2.2.0 for rubygem-main to work properly.
Introduced %check section.
Updated the license to BSD or Ruby.
.gitignore | 1 +
license.txt | 7 -------
rubygem-fattr.spec | 31 +++++++++++++++++++------------
sources | 2 +-
4 files changed, 21 insertions(+), 20 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 66bc804..503b294 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
fattr-1.0.3.gem
+/fattr-2.2.0.gem
diff --git a/rubygem-fattr.spec b/rubygem-fattr.spec
index 9bf6c4a..943a41e 100644
--- a/rubygem-fattr.spec
+++ b/rubygem-fattr.spec
@@ -2,18 +2,17 @@
Name: rubygem-%{gem_name}
Summary: Fatter attribute for Ruby
-Version: 1.0.3
-Release: 6%{?dist}
+Version: 2.2.0
+Release: 1%{?dist}
Group: Development/Languages
-License: GPLv2 or Ruby
+License: BSD or Ruby
URL: http://rubyforge.org/projects/codeforpeople/
Source0: http://gems.rubyforge.org/gems/%{gem_name}-%{version}.gem
-Source1: http://codeforpeople.com/lib/license.txt
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-Requires: ruby(rubygems)
+Requires: ruby(rubygems)
Requires: ruby(abi) = 1.9.1
-BuildRequires: rubygems-devel
+BuildRequires: rubygems-devel
BuildArch: noarch
Provides: rubygem(%{gem_name}) = %{version}
@@ -30,8 +29,6 @@ mkdir -p %{buildroot}%{gem_dir}
gem install --local --install-dir %{buildroot}/%{gem_dir} \
--force %{SOURCE0}
-install -p -m 644 %{SOURCE1} %{buildroot}%{gem_instdir}/
-
# Remove backup files
find %{buildroot}/%{gem_instdir} -type f -name "*~" -delete
@@ -54,24 +51,34 @@ find %{buildroot}/%{gem_instdir} -type f -perm /g+wx -exec chmod -v g-w {} \;
# Find files that are not readable
find %{buildroot}/%{gem_instdir} -type f ! -perm /go+r -exec chmod -v go+r {} \;
+%check
+pushd %{buildroot}%{gem_instdir}
+testrb test/fattr_test.rb
+popd
+
%clean
rm -rf %{buildroot}
%files
%defattr(-, root, root, -)
-%dir %{gem_instdir}
%doc %{gem_docdir}
-%doc %{gem_instdir}/license.txt
+%doc %{gem_instdir}/LICENSE
+%doc %{gem_instdir}/Rakefile
%doc %{gem_instdir}/README
-%doc %{gem_instdir}/README.tmpl
+%doc %{gem_instdir}/README.erb
%doc %{gem_instdir}/samples
+%doc %{gem_instdir}/test
%dir %{gem_instdir}/
%{gem_libdir}
-%{gem_instdir}/*.rb
%{gem_cache}
%{gem_spec}
%changelog
+* Thu Mar 01 2012 Bohuslav Kabrda <bkabrda at redhat.com> - 2.2.0-1
+- Updated to 2.2.0 for rubygem-main to work properly.
+- Introduced %%check section.
+- Updated the license to BSD or Ruby.
+
* Thu Feb 02 2012 Vít Ondruch <vondruch at redhat.com> - 1.0.3-6
- Rebuilt for Ruby 1.9.3.
diff --git a/sources b/sources
index 710be61..4e48cc6 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-681345f63e8f0159159f3f8228385158 fattr-1.0.3.gem
+17ee28b1740fbd87b7dd33b625b99daf fattr-2.2.0.gem
More information about the scm-commits
mailing list