Sophie

Sophie

distrib > Mandriva > 2009.0 > x86_64 > media > main-release-src > by-pkgid > aec76fa686a7f37cac19f819c2eae500 > files > 2

ruby-rake-0.8.1-2mdv2009.0.src.rpm

%define rname rake
%define name  ruby-%{rname}

%define version 0.8.1
%define release %mkrel 2

Summary: Simple ruby build program with capabilities similar to make
Name: %name
Version: %version
Release: %release
License: MIT
Group: Development/Ruby
URL: http://rake.rubyforge.org/
Source0: %{rname}-%{version}.gem
BuildRoot: %{_tmppath}/%{name}-buildroot
BuildArch: noarch
BuildRequires: ruby-RubyGems
Requires: ruby

%description
This package contains Rake, a simple ruby build program with capabilities
similar to make.

Rake has the following features:
 * Rakefiles (rake's version of Makefiles) are completely defined in
   standard Ruby syntax. No XML files to edit. No quirky Makefile syntax to
   worry about (is that a tab or a space?)
 * Users can specify tasks with prerequisites.
 * Rake supports rule patterns to sythesize implicit tasks.
 * Rake is lightweight. It can be distributed with other projects as a single
   file. Projects that depend upon rake do not require that rake be installed
   on target systems.

%prep
rm -rf %rname-%version
rm -rf tmp-%rname-%version
mkdir tmp-%rname-%version
gem install --ignore-dependencies %{SOURCE0} --no-rdoc --install-dir `pwd`/tmp-%rname-%version
mv tmp-%rname-%version/gems/%rname-%version .
mv tmp-%rname-%version/specifications/%rname-%version.gemspec %rname-%version/
rm -rf tmp-%rname-%version
%setup -T -D -n %rname-%version

%build
rdoc --ri --op ri --title "Rake -- Ruby Make" --main README --line-numbers lib doc/glossary.rdoc doc/proto_rake.rdoc doc/rational.rdoc doc/rakefile.rdoc doc/release_notes/rake-0.4.14.rdoc doc/release_notes/rake-0.5.3.rdoc doc/release_notes/rake-0.4.15.rdoc doc/release_notes/rake-0.6.0.rdoc doc/release_notes/rake-0.5.0.rdoc doc/release_notes/rake-0.5.4.rdoc doc/release_notes/rake-0.7.0.rdoc README CHANGES TODO
rdoc --op rdoc --title "Rake -- Ruby Make" --main README --line-numbers lib doc/glossary.rdoc doc/proto_rake.rdoc doc/rational.rdoc doc/rakefile.rdoc doc/release_notes/rake-0.4.14.rdoc doc/release_notes/rake-0.5.3.rdoc doc/release_notes/rake-0.4.15.rdoc doc/release_notes/rake-0.6.0.rdoc doc/release_notes/rake-0.5.0.rdoc doc/release_notes/rake-0.5.4.rdoc doc/release_notes/rake-0.7.0.rdoc README CHANGES TODO

%install
rm -rf %buildroot

DESTDIR=$RPM_BUILD_ROOT ruby install.rb --no-ri --tests

mkdir -p $RPM_BUILD_ROOT{%{ruby_ridir},%{ruby_gemdir}/specifications}
cp -a ri/{CompositePublisher,Rake,RakeFileUtils,SshDirPublisher,SshFilePublisher,SshFreshDirPublisher} $RPM_BUILD_ROOT%{ruby_ridir}
cp -a %rname-%version.gemspec $RPM_BUILD_ROOT%{ruby_gemdir}/specifications/

mkdir -p %buildroot%{_mandir}/man1
cp doc/*.1.gz %buildroot%{_mandir}/man1/

for f in `find %buildroot%{ruby_sitelibdir} -type f`
do
        if head -n1 "$f" | grep '^#!' >/dev/null;
        then
                sed -i 's|/usr/local/bin|/usr/bin|' "$f"
                chmod 0755 "$f"
        else
                chmod 0644 "$f"
        fi
done

%clean
rm -rf %buildroot

%files
%defattr(-,root,root)
%attr(755,root,root) %{_bindir}/%{rname}
%{_mandir}/man1/*
%{ruby_sitelibdir}/*
%{ruby_ridir}/*
%{ruby_gemdir}/specifications/%rname-%version.gemspec
%doc CHANGES README TODO rdoc doc/example



%changelog
* Wed Jun 18 2008 Thierry Vignaud <tvignaud@mandriva.com> 0.8.1-2mdv2009.0
+ Revision: 225338
- rebuild

* Mon Jan 14 2008 Alexander Kurtakov <akurtakov@mandriva.org> 0.8.1-1mdv2008.1
+ Revision: 151230
- new version

  + Olivier Blin <oblin@mandriva.com>
    - restore BuildRoot

  + Thierry Vignaud <tvignaud@mandriva.com>
    - kill re-definition of %%buildroot on Pixel's request

* Sun Apr 22 2007 Pascal Terjan <pterjan@mandriva.org> 0.7.3-1mdv2008.0
+ Revision: 16720
- 0.7.3

* Sat Apr 21 2007 Pascal Terjan <pterjan@mandriva.org> 0.7.1-2mdv2008.0
+ Revision: 16671
- ri is now in ri/ and not ri/ri/
- Use Development/Ruby group


* Fri Jul 28 2006 Olivier Blin <blino@mandriva.com> 0.7.1-1mdv2007.0
- 0.7.1

* Mon Feb 13 2006 Pascal Terjan <pterjan@mandriva.org> 0.7.0-2mdk
- use gem
- use system ruby macros

* Thu Feb 09 2006 Pascal Terjan <pterjan@mandriva.org> 0.7.0-1mdk
- 0.7.0

* Tue Sep 06 2005 Pascal Terjan <pterjan@mandriva.org> 0.6.0-1mdk
- 0.6.0
- mkrel

* Mon Jul 11 2005 Pascal Terjan <pterjan@mandriva.org> 0.5.4-1mdk
- first release