[rubygem-yard] Updated to yard 0.7.4.

Vít Ondruch vondruch at fedoraproject.org
Thu Dec 15 11:00:21 UTC 2011


commit 9c954a5efce658c975234c703d5e1a2879c22667
Author: Vít Ondruch <vondruch at redhat.com>
Date:   Thu Dec 15 12:00:17 2011 +0100

    Updated to yard 0.7.4.

 .gitignore        |    1 +
 rubygem-yard.spec |   35 +++++++++++++++++++++--------------
 sources           |    2 +-
 3 files changed, 23 insertions(+), 15 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 631d23e..8ec2a60 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
 yard-0.5.3.gem
 /yard-0.7.2.gem
+/yard-0.7.4.gem
diff --git a/rubygem-yard.spec b/rubygem-yard.spec
index 6e3695b..7227153 100644
--- a/rubygem-yard.spec
+++ b/rubygem-yard.spec
@@ -6,19 +6,18 @@
 
 Name: rubygem-%{gemname}
 Summary: Documentation tool for consistent and usable documentation in Ruby
-Version: 0.7.2
+Version: 0.7.4
 Release: 1%{?dist}
 Group: Development/Languages
 License: MIT and (GPLv2 or Ruby)
 URL: http://yardoc.org
 
-Source0: http://rubygems.org/gems/yard-0.7.2.gem
+Source0: http://rubygems.org/gems/%{gemname}-%{version}.gem
 Requires: rubygems
 Requires: ruby(abi) = %{rubyabi}
 BuildRequires: rubygems
-BuildRequires: rubygem(rake)
-BuildRequires: rubygem(rspec)
-BuildRequires: rubygem(RedCloth)
+# Use rspec-core until rspec are not migrated to RSpec 2.x
+BuildRequires: rubygem(rspec-core)
 BuildArch: noarch
 Provides: rubygem(%{gemname}) = %{version}
 
@@ -31,23 +30,28 @@ custom Ruby constructs such as custom class level definitions.
 
 %prep
 %setup -q -T -c
+mkdir -p .%{gemdir}
+gem install --local --install-dir .%{gemdir} \
+            --bindir .%{_bindir} \
+            --force %{SOURCE0}
 
 %build
 
 %install
 mkdir -p %{buildroot}%{gemdir}
-mkdir -p %{buildroot}/%{_bindir}
+cp -a .%{gemdir}/* \
+        %{buildroot}%{gemdir}/
+
+mkdir -p %{buildroot}%{_bindir}
+cp -a .%{_bindir}/* \
+        %{buildroot}%{_bindir}/
 
-gem install --local --install-dir ./%{gemdir} \
-            --force --rdoc %{SOURCE0}
-cp -a ./%{gemdir}/* %{buildroot}/%{gemdir}/. 
-mv %{buildroot}%{gemdir}/bin/* %{buildroot}/%{_bindir}
-rmdir %{buildroot}%{gemdir}/bin
 find %{buildroot}%{geminstdir}/bin -type f | xargs chmod a+x
 
 %check
 pushd .%{geminstdir} 
-rake spec || : 
+rspec spec
+popd
 
 %files
 %{_bindir}/yardoc
@@ -57,10 +61,10 @@ rake spec || :
 %{geminstdir}/bin
 %{geminstdir}/lib
 %{geminstdir}/templates
-%{geminstdir}/.yardopts
+%exclude %{geminstdir}/.yardopts
 %doc %{geminstdir}/LEGAL
 
-%{gemdir}/cache/%{gemname}-%{version}.gem
+%exclude %{gemdir}/cache/%{gemname}-%{version}.gem
 %{gemdir}/specifications/%{gemname}-%{version}.gemspec
 
 %doc %{geminstdir}/LICENSE 
@@ -74,6 +78,9 @@ rake spec || :
 
 
 %changelog
+* Thu Dec 15 2011 Vít Ondruch <vondruch at redhat.com> - 0.7.4-1
+- Updated to yard 0.7.4.
+
 * Mon Jul 25 2011 Mo Morsi <mmorsi at redhat.com> - 0.7.2-1
 - update to latest upstream release
 - fixes to conform to fedora guidelines
diff --git a/sources b/sources
index 68f5104..7510824 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-d45ada9f7e2e70af8df81644f1eec153  yard-0.7.2.gem
+c8951a2b92979a87ff39f1cfb3d67cf6  yard-0.7.4.gem


More information about the scm-commits mailing list