62 lines
1.5 KiB
RPMSpec
62 lines
1.5 KiB
RPMSpec
%global gem_name method_source
|
|
Summary: Retrieve the source code for a method
|
|
Name: rubygem-%{gem_name}
|
|
Version: 1.0.0
|
|
Release: 1
|
|
License: MIT
|
|
URL: https://banisterfiend.wordpress.com
|
|
Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|
# Fix Fixnum/Bignum deprecated warning for Ruby 2.4.0.
|
|
# https://github.com/banister/method_source/commit/05ce7fc
|
|
BuildRequires: ruby(release) rubygems-devel ruby rubygem-rspec
|
|
BuildArch: noarch
|
|
%description
|
|
Retrieve the source code for a method
|
|
|
|
%package doc
|
|
Summary: Documentation for %{name}
|
|
Requires: %{name} = %{version}-%{release}
|
|
BuildArch: noarch
|
|
%description doc
|
|
Documentation for %{name}
|
|
|
|
%prep
|
|
%setup -q -c -T
|
|
%gem_install -n %{SOURCE0}
|
|
|
|
%build
|
|
|
|
%install
|
|
mkdir -p %{buildroot}%{gem_dir}
|
|
cp -a .%{gem_dir}/* \
|
|
%{buildroot}%{gem_dir}/
|
|
|
|
%check
|
|
pushd .%{gem_instdir}
|
|
rspec spec
|
|
popd
|
|
|
|
%files
|
|
%dir %{gem_instdir}
|
|
%exclude %{gem_instdir}/.*
|
|
%license %{gem_instdir}/LICENSE
|
|
%{gem_libdir}
|
|
%exclude %{gem_cache}
|
|
%{gem_spec}
|
|
|
|
%files doc
|
|
%doc %{gem_docdir}
|
|
%{gem_instdir}/Gemfile
|
|
%doc %{gem_instdir}/README.markdown
|
|
%doc %{gem_instdir}/CHANGELOG.md
|
|
%{gem_instdir}/Rakefile
|
|
%{gem_instdir}/method_source.gemspec
|
|
%{gem_instdir}/spec
|
|
|
|
%changelog
|
|
* Mon Feb 21 2022 houyingchao <houyingchao@huawei.com> - 1.0.0-1
|
|
- Upgrade to 1.0.0 version
|
|
|
|
* Wed Aug 19 2020 geyanan <geyanan2@huawei.com> - 0.8.2-1
|
|
- package init
|