2.6.0
This commit is contained in:
parent
99d58098a4
commit
32acd9b4a0
4 changed files with 49 additions and 5 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -11,3 +11,5 @@ json-1.1.7.gem
|
|||
/json-2.3.0.gem
|
||||
/json-2.3.1.gem
|
||||
/json-2.5.1.gem
|
||||
/json-2.6.0.gem
|
||||
/rubygem-json-2.6.0-missing-files.tar.gz
|
||||
|
|
|
|||
33
json-create-tarball-missing-files.sh
Normal file
33
json-create-tarball-missing-files.sh
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -x
|
||||
set -e
|
||||
|
||||
if [ $# -lt 1 ]
|
||||
then
|
||||
echo "$0 <version>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
NAME=json
|
||||
|
||||
CURRDIR=$(pwd)
|
||||
|
||||
TMPDIRPATH=$(mktemp -d /var/tmp/${NAME}-tar-XXXXXX)
|
||||
pushd $TMPDIRPATH
|
||||
|
||||
VERSION=$1
|
||||
|
||||
git clone https://github.com/flori/${NAME}.git
|
||||
pushd json
|
||||
git reset --hard v${VERSION}
|
||||
popd
|
||||
|
||||
ln -sf ${NAME} ${NAME}-${VERSION}
|
||||
tar czf ${CURRDIR}/rubygem-${NAME}-${VERSION}-missing-files.tar.gz \
|
||||
${NAME}-${VERSION}/./tests/
|
||||
|
||||
popd
|
||||
|
||||
rm -rf $TMPDIRPATH
|
||||
|
||||
|
|
@ -1,15 +1,17 @@
|
|||
%global gem_name json
|
||||
|
||||
Name: rubygem-%{gem_name}
|
||||
Version: 2.5.1
|
||||
Release: 202%{?dist}
|
||||
Version: 2.6.0
|
||||
Release: 200%{?dist}
|
||||
|
||||
Summary: A JSON implementation in Ruby
|
||||
|
||||
|
||||
License: Ruby or BSD
|
||||
URL: https://github.com/flori/json
|
||||
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
||||
Source1: rubygem-%{gem_name}-%{version}-missing-files.tar.gz
|
||||
# Source1 is created by $ %%SOURCE2 v%%version
|
||||
Source2: json-create-tarball-missing-files.sh
|
||||
|
||||
BuildRequires: gcc
|
||||
BuildRequires: ruby(release)
|
||||
|
|
@ -39,7 +41,7 @@ Requires: %{name} = %{version}-%{release}
|
|||
This package contains documentation for %{name}.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{gem_name}-%{version}
|
||||
%setup -q -n %{gem_name}-%{version} -a 1
|
||||
mv ../%{gem_name}-%{version}.gemspec .
|
||||
|
||||
# Change cflags to honor Fedora compiler flags correctly
|
||||
|
|
@ -91,6 +93,9 @@ rm -rf \
|
|||
popd
|
||||
|
||||
%check
|
||||
rm -rf .%{gem_instdir}/tests
|
||||
cp -a ./%{gem_name}-%{version}/tests .%{gem_instdir}/
|
||||
|
||||
pushd .%{gem_instdir}
|
||||
ruby -Ilib:tests:tests/lib:$RPM_BUILD_ROOT%{gem_extdir_mri}:. \
|
||||
-e "gem 'test-unit'; require 'helper' ; Dir.glob('tests/test_*.rb').sort.each {|f| require f}"
|
||||
|
|
@ -126,6 +131,9 @@ popd
|
|||
|
||||
|
||||
%changelog
|
||||
* Fri Oct 22 2021 Mamoru TASAKA <mtasaka@fedoraproject.org> - 2.6.0-200
|
||||
- 2.6.0
|
||||
|
||||
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.1-202
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||
|
||||
|
|
|
|||
3
sources
3
sources
|
|
@ -1 +1,2 @@
|
|||
SHA512 (json-2.5.1.gem) = c25c1a796bbf413cdbfc64972b1171890017993c232b126dd180618614c6a7d661578ba4513929a96caff90e12d8606c51f5594c6bec29cde697e8da38ef6f4e
|
||||
SHA512 (json-2.6.0.gem) = 888a95b5d824d6469290ede0a02c9a8143fa07f0a243f2e5a70c0aaedce6645fc3deb0c8a9432d952071d2bcef5e92201f812e5848f5fab9ef3cf7f48abe9445
|
||||
SHA512 (rubygem-json-2.6.0-missing-files.tar.gz) = 3f2d7b385366030793ca17c19fe427b98140db56279be5c33ca20f45f626297e0ec9ee096308b62a2dc0f38e505a8c911606a356e9cd4017dcb226492058869d
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue