2012-02-07 15:28:09 +00:00
|
|
|
#
|
|
|
|
# spec file for package suse-xsl-stylesheets
|
|
|
|
#
|
2017-09-28 15:57:44 +00:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2012-02-07 15:28:09 +00:00
|
|
|
#
|
2012-05-11 08:22:43 +00:00
|
|
|
# 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.
|
2012-02-07 15:28:09 +00:00
|
|
|
|
2012-05-11 08:22:43 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
2012-02-10 10:18:33 +00:00
|
|
|
#
|
2013-09-02 08:54:34 +00:00
|
|
|
|
|
|
|
|
2012-02-07 15:28:09 +00:00
|
|
|
Name: suse-xsl-stylesheets
|
2017-09-28 15:57:44 +00:00
|
|
|
Version: 2.0.8
|
2012-05-11 08:22:43 +00:00
|
|
|
Release: 0
|
2016-09-15 12:18:47 +00:00
|
|
|
|
|
|
|
###############################################################
|
|
|
|
#
|
|
|
|
# IMPORTANT:
|
|
|
|
# Only edit this file directly in the Git repo:
|
|
|
|
# https://github.com/openSUSE/daps, branch develop,
|
|
|
|
# packaging/suse-xsl-stylesheets.spec
|
|
|
|
#
|
|
|
|
# Your changes will be lost on the next update.
|
|
|
|
# If you do not have access to the Git repository, notify
|
|
|
|
# <fsundermeyer@opensuse.org> and <toms@opensuse.org>
|
|
|
|
# or send a patch.
|
|
|
|
#
|
|
|
|
################################################################
|
|
|
|
|
2016-09-30 12:43:15 +00:00
|
|
|
%define susexsl_catalog catalog-for-%{name}.xml
|
2016-09-15 12:18:47 +00:00
|
|
|
%define db_xml_dir %{_datadir}/xml/docbook
|
|
|
|
%define suse_styles_dir %{db_xml_dir}/stylesheet
|
|
|
|
|
2016-04-22 12:05:36 +00:00
|
|
|
Summary: SUSE-Branded Stylesheets for DocBook
|
2012-02-07 15:28:09 +00:00
|
|
|
License: GPL-2.0 or GPL-3.0
|
|
|
|
Group: Productivity/Publishing/XML
|
2012-05-11 08:22:43 +00:00
|
|
|
Url: http://sourceforge.net/p/daps/suse-xslt
|
2014-01-14 14:39:39 +00:00
|
|
|
Source0: %{name}-%{version}.tar.bz2
|
2015-12-03 15:48:06 +00:00
|
|
|
Source1: susexsl-fetch-source-git
|
|
|
|
Source2: %{name}.rpmlintrc
|
2016-09-15 12:18:47 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildArch: noarch
|
|
|
|
|
2015-04-24 21:42:44 +00:00
|
|
|
BuildRequires: aspell
|
|
|
|
BuildRequires: aspell-en
|
2013-02-13 14:16:52 +00:00
|
|
|
BuildRequires: docbook-xsl-stylesheets >= 1.77
|
2016-04-22 12:05:36 +00:00
|
|
|
BuildRequires: docbook5-xsl-stylesheets >= 1.77
|
2012-02-07 15:56:24 +00:00
|
|
|
BuildRequires: fdupes
|
2016-04-22 12:05:36 +00:00
|
|
|
BuildRequires: libxml2-tools
|
2012-02-07 15:28:09 +00:00
|
|
|
BuildRequires: libxslt
|
|
|
|
BuildRequires: make
|
2016-09-15 12:18:47 +00:00
|
|
|
# Only needed to fix the "have choice" error between xerces-j2 and crimson
|
|
|
|
%if 0%{?suse_version} == 1210
|
|
|
|
BuildRequires: xerces-j2
|
|
|
|
%endif
|
|
|
|
BuildRequires: fontpackages-devel
|
2013-01-16 12:52:43 +00:00
|
|
|
BuildRequires: trang
|
2016-09-15 12:18:47 +00:00
|
|
|
|
2017-09-28 15:57:44 +00:00
|
|
|
# docbook_4/docbook_5 are required to be able to transform DocBook documents
|
|
|
|
# that use predefined DocBook entities.
|
2016-08-30 08:03:34 +00:00
|
|
|
Requires: docbook_4
|
|
|
|
Requires: docbook_5
|
2016-09-15 12:18:47 +00:00
|
|
|
Requires: docbook-xsl-stylesheets >= 1.77
|
|
|
|
Requires: docbook5-xsl-stylesheets >= 1.77
|
|
|
|
Requires: libxslt
|
|
|
|
Requires: aspell-en
|
2017-09-28 15:57:44 +00:00
|
|
|
Requires: sgml-skel >= 0.7
|
|
|
|
Requires(post): sgml-skel >= 0.7
|
|
|
|
Requires(postun): sgml-skel >= 0.7
|
2016-09-15 12:18:47 +00:00
|
|
|
|
|
|
|
|
2013-09-02 08:54:34 +00:00
|
|
|
#------
|
|
|
|
# Fonts
|
|
|
|
#------
|
2016-09-15 12:18:47 +00:00
|
|
|
|
Accepting request 416410 from home:stfnknorr:branches:Documentation:Tools
Stable release of the SUSE XSL stylesheets 2.0.6:
Find issues in our GitHub tracker at
https://github.com/openSUSE/suse-xsl/issues/NUMBER
* Schema
- Completely removed schemas from SUSE XSL Stylesheets: Schemas
can now be found at https://github.com/openSUSE/geekodoc
* SUSE Word List for aspell
- Added more words, many of which were found in SUSE release
notes
* Stylesheets (PDF)
- Allow disabling secondary branding (Geeko Tail) via parameter:
enable.secondary.branding=0
* Stylesheets (XHTML)
- Added syntax highlighting for screens
- To enable, add language="..." to your screen
- Recognized languages are: bash, c++, css, diff, html, xml,
http, ini, json, java, javascript, makefile, nginx, php,
perl, python, ruby, sql, crmsh, dockerfile, lisp, yaml
- Report Bug Links: Fixed ampersands in Bugzilla URLs
- Report Bug Links: Fixed JavaScript responsible for GitHub labels
* Common Stylesheet Changes
- Fixed a number of L10N issues in CJK and European languages
(suse-xsl #218, suse-xsl #51, suse-xsl #200, suse-xsl #82,
suse-xsl #87, suse-xsl #79)
- Reverted back to VERSION.xsl as used by upstream for
compatibility
- Improved screen trimming behavior to fix screens that contain
whitespace at beginning and end
* Packaging
- Added more fonts to requires to avoid broken foreign-language
PDF builds in the build service
- Removed mentions of schemas from spec file (see top)
OBS-URL: https://build.opensuse.org/request/show/416410
OBS-URL: https://build.opensuse.org/package/show/Documentation:Tools/suse-xsl-stylesheets?expand=0&rev=102
2016-08-01 14:01:07 +00:00
|
|
|
# Western fallback: currently necessary for building with XEP, it seems.
|
|
|
|
Requires: ghostscript-fonts-std
|
|
|
|
# Western fallback 2: These should make the Ghostscript fonts unnecessary.
|
2013-09-02 08:54:34 +00:00
|
|
|
Requires: gnu-free-fonts
|
2016-09-15 12:18:47 +00:00
|
|
|
# "Generic" font for use in cases where we don't want one of the gnu-free-fonts
|
|
|
|
Requires: dejavu-fonts
|
|
|
|
|
|
|
|
# FONTS USED IN "suse" (aka "suse2005") STYLESHEETS
|
|
|
|
# Proprietary Western:
|
|
|
|
Recommends: agfa-fonts
|
Accepting request 416410 from home:stfnknorr:branches:Documentation:Tools
Stable release of the SUSE XSL stylesheets 2.0.6:
Find issues in our GitHub tracker at
https://github.com/openSUSE/suse-xsl/issues/NUMBER
* Schema
- Completely removed schemas from SUSE XSL Stylesheets: Schemas
can now be found at https://github.com/openSUSE/geekodoc
* SUSE Word List for aspell
- Added more words, many of which were found in SUSE release
notes
* Stylesheets (PDF)
- Allow disabling secondary branding (Geeko Tail) via parameter:
enable.secondary.branding=0
* Stylesheets (XHTML)
- Added syntax highlighting for screens
- To enable, add language="..." to your screen
- Recognized languages are: bash, c++, css, diff, html, xml,
http, ini, json, java, javascript, makefile, nginx, php,
perl, python, ruby, sql, crmsh, dockerfile, lisp, yaml
- Report Bug Links: Fixed ampersands in Bugzilla URLs
- Report Bug Links: Fixed JavaScript responsible for GitHub labels
* Common Stylesheet Changes
- Fixed a number of L10N issues in CJK and European languages
(suse-xsl #218, suse-xsl #51, suse-xsl #200, suse-xsl #82,
suse-xsl #87, suse-xsl #79)
- Reverted back to VERSION.xsl as used by upstream for
compatibility
- Improved screen trimming behavior to fix screens that contain
whitespace at beginning and end
* Packaging
- Added more fonts to requires to avoid broken foreign-language
PDF builds in the build service
- Removed mentions of schemas from spec file (see top)
OBS-URL: https://build.opensuse.org/request/show/416410
OBS-URL: https://build.opensuse.org/package/show/Documentation:Tools/suse-xsl-stylesheets?expand=0&rev=102
2016-08-01 14:01:07 +00:00
|
|
|
# Fallback for proprietary Western:
|
2017-02-09 13:11:05 +00:00
|
|
|
# (openSUSE provides liberation2-fonts, while SLE 12 is currently stuck on v1.)
|
2017-06-16 11:49:32 +00:00
|
|
|
# bsc#1044521
|
|
|
|
%if ( 0%{?is_opensuse} && 0%{?sle_version} > 120200 ) || 0%{suse_version} > 1320
|
2017-02-09 13:11:05 +00:00
|
|
|
Requires: liberation2-fonts
|
|
|
|
%else
|
2013-09-02 08:54:34 +00:00
|
|
|
Requires: liberation-fonts
|
2017-02-09 13:11:05 +00:00
|
|
|
%endif
|
2017-06-16 11:49:32 +00:00
|
|
|
|
2013-09-02 08:54:34 +00:00
|
|
|
# Japanese:
|
Accepting request 416410 from home:stfnknorr:branches:Documentation:Tools
Stable release of the SUSE XSL stylesheets 2.0.6:
Find issues in our GitHub tracker at
https://github.com/openSUSE/suse-xsl/issues/NUMBER
* Schema
- Completely removed schemas from SUSE XSL Stylesheets: Schemas
can now be found at https://github.com/openSUSE/geekodoc
* SUSE Word List for aspell
- Added more words, many of which were found in SUSE release
notes
* Stylesheets (PDF)
- Allow disabling secondary branding (Geeko Tail) via parameter:
enable.secondary.branding=0
* Stylesheets (XHTML)
- Added syntax highlighting for screens
- To enable, add language="..." to your screen
- Recognized languages are: bash, c++, css, diff, html, xml,
http, ini, json, java, javascript, makefile, nginx, php,
perl, python, ruby, sql, crmsh, dockerfile, lisp, yaml
- Report Bug Links: Fixed ampersands in Bugzilla URLs
- Report Bug Links: Fixed JavaScript responsible for GitHub labels
* Common Stylesheet Changes
- Fixed a number of L10N issues in CJK and European languages
(suse-xsl #218, suse-xsl #51, suse-xsl #200, suse-xsl #82,
suse-xsl #87, suse-xsl #79)
- Reverted back to VERSION.xsl as used by upstream for
compatibility
- Improved screen trimming behavior to fix screens that contain
whitespace at beginning and end
* Packaging
- Added more fonts to requires to avoid broken foreign-language
PDF builds in the build service
- Removed mentions of schemas from spec file (see top)
OBS-URL: https://build.opensuse.org/request/show/416410
OBS-URL: https://build.opensuse.org/package/show/Documentation:Tools/suse-xsl-stylesheets?expand=0&rev=102
2016-08-01 14:01:07 +00:00
|
|
|
Requires: sazanami-fonts
|
2013-09-02 08:54:34 +00:00
|
|
|
# Korean:
|
Accepting request 416410 from home:stfnknorr:branches:Documentation:Tools
Stable release of the SUSE XSL stylesheets 2.0.6:
Find issues in our GitHub tracker at
https://github.com/openSUSE/suse-xsl/issues/NUMBER
* Schema
- Completely removed schemas from SUSE XSL Stylesheets: Schemas
can now be found at https://github.com/openSUSE/geekodoc
* SUSE Word List for aspell
- Added more words, many of which were found in SUSE release
notes
* Stylesheets (PDF)
- Allow disabling secondary branding (Geeko Tail) via parameter:
enable.secondary.branding=0
* Stylesheets (XHTML)
- Added syntax highlighting for screens
- To enable, add language="..." to your screen
- Recognized languages are: bash, c++, css, diff, html, xml,
http, ini, json, java, javascript, makefile, nginx, php,
perl, python, ruby, sql, crmsh, dockerfile, lisp, yaml
- Report Bug Links: Fixed ampersands in Bugzilla URLs
- Report Bug Links: Fixed JavaScript responsible for GitHub labels
* Common Stylesheet Changes
- Fixed a number of L10N issues in CJK and European languages
(suse-xsl #218, suse-xsl #51, suse-xsl #200, suse-xsl #82,
suse-xsl #87, suse-xsl #79)
- Reverted back to VERSION.xsl as used by upstream for
compatibility
- Improved screen trimming behavior to fix screens that contain
whitespace at beginning and end
* Packaging
- Added more fonts to requires to avoid broken foreign-language
PDF builds in the build service
- Removed mentions of schemas from spec file (see top)
OBS-URL: https://build.opensuse.org/request/show/416410
OBS-URL: https://build.opensuse.org/package/show/Documentation:Tools/suse-xsl-stylesheets?expand=0&rev=102
2016-08-01 14:01:07 +00:00
|
|
|
Requires: un-fonts
|
|
|
|
# Chinese:
|
|
|
|
Requires: wqy-microhei-fonts
|
2016-09-15 12:18:47 +00:00
|
|
|
|
|
|
|
# FONTS USED IN "suse2013" STYLESHEETS
|
|
|
|
# Western fonts:
|
|
|
|
Requires: google-opensans-fonts
|
|
|
|
Requires: sil-charis-fonts
|
|
|
|
# Monospace -- dejavu-fonts, already required
|
|
|
|
# Western fonts fallback -- gnu-free-fonts, already required
|
|
|
|
# Chinese simplified -- wqy-microhei-fonts, already required
|
|
|
|
# Chinese traditional:
|
|
|
|
Requires: arphic-uming-fonts
|
|
|
|
# Japanese:
|
|
|
|
Requires: ipa-pgothic-fonts
|
|
|
|
Requires: ipa-pmincho-fonts
|
|
|
|
# Korean -- un-fonts, already required
|
|
|
|
# Arabic:
|
|
|
|
Requires: arabic-amiri-fonts
|
|
|
|
|
2013-04-30 13:25:58 +00:00
|
|
|
|
2012-02-07 15:28:09 +00:00
|
|
|
%description
|
2016-04-22 12:05:36 +00:00
|
|
|
These are SUSE-branded XSLT 1.0 stylesheets for DocBook 4 and 5 that are be used
|
|
|
|
to create the HTML, PDF, and EPUB versions of SUSE documentation. These
|
|
|
|
stylesheets are based on the original DocBook XSLT 1.0 stylesheets.
|
2012-02-07 15:28:09 +00:00
|
|
|
|
|
|
|
#--------------------------------------------------------------------------
|
2016-08-30 08:03:34 +00:00
|
|
|
|
2012-02-07 15:28:09 +00:00
|
|
|
%prep
|
|
|
|
%setup -q -n %{name}
|
|
|
|
|
|
|
|
#--------------------------------------------------------------------------
|
2016-08-30 08:03:34 +00:00
|
|
|
|
2012-02-07 15:28:09 +00:00
|
|
|
%build
|
2016-09-15 12:18:47 +00:00
|
|
|
%__make %{?_smp_mflags}
|
2012-02-07 15:28:09 +00:00
|
|
|
|
|
|
|
#--------------------------------------------------------------------------
|
2016-08-30 08:03:34 +00:00
|
|
|
|
2012-02-07 15:28:09 +00:00
|
|
|
%install
|
2017-09-28 15:57:44 +00:00
|
|
|
make install DESTDIR=%{buildroot} LIBDIR=%{_libdir}
|
2012-02-07 15:28:09 +00:00
|
|
|
|
2012-02-07 15:56:24 +00:00
|
|
|
# create symlinks:
|
2016-08-30 08:03:34 +00:00
|
|
|
%fdupes -s %{buildroot}/%{_datadir}
|
2012-02-07 15:56:24 +00:00
|
|
|
|
2012-02-07 15:28:09 +00:00
|
|
|
#----------------------
|
2016-08-30 08:03:34 +00:00
|
|
|
%post
|
2016-09-30 12:43:15 +00:00
|
|
|
# XML Catalogs
|
|
|
|
#
|
2017-09-28 15:57:44 +00:00
|
|
|
# remove old existing entries first - needed for
|
2016-09-30 12:43:15 +00:00
|
|
|
# zypper in, since it does not call postun
|
|
|
|
# delete ...
|
2017-09-28 15:57:44 +00:00
|
|
|
|
2016-09-30 12:43:15 +00:00
|
|
|
if [ "2" = "$1" ]; then
|
|
|
|
edit-xml-catalog --group --catalog %{_sysconfdir}/xml/suse-catalog.xml \
|
|
|
|
--del %{name} || true
|
2016-08-30 08:03:34 +00:00
|
|
|
fi
|
2016-09-30 12:43:15 +00:00
|
|
|
|
2017-09-28 15:57:44 +00:00
|
|
|
# ... and (re)add new catalogs
|
|
|
|
update-xml-catalog
|
|
|
|
|
2016-09-30 12:43:15 +00:00
|
|
|
%reconfigure_fonts_post
|
2012-02-07 15:28:09 +00:00
|
|
|
exit 0
|
|
|
|
|
2016-08-30 08:03:34 +00:00
|
|
|
|
2012-02-07 15:28:09 +00:00
|
|
|
%postun
|
2017-09-28 15:57:44 +00:00
|
|
|
update-xml-catalog
|
|
|
|
|
2015-02-19 13:47:22 +00:00
|
|
|
if [ "0" = "$1" ]; then
|
2015-04-24 21:42:44 +00:00
|
|
|
%reconfigure_fonts_post
|
2017-09-28 15:57:44 +00:00
|
|
|
|
2016-09-30 12:43:15 +00:00
|
|
|
edit-xml-catalog --group --catalog %{_sysconfdir}/xml/suse-catalog.xml \
|
|
|
|
--del %{name} || true
|
2012-03-20 14:41:28 +00:00
|
|
|
fi
|
2012-02-07 15:28:09 +00:00
|
|
|
|
|
|
|
exit 0
|
|
|
|
|
2017-09-28 15:57:44 +00:00
|
|
|
|
2015-04-24 21:42:44 +00:00
|
|
|
#----------------------
|
2016-08-30 08:03:34 +00:00
|
|
|
|
2015-04-24 21:42:44 +00:00
|
|
|
%posttrans
|
|
|
|
%reconfigure_fonts_posttrans
|
|
|
|
|
2012-02-07 15:28:09 +00:00
|
|
|
#----------------------
|
2016-08-30 08:03:34 +00:00
|
|
|
|
2012-02-07 15:28:09 +00:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
|
|
|
# Directories
|
2015-04-24 21:42:44 +00:00
|
|
|
%dir %{_datadir}/suse-xsl-stylesheets
|
|
|
|
%dir %{_datadir}/suse-xsl-stylesheets/aspell
|
2015-06-11 14:00:39 +00:00
|
|
|
|
|
|
|
%dir %{suse_styles_dir}
|
|
|
|
%dir %{suse_styles_dir}/suse
|
|
|
|
%dir %{suse_styles_dir}/suse-ns
|
|
|
|
%dir %{suse_styles_dir}/suse2013
|
|
|
|
%dir %{suse_styles_dir}/suse2013-ns
|
|
|
|
%dir %{suse_styles_dir}/daps2013
|
|
|
|
%dir %{suse_styles_dir}/daps2013-ns
|
|
|
|
%dir %{suse_styles_dir}/opensuse2013
|
|
|
|
%dir %{suse_styles_dir}/opensuse2013-ns
|
|
|
|
|
2015-04-24 21:42:44 +00:00
|
|
|
%dir %{_ttfontsdir}
|
|
|
|
|
2012-02-07 15:28:09 +00:00
|
|
|
%dir %{_defaultdocdir}/%{name}
|
|
|
|
|
|
|
|
# stylesheets
|
2015-06-11 14:00:39 +00:00
|
|
|
%{suse_styles_dir}/suse/*
|
|
|
|
%{suse_styles_dir}/suse-ns/*
|
|
|
|
%{suse_styles_dir}/suse2013/*
|
|
|
|
%{suse_styles_dir}/suse2013-ns/*
|
|
|
|
%{suse_styles_dir}/daps2013/*
|
|
|
|
%{suse_styles_dir}/daps2013-ns/*
|
|
|
|
%{suse_styles_dir}/opensuse2013/*
|
|
|
|
%{suse_styles_dir}/opensuse2013-ns/*
|
|
|
|
|
2012-02-07 15:28:09 +00:00
|
|
|
# Catalogs
|
2017-09-28 15:57:44 +00:00
|
|
|
%config %{_sysconfdir}/xml/catalog.d/%{name}.xml
|
2012-02-07 15:28:09 +00:00
|
|
|
|
2015-04-24 21:42:44 +00:00
|
|
|
# Fonts
|
|
|
|
%{_ttfontsdir}/*
|
|
|
|
|
2012-02-07 15:28:09 +00:00
|
|
|
# Documentation
|
|
|
|
%doc %{_defaultdocdir}/%{name}/*
|
|
|
|
|
2015-04-24 21:42:44 +00:00
|
|
|
# SUSE aspell dictionary
|
|
|
|
%{_datadir}/suse-xsl-stylesheets/aspell/en_US-suse-addendum.rws
|
|
|
|
|
2012-02-07 15:28:09 +00:00
|
|
|
#----------------------
|
2012-05-11 08:22:43 +00:00
|
|
|
|
2012-02-07 15:28:09 +00:00
|
|
|
%changelog
|