|
|
aef0ee7 |
%if 0%{?el6}
|
|
|
aef0ee7 |
%global ruby_sitearch %(ruby -rrbconfig -e 'puts Config::CONFIG["sitearchdir"]')
|
|
|
aef0ee7 |
%endif
|
|
|
aef0ee7 |
|
|
|
ebd4aee |
# Generated from curb-0.7.7.1.gem by gem2rpm -*- rpm-spec -*-
|
|
|
2882343 |
%global gem_name curb
|
|
|
ebd4aee |
|
|
|
ebd4aee |
Summary: Ruby libcurl bindings
|
|
|
2882343 |
Name: rubygem-%{gem_name}
|
|
|
7c743bd |
Version: 0.8.4
|
|
|
aef0ee7 |
Release: 2%{?dist}
|
|
|
ebd4aee |
Group: Development/Languages
|
|
|
ebd4aee |
License: Ruby
|
|
|
ebd4aee |
URL: http://curb.rubyforge.org/
|
|
|
2882343 |
Source0: http://gems.rubyforge.org/gems/%{gem_name}-%{version}.gem
|
|
|
7c743bd |
Patch0: curb-disable-network-lookup-test.patch
|
|
|
ebd4aee |
|
|
|
7c743bd |
%if 0%{?el6}
|
|
|
7c743bd |
Requires: ruby(abi) = 1.8
|
|
|
7c743bd |
%else
|
|
|
1d31770 |
Requires: ruby(release)
|
|
|
7c743bd |
%endif
|
|
|
2882343 |
Requires: ruby(rubygems)
|
|
|
7c743bd |
%if 0%{?el6}
|
|
|
7c743bd |
BuildRequires: ruby(abi) = 1.8
|
|
|
7c743bd |
%else
|
|
|
1d31770 |
BuildRequires: ruby(release)
|
|
|
7c743bd |
%endif
|
|
|
2882343 |
BuildRequires: rubygems-devel
|
|
|
2882343 |
BuildRequires: rubygem(minitest)
|
|
|
ebd4aee |
BuildRequires: ruby-devel
|
|
|
ebd4aee |
BuildRequires: libcurl-devel
|
|
|
2882343 |
Provides: rubygem(%{gem_name}) = %{version}
|
|
|
ebd4aee |
|
|
|
ebd4aee |
%package doc
|
|
|
ebd4aee |
Summary: Documentation for %{name}
|
|
|
ebd4aee |
Group: Documentation
|
|
|
ebd4aee |
Requires: %{name} = %{version}-%{release}
|
|
|
ebd4aee |
|
|
|
ebd4aee |
|
|
|
ebd4aee |
%description doc
|
|
|
ebd4aee |
Documentation for %{name}
|
|
|
ebd4aee |
|
|
|
ebd4aee |
%description
|
|
|
ebd4aee |
Curb (probably CUrl-RuBy or something) provides Ruby-language bindings for the
|
|
|
ebd4aee |
libcurl(3), a fully-featured client-side URL transfer library. cURL and
|
|
|
ebd4aee |
libcurl live at http://curl.haxx.se/
|
|
|
ebd4aee |
|
|
|
ebd4aee |
|
|
|
ebd4aee |
%prep
|
|
|
7c743bd |
gem unpack %{SOURCE0}
|
|
|
7c743bd |
|
|
|
7c743bd |
%setup -q -D -T -n %{gem_name}-%{version}
|
|
|
7c743bd |
|
|
|
7c743bd |
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
|
|
|
7c743bd |
|
|
|
7c743bd |
# Disable due to Curl::Err::HostResolutionError, which is cause probably by
|
|
|
7c743bd |
# missing network access on Koji.
|
|
|
7c743bd |
%patch0 -p1
|
|
|
ebd4aee |
|
|
|
ebd4aee |
%build
|
|
|
7c743bd |
# Create the gem as gem install only works on a gem file
|
|
|
7c743bd |
gem build %{gem_name}.gemspec
|
|
|
7c743bd |
|
|
|
7c743bd |
# %%gem_install compiles any C extensions and installs the gem into ./%gem_dir
|
|
|
7c743bd |
# by default, so that we can move it into the buildroot in %%install
|
|
|
7c743bd |
%gem_install
|
|
|
ebd4aee |
|
|
|
ebd4aee |
%install
|
|
|
2882343 |
mkdir -p %{buildroot}%{gem_dir}
|
|
|
7c743bd |
cp -pa .%{gem_dir}/* \
|
|
|
7c743bd |
%{buildroot}%{gem_dir}/
|
|
|
ebd4aee |
|
|
|
aef0ee7 |
%if 0%{?el6}
|
|
|
aef0ee7 |
mkdir -p %{buildroot}%{ruby_sitearch}
|
|
|
aef0ee7 |
mv %{buildroot}%{gem_instdir}/lib/curb_core.so %{buildroot}/%{ruby_sitearch}/curb_core.so
|
|
|
aef0ee7 |
%else
|
|
|
1d31770 |
mkdir -p %{buildroot}%{gem_extdir_mri}/lib
|
|
|
7c743bd |
mv %{buildroot}%{gem_instdir}/lib/curb_core.so %{buildroot}%{gem_extdir_mri}/lib/
|
|
|
aef0ee7 |
%endif
|
|
|
aef0ee7 |
|
|
|
7c743bd |
|
|
|
ebd4aee |
|
|
|
2882343 |
%check
|
|
|
7c743bd |
%if ! 0%{?el6}
|
|
|
b15b8c1 |
pushd .%{gem_instdir}
|
|
|
2882343 |
testrb tests/tc_*.rb
|
|
Shreyank Gupta |
16d6d01 |
popd
|
|
|
7c743bd |
%endif
|
|
|
ebd4aee |
|
|
|
ebd4aee |
%files
|
|
|
2882343 |
%dir %{gem_instdir}
|
|
|
2882343 |
%{gem_libdir}
|
|
|
7c743bd |
%exclude %{gem_instdir}/ext
|
|
|
7c743bd |
%exclude %{gem_instdir}/tests
|
|
|
7c743bd |
%exclude %{gem_instdir}/Rakefile
|
|
|
7c743bd |
%exclude %{gem_instdir}/doc.rb
|
|
|
7c743bd |
%if 0%{?el6}
|
|
|
7c743bd |
%exclude %{gem_instdir}/.require_paths
|
|
|
7c743bd |
%endif
|
|
|
aef0ee7 |
%if 0%{?el6}
|
|
|
aef0ee7 |
%{ruby_sitearch}/curb_core.so
|
|
|
aef0ee7 |
%else
|
|
|
7c743bd |
%{gem_extdir_mri}
|
|
|
aef0ee7 |
%endif
|
|
|
b15b8c1 |
%exclude %{gem_cache}
|
|
|
2882343 |
%{gem_spec}
|
|
|
ebd4aee |
|
|
|
7c743bd |
|
|
|
ebd4aee |
%files doc
|
|
|
7c743bd |
%doc %{gem_docdir}
|
|
|
7c743bd |
%doc %{gem_instdir}/LICENSE
|
|
|
7c743bd |
%doc %{gem_instdir}/README
|
|
|
7c743bd |
|
|
|
ebd4aee |
|
|
|
ebd4aee |
%changelog
|
|
|
aef0ee7 |
* Wed Apr 9 2014 Steve Traylen <steve.traylen@cern.ch> - 0.8.4-2
|
|
|
aef0ee7 |
- Now really works on EPEL6.
|
|
|
aef0ee7 |
|
|
|
7c743bd |
* Tue Mar 11 2014 Steve Traylen <steve.traylen@cern.ch> - 0.8.4-1
|
|
|
7c743bd |
- Update to curb 0.8.4, fix to latest ruby guidelines.
|
|
|
7c743bd |
|
|
|
8020747 |
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.3-4
|
|
|
8020747 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
8020747 |
|
|
|
1d31770 |
* Fri Mar 08 2013 Vít Ondruch <vondruch@redhat.com> - 0.8.3-3
|
|
|
1d31770 |
- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
|
|
|
1d31770 |
|
|
|
191c77a |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.3-2
|
|
|
191c77a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
191c77a |
|
|
|
b15b8c1 |
* Tue Nov 20 2012 Vít Ondruch <vondruch@redhat.com> - 0.8.3-1
|
|
|
b15b8c1 |
- Update to curb 0.8.3.
|
|
|
b15b8c1 |
|
|
|
3a810a1 |
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.10-5
|
|
|
3a810a1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
3a810a1 |
|
|
|
2882343 |
* Wed Feb 01 2012 Vít Ondruch <vondruch@redhat.com> - 0.7.10-4
|
|
|
2882343 |
- Rebuilt for Ruby 1.9.3.
|
|
|
2882343 |
|
|
|
79ed3d4 |
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.10-3
|
|
|
79ed3d4 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
79ed3d4 |
|
|
Shreyank Gupta |
b650be2 |
* Fri Feb 25 2011 Shreyank Gupta <sgupta@redhat.com> - 0.7.10-2
|
|
Shreyank Gupta |
b650be2 |
- not excluding .require_paths
|
|
Shreyank Gupta |
b650be2 |
|
|
Shreyank Gupta |
b650be2 |
* Fri Feb 25 2011 Shreyank Gupta <sgupta@redhat.com> - 0.7.10-1
|
|
Shreyank Gupta |
16d6d01 |
- New upstream 0.7.10
|
|
|
b129817 |
|
|
|
ebd4aee |
* Wed Jul 21 2010 Shreyank Gupta <sgupta@redhat.com> - 0.7.7.1-4
|
|
|
ebd4aee |
- Remove unneeded .require_paths file
|
|
|
ebd4aee |
|
|
|
ebd4aee |
* Tue Jul 20 2010 Shreyank Gupta <sgupta@redhat.com> - 0.7.7.1-3
|
|
|
ebd4aee |
- Remove unneeded .o and .so files from ext/ directory
|
|
|
ebd4aee |
- No rake test for ppc64
|
|
|
ebd4aee |
|
|
|
ebd4aee |
* Mon Jul 19 2010 Shreyank Gupta <sgupta@redhat.com> - 0.7.7.1-2
|
|
|
ebd4aee |
- Install gem file under %%gemdir and then copy to %%buildroot
|
|
|
ebd4aee |
- Moving .so to %%ruby_sitearch
|
|
|
ebd4aee |
- BuildRequires: rubygem(rake)
|
|
|
ebd4aee |
|
|
|
ebd4aee |
* Fri Jul 02 2010 Shreyank Gupta <sgupta@redhat.com> - 0.7.7.1-1
|
|
|
ebd4aee |
- Initial package
|