From 7bc63cede8e43706d214bbae19098be7dcac7789 Mon Sep 17 00:00:00 2001 From: chengquan Date: Mon, 17 Feb 2020 15:06:41 +0800 Subject: [PATCH 1/2] Add necessary BuildRequire --- xmlto.spec | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/xmlto.spec b/xmlto.spec index 81178b0..362dee7 100644 --- a/xmlto.spec +++ b/xmlto.spec @@ -2,12 +2,12 @@ Name: xmlto Summary: A tool for converting XML files to various formats. Version: 0.0.28 -Release: 13 +Release: 14 License: GPLv2+ URL: https://pagure.io/xmlto/ Source0: http://releases.pagure.org/%{name}/%{name}-%{version}.tar.bz2 -BuildRequires: docbook-xsl libxslt util-linux flex +BuildRequires: docbook-xsl libxslt util-linux flex gcc # We rely entirely on the DocBook XSL stylesheets! Requires: docbook-xsl libxslt docbook-dtds util-linux flex @@ -90,6 +90,12 @@ make check %{_mandir}/*/* %changelog +* Mon Feb 17 2020 chengquan - 0.0.28-14 +- Type:enhancement +- ID:NA +- SUG:NA +- DESC:Add necessary BuildRequire + * Wed Dec 4 2019 shenyangyang - 0.0.28-13 - Type:enhancement - ID:NA From d6cfe774b3704734a48cb483368211ac442e7c00 Mon Sep 17 00:00:00 2001 From: chengquan Date: Thu, 12 Mar 2020 15:18:38 +0800 Subject: [PATCH 2/2] Remove some default installation packages --- xmlto.spec | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/xmlto.spec b/xmlto.spec index 362dee7..85c0841 100644 --- a/xmlto.spec +++ b/xmlto.spec @@ -1,8 +1,12 @@ #spec from source code(%{name}-%{version}.tar.bz2) + +%bcond_with tex +%bcond_with xhtml + Name: xmlto Summary: A tool for converting XML files to various formats. Version: 0.0.28 -Release: 14 +Release: 15 License: GPLv2+ URL: https://pagure.io/xmlto/ Source0: http://releases.pagure.org/%{name}/%{name}-%{version}.tar.bz2 @@ -16,6 +20,7 @@ Requires: docbook-xsl libxslt docbook-dtds util-linux flex This is a package for converting XML files to various formats using XSL stylesheets. +%if %{with tex} %package tex Group: Applications/System License: GPLv2+ @@ -29,7 +34,9 @@ BuildArch: noarch %description tex This subpackage contains xmlto backend scripts which do require PassiveTeX/TeX for functionality. +%endif +%if %{with xhtml} %package xhtml Group: Applications/System License: GPLv2+ @@ -43,6 +50,7 @@ BuildArch: noarch %description xhtml This subpackage contains xmlto backend scripts for processing xhtml1 source format. +%endif %package_help @@ -74,22 +82,32 @@ make check %exclude %dir %{_datadir}/xmlto/format/xhtml1/ %exclude %{_datadir}/xmlto/format/xhtml1 +%if %{with tex} %files tex %defattr(-,root,root,-) %{_datadir}/xmlto/format/fo/dvi %{_datadir}/xmlto/format/fo/ps %{_datadir}/xmlto/format/fo/pdf +%endif +%if %{with xhtml} %files xhtml %defattr(-,root,root,-) %dir %{_datadir}/xmlto/format/xhtml1/ %{_datadir}/xmlto/format/xhtml1/* +%endif %files help %doc README NEWS %{_mandir}/*/* %changelog +* Thu Mar 12 2020 chengquan - 0.0.28-15 +- Type:enhancement +- ID:NA +- SUG:NA +- DESC:Remove some default installation packages + * Mon Feb 17 2020 chengquan - 0.0.28-14 - Type:enhancement - ID:NA