|
|
@ -1,13 +1,13 @@
|
|
|
|
%global gem_name builder
|
|
|
|
%global gem_name builder
|
|
|
|
|
|
|
|
|
|
|
|
Summary: Builders for MarkUp
|
|
|
|
|
|
|
|
Name: rubygem-%{gem_name}
|
|
|
|
Name: rubygem-%{gem_name}
|
|
|
|
Version: 3.2.2
|
|
|
|
Version: 3.2.3
|
|
|
|
Release: 5%{?dist}
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
|
|
|
Summary: Builders for MarkUp
|
|
|
|
Group: Development/Languages
|
|
|
|
Group: Development/Languages
|
|
|
|
License: MIT
|
|
|
|
License: MIT
|
|
|
|
URL: http://onestepback.org
|
|
|
|
URL: http://onestepback.org
|
|
|
|
Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|
|
|
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|
|
|
# Builder carries copy of Blankslate, which was in the meantime extracted into
|
|
|
|
# Builder carries copy of Blankslate, which was in the meantime extracted into
|
|
|
|
# independent gem.
|
|
|
|
# independent gem.
|
|
|
|
# https://github.com/jimweirich/builder/issues/24
|
|
|
|
# https://github.com/jimweirich/builder/issues/24
|
|
|
@ -19,7 +19,7 @@ Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|
|
|
BuildRequires: ruby(release)
|
|
|
|
BuildRequires: ruby(release)
|
|
|
|
BuildRequires: rubygems-devel
|
|
|
|
BuildRequires: rubygems-devel
|
|
|
|
BuildRequires: ruby
|
|
|
|
BuildRequires: ruby
|
|
|
|
BuildRequires: rubygem(minitest) < 5
|
|
|
|
BuildRequires: rubygem(minitest)
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
@ -28,6 +28,7 @@ data simple to do. Currently the following builder objects are supported:
|
|
|
|
* XML Markup
|
|
|
|
* XML Markup
|
|
|
|
* XML Events
|
|
|
|
* XML Events
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
%package doc
|
|
|
|
Summary: Documentation for %{name}
|
|
|
|
Summary: Documentation for %{name}
|
|
|
|
Group: Documentation
|
|
|
|
Group: Documentation
|
|
|
@ -35,7 +36,7 @@ Requires: %{name} = %{version}-%{release}
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
%description doc
|
|
|
|
Documentation for %{name}
|
|
|
|
Documentation for %{name}.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -q -c -T
|
|
|
|
%setup -q -c -T
|
|
|
@ -58,39 +59,12 @@ chmod -x %{buildroot}%{gem_instdir}/doc/releases/builder-2.1.1.rdoc
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
pushd .%{gem_instdir}
|
|
|
|
pushd .%{gem_instdir}
|
|
|
|
|
|
|
|
ruby -Ilib:test -e 'Dir.glob "./test/test_*.rb", &method(:require)'
|
|
|
|
ruby -rminitest/autorun -I.:lib:test - << \EOF
|
|
|
|
|
|
|
|
module Kernel
|
|
|
|
|
|
|
|
alias orig_require require
|
|
|
|
|
|
|
|
remove_method :require
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def require path
|
|
|
|
|
|
|
|
orig_require path unless path == 'test/unit'
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
Test = Minitest
|
|
|
|
|
|
|
|
module Test
|
|
|
|
|
|
|
|
class Unit
|
|
|
|
|
|
|
|
class TestCase
|
|
|
|
|
|
|
|
alias :assert_raise :assert_raises
|
|
|
|
|
|
|
|
def assert_nothing_raised
|
|
|
|
|
|
|
|
yield
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def assert_not_nil exp, msg=nil
|
|
|
|
|
|
|
|
msg = message(msg) { "<#{mu_pp(exp)}> expected to not be nil" }
|
|
|
|
|
|
|
|
assert(!exp.nil?, msg)
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
Dir.glob "./test/test_*.rb", &method(:require)
|
|
|
|
|
|
|
|
EOF
|
|
|
|
|
|
|
|
popd
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%files
|
|
|
|
%dir %{gem_instdir}
|
|
|
|
%dir %{gem_instdir}
|
|
|
|
%doc %{gem_instdir}/MIT-LICENSE
|
|
|
|
%license %{gem_instdir}/MIT-LICENSE
|
|
|
|
%{gem_libdir}
|
|
|
|
%{gem_libdir}
|
|
|
|
%exclude %{gem_cache}
|
|
|
|
%exclude %{gem_cache}
|
|
|
|
%{gem_spec}
|
|
|
|
%{gem_spec}
|
|
|
@ -99,13 +73,15 @@ popd
|
|
|
|
%doc %{gem_docdir}
|
|
|
|
%doc %{gem_docdir}
|
|
|
|
%doc %{gem_instdir}/CHANGES
|
|
|
|
%doc %{gem_instdir}/CHANGES
|
|
|
|
%doc %{gem_instdir}/README.md
|
|
|
|
%doc %{gem_instdir}/README.md
|
|
|
|
%doc %{gem_instdir}/Rakefile
|
|
|
|
%{gem_instdir}/Rakefile
|
|
|
|
%doc %{gem_instdir}/doc/
|
|
|
|
%doc %{gem_instdir}/doc
|
|
|
|
%doc %{gem_instdir}/rakelib/
|
|
|
|
%{gem_instdir}/rakelib
|
|
|
|
%{gem_instdir}/test/
|
|
|
|
%{gem_instdir}/test
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Mon Jan 16 2017 Vít Ondruch <vondruch@redhat.com> - 3.2.3-1
|
|
|
|
|
|
|
|
- Update to Builder 3.2.3.
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.2-5
|
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.2-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|