This commit is contained in:
Mamoru TASAKA 2014-08-13 10:26:09 +09:00
parent 7fc2c620ee
commit 3206584503
3 changed files with 19 additions and 3 deletions

1
.gitignore vendored
View File

@ -4,3 +4,4 @@
/kramdown-1.3.2.gem
/kramdown-1.3.3.gem
/kramdown-1.4.0.gem
/kramdown-1.4.1.gem

View File

@ -1,8 +1,13 @@
# Generated from kramdown-1.2.0.gem by gem2rpm -*- rpm-spec -*-
%global gem_name kramdown
%if 0%{?fedora} >= 21
%define gem_minitest rubygem(minitest4)
%else
%define gem_minitest rubygem(minitest)
%endif
Name: rubygem-%{gem_name}
Version: 1.4.0
Version: 1.4.1
Release: 1%{?dist}
Summary: Fast, pure-Ruby Markdown-superset converter
@ -11,7 +16,7 @@ URL: http://kramdown.rubyforge.org
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires: ruby(release)
BuildRequires: rubygems-devel
BuildRequires: rubygem(minitest)
BuildRequires: %gem_minitest
Requires: ruby(release)
Requires: ruby(rubygems)
BuildArch: noarch
@ -66,6 +71,13 @@ rm -rf \
LANG=en_US.utf8
pushd .%{gem_instdir}
%if 0%{?fedora} >= 21
sed -i.minitest \
-e "\@require 'kramdown'@i gem 'minitest', '~> 4'" \
test/run_tests.rb
%endif
# Some tests seem to be failing, need investigating
ruby -Ilib:test:. --verbose test/run_tests.rb 2>&1 | tee test-result.log
cat test-result.log | grep FAILED && echo "Please investigate this" || true
@ -90,6 +102,9 @@ popd
%doc %{gem_instdir}/doc/
%changelog
* Wed Aug 13 2014 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.4.1-1
- 1.4.1
* Fri Jun 27 2014 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.4.0-1
- 1.4.0

View File

@ -1 +1 @@
b2e55511575fe5b29e1a436a37e1c34a kramdown-1.4.0.gem
1a54b449b83bcd753e8c0768b993cf23 kramdown-1.4.1.gem