File rubygem-RedCloth.spec of Package rubygem-RedCloth

#
# spec file for package rubygem-RedCloth (Version 3.0.4)
#
# Copyright (c) 2008 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
%define mod_name RedCloth
#
Version:        3.0.4
Release:        217
#
Group:          Development/Languages/Ruby
License:        BSD 3-Clause
#
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  rubygems_with_buildroot_patch
Requires:       rubygems >= 0.8.11
#
Url:            http://www.whytheluckystiff.net/ruby/redcloth/
Source:         http://rubyforge.org/frs/download.php/6063/RedCloth-3.0.4.gem
#
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 --build-root=%{buildroot} %{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

%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
* Thu Nov 06 2008 mrueckert@suse.de
- Fix build: we dont have ruby18
* Wed Jun 21 2006 mrueckert@suse.de
- use rubygems_with_buildroot_patch instead of the versioned
  buildrequires
* Mon Jun 19 2006 mrueckert@suse.de
- Initial package version 3.0.4
openSUSE Build Service is sponsored by