diff --git a/.cvsignore b/.cvsignore index e69de29..b2d19c5 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +rack-0.4.0.gem diff --git a/import.log b/import.log new file mode 100644 index 0000000..3cfb0a0 --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +rubygem-rack-0_4_0-2_fc10:HEAD:rubygem-rack-0.4.0-2.fc10.src.rpm:1228230958 diff --git a/rubygem-rack.spec b/rubygem-rack.spec new file mode 100644 index 0000000..98ff0b2 --- /dev/null +++ b/rubygem-rack.spec @@ -0,0 +1,75 @@ +%define gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null) +%define gemname rack +%define geminstdir %{gemdir}/gems/%{gemname}-%{version} + +Name: rubygem-%{gemname} +Summary: Common API for connecting web frameworks, web servers and layers of software +Version: 0.4.0 +Release: 2%{?dist} +Group: Development/Languages +License: MIT +URL: http://rubyforge.org/projects/%{gemname}/ +Source0: http://gems.rubyforge.org/gems/%{gemname}-%{version}.gem + +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +Requires: rubygems +Requires: ruby(abi) = 1.8 +BuildRequires: rubygems +BuildArch: noarch +Provides: rubygem(%{gemname}) = %{version} + +%description +Rack provides a common API for connecting web frameworks, +web servers and layers of software in between + +%prep + +%build + +%install +rm -rf %{buildroot} +mkdir -p %{buildroot}%{gemdir} +gem install --local --install-dir %{buildroot}/%{gemdir} \ + --force %{SOURCE0} + +chmod 755 %{buildroot}/%{geminstdir}/test/cgi/test.fcgi +chmod 755 %{buildroot}/%{geminstdir}/test/cgi/test.ru +chmod 755 %{buildroot}/%{geminstdir}/test/cgi/test +chmod 755 %{buildroot}/%{geminstdir}/bin/rackup + +# Move %{gemdir}/bin/rackup to %{_bindir} +mkdir -p %{buildroot}/%{_bindir} +mv %{buildroot}/%{gemdir}/bin/rackup %{buildroot}/%{_bindir} +rm -rf %{buildroot}/%{gemdir}/bin/ + +%clean +rm -rf %{buildroot} + +%files +%defattr(-, root, root, -) +%dir %{geminstdir} +%doc %{gemdir}/doc/%{gemname}-%{version} +%doc %{geminstdir}/AUTHORS +%doc %{geminstdir}/COPYING +%doc %{geminstdir}/README +%doc %{geminstdir}/RDOX +%doc %{geminstdir}/Rakefile +%doc %{geminstdir}/KNOWN-ISSUES +%doc %{geminstdir}/SPEC +%doc %{geminstdir}/example +%doc %{geminstdir}/test +%doc %{geminstdir}/contrib +%{geminstdir}/lib +%{geminstdir}/bin +%{_bindir}/rackup +%{gemdir}/cache/%{gemname}-%{version}.gem +%{gemdir}/specifications/%{gemname}-%{version}.gemspec + +%changelog +* Sun Nov 09 2008 Jeroen van Meeuwen - 0.4.0-2 +- Remove unused macro (#470694) +- Add ruby(abi) = 1.8 as required by package guidelines (#470694) +- Move %%{gemdir}/bin/rackup to %%{_bindir} (#470694) + +* Sat Nov 08 2008 Jeroen van Meeuwen - 0.4.0-1 +- Initial package diff --git a/sources b/sources index e69de29..da5f3c8 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +193b18066b640a499117107873ab490c rack-0.4.0.gem