!1 Package init

Merge pull request !1 from lyn/master
This commit is contained in:
openeuler-ci-bot 2020-08-24 18:46:10 +08:00 committed by Gitee
commit 63e353fb4d
3 changed files with 54 additions and 0 deletions

BIN
rspec-3.8.0.gem Normal file

Binary file not shown.

49
rubygem-rspec.spec Normal file
View File

@ -0,0 +1,49 @@
%global gem_name rspec
Summary: Behaviour driven development (BDD) framework for Ruby
Name: rubygem-%{gem_name}
Version: 3.8.0
Release: 1
License: MIT
URL: http://rspec.info
Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires: rubygems-devel
BuildArch: noarch
%description
RSpec is a behaviour driven development (BDD) framework for Ruby.
%package help
Summary: Documentation for %{name}
Requires: %{name} = %{version}-%{release}
Provides: %{name}-doc = %{version}-%{release}
Obsoletes: %{name}-doc < %{version}-%{release}
%description help
This package contains documentation for %{name}.
%prep
gem unpack %{SOURCE0}
%setup -q -D -T -n %{gem_name}-%{version}
gem specification %{SOURCE0} -l --ruby > %{gem_name}.gemspec
%build
gem build %{gem_name}.gemspec
%gem_install
%install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
%{buildroot}%{gem_dir}/
%files
%dir %{gem_instdir}
%{gem_instdir}/lib
%license %{gem_instdir}/LICENSE.md
%doc %{gem_instdir}/README.md
%exclude %{gem_cache}
%{gem_spec}
%files help
%doc %{gem_docdir}
%changelog
* Mon Aug 24 2020 liyanan <liyanan32@huawei.com> - 3.8.0-1
- package init

5
rubygem-rspec.yaml Normal file
View File

@ -0,0 +1,5 @@
git_url: https://github.com/rspec/rspec.git
version_control: github
src_repo: rspec/rspec
tag_prefix: "^v"
seperator: "."