Find file
Fetching contributors…
Cannot retrieve contributors at this time
114 lines (84 sloc) 2.74 KB
# Generated from rubyzip-0.9.1.gem by gem2rpm -*- rpm-spec -*-
%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
%global gemname rubyzip
%global geminstdir %{gemdir}/gems/%{gemname}-%{version}
Summary: A ruby module for reading and writing zip files
Name: rubygem-%{gemname}
Version: 0.9.4
Release: 3%{?dist}
Group: Development/Languages
License: GPLv2+ or Ruby
Source0: Source0:{gemname}-%{version}.gem
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: ruby(abi) = 1.8
Requires: rubygems
BuildRequires: rubygems
BuildArch: noarch
Provides: rubygem(%{gemname}) = %{version}
rubyzip is a ruby module for reading and writing zip files
%package doc
Summary: Documentation for %{name}
Group: Documentation
Requires: %{name} = %{version}-%{release}
%description doc
This package contains documentation for %{name}.
rm -rf %{buildroot}
mkdir -p %{buildroot}%{gemdir}
gem install --local --install-dir %{buildroot}%{gemdir} \
--force --rdoc %{SOURCE0}
chmod 755 %{buildroot}%{geminstdir}/install.rb
for SCRIPT in example_filesystem gtkRubyzip example write_simple qtzip zipfind
chmod 755 %{buildroot}%{geminstdir}/samples/$SCRIPT.rb
for RB in stdrubyext zip tempfile_bugfixed ioextras zipfilesystem ziprequire
chmod 644 %{buildroot}%{geminstdir}/lib/zip/$RB.rb
chmod 644 %{buildroot}%{geminstdir}/Rakefile
# These aren't executables
sed -i -e '/^#!\/usr\/bin\/env ruby/d' \
# Remove CRLF from file
sed -i 's/\r//' %{buildroot}%{geminstdir}/samples/write_simple.rb
pushd %{buildroot}%{gemdir}/gems/%{gemname}-%{version}/
rake test
rm -rf %{buildroot}
%defattr(-, root, root, -)
%doc %{geminstdir}/[A-Z]*
%dir %{geminstdir}
%doc %{gemdir}/doc/%{gemname}-%{version}
%files doc
* Tue May 18 2010 Adam Young <> - 0.9.4-3
- Enabled tests,
- Removed the blanket cr/lf replace thyat was breaking thes test
* Thu May 13 2010 Adam Young <> - 0.9.4-2
- Upgraded to 0.9.4, with a patch to make buildr run
* Tue May 11 2010 Adam Young <> - 0.9.1-2
- Split documentation out into separate rpm
- Fixed rpmlint errors
* Tue May 11 2010 Adam Young <> - 0.9.1-2
- Fixed License
- Added ABI Dependency
- changed define to global
* Tue Apr 06 2010 Adam Young <> - 0.9.1-1
- Initial package