From 447326a89f63b1f8500f01fcc8538d128398aa44 Mon Sep 17 00:00:00 2001 From: Michal fojtik Date: Feb 22 2010 09:00:22 +0000 Subject: - Initial import --- diff --git a/.cvsignore b/.cvsignore index e69de29..b01ee2d 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +rest-client-1.3.1.gem diff --git a/import.log b/import.log new file mode 100644 index 0000000..e290cd4 --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +rubygem-rest-client-1_3_1-5_fc12:HEAD:rubygem-rest-client-1.3.1-5.fc12.src.rpm:1266832727 diff --git a/rubygem-rest-client.spec b/rubygem-rest-client.spec new file mode 100644 index 0000000..3a4bd3f --- /dev/null +++ b/rubygem-rest-client.spec @@ -0,0 +1,80 @@ +# Generated from rest-client-1.3.1.gem by gem2rpm -*- rpm-spec -*- +%global ruby_sitelib %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']") +%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null) +%global gemname rest-client +%global geminstdir %{gemdir}/gems/%{gemname}-%{version} + +Summary: Simple REST client for Ruby +Name: rubygem-%{gemname} +Version: 1.3.1 +Release: 5%{?dist} +Group: Development/Languages +License: MIT +URL: http://github.com/archiloque/rest-client +Source0: http://gems.rubyforge.org/gems/%{gemname}-%{version}.gem +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +Requires: ruby(abi) = 1.8 +Requires: rubygems +Requires: rubygem(mime-types) >= 1.16 +BuildRequires: rubygems +BuildArch: noarch +Provides: rubygem(%{gemname}) = %{version} + +%description +A simple Simple HTTP and REST client for Ruby, inspired by the Sinatra +microframework style of specifying actions: get, put, post, delete. + + +%prep + +%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 +find %{buildroot}%{geminstdir}/bin -type f | xargs chmod a+x + +%clean +rm -rf %{buildroot} + +%files +%defattr(-, root, root, -) +%{_bindir}/restclient +%dir %{geminstdir} +%{geminstdir}/bin +%{geminstdir}/lib +%doc %{geminstdir}/README.rdoc +%doc %{geminstdir}/Rakefile +%doc %{geminstdir}/history.md +%doc %{geminstdir}/VERSION +%doc %{geminstdir}/spec +%doc %{gemdir}/doc/%{gemname}-%{version} +%{gemdir}/cache/%{gemname}-%{version}.gem +%{gemdir}/specifications/%{gemname}-%{version}.gemspec + + +%changelog +* Mon Feb 17 2010 Michal Fojtik - 1.3.1-5 +- Added %dir %{geminstdir} into spec file + +* Mon Feb 17 2010 Michal Fojtik - 1.3.1-4 +- Marked README.rdoc, history.md and spec/ as %doc + +* Mon Feb 16 2010 Michal Fojtik - 1.3.1-3 +- Fixed licence (MIT) +- Fixed duplicated files in spec +- Replaced %define with %global + +* Mon Feb 16 2010 Michal Fojtik - 1.3.1-2 +- Fixed spec filename +- Added Ruby dependency + +* Mon Feb 16 2010 Michal Fojtik - 1.3.1-1 +- Initial package + + diff --git a/sources b/sources index e69de29..15d6938 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +072fd8b00406e6defaea3502f768fc85 rest-client-1.3.1.gem