[rubygem-treetop] Update to treetop 1.4.11.

Vít Ondruch vondruch at fedoraproject.org
Mon Oct 29 10:42:14 UTC 2012


commit 7c090f5fd86c02ee1e144856f14de7c0370467fc
Author: Vít Ondruch <vondruch at redhat.com>
Date:   Mon Oct 29 11:40:16 2012 +0100

    Update to treetop 1.4.11.

 .gitignore           |    1 +
 rubygem-treetop.spec |   81 ++++++++++++++++++++++++++++---------------------
 sources              |    2 +-
 3 files changed, 48 insertions(+), 36 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 735354d..049b700 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
 treetop-1.3.0.gem
 /treetop-1.4.9.gem
 /treetop-1.4.10.gem
+/treetop-1.4.11.gem
diff --git a/rubygem-treetop.spec b/rubygem-treetop.spec
index ee0b78a..746d7c5 100644
--- a/rubygem-treetop.spec
+++ b/rubygem-treetop.spec
@@ -2,21 +2,20 @@
 
 Summary:        A Ruby-based text parsing and interpretation DSL
 Name:           rubygem-%{gem_name}
-Version:        1.4.10
-Release:        3%{?dist}
+Version:        1.4.11
+Release:        1%{?dist}
 Group:          Development/Languages
 License:        MIT
 URL:            http://treetop.rubyforge.org/
 Source0:        http://rubygems.org/downloads/%{gem_name}-%{version}.gem
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 Requires:       ruby(abi) = 1.9.1
 Requires:       ruby(rubygems)
 Requires:       rubygem(polyglot)
 BuildRequires:  rubygems-devel
-# The Following are required for testing
-#BuildRequires:  rubygem(rake)
-#BuildRequires:  rubygem(rspec)
-#BuildRequires:  rubygem(ruby-debug)
+BuildRequires:  rubygem(activesupport)
+BuildRequires:  rubygem(polyglot)
+BuildRequires:  rubygem(rr)
+BuildRequires:  rubygem(rspec)
 BuildArch:      noarch
 Provides:       rubygem(%{gem_name}) = %{version}
 
@@ -24,58 +23,70 @@ Provides:       rubygem(%{gem_name}) = %{version}
 Treetop is a language for describing languages. It helps you analyze syntax.
 
 
+%package doc
+Summary: Documentation for %{name}
+Group: Documentation
+Requires: %{name} = %{version}-%{release}
+BuildArch: noarch
+
+%description doc
+Documentation for %{name}
+
 %prep
 %setup -q -c -T
 mkdir -p .%{gem_dir}
 gem install --local --install-dir .%{gem_dir} \
-            -V \
-            --force --rdoc %{SOURCE0}
-
-pushd ./%{gem_dir}
+            --bindir .%{_bindir} \
+            --force %{SOURCE0}
 
 %build
 
 
 %install
-mkdir -p $RPM_BUILD_ROOT%{gem_dir}
-cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}/
-mkdir -p $RPM_BUILD_ROOT/%{_bindir}
-mv $RPM_BUILD_ROOT%{gem_dir}/bin/* $RPM_BUILD_ROOT/%{_bindir}
-rmdir $RPM_BUILD_ROOT%{gem_dir}/bin
-find $RPM_BUILD_ROOT%{gem_instdir}/bin -type f |xargs chmod a+x
-find $RPM_BUILD_ROOT%{gem_dir} -name '*.rb' |xargs chmod a-x
+mkdir -p %{buildroot}%{gem_dir}
+cp -pa .%{gem_dir}/* \
+        %{buildroot}%{gem_dir}/
+
 
-# Remove zero-length documentation files
-find $RPM_BUILD_ROOT%{gem_docdir} -empty -delete
+mkdir -p %{buildroot}%{_bindir}
+cp -pa .%{_bindir}/* \
+        %{buildroot}%{_bindir}/
 
+find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
 
-%clean
-rm -rf $RPM_BUILD_ROOT
+# Fix the permissions and shebangs.
+# https://groups.google.com/forum/?fromgroups=#!topic/treetop-dev/mfyCGee_dv4
+find %{buildroot}%{gem_instdir}/{doc,examples,lib,spec} -executable -type f | xargs chmod a-x
+sed -i '/^#!/d' %{buildroot}%{gem_instdir}/spec/compiler/multibyte_chars_spec.rb
 
-# Uncomment as soon as we have rubygem-rr in fedora
-#%check
-#pushd %{buildroot}%{gem_instdir}
-#rake spec
+%check
+pushd .%{gem_instdir}
+rspec spec
+popd
 
 %files
-%defattr(-,root,root,-)
 %{_bindir}/tt
 %dir %{gem_instdir}
 %{gem_instdir}/bin
 %{gem_libdir}
-%{gem_instdir}/Rakefile
-%doc %{gem_instdir}/doc
-%doc %{gem_instdir}/examples
-%doc %{gem_instdir}/README.md
 %doc %{gem_instdir}/LICENSE
-%doc %{gem_instdir}/spec
-%doc %{gem_instdir}/%{gem_name}.gemspec
-%doc %{gem_docdir}
-%{gem_cache}
+%exclude %{gem_cache}
 %{gem_spec}
 
+%files doc
+%doc %{gem_docdir}
+%doc %{gem_instdir}/README.md
+%doc %{gem_instdir}/doc
+%{gem_instdir}/examples
+%{gem_instdir}/spec
+%{gem_instdir}/Rakefile
+%{gem_instdir}/%{gem_name}.gemspec
+
 
 %changelog
+* Mon Oct 29 2012 Vít Ondruch <vondruch at redhat.com> - 1.4.11-1
+- Update to treetop 1.4.11.
+
 * Sat Jul 21 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.4.10-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
 
diff --git a/sources b/sources
index 6895640..46c78a9 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-5b83a9e84b0ca16aa669d546798d5fdc  treetop-1.4.10.gem
+ca275286fecd06159d4545c8424e8543  treetop-1.4.11.gem


More information about the scm-commits mailing list