Package docbook-slides: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 | # see https://bugzilla.altlinux.org/show_bug.cgi?id=10382 %define _localstatedir %{_var} %define pkg docbook-slides Summary: DocBook Slides document type and stylesheets Name: docbook-slides Version: 3.4.0 Release: alt3_19 License: MIT Group: Text tools URL: http://sourceforge.net/projects/docbook Source0: http://downloads.sourceforge.net/docbook/%{name}-%{version}.tar.gz Source1: %{name}.xml Source2: %{name}.cat Source3: %{name}.README.redhat #tests update and buildtools could be downloaded at upstream svn ... e.g. #http://docbook.svn.sourceforge.net/viewvc/docbook/trunk/slides/tests/ Source4: %{name}-tests.tar.gz BuildArch: noarch Requires: docbook-dtds Requires: docbook-xsl Requires: docbook-simple Requires: xml-common sgml-common Requires(post): sed Requires(post): libxml2 xml-utils Requires(postun): libxml2 xml-utils Source44: import.info %description DocBook Slides provides customization layers of the both the Simplified and the full DocBook XML DTD, as well as the DocBook XSL Stylesheets. This package contains the XML document type definition and stylesheets for processing DocBook Slides XML. The slides doctype and stylesheets are for generating presentations, primarily in HTML. %prep %setup -q -n %{pkg}-%{version} tar xf %{SOURCE4} %build %install DESTDIR=$RPM_BUILD_ROOT%{_datadir}/xml/docbook/slides/%{version} mkdir -p $DESTDIR cp -a browser $DESTDIR cp -a graphics $DESTDIR cp -a schema $DESTDIR cp -a xsl $DESTDIR cp -a VERSION $DESTDIR cp -a catalog.xml $DESTDIR ## Install package catalogs into /etc/*ml/ ## XML_CAT_DIR=$RPM_BUILD_ROOT%{_sysconfdir}/xml mkdir -p $XML_CAT_DIR install -p -m 644 %{SOURCE1} $XML_CAT_DIR SGML_CAT_DIR=$RPM_BUILD_ROOT%{_sysconfdir}/sgml mkdir -p $SGML_CAT_DIR install -p -m 644 %{SOURCE2} $SGML_CAT_DIR cp -p %{SOURCE3} ./README2 %files %doc doc %doc tests %doc README %doc NEWS %doc README2 %dir %{_datadir}/xml/docbook/slides/ %{_datadir}/xml/docbook/slides/%{version} %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/sgml/docbook-slides.cat %config(noreplace) %{_sysconfdir}/xml/docbook-slides.xml %post ROOT_XML_CATALOG=%{_sysconfdir}/xml/catalog PKG_XML_CATALOG=%{_sysconfdir}/xml/docbook-slides.xml #LOCAL_XML_CATALOG=/usr/share/xml/docbook/slides/3.4.0/catalog.xml # # Register it in the super catalog with the appropriate delegates # if [ -w $ROOTCATALOG ] then %{_bindir}/xmlcatalog --noout --add "delegatePublic" \ "-//Norman Walsh//DTD Slides" \ "file://$PKG_XML_CATALOG" $ROOT_XML_CATALOG %{_bindir}/xmlcatalog --noout --add "delegateSystem" \ "http://docbook.sourceforge.net/release/slides"; \ "file://$PKG_XML_CATALOG" $ROOT_XML_CATALOG %{_bindir}/xmlcatalog --noout --add "delegateURI" \ "http://docbook.sourceforge.net/release/slides"; \ "file://$PKG_XML_CATALOG" $ROOT_XML_CATALOG fi #################################################################### ################# SGML catalog registration ###################### ROOT_SGML_CATALOG=%{_sysconfdir}/sgml/catalog PKG_SGML_CATALOG=%{_sysconfdir}/sgml/docbook-slides.cat #### Root SGML Catalog Entries #### #### "Delegate" appropriate lookups to package catalog #### ############## use install-catalog ###################### if [ -w $ROOT_SGML_CATALOG ] then # xmlcatalog deletes OVERRIDE YES directive, use install-catalog instead # /usr/bin/xmlcatalog --sgml --noout --add \ # "/etc/sgml/docbook-slides.cat" install-catalog --add \ $PKG_SGML_CATALOG \ $ROOT_SGML_CATALOG 1>/dev/null # Hack to workaround bug in install-catalog sed -i '/^CATALOG.*log\"$/d' $PKG_SGML_CATALOG sed -i '/^CATALOG.*log$/d' $PKG_SGML_CATALOG fi #################################################################### # Finally, make sure everything in /etc/*ml is readable! /bin/chmod a+r %{_sysconfdir}/sgml/* /bin/chmod a+r %{_sysconfdir}/xml/* %postun if [ "$1" = 0 ]; then %{_bindir}/xmlcatalog --sgml --noout --del \ %{_sysconfdir}/sgml/catalog \ "%{_sysconfdir}/sgml/docbook-slides.cat" %{_bindir}/xmlcatalog --noout --del \ "file://%{_sysconfdir}/xml/docbook-slides.xml" \ %{_sysconfdir}/xml/catalog fi %changelog * Wed Sep 27 2017 Igor Vlasenko <viy@altlinux.ru> 3.4.0-alt3_19 - update to new release by fcimport * Thu Mar 16 2017 Igor Vlasenko <viy@altlinux.ru> 3.4.0-alt3_18 - update to new release by fcimport * Tue Jul 26 2016 Igor Vlasenko <viy@altlinux.ru> 3.4.0-alt3_17 - update to new release by fcimport * Sun Sep 20 2015 Igor Vlasenko <viy@altlinux.ru> 3.4.0-alt3_16 - update to new release by fcimport * Tue Jul 01 2014 Igor Vlasenko <viy@altlinux.ru> 3.4.0-alt3_15 - update to new release by fcimport * Mon Aug 12 2013 Igor Vlasenko <viy@altlinux.ru> 3.4.0-alt3_14 - update to new release by fcimport * Fri Feb 22 2013 Igor Vlasenko <viy@altlinux.ru> 3.4.0-alt3_13 - update to new release by fcimport * Mon Dec 03 2012 Igor Vlasenko <viy@altlinux.ru> 3.4.0-alt3_12 - update to new release by fcimport * Fri Jul 27 2012 Igor Vlasenko <viy@altlinux.ru> 3.4.0-alt3_11 - update to new release by fcimport * Wed Mar 21 2012 Igor Vlasenko <viy@altlinux.ru> 3.4.0-alt3_10 - rebuild to get rid of #27020 * Wed Feb 01 2012 Igor Vlasenko <viy@altlinux.ru> 3.4.0-alt2_10 - update to new release by fcimport * Mon Aug 01 2011 Igor Vlasenko <viy@altlinux.ru> 3.4.0-alt2_9 - initial release by fcimport * Sun Jul 31 2011 Igor Vlasenko <viy@altlinux.ru> 3.4.0-alt1_9 - initial release by fcimport |