commit
f29a3ed81b
BIN
introspection-0.0.4.gem
Normal file
BIN
introspection-0.0.4.gem
Normal file
Binary file not shown.
59
rubygem-introspection.spec
Normal file
59
rubygem-introspection.spec
Normal file
@ -0,0 +1,59 @@
|
|||||||
|
%global gem_name introspection
|
||||||
|
Name: rubygem-%{gem_name}
|
||||||
|
Version: 0.0.4
|
||||||
|
Release: 1
|
||||||
|
Summary: Dynamic inspection of the hierarchy of method definitions on a Ruby object
|
||||||
|
License: MIT
|
||||||
|
URL: http://jamesmead.org
|
||||||
|
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
||||||
|
BuildRequires: ruby(release) rubygems-devel ruby rubygem(metaclass) => 0.0.1
|
||||||
|
BuildRequires: rubygem(metaclass) < 0.1 rubygem(builder) rubygem(minitest)
|
||||||
|
BuildArch: noarch
|
||||||
|
%description
|
||||||
|
Dynamic inspection of the hierarchy of method definitions on a Ruby object.
|
||||||
|
|
||||||
|
%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}
|
||||||
|
sed -i '/bundler\/setup/ d' test/test_helper.rb
|
||||||
|
ruby -Ilib:test -e 'Dir.glob "./test/**/*_test.rb", &method(:require)'
|
||||||
|
popd
|
||||||
|
|
||||||
|
%files
|
||||||
|
%license %{gem_instdir}/COPYING.txt
|
||||||
|
%dir %{gem_instdir}
|
||||||
|
%exclude %{gem_instdir}/.gitignore
|
||||||
|
%exclude %{gem_instdir}/.travis.yml
|
||||||
|
%exclude %{gem_instdir}/introspection.gemspec
|
||||||
|
%{gem_libdir}
|
||||||
|
%exclude %{gem_cache}
|
||||||
|
%{gem_spec}
|
||||||
|
|
||||||
|
%files doc
|
||||||
|
%doc %{gem_instdir}/README.md
|
||||||
|
%{gem_instdir}/Gemfile
|
||||||
|
%{gem_instdir}/Rakefile
|
||||||
|
%{gem_instdir}/samples
|
||||||
|
%{gem_instdir}/test
|
||||||
|
%doc %{gem_docdir}
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Tue Jul 28 2020 wutao <wutao61@huawei.com> - 0.0.4-1
|
||||||
|
- package init
|
||||||
4
rubygem-introspection.yaml
Normal file
4
rubygem-introspection.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control: github
|
||||||
|
src_repo: floehopper/introspection
|
||||||
|
tag_prefix: "^v"
|
||||||
|
seperator: "."
|
||||||
Loading…
x
Reference in New Issue
Block a user