Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.2:Update
html-dtd
html-dtd.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File html-dtd.spec of Package html-dtd
# # spec file for package html-dtd (Version 2004.1.26) # # Copyright (c) 2009 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/ # # norootforbuild Name: html-dtd BuildRequires: sgml-skel Url: http://www.w3.org/MarkUp/ License: SUSE-Public-Domain Group: Productivity/Publishing/HTML/Tools Provides: html_dtd Obsoletes: html_dtd %define regcat /usr/bin/sgml-register-catalog PreReq: %{regcat} BuildArch: noarch AutoReqProv: on Version: 2004.1.26 Release: 209 Summary: HTML DTDs (Document Type Definitions) and Documents Source0: http://www.w3.org/MarkUp/html-spec/html-spec-19950922.tar.gz # Separate files at: http://www.w3.org/TR/REC-html32.html: Source1: html-3.2.tar.gz # Separate files at: ftp://ftp.cs.tcd.ie/isohtml: # Source2: iso-html.tar.gz Source3: http://www.w3.org/TR/1998/REC-html40-19980424/html40.tgz Source4: http://www.w3.org/MarkUp/html40-updates/REC-html40-19980424-errata.html # the real filename is w/o "1"... : # Source5: http://www.w3.org/TR/html40/html40.tgz Source5: http://www.w3.org/TR/html40/html401.tgz Source7: http://www.w3.org/Consortium/Legal/copyright-software.html Source8: %{name}-README.SuSE Source9: CATALOG.html Source10: CATALOG.html-3.2 Source11: CATALOG.html-4.0 Patch: html_dtd.dif BuildRoot: %{_tmppath}/%{name}-%{version}-build %description Document Type Definitions (DTDs) for HTML 2.0, HTML 3.2, HTML 4.0, and HTML 4.01. This package also contains the documentation (located in /usr/share/doc/packages/html-dtd). %define INSTALL install -m755 -s %define INSTALL_DIR install -d -m755 %define INSTALL_DATA install -m644 %define sgml_dir %{_datadir}/sgml %define sgml_html_dir %{sgml_dir}/html %define sgml_html_dtd_dir %{sgml_html_dir}/dtd %define sgml_var_dir /var/lib/sgml %prep %setup -c -T cp %{S:9} %{S:10} %{S:11} . mkdir html (cd html && tar zxf $RPM_SOURCE_DIR/html-spec-19950922.tar.gz) %setup -T -D -a1 # iso #%setup -T -D -a2 mkdir html-4.0 (cd html-4.0 && tar zxf $RPM_SOURCE_DIR/html40.tgz \ && cp -p $RPM_SOURCE_DIR/REC-html40-19980424-errata.html .) mkdir html-4.01 (cd html-4.01 && tar zxf $RPM_SOURCE_DIR/html401.tgz) cp -p %{SOURCE7} . %{INSTALL_DATA} %{SOURCE8} README.SuSE %patch -p1 find . -type f | xargs chmod 644 find . -type d | xargs chmod 755 %build pushd html-4.01 { sed -e 's:\ \([a-zA-Z0-9]*\.\(ent\|dtd\)\)$: %{sgml_html_dtd_dir}/4.01/\1:g' \ HTML4.cat echo 'PUBLIC "-//W3C//ENTITIES Latin 1//EN//HTML" "%{sgml_html_dtd_dir}/4.01/HTMLlat1.ent"' for d in '-//W3C//DTD HTML 4.01//EN' \ '-//W3C//DTD HTML 4.01 Transitional//EN' \ '-//W3C//DTD HTML 4.01 Frameset//EN'; do echo "DTDDECL \"$d\" \"%{sgml_html_dtd_dir}/4.01/HTML4.decl\"" done } > ../CATALOG.html-4.01 %install find . -name '*.gif' | xargs chmod 644 export RPM_BUILD_ROOT if [ ! "x" = "x$RPM_BUILD_ROOT" ] ; then rm -fr $RPM_BUILD_ROOT %{INSTALL_DIR} $RPM_BUILD_ROOT fi # %{INSTALL_DIR} %{sgml_dir}/iso-html # %{INSTALL_DIR} $RPM_BUILD_ROOT%{sgml_dir}/{html,html-3.2,html-4.0,html-4.01} %{INSTALL_DIR} $RPM_BUILD_ROOT%{sgml_html_dtd_dir}/{2.0,3.2,4.0,4.01} %{INSTALL_DIR} $RPM_BUILD_ROOT%{sgml_var_dir} cp CATALOG.html* $RPM_BUILD_ROOT%{sgml_var_dir} (cd html && %{INSTALL_DATA} catalog *.dtd html.decl ISOlat1.sgml \ $RPM_BUILD_ROOT%{sgml_html_dtd_dir}/2.0 \ && rm -f *.ms *.texi Makefile *.sgm) (cd html-3.2 \ && %{INSTALL_DATA} HTML32.cat HTML32.dtd ISOlat1.ent \ $RPM_BUILD_ROOT%{sgml_html_dtd_dir}/3.2) (cd html-4.0 \ && %{INSTALL_DATA} *.cat *.decl *.dtd *.ent \ $RPM_BUILD_ROOT%{sgml_html_dtd_dir}/4.0) (cd html-4.01 \ && %{INSTALL_DATA} *.cat *.decl *.dtd *.ent \ $RPM_BUILD_ROOT%{sgml_html_dtd_dir}/4.01) for f in $(find $RPM_BUILD_ROOT%{sgml_html_dtd_dir} -name '*.decl'); do pushd ${f%/*} >/dev/null file=${f##*/} ln -s ${file} ${file/.decl/.dcl} popd >/dev/null done # useful links %{INSTALL_DIR} $RPM_BUILD_ROOT%{sgml_dir}/IETF/dtd %{INSTALL_DIR} $RPM_BUILD_ROOT%{sgml_dir}/W3C/{dtd,entities} # %{INSTALL_DIR} %{sgml_dir}/ISO_15xxx/{entities,dtd} (cd $RPM_BUILD_ROOT%{sgml_dir}/IETF/dtd \ && ln -sf ../../html/dtd/2.0/html.dtd HTML \ && ln -sf ../../html/dtd/2.0/html.dtd HTML_2.0 \ && ln -sf ../../html/dtd/2.0/html.dtd HTML_Level_2 \ && ln -sf ../../html/dtd/2.0/html.dtd HTML_2.0_Level_2 \ && ln -sf ../../html/dtd/2.0/html-1.dtd HTML_Level_1 \ && ln -sf ../../html/dtd/2.0/html-1.dtd HTML_2.0_Level_1 \ && ln -sf ../../html/dtd/2.0/html-s.dtd HTML_Strict \ && ln -sf ../../html/dtd/2.0/html-s.dtd HTML_2.0_Strict \ && ln -sf ../../html/dtd/2.0/html-s.dtd HTML_Strict_Level_2 \ && ln -sf ../../html/dtd/2.0/html-s.dtd HTML_2.0_Strict_Level_2 \ && ln -sf ../../html/dtd/2.0/html-1s.dtd HTML_Strict_Level_1 \ && ln -sf ../../html/dtd/2.0/html-1s.dtd HTML_2.0_Strict_Level_1 ) (cd $RPM_BUILD_ROOT%{sgml_dir}/W3C/dtd \ && ln -sf ../../html/dtd/3.2/HTML32.dtd HTML_3.2 \ && ln -sf ../../html/dtd/3.2/HTML32.dtd HTML_3.2_Final ) install-dtd.sh -p html/dtd/4.0 -s $RPM_BUILD_ROOT%{sgml_dir} \ -f strict.dtd \ -i '-//W3C//DTD HTML 4.0//EN' install-dtd.sh -p html/dtd/4.0 -s $RPM_BUILD_ROOT%{sgml_dir} \ -f loose.dtd \ -i '-//W3C//DTD HTML 4.0 Transitional//EN' install-dtd.sh -p html/dtd/4.0 -s $RPM_BUILD_ROOT%{sgml_dir} \ -f frameset.dtd \ -i '-//W3C//DTD HTML 4.0 Frameset//EN' # "Latin 1" and "Latin1" install-dtd.sh -p html/dtd/4.0 -s $RPM_BUILD_ROOT%{sgml_dir} \ -f HTMLlat1.ent \ -i '-//W3C//ENTITIES Latin 1//EN//HTML' install-dtd.sh -p html/dtd/4.0 -s $RPM_BUILD_ROOT%{sgml_dir} \ -f HTMLlat1.ent \ -i '-//W3C//ENTITIES Latin1//EN//HTML' install-dtd.sh -p html/dtd/4.0 -s $RPM_BUILD_ROOT%{sgml_dir} \ -f HTMLspecial.ent \ -i '-//W3C//ENTITIES Special//EN//HTML' install-dtd.sh -p html/dtd/4.0 -s $RPM_BUILD_ROOT%{sgml_dir} \ -f HTMLsymbol.ent \ -i '-//W3C//ENTITIES Symbols//EN//HTML' install-dtd.sh -p html/dtd/4.01 -s $RPM_BUILD_ROOT%{sgml_dir} \ -f strict.dtd \ -i '-//W3C//DTD HTML 4.01//EN' install-dtd.sh -p html/dtd/4.01 -s $RPM_BUILD_ROOT%{sgml_dir} \ -f loose.dtd \ -i '-//W3C//DTD HTML 4.01 Transitional//EN' install-dtd.sh -p html/dtd/4.01 -s $RPM_BUILD_ROOT%{sgml_dir} \ -f frameset.dtd \ -i '-//W3C//DTD HTML 4.01 Frameset//EN' # "Latin 1" and "Latin1" install-dtd.sh -p html/dtd/4.01 -s $RPM_BUILD_ROOT%{sgml_dir} \ -f HTMLlat1.ent \ -i '-//W3C//ENTITIES Latin 1//EN//HTML' install-dtd.sh -p html/dtd/4.01 -s $RPM_BUILD_ROOT%{sgml_dir} \ -f HTMLlat1.ent \ -i '-//W3C//ENTITIES Latin1//EN//HTML' install-dtd.sh -p html/dtd/4.01 -s $RPM_BUILD_ROOT%{sgml_dir} \ -f HTMLspecial.ent \ -i '-//W3C//ENTITIES Special//EN//HTML' install-dtd.sh -p html/dtd/4.01 -s $RPM_BUILD_ROOT%{sgml_dir} \ -f HTMLsymbol.ent \ -i '-//W3C//ENTITIES Symbols//EN//HTML' %define all_html_ver html html-3.2 html-4.0 html-4.01 pushd $RPM_BUILD_ROOT%{sgml_dir} ln -sf ../../../var/lib/sgml/CATALOG.html CATALOG.html ln -sf ../../../var/lib/sgml/CATALOG.html-3.2 CATALOG.html-3.2 ln -sf ../../../var/lib/sgml/CATALOG.html-4.0 CATALOG.html-4.0 ln -sf ../../../var/lib/sgml/CATALOG.html-4.01 CATALOG.html-4.01 popd # && ln -sf ../../../var/lib/sgml/CATALOG.iso-html CATALOG.iso-html %post if [ -x %{regcat} ]; then for c in %{all_html_ver}; do grep -q -e "%{sgml_dir}/CATALOG.$c\\>" /etc/sgml/catalog \ || %{regcat} -a %{sgml_dir}/CATALOG.$c >/dev/null 2>&1 done fi exit 0 %postun if [ "$1" = "0" -a -x %{regcat} ]; then for c in %{all_html_ver}; do %{regcat} -r %{sgml_dir}/CATALOG.$c >/dev/null 2>&1 done fi exit 0 %files %defattr(-, root, root) %doc README.SuSE index.html %doc html %doc html-3.2 %doc html-4.0 %doc html-4.01 %doc copyright-software.html # %doc iso-html %config /var/lib/sgml/CATALOG.* # %config /var/lib/sgml/CATALOG.iso-html %dir /usr/share/sgml/W3C /usr/share/sgml/CATALOG.* # /usr/share/sgml/CATALOG.iso-html /usr/share/sgml/IETF #/usr/share/sgml/ISO_15xxx %dir /usr/share/sgml/W3C/dtd /usr/share/sgml/W3C/dtd/* %dir /usr/share/sgml/W3C/entities /usr/share/sgml/W3C/entities/* %dir /usr/share/sgml/html /usr/share/sgml/html/dtd # /usr/share/sgml/html-4.0 # /usr/share/sgml/html-4.01 # /usr/share/sgml/html # /usr/share/sgml/iso-html %changelog * Fri Jan 23 2009 ro@suse.de - clean up changelog * Wed Aug 16 2006 ke@suse.de - Remove SuSEconfig call. * Wed Jan 25 2006 mls@suse.de - converted neededforbuild to BuildRequires * Mon Feb 23 2004 hmacht@suse.de - building as non-root * Mon Jan 26 2004 ke@suse.de - Adjust directories according to FHS 2.3: * Move SGML DTDs to /usr/share/sgml/html. * Keep CATALOG.* files in /usr/share/sgml for the time being. * Provide compatibility links for SL =< 9.0 (log this info in /var/adm/SuSEconfig/run-sgmldir-links for later processing). * Wed Jun 04 2003 ke@suse.de - Use %%postun instead of %%preun; reported by Ruediger Oertel. * Tue Jun 03 2003 ke@suse.de - Only on deinstallation remove catalog reference from /etc/sgml/catalog. * Wed Nov 27 2002 ke@suse.de - Use sgml-register-catalog to register catalog files. - Drop SGMLDECL reference; opensp (onsgmls) resp. openjade support DTDDECL. * Mon Aug 05 2002 ke@suse.de - Make sure Emacs will find "ENTITIES Latin 1" and "ENTITIES Latin1". * Mon Oct 29 2001 ke@suse.de - Fix dangling symlinks. Reported by Rainer Klute [# 12061]. - Add sgml-skel to neededforbuild and use it to install links. - Fix typo. Reported by Ulrich Windl [# 12050]. - Add html-dtd-README.SuSE as an own source file and adjust it: xhtml was moved to xhtml-dtd on 2001-03-15. * Thu Mar 15 2001 ke@suse.de - Rename html_dtd -> html-dtd. - Drop xhtml (now available as xhtml-dtd) [#6723]. * Fri Oct 27 2000 bk@suse.de - fix gif file permissions (e.g. form_exmpl.gif, was 666). * Wed Jul 05 2000 ke@suse.de - Fix link in index.html (reported by Ulrich Windl). * Thu Jan 27 2000 ke@suse.de - update XHTML to XHTML 1.0 (now a W3C Recommendation). - use get_version_number.sh. * Mon Jan 10 2000 ke@suse.de - make XHTML active (provide catalog entries). - use date string as the version number. - use an rpm macro for the version number ;))) . * Sun Dec 19 1999 ke@suse.de - add new version of XHTML. * Sun Nov 28 1999 ke@suse.de - drop iso-html (copyright is unclear). - install copyright notice. - add HTML 4.01 (proposed recommendation) (#1159). - add XHTML (working draft) and install it as documentation (#1159). - cleanup the check invocation. * Mon Sep 13 1999 bs@suse.de - ran old prepare_spec on spec file to switch to new prepare_spec. * Thu Sep 09 1999 bs@suse.de - fixed call of Check at the end of %%install section * Fri Dec 18 1998 ke@suse.de - install CATALOG files at the default locations: /var/lib/sgml -> /usr/share/sgml. * Fri Jul 10 1998 ke@suse.de - install ISOlat1.sgml (HTML 2.0). - fix file permissions. * Wed May 27 1998 ke@suse.de - Update HTML 4.0 Specification (W3C Recommendation 1998-04-24). * Sun Jan 18 1998 ke@suse.de - Update HTML 4.0 Specification (W3C Recommendation 18-Dec-1997). - index.html: Provide better link for 4.0. - install HTML 4.0 DTD properly. * Sat Sep 27 1997 ke@suse.de * Add HTML 4.0 Specification (Draft 1997/09/17). * Add index.html. * Mon Jul 07 1997 ke@suse.de * html_dtd.plist: Add link dirs. * Wed Jul 02 1997 ke@suse.de * initial package: Includes the DTDs for HTML 2.0, HTML 3.2, and ISO-HTML, plus some docs.
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