packages: docbook-dtd42-sgml/docbook-dtd42-sgml.spec (NEW) - initial

arekm arekm at pld-linux.org
Wed Sep 2 09:05:21 CEST 2009


Author: arekm                        Date: Wed Sep  2 07:05:21 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- initial

---- Files affected:
packages/docbook-dtd42-sgml:
   docbook-dtd42-sgml.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/docbook-dtd42-sgml/docbook-dtd42-sgml.spec
diff -u /dev/null packages/docbook-dtd42-sgml/docbook-dtd42-sgml.spec:1.1
--- /dev/null	Wed Sep  2 09:05:21 2009
+++ packages/docbook-dtd42-sgml/docbook-dtd42-sgml.spec	Wed Sep  2 09:05:16 2009
@@ -0,0 +1,72 @@
+# $Revision$, $Date$
+%define ver	4.2
+%define sver	42
+Summary:	DocBook - DTD for technical documentation
+Summary(pl.UTF-8):	DocBook - DTD przeznaczone do pisania dokumentacji technicznej
+Name:		docbook-dtd%{sver}-sgml
+Version:	1.0
+Release:	1
+License:	Free
+Group:		Applications/Publishing/SGML
+URL:		http://www.oasis-open.org/docbook/
+Source0:	http://www.oasis-open.org/docbook/sgml/%{ver}/docbook-%{ver}.zip
+# Source0-md5:	0dfeb94569334dd22a62d90d99fc0630
+BuildRequires:	unzip
+Requires(post,postun):	sgml-common >= 0.5
+Requires:	sgml-common >= 0.5
+Requires:	sgmlparser
+Provides:	docbook-dtd
+Obsoletes:	docbook%{sver}-dtd
+Obsoletes:	docbook-sgml-%{ver}
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+DocBook - DTD for technical documentation.
+
+%description -l pl.UTF-8
+DocBook DTD jest zestawem definicji dokumentów przeznaczonych do
+tworzenia dokumentacji programistycznej. Stosowany jest do pisania
+podręczników systemowych, instrukcji technicznych jak i wielu innych
+ciekawych rzeczy.
+
+%prep
+%setup -q -c
+chmod 644 *
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_datadir}/sgml/docbook/sgml-dtd-%{ver}
+
+install  *.dtd *.mod *.dcl $RPM_BUILD_ROOT%{_datadir}/sgml/docbook/sgml-dtd-%{ver}/
+
+# install catalog (but filter out ISO entities)
+grep -v 'ISO ' docbook.cat > $RPM_BUILD_ROOT%{_datadir}/sgml/docbook/sgml-dtd-%{ver}/catalog
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+if ! grep -q /etc/sgml/sgml-docbook-%{ver}.cat /etc/sgml/catalog ; then
+	/usr/bin/install-catalog --add /etc/sgml/sgml-docbook-%{ver}.cat /usr/share/sgml/docbook/sgml-dtd-%{ver}/catalog > /dev/null
+fi
+
+%postun
+if [ "$1" = "0" ] ; then
+	/usr/bin/install-catalog --remove /etc/sgml/sgml-docbook-%{ver}.cat /usr/share/sgml/docbook/sgml-dtd-%{ver}/catalog > /dev/null
+fi
+
+%files
+%defattr(644,root,root,755)
+%doc ChangeLog
+%{_datadir}/sgml/docbook/*
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2009/09/02 07:05:16  arekm
+- initial
+
================================================================


More information about the pld-cvs-commit mailing list