1 | %define emacsen_pkg 1 |
---|
2 | %{?without_emacsen: %define emacsen_pkg 0} |
---|
3 | |
---|
4 | %if %{emacsen_pkg} |
---|
5 | %undefine without_emacsen |
---|
6 | %else |
---|
7 | %define without_emacsen 1 |
---|
8 | %endif |
---|
9 | %define rdmode rd-mode |
---|
10 | %define rdmode_el rd-mode |
---|
11 | |
---|
12 | Summary: RD document formatter |
---|
13 | Name: rdtool |
---|
14 | Version: 0.6.38 |
---|
15 | Release: 1%{?_dist_release} |
---|
16 | License: GPLv2+ or Ruby's |
---|
17 | Group: Development/Tools |
---|
18 | # https://github.com/uwabami/rdtool/releases |
---|
19 | Source0: rdtool-%{version}.tar.gz |
---|
20 | Source1: %{rdmode_el}-install.sh |
---|
21 | Source2: %{rdmode_el}-remove.sh |
---|
22 | Source3: vine-default-%{rdmode_el}.el |
---|
23 | Source4: %{rdmode_el}-init.el |
---|
24 | URL: http://uwabami.github.io/rdtool/ |
---|
25 | BuildArch: noarch |
---|
26 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
27 | BuildRequires: ruby, ruby-devel >= 1.8.0 |
---|
28 | Requires: libruby >= 1.8.0, ruby, sh-utils |
---|
29 | Summary(ja): RDドキュメントのフォーマッタ |
---|
30 | |
---|
31 | %description |
---|
32 | RD is Ruby's POD. RDtool is formatter for RD. |
---|
33 | |
---|
34 | %description -l ja |
---|
35 | RD は Ruby においての POD です.RDtool は RD ドキュメントを |
---|
36 | 様々な形式に変換するためのツールです. |
---|
37 | |
---|
38 | Vendor: Project Vine |
---|
39 | Distribution: Vine Linux |
---|
40 | Packager: iwaim |
---|
41 | |
---|
42 | %if %{emacsen_pkg} |
---|
43 | %package -n %{rdmode_el} |
---|
44 | Summary: Emacsen major-mode for RD documents |
---|
45 | Summary: RDドキュメントのためのEmacsen用メジャーモード |
---|
46 | Group: Applications/Editors/Emacs |
---|
47 | Requires: emacsen, emacsen-common >= 0.1 |
---|
48 | |
---|
49 | %description -n %{rdmode_el} |
---|
50 | Emacsen major mode rd-mode for the RD documents |
---|
51 | |
---|
52 | %description -n %{rdmode_el} -l ja |
---|
53 | RDドキュメントのためのEmacsen用メジャーモード: rd-mode |
---|
54 | |
---|
55 | %endif |
---|
56 | |
---|
57 | %prep |
---|
58 | %setup -q |
---|
59 | |
---|
60 | %build |
---|
61 | |
---|
62 | %install |
---|
63 | rm -rf $RPM_BUILD_ROOT |
---|
64 | %{__ruby} setup.rb all --bindir=%{buildroot}%{rbindir} \ |
---|
65 | --rbdir=%{buildroot}%{rlibdir} |
---|
66 | # fix missing rd/dot.rd2rc |
---|
67 | install -m 0644 lib/rd/dot.rd2rc %{buildroot}%{rlibdir}/rd |
---|
68 | |
---|
69 | %if %{emacsen_pkg} |
---|
70 | mkdir -p $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp/%{rdmode} |
---|
71 | mkdir -p $RPM_BUILD_ROOT%{emacsen_pkgdir}/install |
---|
72 | mkdir -p $RPM_BUILD_ROOT%{emacsen_pkgdir}/remove |
---|
73 | %endif |
---|
74 | |
---|
75 | # fixing `#!' paths |
---|
76 | for f in `find . -type f` |
---|
77 | do |
---|
78 | sed -e 's,^#![ ]*\([^ ]*\)/\(ruby\|with\|perl\|env\),#!/usr/bin/\2,' < $f > $f.n |
---|
79 | mv -f $f.n $f |
---|
80 | done |
---|
81 | |
---|
82 | # installing rd-mode |
---|
83 | %if %{emacsen_pkg} |
---|
84 | cp utils/*.el %{SOURCE3} %{SOURCE4} $RPM_BUILD_ROOT/%{_datadir}/emacs/site-lisp/%{rdmode} |
---|
85 | |
---|
86 | %_installemacsenscript %{rdmode} %{SOURCE1} |
---|
87 | |
---|
88 | %_removeemacsenscript %{rdmode} %{SOURCE2} |
---|
89 | |
---|
90 | %endif |
---|
91 | |
---|
92 | %if %{emacsen_pkg} |
---|
93 | %post -n %{rdmode_el} |
---|
94 | if [ "$1" = 2 ]; then |
---|
95 | %_emacsenPackageRemove %{rdmode} |
---|
96 | |
---|
97 | fi |
---|
98 | |
---|
99 | %_addemacsenlist %{rdmode} |
---|
100 | |
---|
101 | %_emacsenPackageInstall %{rdmode} |
---|
102 | |
---|
103 | |
---|
104 | %preun -n %{rdmode_el} |
---|
105 | if [ "$1" = 0 ]; then |
---|
106 | %_emacsenPackageRemove %{rdmode} |
---|
107 | |
---|
108 | %_removeemacsenlist %{rdmode} |
---|
109 | |
---|
110 | fi |
---|
111 | %endif |
---|
112 | |
---|
113 | %clean |
---|
114 | rm -rf ${RPM_BUILD_ROOT} |
---|
115 | |
---|
116 | %files |
---|
117 | %defattr(-, root, root) |
---|
118 | %{_bindir}/* |
---|
119 | %{rlibdir}/rd |
---|
120 | %doc HISTORY |
---|
121 | %doc README.rd |
---|
122 | %doc README.rd.ja |
---|
123 | %doc doc/rd-draft.rd |
---|
124 | %doc doc/rd-draft.rd.ja |
---|
125 | %doc LICENSE.txt |
---|
126 | %doc COPYING.txt |
---|
127 | %doc LGPL-2.1 |
---|
128 | |
---|
129 | %if %{emacsen_pkg} |
---|
130 | %files -n %{rdmode_el} |
---|
131 | %defattr(-, root, root) |
---|
132 | %{_datadir}/emacs/site-lisp/%{rdmode} |
---|
133 | %{emacsen_pkgdir}/install/%{rdmode} |
---|
134 | %{emacsen_pkgdir}/remove/%{rdmode} |
---|
135 | %endif |
---|
136 | |
---|
137 | %changelog |
---|
138 | * Wed May 6 2015 IWAI, Masaharu <iwaim.sub@gmail.com> 0.6.38-1 |
---|
139 | - update to 0.6.38 |
---|
140 | - update License tag |
---|
141 | - update URL and Source0 tag; upstream moved |
---|
142 | - add document files |
---|
143 | |
---|
144 | * Thu Aug 5 2010 IWAI, Masaharu <iwai@alib.jp> 0.6.22-3 |
---|
145 | - fix global-font-lock-mode argument in vine-default-rd-mode.el |
---|
146 | - fix: install vine-default file in rd-mode-install.el |
---|
147 | |
---|
148 | * Fri Mar 19 2010 IWAI, Masaharu <iwai@alib.jp> 0.6.22-2 |
---|
149 | - apply vine-default |
---|
150 | - update rd-mode-{install,remove}.sh |
---|
151 | - add vine-default-rd-mode.el (Source3) |
---|
152 | - add rd-mode-init.el (Source4) |
---|
153 | - using emacsen_pkgdir macro |
---|
154 | - update Summary and description for rd-mode package |
---|
155 | - update URL |
---|
156 | - add Tags: Vendor, Distribution and Packager |
---|
157 | - drop unnecessary defined variable: ruby, rbindir |
---|
158 | - drop unnecessary if routine: Source1,2 |
---|
159 | - drop unnecessary Prefix tag |
---|
160 | |
---|
161 | * Sat Nov 7 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.6.22-1 |
---|
162 | - new upstream release |
---|
163 | - applied new versioning policy, spec in UTF-8 |
---|
164 | |
---|
165 | * Sat Sep 16 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.6.20-0vl2 |
---|
166 | - fixed Group typo |
---|
167 | |
---|
168 | * Wed Sep 13 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.6.20-0vl1 |
---|
169 | - new upstream release |
---|
170 | - changed rd-mode Group to Appliations/Editors/Emacs <BTS:VineLinux:163> |
---|
171 | - s/Copyright/License/ |
---|
172 | |
---|
173 | * Mon Nov 15 2004 IWAI, Masaharu <iwai@alib.jp> 0.6.17-0vl1 |
---|
174 | - new upstream release |
---|
175 | - drop unnecessary packages in BuildRequires: racc and ruby-amstd |
---|
176 | - update Source0 URL |
---|
177 | - drop obsolete patch: rdtoolconf.rb.patch ( Patch0 ) |
---|
178 | - drop obsolete patch: rd-mode patch ( Patch2 ) |
---|
179 | - update setup and intall sections: new upstream package using setup.rb |
---|
180 | - add README.ja.html in %%doc |
---|
181 | - fix missing rd/dot.rd2rc |
---|
182 | |
---|
183 | * Mon Oct 06 2003 akira yamada <akira@vinelinux.org> rdtool-0.6.13-0vl3 |
---|
184 | - build with ruby-1.8.0. it requires libruby >= 1.8.0. |
---|
185 | |
---|
186 | * Fri May 23 2003 IWAI Masaharu <iwai@alib.jp> 0.6.13-0vl2 |
---|
187 | - fix typo in %%description -l ja for rdtool package |
---|
188 | - generate rd-mode package |
---|
189 | |
---|
190 | * Thu May 22 2003 IWAI Masaharu <iwai@alib.jp> 0.6.13-0vl1 |
---|
191 | - new upstream version |
---|
192 | - update rdtoolconf.rb.patch (Patch0) |
---|
193 | - drop close-dt.patch (Pathc1): upstream merged |
---|
194 | - drop test in %%docdir |
---|
195 | |
---|
196 | * Sun Jun 16 2002 akira yamada <akira@vinelinux.org> 0.6.11-0vl2 |
---|
197 | - added rdtool-0.6.11-close-dt.patch: ruby-ext#02080: missing </dt> |
---|
198 | - added rdtool-0.6.11-rd-mode.patch: ruby-list#35281: rd-mode.el - a bit fix |
---|
199 | |
---|
200 | * Mon Feb 04 2002 akira yamada <akira@vinelinux.org> 0.6.11-0vl1 |
---|
201 | - new upstream version. |
---|
202 | - added ruby-optparse to BuildRequires. |
---|
203 | |
---|
204 | * Thu Jul 26 2001 akira yamada <akira@vinelinux.org> 0.6.10-0vl4 |
---|
205 | - fixed bug in rd/rd2html-lib.rb (prepare_footnotes) |
---|
206 | - fixed bug in rd/rdblockparser.ry (desclistitem) |
---|
207 | |
---|
208 | * Thu Jul 26 2001 akira yamada <akira@vinelinux.org> |
---|
209 | - Rebuild with ruby-devel-1.6.4-0vl3. |
---|
210 | |
---|
211 | * Thu Jun 28 2001 akira yamada <akira@vinelinux.org> |
---|
212 | - Applied bugfix patch for rdvisitor.rb. |
---|
213 | |
---|
214 | * Tue Jun 12 2001 akira yamada <akira@vinelinux.org> |
---|
215 | - New upstream version 0.6.10. |
---|
216 | |
---|
217 | * Tue Mar 27 2001 akira yamada <akira@vinelinux.org> |
---|
218 | - Initial packaging. |
---|