|
TASAKA Mamoru |
1a4fb8f |
%global gem_name ruby-debug-base19
|
|
TASAKA Mamoru |
1a4fb8f |
%global rubyabi 1.9.1
|
|
TASAKA Mamoru |
1a4fb8f |
|
|
TASAKA Mamoru |
1a4fb8f |
%global repoid 75415
|
|
TASAKA Mamoru |
1a4fb8f |
|
|
TASAKA Mamoru |
fea8b57 |
%global ruby_majorver 2.0
|
|
TASAKA Mamoru |
fea8b57 |
%global ruby_fullver 2.0.0-p0
|
|
TASAKA Mamoru |
1a4fb8f |
|
|
TASAKA Mamoru |
1a4fb8f |
Summary: Fast Ruby debugger - core component
|
|
TASAKA Mamoru |
1a4fb8f |
Name: rubygem-%{gem_name}
|
|
TASAKA Mamoru |
1a4fb8f |
Version: 0.11.26
|
|
|
0cfacdc |
Release: 7%{?dist}
|
|
TASAKA Mamoru |
1a4fb8f |
|
|
TASAKA Mamoru |
1a4fb8f |
Group: Development/Languages
|
|
TASAKA Mamoru |
1a4fb8f |
# LICENSE
|
|
TASAKA Mamoru |
1a4fb8f |
License: BSD
|
|
TASAKA Mamoru |
1a4fb8f |
URL: http://rubyforge.org/projects/ruby-debug19/
|
|
TASAKA Mamoru |
1a4fb8f |
# 0.11.25 on rubygems site doesn't work with ruby 1.9
|
|
TASAKA Mamoru |
1a4fb8f |
#Source0: http://rubygems.org/gems/%%{gem_name}-%%{version}.gem
|
|
TASAKA Mamoru |
1a4fb8f |
Source0: http://rubyforge.org/frs/download.php/%{repoid}/%{gem_name}-%{version}.gem
|
|
TASAKA Mamoru |
1a4fb8f |
# ruby-debug-base uses headers in ruby tarball which are not installed
|
|
TASAKA Mamoru |
1a4fb8f |
# by default...
|
|
TASAKA Mamoru |
1a4fb8f |
Source1: ftp://ftp.ruby-lang.org/pub/ruby/%{ruby_majorver}/ruby-%{ruby_fullver}.tar.gz
|
|
TASAKA Mamoru |
1a4fb8f |
Patch0: rubygem-ruby-debug-base19-0.11.26-dont_use_ruby_core_source.patch
|
|
TASAKA Mamoru |
1a4fb8f |
# Kill gcc warning for -Wsequence-point
|
|
TASAKA Mamoru |
1a4fb8f |
Patch1: rubygem-ruby-debug-base19-0.11.26-gcc47-undefined-behavior.patch
|
|
TASAKA Mamoru |
fea8b57 |
# ruby 2.0 patch
|
|
TASAKA Mamoru |
fea8b57 |
# From debugger 1.5.0 and https://github.com/cldwalker/debugger/pull/68
|
|
TASAKA Mamoru |
fea8b57 |
# and bit modified
|
|
TASAKA Mamoru |
fea8b57 |
# debugger 1.5.0 is under BSD
|
|
TASAKA Mamoru |
fea8b57 |
Patch2: rubygem-ruby-debug-base19-0.11.26-ruby20-from-debugger.patch
|
|
TASAKA Mamoru |
1a4fb8f |
|
|
TASAKA Mamoru |
fea8b57 |
Requires: ruby(release)
|
|
TASAKA Mamoru |
1a4fb8f |
Requires: ruby(rubygems)
|
|
TASAKA Mamoru |
1a4fb8f |
Requires: rubygem(linecache19) >= 0.5.13
|
|
TASAKA Mamoru |
fea8b57 |
BuildRequires: ruby(release)
|
|
TASAKA Mamoru |
1a4fb8f |
BuildRequires: rubygems-devel
|
|
TASAKA Mamoru |
1a4fb8f |
BuildRequires: ruby-devel
|
|
TASAKA Mamoru |
1a4fb8f |
# %%check
|
|
TASAKA Mamoru |
1a4fb8f |
BuildRequires: rubygem(linecache19)
|
|
TASAKA Mamoru |
1a4fb8f |
BuildRequires: rubygem(minitest)
|
|
TASAKA Mamoru |
1a4fb8f |
Provides: rubygem(%{gem_name}) = %{version}-%{release}
|
|
TASAKA Mamoru |
1a4fb8f |
# Obsolete this, not providing
|
|
TASAKA Mamoru |
1a4fb8f |
Obsoletes: rubygem-ruby-debug-base <= 0.10.5
|
|
TASAKA Mamoru |
1a4fb8f |
|
|
TASAKA Mamoru |
1a4fb8f |
%description
|
|
TASAKA Mamoru |
1a4fb8f |
ruby-debug is a fast implementation of the standard Ruby debugger debug.rb.
|
|
TASAKA Mamoru |
1a4fb8f |
It is implemented by utilizing a new Ruby C API hook. The core component
|
|
TASAKA Mamoru |
1a4fb8f |
provides support that front-ends can build on. It provides breakpoint
|
|
TASAKA Mamoru |
1a4fb8f |
handling, bindings for stack frames among other things.
|
|
TASAKA Mamoru |
1a4fb8f |
|
|
TASAKA Mamoru |
1a4fb8f |
|
|
TASAKA Mamoru |
1a4fb8f |
%package doc
|
|
TASAKA Mamoru |
1a4fb8f |
Summary: Documentation for %{name}
|
|
TASAKA Mamoru |
1a4fb8f |
Group: Documentation
|
|
TASAKA Mamoru |
1a4fb8f |
Requires: %{name} = %{version}-%{release}
|
|
TASAKA Mamoru |
1a4fb8f |
BuildArch: noarch
|
|
TASAKA Mamoru |
1a4fb8f |
# Obsolete this, not providing
|
|
TASAKA Mamoru |
1a4fb8f |
Obsoletes: rubygem-ruby-debug-base-doc <= 0.10.5
|
|
TASAKA Mamoru |
1a4fb8f |
|
|
TASAKA Mamoru |
1a4fb8f |
%description doc
|
|
TASAKA Mamoru |
1a4fb8f |
Documentation for %{name}
|
|
TASAKA Mamoru |
1a4fb8f |
|
|
TASAKA Mamoru |
1a4fb8f |
%prep
|
|
TASAKA Mamoru |
1a4fb8f |
%setup -q -c -T -a 1
|
|
TASAKA Mamoru |
1a4fb8f |
|
|
TASAKA Mamoru |
1a4fb8f |
# Gem repack
|
|
TASAKA Mamoru |
1a4fb8f |
TOPDIR=$(pwd)
|
|
TASAKA Mamoru |
1a4fb8f |
mkdir tmpunpackdir
|
|
TASAKA Mamoru |
1a4fb8f |
pushd tmpunpackdir
|
|
TASAKA Mamoru |
1a4fb8f |
|
|
TASAKA Mamoru |
1a4fb8f |
gem unpack %{SOURCE0}
|
|
TASAKA Mamoru |
1a4fb8f |
cd %{gem_name}-%{version}
|
|
TASAKA Mamoru |
1a4fb8f |
|
|
TASAKA Mamoru |
1a4fb8f |
# permission
|
|
TASAKA Mamoru |
1a4fb8f |
find . -type f -print0 | xargs --null chmod 0644
|
|
TASAKA Mamoru |
1a4fb8f |
|
|
TASAKA Mamoru |
1a4fb8f |
# shebang
|
|
TASAKA Mamoru |
1a4fb8f |
find ./lib -name \*.rb -print0 | \
|
|
TASAKA Mamoru |
1a4fb8f |
xargs --null sed -i -e '\@^#!%{_bindir}@d'
|
|
TASAKA Mamoru |
1a4fb8f |
|
|
TASAKA Mamoru |
1a4fb8f |
# Kill ruby_core_source dependency - this is
|
|
TASAKA Mamoru |
1a4fb8f |
# just to download ruby tarball
|
|
TASAKA Mamoru |
1a4fb8f |
gem specification -l --ruby %{SOURCE0} | \
|
|
TASAKA Mamoru |
1a4fb8f |
sed -e '\@columnize@d' -e '\@ruby_core_source@d' \
|
|
TASAKA Mamoru |
1a4fb8f |
> %{gem_name}.gemspec
|
|
TASAKA Mamoru |
1a4fb8f |
|
|
TASAKA Mamoru |
1a4fb8f |
# Patch
|
|
TASAKA Mamoru |
1a4fb8f |
%patch0 -p1
|
|
TASAKA Mamoru |
1a4fb8f |
%patch1 -p1
|
|
TASAKA Mamoru |
fea8b57 |
%patch2 -p1
|
|
TASAKA Mamoru |
1a4fb8f |
|
|
TASAKA Mamoru |
1a4fb8f |
gem build %{gem_name}.gemspec
|
|
TASAKA Mamoru |
1a4fb8f |
mv %{gem_name}-%{version}.gem $TOPDIR
|
|
TASAKA Mamoru |
1a4fb8f |
|
|
TASAKA Mamoru |
1a4fb8f |
popd
|
|
TASAKA Mamoru |
1a4fb8f |
rm -rf tmpunpackdir
|
|
TASAKA Mamoru |
1a4fb8f |
|
|
TASAKA Mamoru |
1a4fb8f |
# Kill unneeeded ruby files
|
|
TASAKA Mamoru |
1a4fb8f |
mkdir ruby_headers
|
|
TASAKA Mamoru |
1a4fb8f |
# So the actual files needed are header files and
|
|
TASAKA Mamoru |
1a4fb8f |
# inc file under
|
|
TASAKA Mamoru |
1a4fb8f |
# ruby-%%ruby_fullver directory only
|
|
TASAKA Mamoru |
1a4fb8f |
cp -p ruby-%{ruby_fullver}/{*.h,*.inc} ruby_headers/
|
|
TASAKA Mamoru |
1a4fb8f |
rm -rf ruby-%{ruby_fullver}/
|
|
TASAKA Mamoru |
1a4fb8f |
|
|
TASAKA Mamoru |
1a4fb8f |
%build
|
|
TASAKA Mamoru |
ce7654e |
export CONFIGURE_ARGS="--with-cflags=\"%{optflags} -I$(pwd)/ruby_headers\""
|
|
TASAKA Mamoru |
fea8b57 |
%gem_install
|
|
TASAKA Mamoru |
1a4fb8f |
|
|
TASAKA Mamoru |
1a4fb8f |
%install
|
|
TASAKA Mamoru |
1a4fb8f |
mkdir -p %{buildroot}%{gem_dir}
|
|
TASAKA Mamoru |
1a4fb8f |
cp -a .%{gem_dir}/* \
|
|
TASAKA Mamoru |
1a4fb8f |
%{buildroot}%{gem_dir}/
|
|
TASAKA Mamoru |
1a4fb8f |
|
|
TASAKA Mamoru |
fea8b57 |
mkdir -p %{buildroot}%{gem_extdir_mri}/lib
|
|
TASAKA Mamoru |
1a4fb8f |
mv \
|
|
TASAKA Mamoru |
1a4fb8f |
%{buildroot}%{gem_instdir}/lib/ruby_debug.so \
|
|
TASAKA Mamoru |
fea8b57 |
%{buildroot}%{gem_extdir_mri}/lib/
|
|
TASAKA Mamoru |
1a4fb8f |
|
|
TASAKA Mamoru |
1a4fb8f |
# Remove the binary extension sources and build leftovers.
|
|
TASAKA Mamoru |
1a4fb8f |
rm -rf %{buildroot}%{gem_instdir}/ext
|
|
TASAKA Mamoru |
1a4fb8f |
|
|
TASAKA Mamoru |
1a4fb8f |
%check
|
|
TASAKA Mamoru |
1a4fb8f |
pushd .%{gem_instdir}
|
|
TASAKA Mamoru |
fea8b57 |
testrb -Ilib test/base/*.rb || echo "Please investigate this"
|
|
TASAKA Mamoru |
1a4fb8f |
popd
|
|
TASAKA Mamoru |
1a4fb8f |
|
|
TASAKA Mamoru |
1a4fb8f |
%files
|
|
TASAKA Mamoru |
1a4fb8f |
%dir %{gem_instdir}
|
|
TASAKA Mamoru |
1a4fb8f |
%doc %{gem_instdir}/[A-Z]*
|
|
TASAKA Mamoru |
1a4fb8f |
%exclude %{gem_instdir}/Rakefile
|
|
TASAKA Mamoru |
1a4fb8f |
%{gem_libdir}
|
|
TASAKA Mamoru |
fea8b57 |
%dir %{gem_extdir_mri}
|
|
TASAKA Mamoru |
fea8b57 |
%dir %{gem_extdir_mri}/lib
|
|
TASAKA Mamoru |
fea8b57 |
%{gem_extdir_mri}/lib/ruby_debug.so
|
|
TASAKA Mamoru |
1a4fb8f |
%exclude %{gem_cache}
|
|
TASAKA Mamoru |
1a4fb8f |
%{gem_spec}
|
|
TASAKA Mamoru |
1a4fb8f |
|
|
TASAKA Mamoru |
1a4fb8f |
%files doc
|
|
TASAKA Mamoru |
1a4fb8f |
%{gem_docdir}/
|
|
TASAKA Mamoru |
1a4fb8f |
%exclude %{gem_instdir}/test/
|
|
TASAKA Mamoru |
1a4fb8f |
|
|
TASAKA Mamoru |
1a4fb8f |
%changelog
|
|
|
0cfacdc |
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11.26-7
|
|
|
0cfacdc |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
0cfacdc |
|
|
|
5e7dc3b |
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11.26-6
|
|
|
5e7dc3b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
5e7dc3b |
|
|
TASAKA Mamoru |
fea8b57 |
* Thu Mar 28 2013 Mamoru TASAKA <mtasaka@fedoraproject.org> - 0.11.26-5
|
|
TASAKA Mamoru |
fea8b57 |
- F-19: rebuild for ruby 2.0.0
|
|
TASAKA Mamoru |
fea8b57 |
- Patch for ruby 2.0.0 from debugger 1.5.0
|
|
TASAKA Mamoru |
fea8b57 |
|
|
|
3d47806 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11.26-4
|
|
|
3d47806 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
3d47806 |
|
|
TASAKA Mamoru |
1a4fb8f |
* Thu Oct 25 2012 Mamoru Tasaka <mtasaka@fedoraproject.org> - 0.11.26-3
|
|
TASAKA Mamoru |
1a4fb8f |
- Use latest ruby source
|
|
TASAKA Mamoru |
1a4fb8f |
|
|
TASAKA Mamoru |
1a4fb8f |
* Fri Sep 14 2012 Mamoru Tasaka <mtasaka@fedoraproject.org> - 0.11.26-2
|
|
TASAKA Mamoru |
1a4fb8f |
- A bit clean up
|
|
TASAKA Mamoru |
1a4fb8f |
|
|
TASAKA Mamoru |
1a4fb8f |
* Thu May 3 2012 Mamoru Tasaka <mtasaka@fedoraproject.org> - 0.11.26-1
|
|
TASAKA Mamoru |
1a4fb8f |
- Initial package
|