From c12cec2ccca3fd9889254127e922c93706c3766d Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: May 31 2016 08:17:12 +0000 Subject: import rh-ror42-rubygem-byebug-8.2.2-3.el7 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b8271d8 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +SOURCES/byebug-8.2.2.gem +SOURCES/rubygem-byebug-8.2.2-full.tar.gz diff --git a/.rh-ror42-rubygem-byebug.metadata b/.rh-ror42-rubygem-byebug.metadata new file mode 100644 index 0000000..d003e22 --- /dev/null +++ b/.rh-ror42-rubygem-byebug.metadata @@ -0,0 +1,2 @@ +490ff19237bab76d4b3fec0c9c73ef26a99e535c SOURCES/byebug-8.2.2.gem +0534990fa4bc1ccfa4d69689ca6080d11758d73f SOURCES/rubygem-byebug-8.2.2-full.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SOURCES/byebug-create-full-tarball.sh b/SOURCES/byebug-create-full-tarball.sh new file mode 100644 index 0000000..fefe8c1 --- /dev/null +++ b/SOURCES/byebug-create-full-tarball.sh @@ -0,0 +1,27 @@ +#!/bin/bash + +if [ $# -lt 2 ] +then + echo "$0 " + exit 1 +fi + +set -x +set -e + +CURRDIR=$(pwd) + +TMPDIRPATH=$(mktemp -d /var/tmp/rspec-tar-XXXXXX) +pushd $TMPDIRPATH + +git clone https://github.com/deivid-rodriguez/$1.git +pushd $1 +git reset --hard v$2 +popd + +ln -sf $1 $1-$2 +tar czf ${CURRDIR}/rubygem-$1-$2-full.tar.gz $1-$2/./ + +popd + +rm -rf $TMPDIRPATH diff --git a/SPECS/rubygem-byebug.spec b/SPECS/rubygem-byebug.spec new file mode 100644 index 0000000..9f47166 --- /dev/null +++ b/SPECS/rubygem-byebug.spec @@ -0,0 +1,183 @@ +%{?scl:%scl_package rubygem-%{gem_name}} +%{!?scl:%global pkg_name %{name}} + +%global gem_name byebug + +Name: %{?scl_prefix}rubygem-%{gem_name} +Version: 8.2.2 +Release: 3%{?dist} + +Summary: Ruby 2.0 fast debugger - base + CLI +License: BSD + +URL: http://github.com/deivid-rodriguez/byebug +Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem +# %%{SOURCE2} %%{pkg_name} %%{version} +Source1: rubygem-%{gem_name}-%{version}-full.tar.gz +Source2: byebug-create-full-tarball.sh + +Requires: %{?scl_prefix_ruby}ruby(release) +Requires: %{?scl_prefix_ruby}ruby(rubygems) +BuildRequires: %{?scl_prefix_ruby}rubygems-devel +BuildRequires: %{?scl_prefix_ruby}ruby-devel +BuildRequires: %{?scl_prefix_ruby}rubygem(minitest) >= 5 +BuildRequires: %{?scl_prefix}rubygem(mocha) +BuildRequires: %{?scl_prefix}rubygem(columnize) +BuildRequires: %{?scl_prefix}rubygem(simplecov) +Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version} + +%description +Byebug is a Ruby 2 debugger. It's implemented using the +Ruby 2 TracePoint C API for execution control and the Debug Inspector C API +for call stack navigation. The core component provides support that +front-ends can build on. It provides breakpoint handling and bindings for +stack frames among other things and it comes with an easy to use command +line interface. + +%package doc +Summary: Documentation for %{pkg_name} +Requires: %{?scl_prefix}%{pkg_name} = %{version}-%{release} +BuildArch: noarch + +%description doc +Documentation for %{pkg_name}. + +%prep +%{?scl:scl enable %{scl} - << \EOF} +gem unpack %{SOURCE0} +%{?scl:EOF} +%setup -q -D -T -n %{gem_name}-%{version} -a 1 +%{?scl:scl enable %{scl} - << \EOF} +gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec +%{?scl:EOF} + +# Relax columnize dependency +sed -i %{gem_name}.gemspec -e '\@columnize@s|= [0-9\.][0-9\.]*|>= 0.8.9|' + +%build +%{?scl:scl enable %{scl} - << \EOF} +gem build %{gem_name}.gemspec +%gem_install +%{?scl:EOF} + +%install +mkdir -p %{buildroot}%{gem_dir} +cp -a .%{gem_dir}/* \ + %{buildroot}%{gem_dir}/ + +mkdir -p %{buildroot}%{gem_extdir_mri} +cp -a .%{gem_extdir_mri}/{gem.build_complete,%{gem_name}/} %{buildroot}%{gem_extdir_mri}/ +rm -rf %{buildroot}%{gem_instdir}/ext/ + +mkdir -p %{buildroot}%{_bindir} +cp -pa .%{_bindir}/* \ + %{buildroot}%{_bindir}/ + +find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x + +%check +%{?scl:scl enable %{scl} - << \EOF} +set -e +export GEM_PATH=%{gem_dir}:%{buildroot}/%{gem_dir}:$GEM_PATH + +remove_fail_test() { + filename=$1 + shift + num=$# + while [ $num -gt 0 ] + do + if [ ! -f ${filename}.orig ] ; then + cp -p $filename ${filename}.orig + fi + sed -i $filename -e "\@def.*$1@s|^\(.*\)$|\1; skip \"Skip this\"|" + shift + num=$((num - 1)) + done +} + +cp -a %{gem_name}-%{version}/{test,script} .%{gem_instdir} +pushd .%{gem_instdir} + +# Once test all +ruby -I.:lib:ext script/minitest_runner.rb || : + +remove_fail_test test/commands/frame_test.rb \ + test_frame_minus_one_sets_frame_to_the_last_one +remove_fail_test test/commands/next_test.rb \ + test_next_does_not_stop_at_byebug_internal_frames +remove_fail_test test/commands/finish_test.rb \ + test_finish_does_not_stop_in_byebug_internal_frames + +ruby -I.:lib:ext script/minitest_runner.rb +popd +%{?scl:EOF} + +%files +%dir %{gem_instdir} +%license %{gem_instdir}/LICENSE +%doc %{gem_instdir}/CHANGELOG.md +%doc %{gem_instdir}/CONTRIBUTING.md +%doc %{gem_instdir}/GUIDE.md +%doc %{gem_instdir}/README.md + +%{_bindir}/byebug +%{gem_instdir}/bin + +%{gem_libdir}/ +%{gem_extdir_mri}/ + +%exclude %{gem_cache} +%{gem_spec} + +%files doc +%doc %{gem_instdir}/CONTRIBUTING.md +%doc %{gem_docdir} + +%changelog +* Wed Apr 06 2016 Pavel Valena - 8.2.2-3 +- Enable tests + +* Wed Mar 02 2016 Pavel Valena - 8.2.2-2 +- Add scl macros + +* Wed Feb 3 2016 Mamoru TASAKA - 8.2.2-1 +- 8.2.2 + +* Mon Jan 11 2016 Mamoru TASAKA - 8.2.1-2 +- F-24: rebuild against ruby23 + +* Tue Dec 29 2015 Mamoru TASAKA - 8.2.1-1 +- 8.2.1 + +* Sun Sep 13 2015 Mamoru TASAKA - 6.0.2-1 +- 6.0.2 + +* Thu Jun 18 2015 Fedora Release Engineering - 5.0.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Tue May 19 2015 Mamoru TASAKA - 5.0.0-1 +- 5.0.0 + +* Fri Apr 3 2015 Mamoru TASAKA - 4.0.5-1 +- 4.0.5 + +* Sat Mar 28 2015 Mamoru TASAKA - 4.0.4-1 +- 4.0.4 + +* Fri Mar 20 2015 Mamoru TASAKA - 4.0.3-1 +- 4.0.3 + +* Tue Mar 17 2015 Mamoru TASAKA - 4.0.2-1 +- 4.0.2 + +* Sat Feb 07 2015 Mamoru TASAKA - 3.5.1-4 +- Remove simplecov + +* Tue Feb 03 2015 Mamoru TASAKA - 3.5.1-3 +- A bit modification for %%check + +* Tue Feb 03 2015 Mamoru TASAKA - 3.5.1-2 +- Make test suite exit with status + +* Tue Feb 03 2015 Mamoru TASAKA - 3.5.1-1 +- Initial package