Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.2:ARM
docbook_3
docbook_3.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File docbook_3.spec of Package docbook_3
# # spec file for package docbook_3 # # Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: docbook_3 BuildRequires: sgml-skel BuildRequires: unzip Provides: dbhset Provides: docbk30 Provides: docbk31 Provides: docbook_3-dtd Obsoletes: docbk30 Requires: docbook_4 Requires: iso_ent %define regcat /usr/bin/sgml-register-catalog PreReq: %{regcat} /usr/bin/xmlcatalog Summary: DocBook DTD 3.x License: BSD-3-Clause ; MIT Group: Productivity/Publishing/DocBook Version: 3.1 Release: 0 ### Version macros are defined so I can use them below, ### don't use macros for "Source:" and "Patch:" values. %define dtd30 docbk30.zip Source0: http://www.oasis-open.org/docbook/docbook/3.0/docbk30.zip %define dtd31 docbk31.zip Source1: http://www.oasis-open.org/docbook/docbook/3.1/docbk31.zip # Docu now to be found at http://www.oasis-open.org/docbook/documentation/ %define docu dbhset.tar.gz Source2: http://www.ora.com/davenport/dbdoc/dbhset.tar.gz %define db3xver 3.1.7 %define db3x db3x317.zip Source3: http://nwalsh.com/docbook/xml/3.1.7/db3x317.zip %define db3sxver 3.1.7.1 %define sdb sdb3171.zip Source4: http://nwalsh.com/docbook/simple/3.1.7.1/sdb3171.zip Source5: %{name}-README.SuSE Source6: http://www.labs.redhat.com/png/png-support.dtd Source7: http://www.labs.redhat.com/png/png-support-3.1.dtd Source8: CATALOG.db3sxml Source9: CATALOG.db3xml Source10: CATALOG.docbk30 # CATALOG.docbk31 Source11: CATALOG.docbook_3 Source12: CATALOG.gnome %define pkgdif docbk30.dif Patch0: docbk30.dif BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch Url: http://www.oasis-open.org/docbook/ %description This package contains version 3.0 and 3.1 and an XML version. It is suitable for writing technical documentation. The documentation can be found in /usr/share/doc/packages/docbook_3. %define INSTALL install -m755 -s %define INSTALL_DIR install -d -m755 %define INSTALL_DATA install -m644 %define INSTALL_SCRIPT install -m755 %define sgml_dir %{_datadir}/sgml %define sgml_docbook_dir %{sgml_dir}/docbook %define sgml_docbook_dtd_dir %{sgml_docbook_dir}/dtd %define sgml_docbook_custom_dir %{sgml_docbook_dir}/custom %define sgml_docbook_style_dir %{sgml_docbook_dir}/stylesheet %define xml_dir %{_datadir}/xml %define xml_docbook_dir %{xml_dir}/docbook %define xml_docbook_dtd_dir %{xml_docbook_dir}/schema/dtd %define xml_docbook_custom_dir %{xml_docbook_dir}/custom %define xml_docbook_style_dir %{xml_docbook_dir}/stylesheet %define sgml_config_dir /var/lib/sgml %define sgml_sysconf_dir %{_sysconfdir}/sgml %define xml_config_dir /var/lib/xml %define xml_sysconf_dir %{_sysconfdir}/xml %prep %setup -q -n %{name} -c -T cp %{S:5} README.SuSE %{INSTALL_DIR} dtd/{3.0,3.1} html xml sdb cd dtd/3.0 unzip -aq $RPM_SOURCE_DIR/%{dtd30} cd ../3.1 unzip -aq $RPM_SOURCE_DIR/%{dtd31} cd ../../xml unzip -aq $RPM_SOURCE_DIR/%{db3x} cd ../sdb unzip -aq $RPM_SOURCE_DIR/%{sdb} cd ../html gzip -dc $RPM_SOURCE_DIR/%{docu} | tar -xf - cd .. # %setup -T -D -a 1 cp -p $RPM_SOURCE_DIR/png-support.dtd . cp -p $RPM_SOURCE_DIR/png-support-3.1.dtd . cp %{S:8} %{S:9} %{S:10} %{S:11} %{S:12} . cat $RPM_SOURCE_DIR/%{pkgdif} | patch -s -p0 rm -f html/index.html.orig chmod -R a+rX,g-w,o-w . find $RPM_BUILD_DIR -type d | xargs chmod 755 %build %install pkg_name=%{name} doc_dir=$RPM_BUILD_ROOT/%{_defaultdocdir}/$pkg_name %{INSTALL_DIR} $doc_dir/{30,31} %{INSTALL_DIR} $RPM_BUILD_ROOT%{sgml_docbook_dtd_dir}/{3.0,3.1,3.x-gnome} %{INSTALL_DIR} $RPM_BUILD_ROOT%{sgml_config_dir} %{INSTALL_DATA} dtd/3.0/* $RPM_BUILD_ROOT%{sgml_docbook_dtd_dir}/3.0 %{INSTALL_DATA} dtd/3.1/* $RPM_BUILD_ROOT%{sgml_docbook_dtd_dir}/3.1 %{INSTALL_DATA} png-support.dtd png-support-3.1.dtd \ $RPM_BUILD_ROOT%{sgml_docbook_dtd_dir}/3.x-gnome # xml %{INSTALL_DIR} $RPM_BUILD_ROOT%{xml_docbook_dtd_dir}/{3.1,3.1-sdb} %{INSTALL_DIR} $RPM_BUILD_ROOT%{xml_config_dir} cp -a xml/* $RPM_BUILD_ROOT%{xml_docbook_dtd_dir}/3.1 cp -a sdb/* $RPM_BUILD_ROOT%{xml_docbook_dtd_dir}/3.1-sdb # pushd $RPM_BUILD_ROOT%{sgml_docbook_dtd_dir} ln -sf %{xml_docbook_dtd_dir}/3.1 $RPM_BUILD_ROOT%{sgml_docbook_dtd_dir}/3.1xml ln -sf %{xml_docbook_dtd_dir}/3.1-sdb \ $RPM_BUILD_ROOT%{sgml_docbook_dtd_dir}/3.1-sdbxml # popd # %{INSTALL_DIR} $sgml_dir/USA-DOD/dtd # %{INSTALL_DIR} $sgml_dir/Davenport/{elements,entities,dtd} # %{INSTALL_DIR} $sgml_dir/OASIS/{elements,entities,dtd} %{INSTALL_DATA} element-list.txt README.SuSE $doc_dir c=$(echo CATALOG.*) %{INSTALL_DATA} $c $RPM_BUILD_ROOT%{sgml_config_dir} ln -sf %{sgml_config_dir}/CATALOG.docbook_3 \ $RPM_BUILD_ROOT%{sgml_dir}/CATALOG.docbk31 for f in $c; do ln -sf %{sgml_config_dir}/$f $RPM_BUILD_ROOT%{sgml_dir}/$f done # docomentation cp -a html $doc_dir %post if [ -x %{regcat} ]; then for c in docbook_3; do %{regcat} -a %{sgml_dir}/CATALOG.$c >/dev/null 2>&1 || true done fi exit 0 %postun if [ "$1" = "0" -a -x %{regcat} ]; then for c in docbook_3; do %{regcat} -r %{sgml_dir}/CATALOG.$c >/dev/null 2>&1 || true done fi exit 0 %files %defattr(-, root, root) %config %{sgml_config_dir}/CATALOG.* %{sgml_dir}/CATALOG.* %{sgml_docbook_dtd_dir}/3* %{xml_docbook_dtd_dir}/3* %{_defaultdocdir}/%{name} %dir %{sgml_docbook_dtd_dir} %dir %{xml_docbook_dir}/schema %dir %{xml_docbook_dtd_dir} %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor