rubygem-kramdown/rubygem-kramdown.spec

155 lines
3.7 KiB
RPMSpec
Raw Normal View History

2013-11-20 05:54:00 +00:00
# Generated from kramdown-1.2.0.gem by gem2rpm -*- rpm-spec -*-
%global gem_name kramdown
2014-08-13 01:26:09 +00:00
%if 0%{?fedora} >= 21
%define gem_minitest rubygem(minitest4)
%else
%define gem_minitest rubygem(minitest)
%endif
2013-11-20 05:54:00 +00:00
Name: rubygem-%{gem_name}
2016-03-06 07:36:04 +00:00
Version: 1.10.0
Release: 1%{?dist}
2013-11-20 05:54:00 +00:00
Summary: Fast, pure-Ruby Markdown-superset converter
License: MIT
URL: http://kramdown.rubyforge.org
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires: ruby(release)
BuildRequires: rubygems-devel
2014-08-13 01:26:09 +00:00
BuildRequires: %gem_minitest
2013-11-20 05:54:00 +00:00
Requires: ruby(release)
Requires: ruby(rubygems)
BuildArch: noarch
Provides: rubygem(%{gem_name}) = %{version}-%{release}
%description
kramdown is yet-another-markdown-parser but fast, pure Ruby,
using a strict syntax definition and supporting several common extensions.
%package doc
Summary: Documentation for %{name}
Requires: %{name} = %{version}-%{release}
BuildArch: noarch
%description doc
Documentation for %{name}
%prep
gem unpack %{SOURCE0}
%setup -q -D -T -n %{gem_name}-%{version}
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
%build
gem build %{gem_name}.gemspec
%gem_install
%install
mkdir -p %{buildroot}%{gem_dir}
cp -pa .%{gem_dir}/* \
%{buildroot}%{gem_dir}/
mkdir -p %{buildroot}%{_bindir}
cp -pa .%{_bindir}/* \
%{buildroot}%{_bindir}/
find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
# Move man pages
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{gem_instdir}/man/man1/kramdown.1 \
%{buildroot}%{_mandir}/man1
# Cleanup
pushd %{buildroot}%{gem_instdir}
rm -rf \
setup.rb Rakefile \
benchmark/ \
test/
%check
LANG=en_US.utf8
pushd .%{gem_instdir}
2014-08-13 01:26:09 +00:00
%if 0%{?fedora} >= 21
sed -i.minitest \
-e "\@require 'kramdown'@i gem 'minitest', '~> 4'" \
test/run_tests.rb
%endif
2013-11-20 05:54:00 +00:00
# Some tests seem to be failing, need investigating
ruby -Ilib:test:. --verbose test/run_tests.rb 2>&1 | tee test-result.log
2014-02-21 19:44:37 +00:00
cat test-result.log | grep FAILED && echo "Please investigate this" || true
2013-11-20 05:54:00 +00:00
popd
%files
%dir %{gem_instdir}
%doc %{gem_instdir}/[A-Z]*
%{_bindir}/kramdown
%{gem_instdir}/bin
%{_mandir}/man1/kramdown.1*
%{gem_libdir}/
%{gem_instdir}/data/
%exclude %{gem_cache}
%{gem_spec}
%files doc
%doc %{gem_docdir}
%doc %{gem_instdir}/doc/
%changelog
2016-03-06 07:36:04 +00:00
* Sun Mar 6 2016 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.10.0-1
- 1.10.0
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
2015-10-04 05:33:09 +00:00
* Sun Oct 4 2015 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.9.0-1
- 1.9.0
2015-07-06 04:00:39 +00:00
* Mon Jul 6 2015 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.8.0-1
- 1.8.0
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
2015-04-29 07:03:24 +00:00
* Wed Apr 29 2015 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.7.0-1
- 1.7.0
2015-03-01 06:11:08 +00:00
* Sun Mar 1 2015 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.6.0-1
- 1.6.0
2014-11-07 10:40:43 +00:00
* Fri Nov 7 2014 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.5.0-1
- 1.5.0
2014-09-21 17:44:23 +00:00
* Mon Sep 22 2014 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.4.2-1
- 1.4.2
2014-08-13 01:26:09 +00:00
* Wed Aug 13 2014 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.4.1-1
- 1.4.1
2014-06-27 05:13:10 +00:00
* Fri Jun 27 2014 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.4.0-1
- 1.4.0
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
2014-03-19 09:59:51 +00:00
* Wed Mar 19 2014 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.3.3-1
- 1.3.3
2014-02-21 19:44:37 +00:00
* Sat Feb 22 2014 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.3.2-1
- 1.3.2
2014-01-09 08:14:33 +00:00
* Thu Jan 09 2014 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.3.1-1
- 1.3.1
2013-12-12 05:52:45 +00:00
* Thu Dec 12 2013 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.3.0-1
- 1.3.0
2013-11-20 05:54:00 +00:00
* Fri Nov 15 2013 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.2.0-1
- Initial package