# Generated from bluecloth-2.2.0.gem by gem2rpm -*- rpm-spec -*- %global gem_name bluecloth Name: rubygem-%{gem_name} Version: 2.2.0 Release: 1%{?dist} Summary: BlueCloth is a Ruby implementation of John Gruber's Markdown[http://daringfireball.net/projects/markdown/], a text-to-HTML conversion tool for web writers License: BSD URL: http://deveiate.org/projects/BlueCloth Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby-devel >= 1.8.7 # Compiler is required for build of gem binary extension. # https://fedoraproject.org/wiki/Packaging:C_and_C++#BuildRequires_and_Requires BuildRequires: gcc # BuildRequires: rubygem(hoe-mercurial) >= 1.3.1 # BuildRequires: rubygem(hoe-mercurial) < 1.4 # BuildRequires: rubygem(hoe-highline) >= 0.0.1 # BuildRequires: rubygem(hoe-highline) < 0.1 # BuildRequires: rubygem(tidy-ext) >= 0.1 # BuildRequires: rubygem(tidy-ext) < 1 # BuildRequires: rubygem(rake-compiler) >= 0.7 # BuildRequires: rubygem(rake-compiler) < 1 # BuildRequires: rubygem(rspec) >= 2.6 # BuildRequires: rubygem(rspec) < 3 # BuildRequires: rubygem(hoe) >= 2.12 # BuildRequires: rubygem(hoe) < 3 %description BlueCloth is a Ruby implementation of John Gruber's Markdown[http://daringfireball.net/projects/markdown/], a text-to-HTML conversion tool for web writers. To quote from the project page: Markdown allows you to write using an easy-to-read, easy-to-write plain text format, then convert it to structurally valid XHTML (or HTML). It borrows a naming convention and several helpings of interface from {Redcloth}[http://redcloth.org/], Why the Lucky Stiff's processor for a similar text-to-HTML conversion syntax called Textile[http://www.textism.com/tools/textile/]. BlueCloth 2 is a complete rewrite using David Parsons' Discount[http://www.pell.portland.or.us/~orc/Code/discount/] library, a C implementation of Markdown. I rewrote it using the extension for speed and accuracy; the original BlueCloth was a straight port from the Perl version that I wrote in a few days for my own use just to avoid having to shell out to Markdown.pl, and it was quite buggy and slow. I apologize to all the good people that sent me patches for it that were never released. Note that the new gem is called 'bluecloth' and the old one 'BlueCloth'. If you have both installed, you can ensure you're loading the new one with the 'gem' directive: # Load the 2.0 version gem 'bluecloth', '>= 2.0.0' # Load the 1.0 version gem 'BlueCloth' require 'bluecloth'. %package doc Summary: Documentation for %{name} Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for %{name}. %prep %setup -q -n %{gem_name}-%{version} %build # Create the gem as gem install only works on a gem file gem build ../%{gem_name}-%{version}.gemspec # %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir # by default, so that we can move it into the buildroot in %%install %gem_install %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,*.so} %{buildroot}%{gem_extdir_mri}/ # Prevent dangling symlink in -debuginfo (rhbz#878863). rm -rf %{buildroot}%{gem_instdir}/ext/ mkdir -p %{buildroot}%{_bindir} cp -a .%{_bindir}/* \ %{buildroot}%{_bindir}/ find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x %check pushd .%{gem_instdir} # rspec spec popd %files %dir %{gem_instdir} %{_bindir}/bluecloth %{gem_extdir_mri} %exclude %{gem_instdir}/.gemtest %license %{gem_instdir}/LICENSE %license %{gem_instdir}/LICENSE.discount %{gem_instdir}/Manifest.txt %{gem_instdir}/bin %{gem_instdir}/bluecloth.1.pod %{gem_libdir} %{gem_instdir}/man %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %exclude %{gem_instdir}/.rspec %doc %{gem_instdir}/History.rdoc %doc %{gem_instdir}/README.rdoc %{gem_instdir}/Rakefile %{gem_instdir}/spec %changelog * Sun Sep 12 2021 mockbuilder - 2.2.0-1 - Initial package