summaryrefslogtreecommitdiffstats
path: root/rubygem-typhoeus.spec
diff options
context:
space:
mode:
authorVít Ondruch <vondruch@redhat.com>2012-02-01 10:29:24 +0100
committerVít Ondruch <vondruch@redhat.com>2012-02-01 10:29:24 +0100
commitcbc6a203685015ca932fb3e419b9dea20f290e0d (patch)
treefa96bba1603ae48219279aa0e344cfcd1d9c3c4f /rubygem-typhoeus.spec
parent19144f31cf536fc52acd48443f1005aaa15e2ef0 (diff)
downloadrubygem-typhoeus-cbc6a203685015ca932fb3e419b9dea20f290e0d.zip
rubygem-typhoeus-cbc6a203685015ca932fb3e419b9dea20f290e0d.tar.gz
rubygem-typhoeus-cbc6a203685015ca932fb3e419b9dea20f290e0d.tar.xz
Rebuilt for Ruby 1.9.3.
Diffstat (limited to 'rubygem-typhoeus.spec')
-rw-r--r--rubygem-typhoeus.spec68
1 files changed, 34 insertions, 34 deletions
diff --git a/rubygem-typhoeus.spec b/rubygem-typhoeus.spec
index d2c14b3..a8ad7b6 100644
--- a/rubygem-typhoeus.spec
+++ b/rubygem-typhoeus.spec
@@ -1,23 +1,20 @@
-%global gemname typhoeus
+%global gem_name typhoeus
-%global ruby_sitearch %(ruby -rrbconfig -e 'puts Config::CONFIG["sitearchdir"] ')
-%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
-%global geminstdir %{gemdir}/gems/%{gemname}-%{version}
-%global rubyabi 1.8
+%global rubyabi 1.9.1
Summary: A library for interacting with web services at blinding speed
-Name: rubygem-%{gemname}
+Name: rubygem-%{gem_name}
Version: 0.3.3
-Release: 2%{?dist}
+Release: 3%{?dist}
Group: Development/Languages
License: MIT
URL: http://github.com/pauldix/typhoeus
-Source0: http://gems.rubyforge.org/gems/%{gemname}-%{version}.gem
+Source0: http://gems.rubyforge.org/gems/%{gem_name}-%{version}.gem
Requires: ruby(rubygems)
Requires: ruby(abi) = %{rubyabi}
Requires: rubygem(mime-types)
BuildRequires: ruby(abi) = %{rubyabi}
-BuildRequires: ruby(rubygems)
+BuildRequires: rubygems-devel
# Use rspec-core until rspec are not migrated to RSpec 2.x
BuildRequires: rubygem(rspec-core)
BuildRequires: rubygem(json)
@@ -25,7 +22,7 @@ BuildRequires: rubygem(mime-types)
BuildRequires: rubygem(sinatra)
BuildRequires: ruby-devel
BuildRequires: libcurl-devel
-Provides: rubygem(%{gemname}) = %{version}
+Provides: rubygem(%{gem_name}) = %{version}
%description
Like a modern code version of the mythical beast with 100 serpent heads,
@@ -42,11 +39,11 @@ Documentation for %{name}
%prep
%setup -q -c -T
-mkdir -p ./%{gemdir}
+mkdir -p ./%{gem_dir}
export CONFIGURE_ARGS="--with-cflags='%{optflags}'"
gem install \
--local \
- --install-dir ./%{gemdir} \
+ --install-dir ./%{gem_dir} \
-V --force --rdoc \
%{SOURCE0}
@@ -54,45 +51,48 @@ gem install \
%install
rm -rf %{buildroot}
-mkdir -p %{buildroot}%{gemdir}
-cp -a ./%{gemdir}/* %{buildroot}%{gemdir}
+mkdir -p %{buildroot}%{gem_dir}
+cp -a ./%{gem_dir}/* %{buildroot}%{gem_dir}
-mkdir -p %{buildroot}%{ruby_sitearch}/%{gemname}
-mv -f %{buildroot}%{geminstdir}/lib/%{gemname}/*.so %{buildroot}%{ruby_sitearch}/%{gemname}
+mkdir -p %{buildroot}%{ruby_vendorarchdir}/%{gem_name}
+mv -f %{buildroot}%{gem_libdir}/%{gem_name}/*.so %{buildroot}%{ruby_vendorarchdir}/%{gem_name}
# remove all shebang, set permission to 0644 (mtasaka)
-for f in $(find %{buildroot}%{geminstdir} -name \*.rb)
+for f in $(find %{buildroot}%{gem_instdir} -name \*.rb)
do
sed -i -e '/^#!/d' $f
chmod 0644 $f
done
%check
-pushd .%{geminstdir}
+pushd .%{gem_instdir}
rspec spec
popd
%files
-%dir %{geminstdir}
-%dir %{ruby_sitearch}/%{gemname}
-%exclude %{geminstdir}/ext
-%{geminstdir}/lib
-%exclude %{geminstdir}/lib/typhoeus/.gitignore
-%{ruby_sitearch}/%{gemname}/*.so
-%doc %{geminstdir}/LICENSE
-%exclude %{gemdir}/cache/%{gemname}-%{version}.gem
-%{gemdir}/specifications/%{gemname}-%{version}.gemspec
+%dir %{gem_instdir}
+%dir %{ruby_vendorarchdir}/%{gem_name}
+%exclude %{gem_instdir}/ext
+%{gem_libdir}
+%exclude %{gem_libdir}/typhoeus/.gitignore
+%{ruby_vendorarchdir}/%{gem_name}/*.so
+%doc %{gem_instdir}/LICENSE
+%exclude %{gem_cache}
+%{gem_spec}
%files doc
-%doc %{geminstdir}/CHANGELOG.markdown
-%{geminstdir}/Rakefile
-%{geminstdir}/Gemfile
-%{geminstdir}/Gemfile.lock
-%{geminstdir}/spec
-%{geminstdir}/%{gemname}.gemspec
-%doc %{gemdir}/doc/%{gemname}-%{version}
+%doc %{gem_instdir}/CHANGELOG.markdown
+%{gem_instdir}/Rakefile
+%{gem_instdir}/Gemfile
+%{gem_instdir}/Gemfile.lock
+%{gem_instdir}/spec
+%{gem_instdir}/%{gem_name}.gemspec
+%doc %{gem_docdir}
%changelog
+* Wed Feb 01 2012 Vít Ondruch <vondruch@redhat.com> - 0.3.3-3
+- Rebuilt for Ruby 1.9.3.
+
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild