[sdcc/el6] fix doc build

Roy Rankin rrankin at fedoraproject.org
Sat Oct 25 23:11:01 UTC 2014


commit 3984bc865e4685e5ffac47a06bbd77b574b1dff6
Author: Roy Rankin <rrankin at ihug.com.au>
Date:   Sun Oct 26 10:10:58 2014 +1100

    fix doc build

 sdcc-3.4.0-sdccman.patch |   17 +++++++++++++++++
 sdcc.spec                |    4 +++-
 2 files changed, 20 insertions(+), 1 deletions(-)
---
diff --git a/sdcc-3.4.0-sdccman.patch b/sdcc-3.4.0-sdccman.patch
new file mode 100644
index 0000000..48c7446
--- /dev/null
+++ b/sdcc-3.4.0-sdccman.patch
@@ -0,0 +1,17 @@
+--- doc/sdccman.lyxsave	2014-10-26 07:57:08.327066451 +1100
++++ doc/sdccman.lyx	2014-10-26 08:08:46.409071638 +1100
+@@ -4,14 +4,6 @@
+ \begin_header
+ \textclass book
+ \begin_preamble
+-% Added by lyx2lyx
+-%  for proper underlining
+-\PassOptionsToPackage{normalem}{ulem}
+-\usepackage{ulem}
+-\let\cite at rig\cite
+-\newcommand{\b at xcite}[2][\%]{\def\def at pt{\%}\def\pas at pt{#1}
+-  \mbox{\ifx\def at pt\pas at pt\cite at rig{#2}\else\cite at rig[#1]{#2}\fi}}
+-\renewcommand{\underbar}[1]{{\let\cite\b at xcite\uline{#1}}}
+ \pdfoptionpdfminorversion=3
+ \usepackage[
+   pdftitle={SDCC Compiler User Guide},
diff --git a/sdcc.spec b/sdcc.spec
index c494c36..7872ab0 100644
--- a/sdcc.spec
+++ b/sdcc.spec
@@ -10,6 +10,7 @@ Source1:        README.fedora
 Patch0:         binutils-2.24-bfd.patch
 Patch1:         sdcc-%{version}-libiberty.patch
 Patch2:         sdcc-%{version}-strndup.patch
+Patch3:         sdcc-%{version}-sdccman.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:  autoconf
@@ -59,6 +60,7 @@ pushd support/sdbinutils
 popd
 %patch1 -p1
 %patch2 -p1
+%patch3 -p0
 
 find -name '*.[ch]' -exec chmod -x '{}' \;
 
@@ -118,7 +120,7 @@ rm -rf $RPM_BUILD_ROOT
 %{_datadir}/%{name}
 %exclude %{_datadir}/%{name}/lib/src
 # Don't include support files as already in binutils-devel
-%exclude %{_includedir}/
+#%exclude %{_includedir}/
 %exclude %{_libdir}/
 
 


More information about the scm-commits mailing list