summaryrefslogtreecommitdiffstats
path: root/rubygem-RedCloth.spec
blob: b920b2c42f10b3fea75e89c82478460e201fcbc8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Generated from RedCloth-4.1.9.gem by gem2rpm -*- rpm-spec -*-
%define ruby_sitelib %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']")
%define gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
%define gemname RedCloth
%define geminstdir %{gemdir}/gems/%{gemname}-%{version}

Summary: RedCloth-4.1.9 - Textile parser for Ruby. http://redcloth.org/
Name: rubygem-%{gemname}
Version: 4.1.9
Release: 1%{?dist}
Group: Development/Languages
License: GPLv2+ or Ruby
URL: http://redcloth.org
Source0: http://gems.rubyforge.org/gems/%{gemname}-%{version}.gem
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: rubygems
BuildRequires: rubygems
Provides: rubygem(%{gemname}) = %{version}

%description
RedCloth-4.1.9 - Textile parser for Ruby. http://redcloth.org/


%prep

%build

%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{gemdir}
gem install --local --install-dir %{buildroot}%{gemdir} \
            --force --rdoc %{SOURCE0}
mkdir -p %{buildroot}/%{_bindir}
mv %{buildroot}%{gemdir}/bin/* %{buildroot}/%{_bindir}
rmdir %{buildroot}%{gemdir}/bin
find %{buildroot}%{geminstdir}/bin -type f | xargs chmod a+x

%clean
rm -rf %{buildroot}

%files
%defattr(-, root, root, -)
%{_bindir}/redcloth
%{gemdir}/gems/%{gemname}-%{version}/
%doc %{gemdir}/doc/%{gemname}-%{version}
%doc %{geminstdir}/CHANGELOG
%doc %{geminstdir}/lib/case_sensitive_require/RedCloth.rb
%doc %{geminstdir}/lib/redcloth/erb_extension.rb
%doc %{geminstdir}/lib/redcloth/formatters/base.rb
%doc %{geminstdir}/lib/redcloth/formatters/html.rb
%doc %{geminstdir}/lib/redcloth/formatters/latex.rb
%doc %{geminstdir}/lib/redcloth/textile_doc.rb
%doc %{geminstdir}/lib/redcloth/version.rb
%doc %{geminstdir}/lib/redcloth.rb
%doc %{geminstdir}/README
%{gemdir}/cache/%{gemname}-%{version}.gem
%{gemdir}/specifications/%{gemname}-%{version}.gemspec


%changelog
* Wed Apr 01 2009 Hans Ulrich Niedermann <hun@n-dimensional.de> - 4.1.9-1
- Initial package