!7 [sync] PR-6: Update to 2.0.3

From: @openeuler-sync-bot 
Reviewed-by: @lyn1001 
Signed-off-by: @lyn1001
This commit is contained in:
openeuler-ci-bot 2023-09-02 08:58:04 +00:00 committed by Gitee
commit 60f8688276
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
6 changed files with 43 additions and 12 deletions

View File

@ -0,0 +1,27 @@
#!/bin/bash
if [ $# -lt 1 ]
then
echo "$0 v<version>"
exit 1
fi
set -x
set -e
VERSION=$1
TARBALL=power_assert-tests-${VERSION}.tar.gz
CURDIR=$(pwd)
WORKDIR=$(mktemp -d /var/tmp/power_assert-XXXXXX)
pushd $WORKDIR
git clone https://github.com/ruby/power_assert.git
cd power_assert
git reset --hard v${VERSION}
tar czf ${TARBALL} test/
mv ${TARBALL} ${CURDIR}/
popd
rm -rf $WORKDIR

Binary file not shown.

Binary file not shown.

BIN
power_assert-2.0.3.gem Normal file

Binary file not shown.

Binary file not shown.

View File

@ -1,15 +1,16 @@
%global gem_name power_assert
Name: rubygem-%{gem_name}
Version: 1.1.6
Version: 2.0.3
Release: 1
Summary: Power Assert for Ruby
License: Ruby or BSD
URL: https://github.com/k-tsj/power_assert
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
Source1: https://github.com/k-tsj/power_assert/archive/v%{version}/%{gem_name}-%{version}.tar.gz
Source1: %{gem_name}-tests-%{version}.tar.gz
Source2: create-power_assert-test-files.sh
BuildRequires: rubygems-devel rubygem(test-unit) rubygem(byebug) rubygem(pry)
BuildRequires: rubygems-devel rubygem(test-unit) rubygem(byebug) rubygem(pry) ruby-irb
BuildArch: noarch
%description
@ -25,25 +26,24 @@ BuildArch: noarch
Documentation for %{name}.
%prep
gem unpack %{SOURCE0}
%setup -q -D -T -n %{gem_name}-%{version}
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
tar xf %{SOURCE1}
%setup -q -n %{gem_name}-%{version} -a 1
mv ../%{gem_name}-%{version}.gemspec .
%build
gem build %{gem_name}.gemspec
gem build %{gem_name}-%{version}.gemspec
%gem_install
# no test file
#cp -a ./test ./%{gem_instdir}/
cp -a ./test ./%{gem_instdir}/
%install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
%{buildroot}%{gem_dir}/
rm -f %{buildroot}%{gem_cache}
pushd %{buildroot}%{gem_instdir}
rm -rf \
.gitignore .travis.yml \
Gemfile LEGAL \
.github/ \
Gemfile \
Rakefile \
*gemspec \
benchmarks \
@ -64,7 +64,8 @@ popd
%dir %{gem_instdir}
%license %{gem_instdir}/BSDL
%license %{gem_instdir}/COPYING
%doc %{gem_instdir}/README.rdoc
%license %{gem_instdir}/LEGAL
%doc %{gem_instdir}/README.md
%{gem_libdir}
%{gem_spec}
%exclude %{gem_cache}
@ -73,5 +74,8 @@ popd
%doc %{gem_docdir}
%changelog
* Sat Sep 02 2023 wulei <wu_lei@hoperun.com> - 2.0.3-1
- Update to 2.0.3
* Thu Jul 30 2020 maminjie <maminjie1@huawei.com> - 1.1.6-1
- package init