|
|
b04c0d |
%{?scl:%scl_package rubygem-%{gem_name}}
|
|
|
b04c0d |
%{!?scl:%global pkg_name %{name}}
|
|
|
b04c0d |
|
|
|
b04c0d |
# Generated from method_source-0.7.1.gem by gem2rpm -*- rpm-spec -*-
|
|
|
b04c0d |
%global gem_name method_source
|
|
|
b04c0d |
|
|
|
b04c0d |
Summary: Retrieve the source code for a method
|
|
|
b04c0d |
Name: %{?scl_prefix}rubygem-%{gem_name}
|
|
|
b04c0d |
Version: 0.8.2
|
|
|
b04c0d |
Release: 4%{?dist}
|
|
|
b04c0d |
Group: Development/Languages
|
|
|
b04c0d |
License: MIT
|
|
|
b04c0d |
URL: http://banisterfiend.wordpress.com
|
|
|
b04c0d |
Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|
|
b04c0d |
|
|
|
b04c0d |
# Fix Fixnum/Bignum deprecated warning for Ruby 2.4.0.
|
|
|
b04c0d |
# https://github.com/banister/method_source/commit/05ce7fc
|
|
|
b04c0d |
Patch0: rubygem-method_source-0.8.2-fix-fixnum-bignum-warnings.patch
|
|
|
b04c0d |
Patch1: rubygem-method_source-0.8.2-fix-fixnum-bignum-warnings-tests.patch
|
|
|
b04c0d |
|
|
|
b04c0d |
Requires: %{?scl_prefix_ruby}ruby(release)
|
|
|
b04c0d |
Requires: %{?scl_prefix_ruby}ruby(rubygems)
|
|
|
b04c0d |
BuildRequires: %{?scl_prefix_ruby}ruby(release)
|
|
|
b04c0d |
BuildRequires: %{?scl_prefix_ruby}ruby(rubygems)
|
|
|
b04c0d |
BuildRequires: %{?scl_prefix_ruby}ruby
|
|
|
b04c0d |
BuildRequires: %{?scl_prefix_ruby}rubygems-devel
|
|
|
b04c0d |
BuildRequires: %{_bindir}/bacon
|
|
|
b04c0d |
BuildArch: noarch
|
|
|
b04c0d |
Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version}
|
|
|
b04c0d |
|
|
|
b04c0d |
# Explicitly require runtime subpackage, as long as older scl-utils do not generate it
|
|
|
b04c0d |
%{?scl:Requires: %{?scl_prefix}runtime}
|
|
|
b04c0d |
|
|
|
b04c0d |
%description
|
|
|
b04c0d |
Retrieve the source code for a method
|
|
|
b04c0d |
|
|
|
b04c0d |
%package doc
|
|
|
b04c0d |
Summary: Documentation for %{pkg_name}
|
|
|
b04c0d |
Group: Documentation
|
|
|
b04c0d |
Requires: %{?scl_prefix}%{pkg_name} = %{version}-%{release}
|
|
|
b04c0d |
BuildArch: noarch
|
|
|
b04c0d |
|
|
|
b04c0d |
%description doc
|
|
|
b04c0d |
Documentation for %{pkg_name}
|
|
|
b04c0d |
|
|
|
b04c0d |
%prep
|
|
|
b04c0d |
%setup -n %{pkg_name}-%{version} -q -c -T
|
|
|
b04c0d |
%{?scl:scl enable %{scl} - << \EOF}
|
|
|
b04c0d |
set -e
|
|
|
b04c0d |
%gem_install -n %{SOURCE0}
|
|
|
b04c0d |
|
|
|
b04c0d |
pushd .%{gem_instdir}
|
|
|
b04c0d |
%patch0 -p1
|
|
|
b04c0d |
popd
|
|
|
b04c0d |
%{?scl:EOF}
|
|
|
b04c0d |
|
|
|
b04c0d |
%build
|
|
|
b04c0d |
|
|
|
b04c0d |
%install
|
|
|
b04c0d |
mkdir -p %{buildroot}%{gem_dir}
|
|
|
b04c0d |
cp -a .%{gem_dir}/* \
|
|
|
b04c0d |
%{buildroot}%{gem_dir}/
|
|
|
b04c0d |
|
|
|
b04c0d |
%check
|
|
|
b04c0d |
pushd .%{gem_instdir}
|
|
|
b04c0d |
|
|
|
b04c0d |
cat %{PATCH1} | patch -p1
|
|
|
b04c0d |
|
|
|
b04c0d |
%{?scl:scl enable %{scl} - << \EOF}
|
|
|
b04c0d |
bacon test/test.rb
|
|
|
b04c0d |
%{?scl:EOF}
|
|
|
b04c0d |
popd
|
|
|
b04c0d |
|
|
|
b04c0d |
%files
|
|
|
b04c0d |
# There is no %%license macro on RHEL6.
|
|
|
b04c0d |
# https://bugzilla.redhat.com/show_bug.cgi?id=1386246
|
|
|
b04c0d |
%{!?_licensedir:%global license %%doc}
|
|
|
b04c0d |
|
|
|
b04c0d |
%dir %{gem_instdir}
|
|
|
b04c0d |
%exclude %{gem_instdir}/.*
|
|
|
b04c0d |
%license %{gem_instdir}/LICENSE
|
|
|
b04c0d |
%{gem_libdir}
|
|
|
b04c0d |
%exclude %{gem_cache}
|
|
|
b04c0d |
%{gem_spec}
|
|
|
b04c0d |
|
|
|
b04c0d |
%files doc
|
|
|
b04c0d |
%doc %{gem_docdir}
|
|
|
b04c0d |
%{gem_instdir}/Gemfile
|
|
|
b04c0d |
%doc %{gem_instdir}/README.markdown
|
|
|
b04c0d |
%{gem_instdir}/Rakefile
|
|
|
b04c0d |
%{gem_instdir}/method_source.gemspec
|
|
|
b04c0d |
%{gem_instdir}/test
|
|
|
b04c0d |
|
|
|
b04c0d |
%changelog
|
|
|
b04c0d |
* Tue Feb 14 2017 Jun Aruga <jaruga@redhat.com> - 0.8.2-4
|
|
|
b04c0d |
- Fix Fixnum/Bignum deprecated warning for Ruby 2.4.0.
|
|
|
b04c0d |
|
|
|
b04c0d |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.2-3
|
|
|
b04c0d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
b04c0d |
|
|
|
b04c0d |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.2-2
|
|
|
b04c0d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
b04c0d |
|
|
|
b04c0d |
* Tue Feb 24 2015 Vít Ondruch <vondruch@redhat.com> - 0.8.2-1
|
|
|
b04c0d |
- Update to method_source 0.8.2.
|
|
|
b04c0d |
|
|
|
b04c0d |
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.1-3
|
|
|
b04c0d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
b04c0d |
|
|
|
b04c0d |
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.1-2
|
|
|
b04c0d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
b04c0d |
|
|
|
b04c0d |
* Thu Mar 07 2013 Vít Ondruch <vondruch@redhat.com> - 0.8.1-1
|
|
|
b04c0d |
- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
|
|
|
b04c0d |
- Update to method_source 0.8.1.
|
|
|
b04c0d |
|
|
|
b04c0d |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8-2
|
|
|
b04c0d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
b04c0d |
|
|
|
b04c0d |
* Tue Jul 31 2012 Vít Ondruch <vondruch@redhat.com> - 0.8-1
|
|
|
b04c0d |
- Update to method_source 0.8.
|
|
|
b04c0d |
|
|
|
b04c0d |
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.1-3
|
|
|
b04c0d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
b04c0d |
|
|
|
b04c0d |
* Wed May 02 2012 Vít Ondruch <vondruch@redhat.com> - 0.7.1-2
|
|
|
b04c0d |
- Mark LICENSE as a %%doc.
|
|
|
b04c0d |
|
|
|
b04c0d |
* Wed May 02 2012 Vít Ondruch <vondruch@redhat.com> - 0.7.1-1
|
|
|
b04c0d |
- Initial package
|