init package
This commit is contained in:
parent
f2b11aedb3
commit
ad85600103
BIN
delorean-2.1.0.gem
Normal file
BIN
delorean-2.1.0.gem
Normal file
Binary file not shown.
BIN
rubygem-delorean-2.1.0-spec.tgz
Normal file
BIN
rubygem-delorean-2.1.0-spec.tgz
Normal file
Binary file not shown.
57
rubygem-delorean.spec
Normal file
57
rubygem-delorean.spec
Normal file
@ -0,0 +1,57 @@
|
||||
%global gem_name delorean
|
||||
Name: rubygem-%{gem_name}
|
||||
Version: 2.1.0
|
||||
Release: 1
|
||||
Summary: Delorean lets you travel in time with Ruby by mocking Time.now
|
||||
License: MIT
|
||||
URL: https://github.com/bebanjo/delorean
|
||||
Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
|
||||
# to get specs:
|
||||
# git clone https://github.com/bebanjo/delorean.git && cd delorean
|
||||
# git checkout v2.1.0
|
||||
# tar -czf rubygem-delorean-2.1.0-spec.tgz spec/
|
||||
Source1: %{name}-%{version}-spec.tgz
|
||||
BuildRequires: ruby(release) rubygems-devel ruby rubygem(rspec) rubygem(activesupport)
|
||||
BuildRequires: rubygem(chronic)
|
||||
BuildArch: noarch
|
||||
%description
|
||||
Delorean lets you travel in time with Ruby by mocking Time.now.
|
||||
|
||||
%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}
|
||||
tar xzf %{SOURCE1}
|
||||
rspec spec
|
||||
popd
|
||||
|
||||
%files
|
||||
%dir %{gem_instdir}
|
||||
%license %{gem_instdir}/MIT-LICENSE
|
||||
%{gem_libdir}
|
||||
%exclude %{gem_cache}
|
||||
%{gem_spec}
|
||||
|
||||
%files doc
|
||||
%doc %{gem_docdir}
|
||||
%doc %{gem_instdir}/README.md
|
||||
|
||||
%changelog
|
||||
* Fri Aug 21 2020 fanjiachen <fanjiachen3@huawei.com> - 2.1.0-1
|
||||
- package init
|
||||
4
rubygem-delorean.yaml
Normal file
4
rubygem-delorean.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: github
|
||||
src_repo: bebanjo/delorean
|
||||
tag_prefix: "v"
|
||||
seperator: "."
|
||||
Loading…
x
Reference in New Issue
Block a user