[rubygem-polyglot] Updated to the latest upstream version. Tests enabled. Documentation moved into separate package. Re
Vít Ondruch
vondruch at fedoraproject.org
Fri Jul 1 09:53:36 UTC 2011
commit 31d07ff437dafa4ab9ffd8bce24e8e216e63f9d7
Author: Vít Ondruch <vondruch at redhat.com>
Date: Fri Jul 1 11:52:56 2011 +0200
Updated to the latest upstream version.
Tests enabled.
Documentation moved into separate package.
Remove unnecessary Hoe runtime dependency.
.gitignore | 1 +
rubygem-polyglot.spec | 69 +++++++++++++++++++++++++++++--------------------
sources | 2 +-
3 files changed, 43 insertions(+), 29 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 1ba507c..e2fadc1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
polyglot-0.2.5.gem
+/polyglot-0.3.1.gem
diff --git a/rubygem-polyglot.spec b/rubygem-polyglot.spec
index 4ab87f1..3f9c3d4 100644
--- a/rubygem-polyglot.spec
+++ b/rubygem-polyglot.spec
@@ -1,21 +1,26 @@
-%global ruby_sitelib %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']")
-%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
%global gemname polyglot
+
+%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
%global geminstdir %{gemdir}/gems/%{gemname}-%{version}
+%global rubyabi 1.8
Summary: Allow hooking of language loaders for specified extensions into require
Name: rubygem-%{gemname}
-Version: 0.2.5
-Release: 5%{?dist}
+Version: 0.3.1
+Release: 1%{?dist}
Group: Development/Languages
License: MIT
URL: http://polyglot.rubyforge.org
-Source0: http://gems.rubyforge.org/gems/%{gemname}-%{version}.gem
+Source0: http://rubygems.org/gems/%{gemname}-%{version}.gem
+%if 0%{?rhel} <= 5
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-Requires: ruby(abi) = 1.8
-Requires: rubygems
-Requires: rubygem(hoe) >= 1.8.0
-BuildRequires: rubygems
+%endif
+Requires: ruby(abi) = %{rubyabi}
+Requires: ruby(rubygems)
+Requires: ruby
+BuildRequires: ruby(abi) = %{rubyabi}
+BuildRequires: ruby(rubygems)
+BuildRequires: ruby
BuildArch: noarch
Provides: rubygem(%{gemname}) = %{version}
@@ -24,6 +29,16 @@ This Ruby GEM allows custom language loaders for specified file extensions
to be hooked into require.
+%package doc
+Summary: Documentation for %{name}
+Group: Documentation
+Requires: %{name} = %{version}-%{release}
+BuildArch: noarch
+
+%description doc
+Documentation for %{name}
+
+
%prep
@@ -36,36 +51,34 @@ mkdir -p $RPM_BUILD_ROOT%{gemdir}
gem install --local --install-dir $RPM_BUILD_ROOT%{gemdir} \
--force --rdoc %{SOURCE0}
-# Fix permissions
-chmod 644 $RPM_BUILD_ROOT%{geminstdir}/log/debug.log
-
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
+%check
+pushd %{buildroot}%{geminstdir}
+testrb test
+popd
%files
-%defattr(-,root,root,-)
%dir %{geminstdir}
-%{geminstdir}/Rakefile
-%{geminstdir}/config
%{geminstdir}/lib
-%{geminstdir}/log
-%{geminstdir}/script
-%{geminstdir}/website
-%{geminstdir}/tasks
-%{geminstdir}/*.rb
-%doc %{geminstdir}/test
+%doc %{geminstdir}/License.txt
+%{gemdir}/cache/%{gemname}-%{version}.gem
+%{gemdir}/specifications/%{gemname}-%{version}.gemspec
+
+%files doc
%doc %{gemdir}/doc/%{gemname}-%{version}
%doc %{geminstdir}/History.txt
-%doc %{geminstdir}/License.txt
%doc %{geminstdir}/Manifest.txt
%doc %{geminstdir}/README.txt
-%{gemdir}/cache/%{gemname}-%{version}.gem
-%{gemdir}/specifications/%{gemname}-%{version}.gemspec
+%{geminstdir}/Rakefile
+%{geminstdir}/test
%changelog
+* Fri Jul 01 2011 Vít Ondruch <vondruch at redhat.com> - 0.3.1-1
+- Updated to the latest upstream version.
+- Tests enabled.
+- Documentation moved into separate package.
+- Remove unnecessary Hoe runtime dependency.
+
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.2.5-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
diff --git a/sources b/sources
index e4c5fe6..db23491 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-3a36d65ae7aef29271ab548152ee3a95 polyglot-0.2.5.gem
+45a5e9e4a36935cfb387a80dba46f785 polyglot-0.3.1.gem
More information about the scm-commits
mailing list