File rubygem-RedCloth.spec of Package rubygem-RedCloth

#
# spec file for package rubygem-RedCloth (Version 4.2.3)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           rubygem-RedCloth
Version:        4.2.3
Release:        1
%define mod_name RedCloth
#
Group:          Development/Languages/Ruby
License:        BSD3c
#
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  rubygems_with_buildroot_patch
%rubygems_requires

Requires:       ruby >= 1.8.4
BuildRequires:  ruby-devel >= 1.8.4
#
Url:            http://redcloth.org
Source:         %{mod_name}-%{version}.gem
Source1:        rubygem-RedCloth-rpmlintrc
#
Summary:        RedCloth is a module for using Textile and Markdown in Ruby

%description
Textile and Markdown are text formats.	A very simple text format.
Another stab at making readable text that can be converted to HTML.

No need to use verbose HTML to build your docs, your blogs, your pages.
 Textile gives you readable text while you're writing and beautiful
text for your readers. And if you need to break out into HTML, Textile
will allow you to do so. Textile also handles some subtleties of
formatting which will enhance your document's readability:

* Single- and double-quotes around words or phrases are converted to
   curly quotations, much easier on the eye.  "Observe!"

* Double hyphens are replaced with an em-dash.	Observe -- very
   nice!

* Single hyphens are replaced with en-dashes. Observe - so cute!

* Triplets of periods become an ellipsis.  Observe...


_(TM)== to (TM), ==(R)== to (R), ==(C)_



Authors:
--------
    why the lucky stiff <why@ruby-lang.org>

%prep

%build

%install
%gem_install %{S:0}
perl -p -i -e 's|/usr/bin/ruby18|/usr/bin/ruby|g' \
    %{buildroot}%{_bindir}/redcloth \
    %{buildroot}%{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_name}-%{version}/bin/redcloth

%gem_cleanup

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-,root,root,-)
%{_bindir}/redcloth
%{_libdir}/ruby/gems/%{rb_ver}/cache/%{mod_name}-%{version}.gem
%{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_name}-%{version}/
%{_libdir}/ruby/gems/%{rb_ver}/specifications/%{mod_name}-%{version}.gemspec
%doc %{_libdir}/ruby/gems/%{rb_ver}/doc/%{mod_name}-%{version}/

%changelog
openSUSE Build Service is sponsored by