Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
diff --git a/rubygem-rspec.spec b/rubygem-rspec.spec
index ed5ae8b..14fc7e3 100644
--- a/rubygem-rspec.spec
+++ b/rubygem-rspec.spec
@@ -5,8 +5,8 @@
Summary: Behaviour driven development (BDD) framework for Ruby
Name: rubygem-%{gemname}
-Version: 1.3.0
-Release: 3%{?dist}
+Version: 1.3.1
+Release: 1%{?dist}
Group: Development/Languages
License: GPLv2+ or Ruby
URL: http://rspec.info
@@ -16,23 +16,29 @@ Requires: rubygems, ruby(abi) = 1.8
BuildRequires: rubygems, ruby
BuildArch: noarch
Provides: rubygem(%{gemname}) = %{version}
+Patch0: RakeFileUtils_renamed_to_FileUtilsExt.patch
%description
RSpec is a behaviour driven development (BDD) framework for Ruby.
-
%prep
+%setup -q -c -T
+mkdir -p .%{gemdir}
+gem install --local --install-dir .%{gemdir} \
+ --force --rdoc %{SOURCE0}
+
+pushd .%{geminstdir}
+%patch0 -p1
+popd
%build
%install
-rm -rf %{buildroot}
mkdir -p %{buildroot}%{gemdir}
-gem install --local --install-dir %{buildroot}%{gemdir} \
- --force --rdoc %{SOURCE0}
mkdir -p %{buildroot}/%{_bindir}
-mv %{buildroot}%{gemdir}/bin/* %{buildroot}/%{_bindir}
-rmdir %{buildroot}%{gemdir}/bin
+mv .%{gemdir}/bin/* %{buildroot}/%{_bindir}
+rmdir .%{gemdir}/bin
+cp -a .%{gemdir}/* %{buildroot}%{gemdir}
find %{buildroot}%{geminstdir}/bin -type f | xargs chmod a+x
%clean
@@ -49,6 +55,10 @@ rm -rf %{buildroot}
%changelog
+* Fri Mar 04 2011 Marek Goldmann <mgoldman@redhat.com> - 1.3.1-1
+- Updated to 1.3.1
+- Patch to make it work with Rake >= 0.9.0.beta.0
+
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.