[rubygem-fattr] Update to fattr 2.2.2.
Vít Ondruch
vondruch at fedoraproject.org
Tue Jul 8 12:59:44 UTC 2014
commit 0329c56a8ce05cddbb09a59d7a5f14e96f4ab9b7
Author: Vít Ondruch <vondruch at redhat.com>
Date: Tue Jul 8 14:59:56 2014 +0200
Update to fattr 2.2.2.
.gitignore | 1 +
rubygem-fattr.spec | 75 ++++++++++++++++++++++++---------------------------
sources | 2 +-
3 files changed, 37 insertions(+), 41 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 503b294..e395162 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
fattr-1.0.3.gem
/fattr-2.2.0.gem
+/fattr-2.2.2.gem
diff --git a/rubygem-fattr.spec b/rubygem-fattr.spec
index 08595c2..65057bb 100644
--- a/rubygem-fattr.spec
+++ b/rubygem-fattr.spec
@@ -2,78 +2,73 @@
Name: rubygem-%{gem_name}
Summary: Fatter attribute for Ruby
-Version: 2.2.0
-Release: 6%{?dist}
+Version: 2.2.2
+Release: 1%{?dist}
Group: Development/Languages
License: BSD or Ruby
-URL: http://rubyforge.org/projects/codeforpeople/
-Source0: http://gems.rubyforge.org/gems/%{gem_name}-%{version}.gem
+URL: https://github.com/ahoward/fattr
+Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-Requires: ruby(rubygems)
-Requires: ruby(release)
BuildRequires: ruby(release)
BuildRequires: rubygems-devel
-BuildRequires: rubygem(minitest)
+BuildRequires: rubygem(test-unit)
BuildArch: noarch
-Provides: rubygem(%{gem_name}) = %{version}
%description
The fattr gem is a Fatter attribute for Ruby
-%prep
+%package doc
+Summary: Documentation for %{name}
+Group: Documentation
+Requires: %{name} = %{version}-%{release}
+BuildArch: noarch
-%build
+%description doc
+Documentation for %{name}.
-%install
-rm -rf %{buildroot}
-%gem_install -n %{SOURCE0} -d %{buildroot}%{gem_dir}
+%prep
+gem unpack %{SOURCE0}
-# Remove backup files
-find %{buildroot}/%{gem_instdir} -type f -name "*~" -delete
+%setup -q -D -T -n %{gem_name}-%{version}
-# Delete zero-length files
-find %{buildroot}/%{gem_instdir} -type f -size 0c -exec rm -rvf {} \;
+gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
-# Fix anything executable that does not have a shebang
-for file in `find %{buildroot}/%{gem_instdir} -type f -perm /a+x`; do
- [ -z "`head -n 1 $file | grep \"^#!/\"`" ] && chmod -v 644 $file
-done
+%build
+gem build %{gem_name}.gemspec
-# Find files with a shebang that do not have executable permissions
-for file in `find %{buildroot}/%{gem_instdir} -type f ! -perm /a+x -name "*.rb"`; do
- [ ! -z "`head -n 1 $file | grep \"^#!/\"`" ] && chmod -v 755 $file
-done
+%gem_install
-# Find files that have non-standard-executable-perm
-find %{buildroot}/%{gem_instdir} -type f -perm /g+wx -exec chmod -v g-w {} \;
+%install
+mkdir -p %{buildroot}%{gem_dir}
+cp -a .%{gem_dir}/* \
+ %{buildroot}%{gem_dir}/
-# 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
+pushd .%{gem_instdir}
+ruby -e 'Dir.glob "./test/**/*_test.rb", &method(:require)'
popd
-%clean
-rm -rf %{buildroot}
-
%files
-%defattr(-, root, root, -)
%doc %{gem_docdir}
%doc %{gem_instdir}/LICENSE
+%dir %{gem_instdir}/
+%{gem_libdir}
+%exclude %{gem_cache}
+%{gem_spec}
+
+%files doc
+%doc %{gem_docdir}
%doc %{gem_instdir}/Rakefile
%doc %{gem_instdir}/README
%doc %{gem_instdir}/README.erb
%doc %{gem_instdir}/samples
%doc %{gem_instdir}/test
-%dir %{gem_instdir}/
-%{gem_libdir}
-%{gem_cache}
-%{gem_spec}
%changelog
+* Tue Jul 08 2014 Vít Ondruch <vondruch at redhat.com> - 2.2.2-1
+- Update to fattr 2.2.2.
+
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.2.0-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
diff --git a/sources b/sources
index 4e48cc6..e7dbc9f 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-17ee28b1740fbd87b7dd33b625b99daf fattr-2.2.0.gem
+232aae035386f8f8cdecfb002c2f6d2c fattr-2.2.2.gem
More information about the scm-commits
mailing list