!4 [sync] PR-2: Upgrade to 1.2.0

From: @openeuler-sync-bot 
Reviewed-by: @lyn1001 
Signed-off-by: @lyn1001
This commit is contained in:
openeuler-ci-bot 2023-06-02 06:47:42 +00:00 committed by Gitee
commit a80150a9da
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
6 changed files with 37 additions and 5 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-1.2.0.gem Normal file

Binary file not shown.

Binary file not shown.

View File

@ -1,15 +1,17 @@
%global gem_name power_assert
Name: rubygem-%{gem_name}
Version: 1.1.6
Version: 1.2.0
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
@ -33,8 +35,8 @@ tar xf %{SOURCE1}
%build
gem build %{gem_name}.gemspec
%gem_install
# no test file
#cp -a ./test ./%{gem_instdir}/
cp -a ./test ./%{gem_instdir}/
%install
mkdir -p %{buildroot}%{gem_dir}
@ -73,5 +75,8 @@ popd
%doc %{gem_docdir}
%changelog
* Fri Jun 02 2023 chenchen <chen_aka_jan@163.com> - 1.2.0-1
- Upgrade to 1.2.0
* Thu Jul 30 2020 maminjie <maminjie1@huawei.com> - 1.1.6-1
- package init