[rubygem-main/f21] Update to main 6.0.0.
Vít Ondruch
vondruch at fedoraproject.org
Wed Jul 9 16:22:31 UTC 2014
commit cff62e8d2fb5cb99ab204326edbd0097bb43fafd
Author: Vít Ondruch <vondruch at redhat.com>
Date: Wed Jul 9 18:18:19 2014 +0200
Update to main 6.0.0.
.gitignore | 1 +
rubygem-main.spec | 90 ++++++++++++++++++++++++-----------------------------
sources | 2 +-
3 files changed, 43 insertions(+), 50 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 9b322f5..2f0fabf 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
main-4.0.0.gem
/main-4.7.0.gem
+/main-6.0.0.gem
diff --git a/rubygem-main.spec b/rubygem-main.spec
index 8a16e1a..55e6087 100644
--- a/rubygem-main.spec
+++ b/rubygem-main.spec
@@ -3,92 +3,84 @@
Summary: A class factory and dsl for generating command line programs real quick
Name: rubygem-%{gem_name}
-Version: 4.7.0
-Release: 6%{?dist}
+Version: 6.0.0
+Release: 1%{?dist}
Group: Development/Languages
License: BSD or Ruby
-URL: http://codeforpeople.com/lib/ruby/main/
-# This package does ugly tarballs (gem and source only)
-#Source0: http://codeforpeople.com/lib/ruby/main/%{gemname}-%{version}.tgz
-Source0: http://codeforpeople.com/lib/ruby/main/%{gem_name}-%{version}/%{gem_name}-%{version}.gem
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-Requires: rubygems
-Requires: ruby(release)
-Requires: rubygem(arrayfields)
-Requires: rubygem(fattr)
-Requires: rubygem(map)
-Requires: rubygem(chronic)
+URL: https://github.com/ahoward/main
+Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires: rubygems-devel
BuildRequires: rubygem(arrayfields)
BuildRequires: rubygem(fattr)
BuildRequires: rubygem(map)
BuildRequires: rubygem(chronic)
-BuildRequires: rubygem(minitest)
+BuildRequires: rubygem(test-unit)
BuildArch: noarch
-Provides: rubygem(%{gemname}) = %{version}
%description
-A class factory and dsl for generating command line programs real quick
+A class factory and dsl for generating command line programs real quick.
+
+%package doc
+Summary: Documentation for %{name}
+Group: Documentation
+Requires: %{name} = %{version}-%{release}
+BuildArch: noarch
+
+%description doc
+Documentation for %{name}.
%prep
+gem unpack %{SOURCE0}
-%build
+%setup -q -D -T -n %{gem_name}-%{version}
-%install
-rm -rf %{buildroot}
-mkdir -p %{buildroot}%{gem_dir}
-%gem_install -n %{SOURCE0} -d %{buildroot}%{gem_dir}
+gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
-# Remove backup files
-find %{buildroot}/%{gem_instdir} -type f -name "*~" -delete
+%build
+gem build %{gem_name}.gemspec
-# Delete zero-length files
-find %{buildroot}/%{gem_instdir} -type f -size 0c -exec rm -rvf {} \;
+%gem_install
-# 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
+%install
+mkdir -p %{buildroot}%{gem_dir}
+cp -a .%{gem_dir}/* \
+ %{buildroot}%{gem_dir}/
# 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
-# Find files that have non-standard-executable-perm
-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 {} \;
-
-# Get that duplicate gemspec out of the way
-rm -rf %{buildroot}/%{gem_instdir}/%{gem_name}.gemspec
-
%check
-pushd %{buildroot}/%{gem_instdir}/test
-testrb main_test.rb
+pushd .%{gem_instdir}/test
+ruby main_test.rb
popd
%clean
rm -rf %{buildroot}
%files
-%defattr(-, root, root, -)
-%doc %{gem_docdir}
%dir %{gem_instdir}/
%doc %{gem_instdir}/LICENSE
-%doc %{gem_instdir}/README
-%doc %{gem_instdir}/README.erb
-%doc %{gem_instdir}/Rakefile
-%doc %{gem_instdir}/TODO
-%doc %{gem_instdir}/samples
-%doc %{gem_instdir}/test
%{gem_libdir}
-%{gem_cache}
+%exclude %{gem_cache}
%{gem_spec}
+%files doc
+%doc %{gem_docdir}
+%{gem_instdir}/a.rb
+%doc %{gem_instdir}/README
+%{gem_instdir}/main.gemspec
+%{gem_instdir}/README.erb
+%{gem_instdir}/Rakefile
+%doc %{gem_instdir}/TODO
+%{gem_instdir}/samples
+%{gem_instdir}/test
%changelog
+* Wed Jul 09 2014 Vít Ondruch <vondruch at redhat.com> - 6.0.0-1
+- Update to main 6.0.0.
+
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 4.7.0-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
diff --git a/sources b/sources
index 3ab113c..4f33ebf 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-cccc8b7996112ab68aab8519c9d05fa7 main-4.7.0.gem
+2ef59fb92cf5b664142c91a7dd4fcd81 main-6.0.0.gem
More information about the scm-commits
mailing list