Update to 2.0.3
(cherry picked from commit 25d8872e9b858f9f4bfad347f6a9e8e7ba74274e)
This commit is contained in:
parent
fa254976c8
commit
e4ee88f1d9
27
create-power_assert-test-files.sh
Normal file
27
create-power_assert-test-files.sh
Normal 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
BIN
power_assert-2.0.3.gem
Normal file
Binary file not shown.
BIN
power_assert-tests-2.0.3.tar.gz
Normal file
BIN
power_assert-tests-2.0.3.tar.gz
Normal file
Binary file not shown.
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user