1 | Name: docbook-style-xsl |
---|
2 | Version: 1.76.1 |
---|
3 | Release: 1%{?_dist_release} |
---|
4 | Group: Applications/Text |
---|
5 | |
---|
6 | Summary: Norman Walsh's XSL stylesheets for DocBook XML. |
---|
7 | Summary(ja): DocBook XML用 XSLスタイルシート |
---|
8 | |
---|
9 | License: Copyright only |
---|
10 | URL: http://docbook.sourceforge.net/projects/xsl/ |
---|
11 | |
---|
12 | Source0: http://downloads.sourceforge.net/docbook/docbook-xsl-%{version}.tar.bz2 |
---|
13 | Source1: %{name}.Makefile |
---|
14 | Source2: http://downloads.sourceforge.net/docbook/docbook-xsl-doc-%{version}.tar.bz2 |
---|
15 | |
---|
16 | # Avoid proportional-column-width for passivetex (bug #176766). |
---|
17 | Patch1: docbook-xsl-pagesetup.patch |
---|
18 | # Hard-code the margin-left work around to expect passivetex (bug #113456). |
---|
19 | Patch2: docbook-xsl-marginleft.patch |
---|
20 | # fix of #161619 - adjustColumnWidths now available |
---|
21 | Patch3: docbook-xsl-newmethods.patch |
---|
22 | # change a few non-constant expressions to constant - needed for passivetex(#366441) |
---|
23 | Patch4: docbook-xsl-non-constant-expressions.patch |
---|
24 | # added fixes for passivetex extension and list-item-body(#161371) |
---|
25 | Patch5: docbook-xsl-list-item-body.patch |
---|
26 | |
---|
27 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
28 | BuildArch: noarch |
---|
29 | |
---|
30 | Provides: docbook-xsl = %{version} |
---|
31 | Requires: docbook-dtd-xml |
---|
32 | # xml-common was using /usr/share/xml until 0.6.3-8. |
---|
33 | Requires: xml-common >= 0.6.3-8 |
---|
34 | # required because of usage of /usr/bin/xmlcatalog |
---|
35 | Requires(post): libxml2 >= 2.4.8 |
---|
36 | Requires(postun): libxml2 >= 2.4.8 |
---|
37 | # PassiveTeX before 1.21 can't handle the newer stylesheets. |
---|
38 | Conflicts: passivetex < 1.21 |
---|
39 | |
---|
40 | Vendor: Project Vine |
---|
41 | Distribution: Vine Linux |
---|
42 | |
---|
43 | %description |
---|
44 | These XSL stylesheets allow you to transform any DocBook XML document to |
---|
45 | other formats, such as HTML, FO, and XHMTL. They are highly customizable. |
---|
46 | |
---|
47 | %description -l ja |
---|
48 | この XSL スタイルシートを使って, さまざまな DocBook XML 形式のドキュメント |
---|
49 | を HTML や FO や XHTML などの他のフォーマットに変換することができます. |
---|
50 | |
---|
51 | |
---|
52 | %prep |
---|
53 | %setup -q -n docbook-xsl-%{version} |
---|
54 | pushd .. |
---|
55 | tar jxf %{SOURCE2} |
---|
56 | popd |
---|
57 | %patch1 -p1 -b .pagesetup |
---|
58 | %patch2 -p1 -b .marginleft |
---|
59 | %patch3 -p1 -b .newmethods |
---|
60 | %patch4 -p1 -b .nonconstant |
---|
61 | %patch5 -p1 -b .listitembody |
---|
62 | |
---|
63 | cp %{SOURCE1} Makefile |
---|
64 | |
---|
65 | # fix of non UTF-8 files rpmlint warnings |
---|
66 | for fhtml in $(find ./doc -name '*.html' -type f) |
---|
67 | do |
---|
68 | iconv -f ISO-8859-1 -t UTF-8 "$fhtml" -o "$fhtml".tmp |
---|
69 | mv -f "$fhtml".tmp "$fhtml" |
---|
70 | sed -i 's/charset=ISO-8859-1/charset=UTF-8/' "$fhtml" |
---|
71 | done |
---|
72 | |
---|
73 | for f in $(find -name "*'*") |
---|
74 | do |
---|
75 | mv -v "$f" $(echo "$f" | tr -d "'") |
---|
76 | done |
---|
77 | |
---|
78 | %build |
---|
79 | |
---|
80 | %install |
---|
81 | [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT |
---|
82 | |
---|
83 | DESTDIR=$RPM_BUILD_ROOT |
---|
84 | make install BINDIR=$DESTDIR%{_bindir} DESTDIR=$DESTDIR%{_datadir}/sgml/docbook/xsl-stylesheets-%{version} |
---|
85 | ln -s xsl-stylesheets-%{version} \ |
---|
86 | $DESTDIR%{_datadir}/sgml/docbook/xsl-stylesheets |
---|
87 | |
---|
88 | # Don't ship the extensions (bug #177256). |
---|
89 | rm -rf $DESTDIR%{_datadir}/sgml/docbook/xsl-stylesheets/extensions/* |
---|
90 | |
---|
91 | %clean |
---|
92 | [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT |
---|
93 | |
---|
94 | %post |
---|
95 | CATALOG=%{_sysconfdir}/xml/catalog |
---|
96 | %{_bindir}/xmlcatalog --noout --add "rewriteSystem" \ |
---|
97 | "http://docbook.sourceforge.net/release/xsl/%{version}" \ |
---|
98 | "file://%{_datadir}/sgml/docbook/xsl-stylesheets-%{version}" $CATALOG |
---|
99 | %{_bindir}/xmlcatalog --noout --add "rewriteURI" \ |
---|
100 | "http://docbook.sourceforge.net/release/xsl/%{version}" \ |
---|
101 | "file://%{_datadir}/sgml/docbook/xsl-stylesheets-%{version}" $CATALOG |
---|
102 | %{_bindir}/xmlcatalog --noout --add "rewriteSystem" \ |
---|
103 | "http://docbook.sourceforge.net/release/xsl/current" \ |
---|
104 | "file://%{_datadir}/sgml/docbook/xsl-stylesheets-%{version}" $CATALOG |
---|
105 | %{_bindir}/xmlcatalog --noout --add "rewriteURI" \ |
---|
106 | "http://docbook.sourceforge.net/release/xsl/current" \ |
---|
107 | "file://%{_datadir}/sgml/docbook/xsl-stylesheets-%{version}" $CATALOG |
---|
108 | |
---|
109 | %postun |
---|
110 | # remove entries only on removal of package |
---|
111 | if [ "$1" = 0 ]; then |
---|
112 | CATALOG=%{_sysconfdir}/xml/catalog |
---|
113 | %{_bindir}/xmlcatalog --noout --del \ |
---|
114 | "file://%{_datadir}/sgml/docbook/xsl-stylesheets-%{version}" $CATALOG |
---|
115 | fi |
---|
116 | |
---|
117 | |
---|
118 | %files |
---|
119 | %defattr (-,root,root) |
---|
120 | %doc BUGS README TODO doc |
---|
121 | %{_datadir}/sgml/docbook/xsl-stylesheets-%{version} |
---|
122 | %{_datadir}/sgml/docbook/xsl-stylesheets |
---|
123 | |
---|
124 | |
---|
125 | %changelog |
---|
126 | * Fri Apr 22 2011 IWAI, Masaharu <iwai@alib.jp> 1.76.1-1 |
---|
127 | - new upstream release |
---|
128 | - add Vendor and Distribution tags |
---|
129 | |
---|
130 | * Sun Mar 7 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.75.3-6 |
---|
131 | - updated based on FC 1.75.3-5 |
---|
132 | * Fri Dec 18 2009 Ondrej Vasik <ovasik@redhat.com> 1.75.3-5 |
---|
133 | - comment patches purpose |
---|
134 | - License Copyright only |
---|
135 | * Mon May 11 2009 Ondrej Vasik <ovasik@redhat.com> 1.75.0-1 |
---|
136 | - New upstream release 1.75.0 |
---|
137 | - update marginleft patch |
---|
138 | * Mon Feb 23 2009 Ondrej Vasik <ovasik@redhat.com> 1.74.2-2 |
---|
139 | - updated Makefile: do ship .svg images(#486849), xsl |
---|
140 | stylesheets for website, xhtml-1_1, docbook -> epub |
---|
141 | convertor |
---|
142 | * Wed Feb 11 2009 Ondrej Vasik <ovasik@redhat.com> 1.74.0-7 |
---|
143 | - fix broken varlistentry (#479683) |
---|
144 | * Mon Feb 02 2009 Ondrej Vasik <ovasik@redhat.com> 1.74.0-6 |
---|
145 | - fix improper localization for rtl languages, thanks |
---|
146 | Muayyad Alsadi(#475077) |
---|
147 | * Wed Jan 28 2009 Ondrej Vasik <ovasik@redhat.com> 1.74.0-5 |
---|
148 | - fix xsl stylesheets for rtl languages(#475077) |
---|
149 | * Fri Dec 12 2008 Ondrej Vasik <ovasik@redhat.com> 1.74.0-4 |
---|
150 | - Author_Group "<orgname>" merged between "<surname>" |
---|
151 | and "<surname>" (#473019) |
---|
152 | * Wed Aug 06 2008 Kamil Dudka <kdudka@redhat.com> 1.74.0-3 |
---|
153 | - Rediffed all patches to work with patch --fuzz=0 |
---|
154 | * Wed Aug 06 2008 Kamil Dudka <kdudka@redhat.com> 1.74.0-2 |
---|
155 | - Tiny changes in docbook-xsl-newmethods.patch to work with xalan |
---|
156 | (#452867) |
---|
157 | * Fri Dec 14 2007 Ondrej Vasik <ovasik@redhat.com> 1.73.2-9 |
---|
158 | - added fixes for passivetex extension and list-item-body |
---|
159 | (#161371) |
---|
160 | * Mon Dec 03 2007 Ondrej Vasik <ovasik@redhat.com> 1.73.2-6 |
---|
161 | - fixed docbook-xsl-pagesetup.patch to follow Norman Walsh's |
---|
162 | documentation for nonpassivetex processing(#307001) |
---|
163 | * Tue Nov 27 2007 Ondrej Vasik <ovasik@redhat.com> 1.73.2-5 |
---|
164 | - convert all html files in doc to UTF-8 in prep |
---|
165 | (latest rpmlint gives warnings) |
---|
166 | - no longer using release in style-xsl dir(#389231) |
---|
167 | |
---|
168 | * Fri Aug 15 2008 Shu KONNO <owa@bg.wakwak.com> 1.73.2-5vl5 |
---|
169 | - applied new versioning policy, spec in utf-8 |
---|
170 | |
---|
171 | * Fri Jan 25 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.73.2-5vl1 |
---|
172 | - updated to 1.73.2 based on Fedora development |
---|
173 | * Tue Dec 11 2007 Ondrej Vasik <ovasik@redhat.com> 1.73.2-4 |
---|
174 | - remove entries from xmlcatalog only on removal of package |
---|
175 | (required because of the last change with droping release |
---|
176 | -caused drop of catalog entries during update) |
---|
177 | * Wed Dec 05 2007 Ondrej Vasik <ovasik@redhat.com> 1.73.2-3 |
---|
178 | - change a few non-constant expressions to constant that |
---|
179 | could now be handled by passivetex(#366441) |
---|
180 | - fixed docbook-xsl-pagesetup.patch to follow Norman Walsh's |
---|
181 | documentation for nonpassivetex processing(#307001) |
---|
182 | (use passivetex.extensions = 1 option in param.xsl for |
---|
183 | processing with passivetex) |
---|
184 | * Fri Sep 7 2007 Ondrej Vasik <ovasik@redhat.com> 1.73.2-2 |
---|
185 | - Added PreReq of libxml2(#253962) |
---|
186 | |
---|
187 | * Sun Jul 22 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.72.0-3vl1 |
---|
188 | - updated to 1.72.0 based on Fedora development |
---|
189 | * Mon Jun 18 2007 Ondrej Vasik <ovasik@redhat.com> 1.72.0-3 |
---|
190 | - patch fixing #161619 taken from upstream |
---|
191 | * Tue Jan 23 2007 Tim Waugh <twaugh@redhat.com> 1.72.0-1 |
---|
192 | - 1.72.0. |
---|
193 | * Fri Jan 19 2007 Tomas Mraz <tmraz@redhat.com> 1.71.1-2 |
---|
194 | - Add new wordml and especially highlighting (which is referenced |
---|
195 | from html) subdirs to Makefile. |
---|
196 | * Tue Jan 24 2006 Tim Waugh <twaugh@redhat.com> 1.69.1-5 |
---|
197 | - Don't ship docsrc/* (bug #177256). |
---|
198 | - Don't ship the extensions (bug #177256). |
---|
199 | |
---|
200 | * Sun Oct 8 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.69.1-1vl1 |
---|
201 | - updated to 1.69.1 based on Fedora development |
---|
202 | |
---|
203 | * Sun Dec 19 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.67.2-2vl1 |
---|
204 | - updated to 1.67.2 based on Fedora development |
---|
205 | * Wed Dec 8 2004 Tim Waugh <twaugh@redhat.com> 1.67.2-2 |
---|
206 | - Prevent expressions in passivetex output from index.xsl (bug #142229). |
---|
207 | * Thu Dec 2 2004 Tim Waugh <twaugh@redhat.com> 1.67.2-1 |
---|
208 | - No longer need nbsp or listblock patches. |
---|
209 | |
---|
210 | * Tue Jan 27 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.64.1-2vl2 |
---|
211 | - patch from Fedora 1.64.1-6 |
---|
212 | * Tue Jan 20 2004 Tim Waugh <twaugh@redhat.com> 1.64.1-6 |
---|
213 | - Fix last margin-left fix (bug #113456). |
---|
214 | - Reduce instances of itemized/ordered lists having misalignments. |
---|
215 | * Sun Jan 18 2004 Tim Waugh <twaugh@redhat.com> 1.64.1-5 |
---|
216 | - And another (bug #113456). |
---|
217 | * Thu Jan 15 2004 Tim Waugh <twaugh@redhat.com> 1.64.1-4 |
---|
218 | - Fixed another instance of bug #113456 in lists layout. |
---|
219 | * Wed Jan 14 2004 Tim Waugh <twaugh@redhat.com> 1.64.1-3 |
---|
220 | - Hard-code the margin-left work around to expect passivetex (bug #113456). |
---|
221 | |
---|
222 | * Mon Jan 5 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.64.1-2vl1 |
---|
223 | - based on Fedora 1.64.1-2 |
---|
224 | - fixed Japanese summary |
---|
225 | |
---|
226 | * Sat May 24 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.61.1-1vl1 |
---|
227 | - based on Redhat Rawhide 1.61.1-1 |
---|
228 | - add Japanese summary and description |
---|
229 | |
---|
230 | * Tue Feb 4 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.60.1-0vl1 |
---|
231 | - upstream release |
---|
232 | |
---|
233 | * Tue Nov 26 2002 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.57.0-2vl1 |
---|
234 | - based on Redhat Rawhide 1.57.0-2 |
---|
235 | |
---|
236 | * Sat Oct 26 2002 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.57.0-0vl1 |
---|
237 | - 1.57.0 |
---|
238 | |
---|
239 | * Tue Sep 24 2002 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.55.0-0vl3 |
---|
240 | - Rebuilded for Vine Linux (add PreReq: docbook-dtd412-xml) |
---|
241 | - based on rawhide 1.50.0 and source updated 1.55.0 |
---|
242 | - use better macros |
---|
243 | |
---|
244 | * Fri Jun 21 2002 Tim Powers <timp@redhat.com> |
---|
245 | - automated rebuild |
---|
246 | |
---|
247 | * Thu May 23 2002 Tim Powers <timp@redhat.com> |
---|
248 | - automated rebuild |
---|
249 | |
---|
250 | * Wed May 1 2002 Tim Waugh <twaugh@redhat.com> 1.50.0-1 |
---|
251 | - 1.50.0. |
---|
252 | |
---|
253 | * Thu Feb 21 2002 Tim Waugh <twaugh@redhat.com> 1.49-1 |
---|
254 | - 1.49. |
---|
255 | - Rebuild in new environment. |
---|
256 | |
---|
257 | * Fri Feb 1 2002 Tim Waugh <twaugh@redhat.com> 1.48-4 |
---|
258 | - Put URIs instead of pathnames in the XML catalog. |
---|
259 | |
---|
260 | * Thu Jan 17 2002 Tim Waugh <twaugh@redhat.com> 1.48-3 |
---|
261 | - Back to /usr/share/sgml. |
---|
262 | |
---|
263 | * Wed Jan 09 2002 Tim Powers <timp@redhat.com> 1.48-2 |
---|
264 | - automated rebuild |
---|
265 | |
---|
266 | * Mon Jan 7 2002 Tim Waugh <twaugh@redhat.com> 1.48-1 |
---|
267 | - 1.48. |
---|
268 | |
---|
269 | * Sat Dec 8 2001 Tim Waugh <twaugh@redhat.com> 1.47-2 |
---|
270 | - Conflict with PassiveTeX before 1.11. |
---|
271 | |
---|
272 | * Tue Oct 16 2001 Tim Waugh <twaugh@redhat.com> 1.47-1 |
---|
273 | - 1.47-experimental. |
---|
274 | |
---|
275 | * Tue Oct 9 2001 Tim Waugh <twaugh@redhat.com> 1.45-2 |
---|
276 | - Fix unversioned symlink. |
---|
277 | |
---|
278 | * Mon Oct 8 2001 Tim Waugh <twaugh@redhat.com> 1.45-1 |
---|
279 | - XML Catalog entries. |
---|
280 | - Move files to /usr/share/xml. |
---|
281 | |
---|
282 | * Mon Oct 1 2001 Tim Waugh <twaugh@redhat.com> 1.45-0.1 |
---|
283 | - 1.45. |
---|
284 | - Built for Red Hat Linux. |
---|
285 | |
---|
286 | * Tue Jun 26 2001 Chris Runge <crunge@pobox.com> |
---|
287 | - 1.40 |
---|
288 | |
---|
289 | * Fri Jun 09 2001 Chris Runge <crunge@pobox.com> |
---|
290 | - added extensions and additional doc |
---|
291 | - bin added to doc; the Perl files are for Win32 Perl and so need some |
---|
292 | conversion first |
---|
293 | |
---|
294 | * Fri Jun 08 2001 Chris Runge <crunge@pobox.com> |
---|
295 | - Initial RPM (based on docbook-style-dsssl RPM) |
---|
296 | - note: no catalog right now (I don't know how to do it; and not sure why |
---|
297 | it is necessary) |
---|