]> git.pld-linux.org Git - packages/docbook-dtd30-sgml.git/blobdiff - docbook-dtd30-sgml.spec
- massive attack: adding Source-md5
[packages/docbook-dtd30-sgml.git] / docbook-dtd30-sgml.spec
index ebb9a762da09fe35055eee59637edab222b7b430..0fa2aa72c4306dfb9941a3d01542f9450de36d99 100644 (file)
@@ -1,22 +1,24 @@
 Summary:       SGML document type definition for DocBook 3.0
+Summary(es):   OASIS DTD DocBook Group para documentación técnica
+Summary(pl):   DTD dla dokumentów DocBook 3.0
+Summary(pt_BR):        DTD DocBook Davenport Group para documentação técnica
+Summary(ru):   SGML DTD ÄÌÑ ÔÅÈÎÉÞÅÓËÏÊ ÄÏËÕÍÅÎÔÁÃÉÉ × ÆÏÒÍÁÔÅ DocBook 3.0
+Summary(uk):   SGML DTD ÄÌÑ ÔÅÈΦÞÎϧ ÄÏËÕÍÅÎÔÁ槠נÆÏÒÍÁÔ¦ DocBook 3.0
 Name:          docbook-dtd30-sgml
 Version:       1.0
-Release:       12
-License:       Distributable
+Release:       17
+License:       distributable
 Group:         Applications/Text
-Group(de):     Applikationen/Text
-Group(pl):     Aplikacje/Tekst
 Source0:       http://www.oasis-open.org/docbook/sgml/3.0/docbk30.zip
+# Source0-md5: 9a7f5b1b7dd52d0ca4fb080619f0459c
 Source1:       %{name}-Makefile
 Patch0:                %{name}-catalog.patch
 URL:           http://www.oasis-open.org/docbook/
 BuildRequires: unzip
+Requires(post,postun): sgml-common >= 0.5
 Requires:      sgml-common >= 0.5
-Requires(post):                sgml-common >= 0.5
-Requires(postun):      sgml-common >= 0.5
-Requires:      fileutils
-BuildArch:     noarch
 Provides:      docbook-dtd-sgml
+BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -25,10 +27,31 @@ technical documentation texts (articles, books and manual pages). This
 syntax is SGML-compliant and is developed by the OASIS consortium.
 This is the version 3.0 of this DTD.
 
+%description -l es
+OASIS DTD DocBook para documentación técnica.
+
+%description -l pl
+DocBook DTD jest zestawem definicji dokumentów przeznaczonych do
+tworzenia dokumentacji programistycznej. Ten pakiet zawiera wersjê 3.0
+DTD.
+
+%description -l pt_BR
+DTD DocBook Davenport Group para documentação técnica.
+
+%description -l ru
+DocBook - ÜÔÏ SGML DTD (document type definition) Ó ÏÐÉÓÁÎÉÅÍ
+ÓÉÎÔÁËÓÉÓÁ ÔÅÇÏ× × ÔÅËÓÔÁÈ ÔÅÈÎÉÞÅÓËÏÊ ÄÏËÕÍÅÎÔÁÃÉÉ (ÓÔÁÔØÉ, ËÎÉÇÉ,
+man-ÓÔÒÁÎÉÃÙ) üÔÏÔ ÓÉÎÔÁËÓÉÓ Ñ×ÌÑÅÔÓÑ SGML-ÓÏ×ÍÅÓÔÉÍÙÍ, ÅÇÏ
+ÒÁÚÒÁÂÏÔÁÌÉ × ËÏÎÓÏÒÃÉÕÍÅ OASIS. üÔÏ ×ÅÒÓÉÑ 3.0 ÜÔÏÇÏ DTD.
+
+%description -l uk
+DocBook - ÃÅ SGML DTD (document type definition), ÝÏ ÏÐÉÓÕ¤ ÓÉÎÔÁËÓÉÓ
+ÔÅǦננÔÅËÓÔÁÈ ÔÅÈΦÞÎϧ ÄÏËÕÍÅÎÔÁ槠(ÓÔÁÔÔ¦, ËÎÉÇÉ, man-ÓÔÏÒ¦ÎËÉ).
+ãÅÊ ÓÉÎÔÁËÓÉÓ ¤ SGML-ÓÕͦÓÎÉÍ, ÊÏÇÏ ÒÏÚÒÏÂÌÅÎÏ × ËÏÎÓÏÒæÕͦ OASIS. ãÅ
+×ÅÒӦѠ3.0 ÃØÏÇÏ DTD.
 
 %prep
-%setup -q -c -T
-unzip %{SOURCE0}
+%setup -q -c
 chmod -R a+rX,g-w,o-w .
 cp %{SOURCE1} Makefile
 %patch0 -p0
