Update to 2.0.3

(cherry picked from commit 25d8872e9b858f9f4bfad347f6a9e8e7ba74274e)
This commit is contained in:
wu-leilei 2023-09-02 14:36:30 +08:00 committed by openeuler-sync-bot
parent fa254976c8
commit e4ee88f1d9
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 %global gem_name power_assert
Name: rubygem-%{gem_name} Name: rubygem-%{gem_name}
Version: 1.1.6 Version: 2.0.3
Release: 1 Release: 1
Summary: Power Assert for Ruby Summary: Power Assert for Ruby
License: Ruby or BSD License: Ruby or BSD
URL: https://github.com/k-tsj/power_assert URL: https://github.com/k-tsj/power_assert
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem 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 BuildArch: noarch
%description %description
@ -25,25 +26,24 @@ BuildArch: noarch
Documentation for %{name}. Documentation for %{name}.
%prep %prep
gem unpack %{SOURCE0} %setup -q -n %{gem_name}-%{version} -a 1
%setup -q -D -T -n %{gem_name}-%{version} mv ../%{gem_name}-%{version}.gemspec .
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
tar xf %{SOURCE1}
%build %build
gem build %{gem_name}.gemspec gem build %{gem_name}-%{version}.gemspec
%gem_install %gem_install
# no test file cp -a ./test ./%{gem_instdir}/
#cp -a ./test ./%{gem_instdir}/
%install %install
mkdir -p %{buildroot}%{gem_dir} mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \ cp -a .%{gem_dir}/* \
%{buildroot}%{gem_dir}/ %{buildroot}%{gem_dir}/
rm -f %{buildroot}%{gem_cache}
pushd %{buildroot}%{gem_instdir} pushd %{buildroot}%{gem_instdir}
rm -rf \ rm -rf \
.gitignore .travis.yml \ .gitignore .travis.yml \
Gemfile LEGAL \ .github/ \
Gemfile \
Rakefile \ Rakefile \
*gemspec \ *gemspec \
benchmarks \ benchmarks \
@ -64,7 +64,8 @@ popd
%dir %{gem_instdir} %dir %{gem_instdir}
%license %{gem_instdir}/BSDL %license %{gem_instdir}/BSDL
%license %{gem_instdir}/COPYING %license %{gem_instdir}/COPYING
%doc %{gem_instdir}/README.rdoc %license %{gem_instdir}/LEGAL
%doc %{gem_instdir}/README.md
%{gem_libdir} %{gem_libdir}
%{gem_spec} %{gem_spec}
%exclude %{gem_cache} %exclude %{gem_cache}
@ -73,5 +74,8 @@ popd
%doc %{gem_docdir} %doc %{gem_docdir}
%changelog %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 * Thu Jul 30 2020 maminjie <maminjie1@huawei.com> - 1.1.6-1
- package init - package init