]>
Commit | Line | Data |
---|---|---|
2f070126 | 1 | # TODO |
2 | # - rake doc | |
3 | # (in /home/users/z/rpm/BUILD/ruby-discount-1.2.7) hanna --charset utf8 --fmt html --inline-source --line-numbers --main RDiscount --op doc --title 'RDiscount API Documentation' lib/rdiscount.rb lib/markdown.rb sh: hanna: not found | |
4 | # rake aborted! | |
5 | # | |
6 | %define pkgname rdiscount | |
7 | Summary: Discount Markdown Processor for Ruby | |
8 | Name: ruby-rdiscount | |
9 | Version: 1.2.7 | |
2f38e19b | 10 | Release: 1 |
2f070126 | 11 | License: BSD-style |
2f38e19b | 12 | Source0: http://github.com/rtomayko/rdiscount/tarball/v%{version}/%{name}-%{version}.tar.gz |
2f070126 | 13 | # Source0-md5: 85edbb9768bfa7e36455dbf8749dccae |
14 | Patch0: %{name}-ruby1.9.patch | |
15 | Group: Development/Languages | |
16 | URL: http://github.com/rtomayko/rdiscount | |
d87af65b ER |
17 | BuildRequires: rpm-rubyprov |
18 | BuildRequires: rpmbuild(macros) >= 1.665 | |
a83c7ea4 | 19 | BuildRequires: ruby >= 1:1.9 |
0336db61 | 20 | BuildRequires: ruby-devel |
2f070126 | 21 | BuildRequires: ruby-modules |
22 | BuildRequires: setup.rb | |
2f070126 | 23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
24 | ||
25 | %description | |
26 | Discount Markdown Processor for Ruby. | |
27 | ||
28 | %package -n rdiscount | |
29 | Summary: Markdown processor | |
30 | Group: Applications/Publishing | |
31 | Requires: %{name} = %{version}-%{release} | |
32 | ||
2f38e19b | 33 | %description -n rdiscount |
2f070126 | 34 | Markdown processor. |
35 | ||
36 | %package rdoc | |
37 | Summary: HTML documentation for %{pkgname} | |
38 | Summary(pl.UTF-8): Dokumentacja w formacie HTML dla %{pkgname} | |
39 | Group: Documentation | |
40 | Requires: ruby >= 1:1.8.7-4 | |
2f38e19b ER |
41 | %if "%{_rpmversion}" >= "5" |
42 | BuildArch: noarch | |
43 | %endif | |
2f070126 | 44 | |
45 | %description rdoc | |
46 | HTML documentation for %{pkgname}. | |
47 | ||
48 | %description rdoc -l pl.UTF-8 | |
49 | Dokumentacja w formacie HTML dla %{pkgname}. | |
50 | ||
51 | %package ri | |
52 | Summary: ri documentation for %{pkgname} | |
53 | Summary(pl.UTF-8): Dokumentacja w formacie ri dla %{pkgname} | |
54 | Group: Documentation | |
55 | Requires: ruby | |
2f38e19b ER |
56 | %if "%{_rpmversion}" >= "5" |
57 | BuildArch: noarch | |
58 | %endif | |
2f070126 | 59 | |
60 | %description ri | |
61 | ri documentation for %{pkgname}. | |
62 | ||
63 | %description ri -l pl.UTF-8 | |
64 | Dokumentacji w formacie ri dla %{pkgname}. | |
65 | ||
66 | %prep | |
67 | %setup -q -c | |
68 | mv rtomayko-rdiscount-*/* . | |
2f070126 | 69 | %patch0 -p1 |
70 | ||
71 | %build | |
2f070126 | 72 | cp %{_datadir}/setup.rb . |
73 | ||
2f38e19b ER |
74 | %{__ruby} setup.rb config \ |
75 | --rbdir=%{ruby_vendorlibdir} \ | |
76 | --sodir=%{ruby_vendorarchdir} | |
2f070126 | 77 | |
2f38e19b | 78 | %{__ruby} setup.rb setup |
2f070126 | 79 | |
80 | rdoc --ri --op ri lib | |
81 | rdoc --op rdoc lib | |
2f38e19b | 82 | rm -r ri/Object |
2f070126 | 83 | rm ri/created.rid |
2f38e19b | 84 | rm ri/cache.ri |
2f070126 | 85 | |
86 | %install | |
87 | rm -rf $RPM_BUILD_ROOT | |
2f38e19b | 88 | install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir},%{ruby_ridir},%{ruby_rdocdir}} |
2f070126 | 89 | cp -a ri/* $RPM_BUILD_ROOT%{ruby_ridir} |
90 | cp -a rdoc $RPM_BUILD_ROOT%{ruby_rdocdir}/%{name}-%{version} | |
91 | ||
2f38e19b | 92 | %{__ruby} setup.rb install \ |
2f070126 | 93 | --prefix=$RPM_BUILD_ROOT |
94 | ||
95 | %clean | |
96 | rm -rf $RPM_BUILD_ROOT | |
97 | ||
98 | %files | |
99 | %defattr(644,root,root,755) | |
100 | %doc COPYING README.markdown | |
2f38e19b ER |
101 | %{ruby_vendorlibdir}/markdown.rb |
102 | %{ruby_vendorlibdir}/rdiscount.rb | |
103 | %attr(755,root,root) %{ruby_vendorarchdir}/rdiscount.so | |
2f070126 | 104 | |
105 | %files -n rdiscount | |
106 | %defattr(644,root,root,755) | |
107 | %attr(755,root,root) %{_bindir}/rdiscount | |
108 | ||
109 | %files rdoc | |
110 | %defattr(644,root,root,755) | |
111 | %{ruby_rdocdir}/%{name}-%{version} | |
112 | ||
113 | %files ri | |
114 | %defattr(644,root,root,755) | |
115 | %{ruby_ridir}/RDiscount |