[521] | 1 | Name: docbook-dtds |
---|
| 2 | Version: 1.0 |
---|
[8084] | 3 | Release: 56%{?_dist_release} |
---|
[521] | 4 | Group: Applications/Text |
---|
| 5 | |
---|
| 6 | Summary: SGML and XML document type definitions for DocBook. |
---|
| 7 | Summary(ja): DocBook 向け SGML/XML DTD |
---|
| 8 | |
---|
| 9 | License: Copyright only |
---|
| 10 | URL: http://www.oasis-open.org/docbook/ |
---|
| 11 | |
---|
| 12 | Obsoletes: docbook-dtd30-sgml < %{version}-%{release} |
---|
| 13 | Obsoletes: docbook-dtd31-sgml < %{version}-%{release} |
---|
| 14 | Obsoletes: docbook-dtd40-sgml < %{version}-%{release} |
---|
| 15 | Obsoletes: docbook-dtd41-sgml < %{version}-%{release} |
---|
| 16 | Obsoletes: docbook-dtd412-xml < %{version}-%{release} |
---|
| 17 | |
---|
| 18 | Provides: docbook-dtd-xml = %{version}-%{release} |
---|
| 19 | Provides: docbook-dtd-sgml = %{version}-%{release} |
---|
| 20 | Provides: docbook-dtd30-sgml = %{version}-%{release} |
---|
| 21 | Provides: docbook-dtd31-sgml = %{version}-%{release} |
---|
| 22 | Provides: docbook-dtd40-sgml = %{version}-%{release} |
---|
| 23 | Provides: docbook-dtd41-sgml = %{version}-%{release} |
---|
| 24 | Provides: docbook-dtd412-xml = %{version}-%{release} |
---|
| 25 | Provides: docbook-dtd42-sgml = %{version}-%{release} |
---|
| 26 | Provides: docbook-dtd42-xml = %{version}-%{release} |
---|
| 27 | Provides: docbook-dtd43-sgml = %{version}-%{release} |
---|
| 28 | Provides: docbook-dtd43-xml = %{version}-%{release} |
---|
| 29 | Provides: docbook-dtd44-sgml = %{version}-%{release} |
---|
| 30 | Provides: docbook-dtd44-xml = %{version}-%{release} |
---|
| 31 | Provides: docbook-dtd45-sgml = %{version}-%{release} |
---|
| 32 | Provides: docbook-dtd45-xml = %{version}-%{release} |
---|
| 33 | |
---|
| 34 | Requires(post): /usr/bin/xmlcatalog |
---|
| 35 | Requires(postun): /usr/bin/xmlcatalog |
---|
| 36 | Requires(post): /bin/chmod |
---|
[3636] | 37 | Requires(post,postun): sed |
---|
[521] | 38 | Requires: sgml-common >= 0.6.3-4 |
---|
| 39 | Requires: xml-common >= 0.6.3-8 |
---|
| 40 | |
---|
| 41 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 42 | |
---|
| 43 | BuildArch: noarch |
---|
| 44 | Source0: http://www.oasis-open.org/docbook/sgml/3.0/docbk30.zip |
---|
| 45 | Source1: http://www.oasis-open.org/docbook/sgml/3.1/docbk31.zip |
---|
| 46 | Source2: http://www.oasis-open.org/docbook/sgml/4.0/docbk40.zip |
---|
| 47 | Source3: http://www.oasis-open.org/docbook/sgml/4.1/docbk41.zip |
---|
| 48 | Source4: http://www.oasis-open.org/docbook/xml/4.1.2/docbkx412.zip |
---|
| 49 | Source5: http://www.oasis-open.org/docbook/sgml/4.2/docbook-4.2.zip |
---|
| 50 | Source6: http://www.oasis-open.org/docbook/xml/4.2/docbook-xml-4.2.zip |
---|
| 51 | Source7: http://www.docbook.org/sgml/4.3/docbook-4.3.zip |
---|
| 52 | Source8: http://www.docbook.org/xml/4.3/docbook-xml-4.3.zip |
---|
| 53 | Source9: http://www.docbook.org/sgml/4.4/docbook-4.4.zip |
---|
| 54 | Source10: http://www.docbook.org/xml/4.4/docbook-xml-4.4.zip |
---|
| 55 | Source11: http://www.docbook.org/sgml/4.5/docbook-4.5.zip |
---|
| 56 | Source12: http://www.docbook.org/xml/4.5/docbook-xml-4.5.zip |
---|
| 57 | # fix old catalog files |
---|
| 58 | Patch0: docbook-dtd30-sgml-1.0.catalog.patch |
---|
| 59 | Patch1: docbook-dtd31-sgml-1.0.catalog.patch |
---|
| 60 | Patch2: docbook-dtd40-sgml-1.0.catalog.patch |
---|
| 61 | Patch3: docbook-dtd41-sgml-1.0.catalog.patch |
---|
| 62 | Patch4: docbook-dtd42-sgml-1.0.catalog.patch |
---|
| 63 | # fix euro sign in 4.2 dtds |
---|
| 64 | Patch5: docbook-4.2-euro.patch |
---|
| 65 | # Fix ISO entities in 4.3/4.4/4.5 SGML |
---|
| 66 | Patch6: docbook-dtds-ents.patch |
---|
| 67 | # Use system rewrite for web URL's in sgml catalogs to prevent reading from the network(#478680) |
---|
| 68 | Patch7: docbook-sgml-systemrewrite.patch |
---|
| 69 | # use XML at the end of public identificators of XML 4.1.2 ISO entities |
---|
| 70 | Patch8: docbook-dtd412-entities.patch |
---|
| 71 | |
---|
| 72 | BuildRequires: unzip |
---|
| 73 | |
---|
| 74 | %define openjadever 1.3.2 |
---|
| 75 | #PreReq: openjade = %{openjadever} |
---|
| 76 | %define version_list "{3,4}.{0,1}-sgml 4.1.2-xml 4.{2,3,4,5}-{sgml,xml}" |
---|
| 77 | |
---|
| 78 | |
---|
| 79 | %description |
---|
| 80 | The DocBook Document Type Definition (DTD) describes the syntax of |
---|
| 81 | technical documentation texts (articles, books and manual pages). |
---|
| 82 | This syntax is XML-compliant and is developed by the OASIS consortium. |
---|
| 83 | This package contains SGML and XML versions of the DocBook DTD. |
---|
| 84 | |
---|
| 85 | |
---|
| 86 | %prep |
---|
| 87 | %setup -c -T |
---|
| 88 | # DocBook V3.0 |
---|
| 89 | mkdir 3.0-sgml |
---|
| 90 | cd 3.0-sgml |
---|
| 91 | unzip %{SOURCE0} |
---|
| 92 | %patch0 -p0 -b docbook.cat |
---|
| 93 | cd .. |
---|
| 94 | |
---|
| 95 | # DocBook V3.1 |
---|
| 96 | mkdir 3.1-sgml |
---|
| 97 | cd 3.1-sgml |
---|
| 98 | unzip %{SOURCE1} |
---|
| 99 | %patch1 -p0 -b docbook.cat |
---|
| 100 | cd .. |
---|
| 101 | |
---|
| 102 | # DocBook V4.0 |
---|
| 103 | mkdir 4.0-sgml |
---|
| 104 | cd 4.0-sgml |
---|
| 105 | unzip %{SOURCE2} |
---|
| 106 | %patch2 -p0 -b docbook.cat |
---|
| 107 | cd .. |
---|
| 108 | |
---|
| 109 | # DocBook V4.1 |
---|
| 110 | mkdir 4.1-sgml |
---|
| 111 | cd 4.1-sgml |
---|
| 112 | unzip %{SOURCE3} |
---|
| 113 | %patch3 -p0 -b docbook.cat |
---|
| 114 | cd .. |
---|
| 115 | |
---|
| 116 | # DocBook XML V4.1.2 |
---|
| 117 | mkdir 4.1.2-xml |
---|
| 118 | cd 4.1.2-xml |
---|
| 119 | unzip %{SOURCE4} |
---|
| 120 | cd .. |
---|
| 121 | |
---|
| 122 | # DocBook V4.2 |
---|
| 123 | mkdir 4.2-sgml |
---|
| 124 | cd 4.2-sgml |
---|
| 125 | unzip %{SOURCE5} |
---|
| 126 | %patch4 -p0 -b docbook.cat |
---|
| 127 | cd .. |
---|
| 128 | |
---|
| 129 | # DocBook XML V4.2 |
---|
| 130 | mkdir 4.2-xml |
---|
| 131 | cd 4.2-xml |
---|
| 132 | unzip %{SOURCE6} |
---|
| 133 | cd .. |
---|
| 134 | |
---|
| 135 | # DocBook V4.3 |
---|
| 136 | mkdir 4.3-sgml |
---|
| 137 | cd 4.3-sgml |
---|
| 138 | unzip %{SOURCE7} |
---|
| 139 | cd .. |
---|
| 140 | |
---|
| 141 | # DocBook XML V4.3 |
---|
| 142 | mkdir 4.3-xml |
---|
| 143 | cd 4.3-xml |
---|
| 144 | unzip %{SOURCE8} |
---|
| 145 | cd .. |
---|
| 146 | |
---|
| 147 | # DocBook V4.4 |
---|
| 148 | mkdir 4.4-sgml |
---|
| 149 | cd 4.4-sgml |
---|
| 150 | unzip %{SOURCE9} |
---|
| 151 | cd .. |
---|
| 152 | |
---|
| 153 | # DocBook XML V4.4 |
---|
| 154 | mkdir 4.4-xml |
---|
| 155 | cd 4.4-xml |
---|
| 156 | unzip %{SOURCE10} |
---|
| 157 | cd .. |
---|
| 158 | |
---|
| 159 | # DocBook v4.5 |
---|
| 160 | mkdir 4.5-sgml |
---|
| 161 | cd 4.5-sgml |
---|
| 162 | unzip %{SOURCE11} |
---|
| 163 | cd .. |
---|
| 164 | |
---|
| 165 | # DocBook XML v4.5 |
---|
| 166 | mkdir 4.5-xml |
---|
| 167 | cd 4.5-xml |
---|
| 168 | unzip %{SOURCE12} |
---|
| 169 | cd .. |
---|
| 170 | |
---|
| 171 | # Fix € in SGML. |
---|
| 172 | %patch5 -p1 |
---|
| 173 | |
---|
| 174 | # Fix ISO entities in 4.3/4.4/4.5 SGML |
---|
| 175 | %patch6 -p1 |
---|
| 176 | |
---|
| 177 | # Rewrite SYSTEM to use local catalog instead web ones (#478680) |
---|
| 178 | %patch7 -p1 |
---|
| 179 | |
---|
| 180 | # Add XML to the end of public identificators of 4.1.2 XML entities |
---|
| 181 | %patch8 -p1 |
---|
| 182 | |
---|
| 183 | # Increase NAMELEN (bug #36058, bug #159382). |
---|
| 184 | sed -e's,\(NAMELEN\s\+\)44\(\s\*\)\?,\1256,' -i.namelen */docbook.dcl |
---|
| 185 | |
---|
| 186 | # fix of \r\n issue from rpmlint |
---|
| 187 | sed -i 's/\r//' */*.txt |
---|
| 188 | |
---|
| 189 | |
---|
| 190 | if [ `id -u` -eq 0 ]; then |
---|
| 191 | chown -R root:root . |
---|
| 192 | chmod -R a+rX,g-w,o-w . |
---|
| 193 | fi |
---|
| 194 | |
---|
| 195 | |
---|
| 196 | %build |
---|
| 197 | |
---|
| 198 | |
---|
| 199 | %install |
---|
| 200 | rm -rf $RPM_BUILD_ROOT |
---|
| 201 | |
---|
| 202 | # Symlinks |
---|
| 203 | mkdir -p $RPM_BUILD_ROOT/etc/sgml |
---|
| 204 | for fmt in sgml xml; do |
---|
[3812] | 205 | ln -s $fmt-docbook-4.5.cat \ |
---|
[521] | 206 | $RPM_BUILD_ROOT/etc/sgml/$fmt-docbook.cat |
---|
| 207 | done |
---|
| 208 | |
---|
| 209 | eval set %{version_list} |
---|
| 210 | for dir |
---|
| 211 | do |
---|
| 212 | cd $dir |
---|
[3812] | 213 | fmt=${dir#*-} ver=${dir%%-*} |
---|
| 214 | DESTDIR=$RPM_BUILD_ROOT%{_datadir}/sgml/docbook/$fmt-dtd-$ver |
---|
[521] | 215 | case $fmt in |
---|
| 216 | sgml) mkdir -p $DESTDIR ; install *.dcl $DESTDIR ;; |
---|
| 217 | xml) mkdir -p $DESTDIR/ent ; install ent/* $DESTDIR/ent ;; |
---|
| 218 | esac |
---|
| 219 | install *.dtd *.mod $DESTDIR |
---|
| 220 | install docbook.cat $DESTDIR/catalog |
---|
| 221 | cd .. |
---|
| 222 | # File for %%ghost |
---|
[3812] | 223 | touch $RPM_BUILD_ROOT/etc/sgml/$fmt-docbook-$ver.cat |
---|
[521] | 224 | done |
---|
| 225 | |
---|
| 226 | |
---|
| 227 | %clean |
---|
| 228 | rm -rf $RPM_BUILD_ROOT |
---|
| 229 | |
---|
| 230 | |
---|
| 231 | %post |
---|
| 232 | catcmd='%{_bindir}/xmlcatalog --noout' |
---|
| 233 | xmlcatalog=%{_datadir}/sgml/docbook/xmlcatalog |
---|
| 234 | |
---|
| 235 | ## Clean up pre-docbook-dtds mess caused by broken trigger. |
---|
| 236 | for v in 3.0 3.1 4.0 4.1 4.2 |
---|
| 237 | do |
---|
| 238 | if [ -f /etc/sgml/sgml-docbook-$v.cat ] |
---|
| 239 | then |
---|
| 240 | $catcmd --sgml --del /etc/sgml/sgml-docbook-$v.cat \ |
---|
| 241 | %{_datadir}/sgml/openjade-1.3.1/catalog 2>/dev/null |
---|
| 242 | fi |
---|
| 243 | done |
---|
| 244 | |
---|
| 245 | # The STYLESHEETS/catalog command is for the case in which the style sheets |
---|
| 246 | # were installed after another DTD but before this DTD |
---|
| 247 | for STYLESHEETS in %{_datadir}/sgml/docbook/dsssl-stylesheets-*; do : ; done |
---|
| 248 | case $STYLESHEETS in |
---|
| 249 | *-"*") STYLESHEETS= ;; |
---|
| 250 | esac |
---|
| 251 | eval set %{version_list} |
---|
| 252 | for dir |
---|
| 253 | do |
---|
[3812] | 254 | fmt=${dir#*-} ver=${dir%%-*} |
---|
| 255 | sgmldir=%{_datadir}/sgml/docbook/$fmt-dtd-$ver |
---|
[521] | 256 | ## SGML catalog |
---|
| 257 | # Update the centralized catalog corresponding to this version of the DTD |
---|
| 258 | for cat_dir in %{_datadir}/sgml/sgml-iso-entities-8879.1986 $sgmldir $STYLESHEETS; do |
---|
[3812] | 259 | $catcmd --sgml --add /etc/sgml/$fmt-docbook-$ver.cat $cat_dir/catalog |
---|
[521] | 260 | done |
---|
| 261 | ## XML catalog |
---|
| 262 | if [ $fmt = xml -a -w $xmlcatalog ]; then |
---|
| 263 | while read f desc; do |
---|
| 264 | case $ver in 4.[45]) f=${f/-/} ;; esac |
---|
| 265 | $catcmd --add public "$desc" $sgmldir/$f $xmlcatalog |
---|
| 266 | done <<ENDENT |
---|
| 267 | ent/iso-pub.ent ISO 8879:1986//ENTITIES Publishing//EN |
---|
| 268 | ent/iso-grk1.ent ISO 8879:1986//ENTITIES Greek Letters//EN |
---|
| 269 | dbpoolx.mod -//OASIS//ELEMENTS DocBook XML Information Pool V$ver//EN |
---|
| 270 | ent/iso-box.ent ISO 8879:1986//ENTITIES Box and Line Drawing//EN |
---|
| 271 | docbookx.dtd -//OASIS//DTD DocBook XML V$ver//EN |
---|
| 272 | ent/iso-grk3.ent ISO 8879:1986//ENTITIES Greek Symbols//EN |
---|
| 273 | ent/iso-amsn.ent ISO 8879:1986//ENTITIES Added Math Symbols: Negated Relations//EN |
---|
| 274 | ent/iso-num.ent ISO 8879:1986//ENTITIES Numeric and Special Graphic//EN |
---|
| 275 | dbcentx.mod -//OASIS//ENTITIES DocBook XML Character Entities V$ver//EN |
---|
| 276 | ent/iso-grk4.ent ISO 8879:1986//ENTITIES Alternative Greek Symbols//EN |
---|
| 277 | dbnotnx.mod -//OASIS//ENTITIES DocBook XML Notations V$ver//EN |
---|
| 278 | ent/iso-dia.ent ISO 8879:1986//ENTITIES Diacritical Marks//EN |
---|
| 279 | ent/iso-grk2.ent ISO 8879:1986//ENTITIES Monotoniko Greek//EN |
---|
| 280 | dbgenent.mod -//OASIS//ENTITIES DocBook XML Additional General Entities V$ver//EN |
---|
| 281 | dbhierx.mod -//OASIS//ELEMENTS DocBook XML Document Hierarchy V$ver//EN |
---|
| 282 | ent/iso-amsa.ent ISO 8879:1986//ENTITIES Added Math Symbols: Arrow Relations//EN |
---|
| 283 | ent/iso-amso.ent ISO 8879:1986//ENTITIES Added Math Symbols: Ordinary//EN |
---|
| 284 | ent/iso-cyr1.ent ISO 8879:1986//ENTITIES Russian Cyrillic//EN |
---|
| 285 | ent/iso-tech.ent ISO 8879:1986//ENTITIES General Technical//EN |
---|
| 286 | ent/iso-amsc.ent ISO 8879:1986//ENTITIES Added Math Symbols: Delimiters//EN |
---|
| 287 | soextblx.dtd -//OASIS//DTD XML Exchange Table Model 19990315//EN |
---|
| 288 | calstblx.dtd -//OASIS//DTD DocBook XML CALS Table Model V$ver//EN |
---|
| 289 | ent/iso-lat1.ent ISO 8879:1986//ENTITIES Added Latin 1//EN |
---|
| 290 | ent/iso-amsb.ent ISO 8879:1986//ENTITIES Added Math Symbols: Binary Operators//EN |
---|
| 291 | ent/iso-lat2.ent ISO 8879:1986//ENTITIES Added Latin 2//EN |
---|
| 292 | ent/iso-amsr.ent ISO 8879:1986//ENTITIES Added Math Symbols: Relations//EN |
---|
| 293 | ent/iso-cyr2.ent ISO 8879:1986//ENTITIES Non-Russian Cyrillic//EN |
---|
| 294 | ENDENT |
---|
| 295 | for f in System URI; do |
---|
| 296 | $catcmd --add rewrite$f "http://www.oasis-open.org/docbook/xml/$ver" \ |
---|
| 297 | $sgmldir $xmlcatalog |
---|
| 298 | done |
---|
| 299 | fi |
---|
| 300 | done |
---|
| 301 | |
---|
| 302 | # Historic versions of this scriptlet contained the following comment: |
---|
| 303 | # <quote> |
---|
| 304 | # Fix up SGML super catalog so that there isn't an XML DTD before an |
---|
| 305 | # SGML one. We need to do this (*sigh*) because xmlcatalog messes up |
---|
| 306 | # the order of the lines, and SGML tools don't like to see XML things |
---|
| 307 | # they aren't expecting. |
---|
| 308 | # </quote> |
---|
| 309 | # But the code that followed just found the first XML DTD and the first |
---|
| 310 | # SGML DTD, swappinmg these two lines if the XML one preceded. |
---|
| 311 | # But that only ensures that there is an SGML DTD before all XML ones. |
---|
| 312 | # No one complained, so either this was enough, or the buggy SGML tools |
---|
| 313 | # are long dead, or their users do not use bugzilla. |
---|
| 314 | # Anyway, the following code, introduced in 1.0-46, does better: it ensures |
---|
| 315 | # that all XML DTDs are after all SGML ones, by moving them to the end. |
---|
| 316 | sed -ni ' |
---|
| 317 | /xml-docbook/ H |
---|
| 318 | /xml-docbook/ !p |
---|
| 319 | $ { |
---|
| 320 | g |
---|
| 321 | s/^\n//p |
---|
| 322 | } |
---|
| 323 | ' /etc/sgml/catalog |
---|
| 324 | |
---|
| 325 | # Finally, make sure everything in /etc/sgml is readable! |
---|
| 326 | /bin/chmod a+r /etc/sgml/* |
---|
| 327 | |
---|
| 328 | |
---|
| 329 | %postun |
---|
| 330 | catcmd='%{_bindir}/xmlcatalog --noout' |
---|
| 331 | xmlcatalog=%{_datadir}/sgml/docbook/xmlcatalog |
---|
| 332 | entities=" |
---|
| 333 | ent/iso-pub.ent |
---|
| 334 | ent/iso-grk1.ent |
---|
| 335 | dbpoolx.mod |
---|
| 336 | ent/iso-box.ent |
---|
| 337 | docbookx.dtd |
---|
| 338 | ent/iso-grk3.ent |
---|
| 339 | ent/iso-amsn.ent |
---|
| 340 | ent/iso-num.ent |
---|
| 341 | dbcentx.mod |
---|
| 342 | ent/iso-grk4.ent |
---|
| 343 | dbnotnx.mod |
---|
| 344 | ent/iso-dia.ent |
---|
| 345 | ent/iso-grk2.ent |
---|
| 346 | dbgenent.mod |
---|
| 347 | dbhierx.mod |
---|
| 348 | ent/iso-amsa.ent |
---|
| 349 | ent/iso-amso.ent |
---|
| 350 | ent/iso-cyr1.ent |
---|
| 351 | ent/iso-tech.ent |
---|
| 352 | ent/iso-amsc.ent |
---|
| 353 | soextblx.dtd |
---|
| 354 | calstblx.dtd |
---|
| 355 | ent/iso-lat1.ent |
---|
| 356 | ent/iso-amsb.ent |
---|
| 357 | ent/iso-lat2.ent |
---|
| 358 | ent/iso-amsr.ent |
---|
| 359 | ent/iso-cyr2.ent |
---|
| 360 | " |
---|
| 361 | eval set %{version_list} |
---|
| 362 | for dir |
---|
| 363 | do |
---|
[3812] | 364 | fmt=${dir#*-} ver=${dir%%-*} |
---|
| 365 | sgmldir=%{_datadir}/sgml/docbook/$fmt-dtd-$ver |
---|
[521] | 366 | ## SGML catalog |
---|
| 367 | # Update the centralized catalog corresponding to this version of the DTD |
---|
[3812] | 368 | $catcmd --sgml --del /etc/sgml/catalog /etc/sgml/$fmt-docbook-$ver.cat |
---|
| 369 | rm -f /etc/sgml/$fmt-docbook-$ver.cat |
---|
[521] | 370 | ## XML catalog |
---|
| 371 | if [ $fmt = xml -a -w $xmlcatalog ]; then |
---|
| 372 | for f in $entities; do |
---|
| 373 | case $ver in 4.[45]) f=${f/-/} ;; esac |
---|
| 374 | $catcmd --del $sgmldir/$f $xmlcatalog |
---|
| 375 | done |
---|
| 376 | $catcmd --del $sgmldir $xmlcatalog |
---|
| 377 | fi |
---|
| 378 | done |
---|
| 379 | |
---|
| 380 | # See the comment attached to this command in the %%post scriptlet. |
---|
| 381 | sed -ni ' |
---|
| 382 | /xml-docbook/ H |
---|
| 383 | /xml-docbook/ !p |
---|
| 384 | $ { |
---|
| 385 | g |
---|
| 386 | s/^\n//p |
---|
| 387 | } |
---|
| 388 | ' /etc/sgml/catalog |
---|
| 389 | |
---|
| 390 | |
---|
| 391 | %triggerin -- openjade >= %{openjadever} |
---|
| 392 | eval set %{version_list} |
---|
| 393 | for dir |
---|
| 394 | do |
---|
[3812] | 395 | fmt=${dir#*-} ver=${dir%%-*} |
---|
| 396 | %{_bindir}/xmlcatalog --sgml --noout --add /etc/sgml/$fmt-docbook-$ver.cat \ |
---|
[521] | 397 | %{_datadir}/sgml/openjade-%{openjadever}/catalog |
---|
| 398 | done |
---|
| 399 | |
---|
| 400 | |
---|
| 401 | %triggerun -- openjade >= %{openjadever} |
---|
| 402 | [ $2 = 0 ] || exit 0 |
---|
| 403 | eval set %{version_list} |
---|
| 404 | for dir |
---|
| 405 | do |
---|
[3812] | 406 | fmt=${dir#*-} ver=${dir%%-*} |
---|
| 407 | %{_bindir}/xmlcatalog --sgml --noout --del /etc/sgml/$fmt-docbook-$ver.cat \ |
---|
[521] | 408 | %{_datadir}/sgml/openjade-%{openjadever}/catalog |
---|
| 409 | done |
---|
| 410 | |
---|
| 411 | |
---|
| 412 | %files |
---|
| 413 | %defattr (-,root,root) |
---|
| 414 | %doc --parents 3.1-sgml/ChangeLog |
---|
| 415 | %doc --parents 4.1-sgml/ChangeLog |
---|
| 416 | %doc --parents */*.txt |
---|
| 417 | %config(noreplace) /etc/sgml/sgml-docbook.cat |
---|
| 418 | %config(noreplace) /etc/sgml/xml-docbook.cat |
---|
[3812] | 419 | %{_datadir}/sgml/docbook/sgml-dtd-3.0 |
---|
| 420 | %{_datadir}/sgml/docbook/sgml-dtd-3.1 |
---|
| 421 | %{_datadir}/sgml/docbook/sgml-dtd-4.0 |
---|
| 422 | %{_datadir}/sgml/docbook/sgml-dtd-4.1 |
---|
| 423 | %{_datadir}/sgml/docbook/sgml-dtd-4.2 |
---|
| 424 | %{_datadir}/sgml/docbook/sgml-dtd-4.3 |
---|
| 425 | %{_datadir}/sgml/docbook/sgml-dtd-4.4 |
---|
| 426 | %{_datadir}/sgml/docbook/sgml-dtd-4.5 |
---|
| 427 | %{_datadir}/sgml/docbook/xml-dtd-4.1.2 |
---|
| 428 | %{_datadir}/sgml/docbook/xml-dtd-4.2 |
---|
| 429 | %{_datadir}/sgml/docbook/xml-dtd-4.3 |
---|
| 430 | %{_datadir}/sgml/docbook/xml-dtd-4.4 |
---|
| 431 | %{_datadir}/sgml/docbook/xml-dtd-4.5 |
---|
| 432 | %ghost %config(noreplace) /etc/sgml/*ml-docbook-*.cat |
---|
[521] | 433 | |
---|
| 434 | %changelog |
---|
[8084] | 435 | * Mon Dec 30 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0-56 |
---|
| 436 | - rebuild with VineSeed environment |
---|
| 437 | |
---|
[3812] | 438 | * Sun May 8 2011 IWAI, Masaharu <iwai@alib.jp> 1.0-55 |
---|
| 439 | - drop %%{version}-%%{release} in file path |
---|
| 440 | |
---|
[3636] | 441 | * Fri Apr 22 2011 IWAI, Masaharu <iwai@alib.jp> 1.0-54 |
---|
| 442 | - add Requires(post,postun): sed |
---|
| 443 | |
---|
[521] | 444 | * Sun Mar 7 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0-53 |
---|
| 445 | - updated based on FC 1.0-52 |
---|
| 446 | * Wed Mar 03 2010 Ondrej Vasik <ovasik@redhat.com> - 1.0-52 |
---|
| 447 | - remove explicit lib dependency (#225700) |
---|
| 448 | * Wed Mar 03 2010 Ondrej Vasik <ovasik@redhat.com> - 1.0-51 |
---|
| 449 | - fix Merge Review comments (#225700) - unversion requires, |
---|
| 450 | fix buildroot |
---|
| 451 | * Thu Dec 17 2009 Ondrej Vasik <ovasik@redhat.com> - 1.0-50 |
---|
| 452 | - comment patches |
---|
| 453 | - License: Copyright only |
---|
| 454 | * Tue Oct 27 2009 Ondrej Vasik <ovasik@redhat.com> - 1.0-49 |
---|
| 455 | - do not obsolete self |
---|
| 456 | * Mon May 11 2009 Ondrej Vasik <ovasik@redhat.com> - 1.0-47 |
---|
| 457 | - add requires(post) for /bin/chmod (#498680) |
---|
| 458 | * Wed Apr 8 2009 Stepan Kasal <skasal@redhat.com> - 1.0-46 |
---|
| 459 | - remove perl dependency (#462997) |
---|
| 460 | - make %%install and the scriptlets more compact |
---|
| 461 | * Thu Feb 19 2009 Ondrej Vasik <ovasik@redhat.com> - 1.0.44 |
---|
| 462 | - fix ISO entities for 4.5 SGML, use XML at the end of |
---|
| 463 | public identificators of XML 4.1.2 ISO entities |
---|
| 464 | * Thu Feb 19 2009 Ondrej Vasik <ovasik@redhat.com> - 1.0-43 |
---|
| 465 | - register sgml catalogs before xml catalogs in openjade |
---|
| 466 | (#486257) |
---|
| 467 | * Thu Feb 05 2009 Ondrej Vasik <ovasik@redhat.com> - 1.0-42 |
---|
| 468 | - Use SYSTEM rewrite for web URL's in sgml catalogs to |
---|
| 469 | prevent reading from the network(#478680) |
---|
| 470 | * Fri Sep 26 2008 Ondrej Vasik <ovasik@redhat.com> - 1.0-41 |
---|
| 471 | - Removed openjade requirement - registration reworked to |
---|
| 472 | triggers(#234345) |
---|
| 473 | * Fri Jul 11 2008 Ondrej Vasik <ovasik@redhat.com> - 1.0-38 |
---|
| 474 | - fixed typo in post scriptlet(causing mishandling of DocBook |
---|
| 475 | 4.4 and 4.5 DTDs,#453513) |
---|
| 476 | * Tue Oct 23 2007 Ondrej Vasik <ovasik@redhat.com> - 1.0-34 |
---|
| 477 | - corrected most of rpmlint issues |
---|
| 478 | - (PreReq, tab/spaces , wrong permissions on some files, |
---|
| 479 | - wrong file end encoding of txt files, non config files |
---|
| 480 | - in /etc, some requires issues, versioned provides and |
---|
| 481 | - obsoletes, fixed license tag) |
---|
| 482 | * Fri Oct 19 2007 Ondrej Vasik <ovasik@redhat.com> - 1.0-33 |
---|
| 483 | - fixed wrong attributes for docs(#326581) |
---|
| 484 | * Mon Oct 1 2007 Ondrej Vasik <ovasik@redhat.com> - 1.0-32 |
---|
| 485 | - DocBook 4.5 SGML and XML.(#312941) |
---|
| 486 | * Wed Jun 20 2007 Ondrej Vasik <ovasik@redhat.com> - 1.0-31 |
---|
| 487 | - .cat files touched and ghosted to be owned by package |
---|
| 488 | - (bug #193475) |
---|
| 489 | * Tue Dec 13 2005 Tim Waugh <twaugh@redhat.com> 1.0-30 |
---|
| 490 | - Fix ISO entities in 4.3/4.4 SGML. |
---|
| 491 | |
---|
| 492 | * Fri Aug 15 2008 Shu KONNO <owa@bg.wakwak.com> 1.0-27vl5 |
---|
| 493 | - applied new versioning policy, spec in utf-8 |
---|
| 494 | |
---|
[8084] | 495 | * Wed Jun 9 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0-27vl1 |
---|
[521] | 496 | - based on Fedora 1.0-27 |
---|
| 497 | * Thu Jun 2 2005 Tim Waugh <twaugh@redhat.com> 1.0-27 |
---|
| 498 | - Increase NAMELEN (bug #36058, bug #159382). |
---|
| 499 | * Tue Feb 1 2005 Tim Waugh <twaugh@redhat.com> 1.0-26 |
---|
| 500 | - DocBook 4.4 SGML and XML. |
---|
| 501 | * Mon Sep 13 2004 Tim Waugh <twaugh@redhat.com> 1.0-25 |
---|
| 502 | - DocBook 4.3 SGML and XML (bug #131861). |
---|
| 503 | - added Japanese summary |
---|
| 504 | |
---|
| 505 | * Sat Mar 27 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0-24vl1 |
---|
| 506 | - based on Fedora 1.0-24 |
---|
| 507 | * Mon Feb 23 2004 Tim Waugh <twaugh@redhat.com> 1.0-24 |
---|
| 508 | - Use ':' instead of '.' as separator for chown. |
---|
| 509 | |
---|
| 510 | * Tue Sep 30 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0-22vl2 |
---|
| 511 | - fixed %postun to remove old version /etc/sgml-*.cat |
---|
| 512 | |
---|
| 513 | * Mon Sep 15 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0-22vl1 |
---|
| 514 | - based on Rawhide 1.0-22.1 |
---|
| 515 | * Wed Aug 6 2003 Tim Waugh <twaugh@redhat.com> 1.0-22 |
---|
| 516 | - More work-arounds for buggy xmlcatalog. |
---|
| 517 | * Tue Jul 15 2003 Tim Waugh <twaugh@redhat.com> 1.0-21 |
---|
| 518 | - Fix € in SGML tools. |
---|
| 519 | * Wed May 28 2003 Tim Waugh <twaugh@redhat.com> 1.0-20 |
---|
| 520 | - Fix summary and description (bug #73005). |
---|
| 521 | |
---|
| 522 | * Tue Jun 3 2003 Jun Nishii <jun@vinelinux.org> 1.0-19vl2 |
---|
| 523 | - fixed some typo in scripts |
---|
| 524 | - use for loop in scripts |
---|
| 525 | |
---|
| 526 | * Sat May 3 2003 IWAI Masaharu <iwai@alib.jp> 1.0-19vl1 |
---|
| 527 | - update %%post and %%postun script from rawhide 1.0-19 |
---|
| 528 | - build with openjade-1.3.2 |
---|
| 529 | |
---|
| 530 | * Mon Nov 25 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.0-15vl2 |
---|
| 531 | - use PreReq rather than dual Conflicts (it's too bad for apt) |
---|
| 532 | |
---|
| 533 | * Mon Nov 25 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.0-15vl1 |
---|
| 534 | - based on 1.0-15 from Rawhide and rebuilt for Vine Linux |
---|
| 535 | |
---|
| 536 | * Wed Nov 20 2002 Tim Powers <timp@redhat.com> |
---|
| 537 | - rebuild in current collinst |
---|
| 538 | |
---|
[8084] | 539 | * Tue Jul 30 2002 Tim Waugh <twaugh@redhat.com> 1.0-14 |
---|
[521] | 540 | - Fix typo in XML catalog (Eric Raymond). |
---|
| 541 | |
---|
| 542 | * Tue Jul 23 2002 Tim Waugh <twaugh@redhat.com> 1.0-13 |
---|
| 543 | - Provide docbook-dtd42-sgml and docbook-dtd42-xml. |
---|
| 544 | |
---|
| 545 | * Thu Jul 18 2002 Tim Waugh <twaugh@redhat.com> 1.0-12 |
---|
| 546 | - Fix up SGML super catalog if necessary. |
---|
| 547 | |
---|
| 548 | * Wed Jul 17 2002 Tim Waugh <twaugh@redhat.com> 1.0-11 |
---|
| 549 | - Add DocBook V4.2. |
---|
| 550 | |
---|
| 551 | * Fri Jun 21 2002 Tim Powers <timp@redhat.com> 1.0-10 |
---|
| 552 | - automated rebuild |
---|
| 553 | |
---|
| 554 | * Thu May 23 2002 Tim Powers <timp@redhat.com> 1.0-9 |
---|
| 555 | - automated rebuild |
---|
| 556 | |
---|
| 557 | * Thu Mar 14 2002 Tim Waugh <twaugh@redhat.com> 1.0-8 |
---|
| 558 | - Allow for shared /usr/share (bug #61147). |
---|
| 559 | |
---|
| 560 | * Tue Mar 12 2002 Tim Waugh <twaugh@redhat.com> 1.0-7 |
---|
| 561 | - Make sure that the config files are readable. |
---|
| 562 | |
---|
| 563 | * Fri Mar 8 2002 Tim Waugh <twaugh@redhat.com> 1.0-6 |
---|
| 564 | - Make %%post scriptlet quiet (bug #60820). |
---|
| 565 | |
---|
| 566 | * Thu Feb 21 2002 Tim Waugh <twaugh@redhat.com> 1.0-5 |
---|
| 567 | - Make sure to clean up old catalog files. |
---|
| 568 | |
---|
| 569 | * Thu Feb 21 2002 Tim Waugh <twaugh@redhat.com> 1.0-3 |
---|
| 570 | - Rebuild in new environment. |
---|
| 571 | |
---|
| 572 | * Mon Jan 28 2002 Tim Waugh <twaugh@redhat.com> 1.0-2 |
---|
| 573 | - Prepare for openjade 1.3.1. |
---|
| 574 | |
---|
| 575 | * Thu Jan 17 2002 Tim Waugh <twaugh@redhat.com> 1.0-1 |
---|
| 576 | - Merged all the DTD packages into one (bug #58448). |
---|
| 577 | - Use /usr/share/sgml exclusively. |
---|
| 578 | - Prevent catalog files from disappearing on upgrade (bug #58463). |
---|
| 579 | |
---|
| 580 | * Wed Jan 09 2002 Tim Powers <timp@redhat.com> |
---|
| 581 | - automated rebuild |
---|
| 582 | |
---|
| 583 | * Mon Nov 5 2001 Tim Waugh <twaugh@redhat.com> 1.0-8 |
---|
| 584 | - Hmm, still need to depend on sgml-common for /etc/sgml. |
---|
| 585 | |
---|
| 586 | * Mon Nov 5 2001 Tim Waugh <twaugh@redhat.com> 1.0-7 |
---|
| 587 | - Use xmlcatalog (libxml2) instead of install-catalog (sgml-common) in |
---|
| 588 | scriptlets. |
---|
| 589 | - Conflict with install-catalog if it can't handle quotes in catalogs. |
---|
| 590 | - Use release number in centralized catalog name, so that the scriptlets |
---|
| 591 | work properly. |
---|
| 592 | |
---|
| 593 | * Wed Oct 10 2001 Tim Waugh <twaugh@redhat.com> 1.0-6 |
---|
| 594 | - Change some Requires: to PreReq:s (bug #54507). |
---|
| 595 | |
---|
| 596 | * Mon Oct 8 2001 Tim Waugh <twaugh@redhat.com> 1.0-5 |
---|
| 597 | - Use release number in the installed directory name, so that the |
---|
| 598 | package scripts work. |
---|
| 599 | |
---|
| 600 | * Sat Oct 6 2001 Tim Waugh <twaugh@redhat.com> 1.0-4 |
---|
| 601 | - Restore the /etc/sgml/catalog manipulation again. |
---|
| 602 | - Oops, fix DTD path. |
---|
| 603 | |
---|
| 604 | * Sat Oct 6 2001 Tim Waugh <twaugh@redhat.com> 1.0-2 |
---|
| 605 | - Require xml-common. Use xmlcatalog. |
---|
| 606 | - Move files to /usr/share/xml. |
---|
| 607 | |
---|
| 608 | * Tue Jun 12 2001 Tim Waugh <twaugh@redhat.com> 1.0-1 |
---|
| 609 | - Build for Red Hat Linux. |
---|
| 610 | |
---|
| 611 | * Sat Jun 09 2001 Chris Runge <crunge@pobox.com> |
---|
| 612 | - Provides: docbook-dtd-xml (not docbook-dtd-sgml) |
---|
| 613 | - undo catalog patch and dbcentx patch (this resulted in an effectively |
---|
| 614 | broken DTD when the document was processed with XSL stylesheets); added a |
---|
| 615 | symbolic link to retain docbook.cat -> catalog; added ent |
---|
| 616 | - added ChangeLog to doc |
---|
| 617 | |
---|
| 618 | * Fri Jun 08 2001 Chris Runge <crunge@pobox.com> |
---|
| 619 | - created a 4.1.2 version |
---|
| 620 | - update required a change to OTHERCAT in postun |
---|
| 621 | - update required a change to the Makefile patch (no dbgenent.ent any more, |
---|
| 622 | apparently) |
---|
| 623 | |
---|
| 624 | * Wed Jan 24 2001 Tim Waugh <twaugh@redhat.com> |
---|
| 625 | - Scripts require fileutils. |
---|
| 626 | - Make scripts quieter. |
---|
| 627 | |
---|
| 628 | * Mon Jan 15 2001 Tim Waugh <twaugh@redhat.com> |
---|
| 629 | - Don't play so many macro games. |
---|
| 630 | - Don't use 'rpm' in post scripts. |
---|
| 631 | - Be sure to own xml-dtd-4.1 directory. |
---|
| 632 | |
---|
| 633 | * Sun Jan 14 2001 Tim Waugh <twaugh@redhat.com> |
---|
| 634 | - Change requirement on /usr/bin/install-catalog to sgml-common. |
---|
| 635 | |
---|
| 636 | * Tue Jan 09 2001 Tim Waugh <twaugh@redhat.com> |
---|
| 637 | - Change group. |
---|
| 638 | - Use %%{_tmppath}. |
---|
| 639 | - Correct typo. |
---|
| 640 | - rm before install |
---|
| 641 | - openjade not jade. |
---|
| 642 | - Build requires unzip. |
---|
| 643 | - Require install-catalog for post and postun. |
---|
| 644 | - Change Copyright: to License:. |
---|
| 645 | - Remove Packager: line. |
---|
| 646 | |
---|
| 647 | * Tue Jan 09 2001 Tim Waugh <twaugh@redhat.com> |
---|
| 648 | - Based on Eric Bischoff's new-trials packages. |
---|