commit
2379d7fb2e
69
rubygem-thor.spec
Normal file
69
rubygem-thor.spec
Normal file
@ -0,0 +1,69 @@
|
||||
%global gem_name thor
|
||||
Name: rubygem-%{gem_name}
|
||||
Version: 0.20.3
|
||||
Release: 1
|
||||
Summary: Thor is a toolkit for building powerful command-line interfaces
|
||||
License: MIT
|
||||
URL: http://whatisthor.com/
|
||||
Source0: https://rubygems.org/gems/thor-%{version}.gem
|
||||
Source1: https://github.com/erikhuda/thor/archive/v%{version}.tar.gz
|
||||
Requires: rubygem(io-console)
|
||||
BuildRequires: ruby(release) rubygems-devel ruby rubygem(io-console) rubygem(rspec)
|
||||
BuildRequires: rubygem(webmock) git
|
||||
BuildArch: noarch
|
||||
%description
|
||||
Thor is a toolkit for building powerful command-line interfaces.
|
||||
|
||||
%package doc
|
||||
Summary: Documentation for %{name}
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
BuildArch: noarch
|
||||
%description doc
|
||||
Documentation for %{name}.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{gem_name}-%{version}
|
||||
|
||||
%build
|
||||
gem build ../%{gem_name}-%{version}.gemspec
|
||||
%gem_install
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{gem_dir}
|
||||
cp -a .%{gem_dir}/* \
|
||||
%{buildroot}%{gem_dir}/
|
||||
mkdir -p %{buildroot}%{_bindir}
|
||||
cp -a .%{_bindir}/* \
|
||||
%{buildroot}%{_bindir}/
|
||||
find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
|
||||
find %{buildroot}%{gem_instdir}/bin -type f | \
|
||||
xargs -n 1 sed -i -e 's"^#!/usr/bin/env ruby"#!/usr/bin/ruby"'
|
||||
|
||||
%check
|
||||
pushd .%{gem_instdir}
|
||||
tar xzvf %{SOURCE1}
|
||||
cd %{gem_name}-%{version}
|
||||
sed -i '/simplecov/,/end/ s/^/#/' spec/helper.rb
|
||||
LC_ALL=C.UTF-8 rspec spec
|
||||
popd
|
||||
|
||||
%files
|
||||
%dir %{gem_instdir}
|
||||
%{_bindir}/thor
|
||||
%license %{gem_instdir}/LICENSE.md
|
||||
%{gem_instdir}/bin
|
||||
%{gem_libdir}
|
||||
%exclude %{gem_instdir}/.document
|
||||
%exclude %{gem_cache}
|
||||
%{gem_spec}
|
||||
|
||||
%files doc
|
||||
%doc %{gem_docdir}
|
||||
%doc %{gem_instdir}/CHANGELOG.md
|
||||
%doc %{gem_instdir}/CONTRIBUTING.md
|
||||
%doc %{gem_instdir}/README.md
|
||||
%{gem_instdir}/thor.gemspec
|
||||
|
||||
%changelog
|
||||
* Mon Aug 10 2020 yanan li <liyanan032@huawei.com> - 0.20.3-1
|
||||
- Package init
|
||||
5
rubygem-thor.yaml
Normal file
5
rubygem-thor.yaml
Normal file
@ -0,0 +1,5 @@
|
||||
git_url: https://github.com/erikhuda/thor.git
|
||||
version_control: github
|
||||
src_repo: erikhuda/thor
|
||||
tag_prefix: "^v"
|
||||
seperator: "."
|
||||
BIN
thor-0.20.3.gem
Normal file
BIN
thor-0.20.3.gem
Normal file
Binary file not shown.
BIN
v0.20.3.tar.gz
Normal file
BIN
v0.20.3.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user