@@ -38,51 +61,25 @@ rm -rf $RPM_BUILD_ROOT
 
 %{__make} install DESTDIR=$RPM_BUILD_ROOT
 
-gzip -9nf *.txt
-
 %clean
-rm -rf $DESTDIR
-
-%files
-%defattr(644,root,root,755)
-%doc *.gz
-%{_datadir}/sgml/docbook/sgml-dtd-3.0
+rm -rf $RPM_BUILD_ROOT
 
+%triggerpostun -- docbook-dtd30-sgml < 1.0-15
+if ! grep -q /etc/sgml/sgml-docbook-3.0.cat /etc/sgml/catalog ; then
+       /usr/bin/install-catalog --add /etc/sgml/sgml-docbook-3.0.cat /usr/share/sgml/docbook/sgml-dtd-3.0/catalog > /dev/null
+fi
 
 %post
-# Update the centralized catalog corresponding to this version of the DTD
-/usr/bin/install-catalog --add /etc/sgml/sgml-docbook-3.0.cat /usr/share/sgml/sgml-iso-entities-8879.1986/catalog > /dev/null
-/usr/bin/install-catalog --add /etc/sgml/sgml-docbook-3.0.cat /usr/share/sgml/docbook/sgml-dtd-3.0/catalog > /dev/null
-
-# The following lines are for the case in which the style sheets were
-# installed after another DTD but before this DTD
-STYLESHEETS=$(echo /usr/share/sgml/docbook/dsssl-stylesheets-*)
-STYLESHEETS=${STYLESHEETS##*/dsssl-stylesheets-}
-if [ "$STYLESHEETS" != "*" ]; then
-       /usr/bin/install-catalog --add /etc/sgml/sgml-docbook-3.0.cat /usr/share/sgml/openjade-1.3/catalog > /dev/null
-       /usr/bin/install-catalog --add /etc/sgml/sgml-docbook-3.0.cat /usr/share/sgml/docbook/dsssl-stylesheets-$STYLESHEETS/catalog > /dev/null
+if ! grep -q /etc/sgml/sgml-docbook-3.0.cat /etc/sgml/catalog ; then
+       /usr/bin/install-catalog --add /etc/sgml/sgml-docbook-3.0.cat /usr/share/sgml/docbook/sgml-dtd-3.0/catalog > /dev/null
 fi
 
-# Update the link to the current version of the DTD
-ln -sf /etc/sgml/sgml-docbook-3.0.cat /etc/sgml/sgml-docbook.cat
-
 %postun
-# Update the centralized catalog corresponding to this version of the DTD
-/usr/bin/install-catalog --remove /etc/sgml/sgml-docbook-3.0.cat /usr/share/sgml/sgml-iso-entities-8879.1986/catalog > /dev/null
-/usr/bin/install-catalog --remove /etc/sgml/sgml-docbook-3.0.cat /usr/share/sgml/docbook/sgml-dtd-3.0/catalog > /dev/null
-
-# The following lines are for the case in which the style sheets were
-# not uninstalled because there is still another DTD
-STYLESHEETS=$(echo /usr/share/sgml/docbook/dsssl-stylesheets-*)
-STYLESHEETS=${STYLESHEETS##*/dsssl-stylesheets-}
-if [ "$STYLESHEETS" != "*" ]; then
-       /usr/bin/install-catalog --remove /etc/sgml/sgml-docbook-3.0.cat /usr/share/sgml/openjade-1.3/catalog > /dev/null
-       /usr/bin/install-catalog --remove /etc/sgml/sgml-docbook-3.0.cat /usr/share/sgml/docbook/dsssl-stylesheets-$STYLESHEETS/catalog > /dev/null
+if [ "$1" = "0" ] ; then
+       /usr/bin/install-catalog --remove /etc/sgml/sgml-docbook-3.0.cat /usr/share/sgml/docbook/sgml-dtd-3.0/catalog > /dev/null
 fi
 
-# Update the link to the current version of the DTD
-if [ ! -e /etc/sgml/sgml-docbook-3.0.cat ]; then
-       rm -f /etc/sgml/sgml-docbook.cat
-       OTHERCAT=`ls /etc/sgml/sgml-docbook-?.?.cat 2> /dev/null | head --lines 1`
-       if [ -n "$OTHERCAT" ]; then ln -s $OTHERCAT /etc/sgml/sgml-docbook.cat; fi
-fi
+%files
+%defattr(644,root,root,755)
+%doc *.txt
+%{_datadir}/sgml/docbook/sgml-dtd-3.0
This page took 0.089116 seconds and 4 git commands to generate.