Hello community, here is the log from the commit of package sdcc for openSUSE:Factory checked in at 2018-02-03 15:42:55 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/sdcc (Old) and /work/SRC/openSUSE:Factory/.sdcc.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "sdcc" Sat Feb 3 15:42:55 2018 rev:12 rq:572217 version:3.6.0 Changes: -------- --- /work/SRC/openSUSE:Factory/sdcc/sdcc.changes 2017-02-07 12:02:19.459324813 +0100 +++ /work/SRC/openSUSE:Factory/.sdcc.new/sdcc.changes 2018-02-03 15:42:58.624041376 +0100 @@ -1,0 +2,12 @@ +Sat Feb 3 02:10:45 UTC 2018 - stefan.bruens@rwth-aachen.de + +- Add explicit BuildRequires: for footnote.sty +- Remove handling of obsolete distribution versions +- Cleanup spec, remove code necessary for older sdcc versions +- Drop dvipdfm and latex2html BuildRequires:, these are not really + used +- Add 0001-Doc-Disable-fallback-to-dvipdfm-remove-non-pdftex-ta.patch + * do not build dvi file, but use pdflatex to build references (.aux) + * use PDF version 1.5 instead of 1.3, reduces sdccman.pdf size by 40% + +------------------------------------------------------------------- New: ---- 0001-Doc-Disable-fallback-to-dvipdfm-remove-non-pdftex-ta.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ sdcc.spec ++++++ --- /var/tmp/diff_new_pack.MsxXHw/_old 2018-02-03 15:42:59.444003079 +0100 +++ /var/tmp/diff_new_pack.MsxXHw/_new 2018-02-03 15:42:59.444003079 +0100 @@ -1,7 +1,7 @@ # # spec file for package sdcc # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -25,9 +25,10 @@ Url: http://sdcc.sourceforge.net/ Source: http://downloads.sourceforge.net/%{name}/%{name}-src-%{version}.tar.bz2 Source1: %{name}-rpmlintrc +Patch0: 0001-Doc-Disable-fallback-to-dvipdfm-remove-non-pdftex-ta.patch Patch2: sdcc_enable_additional_target_libs.patch BuildRequires: bison -%if 0%{?suse_version} > 1325 +%if 0%{?suse_version} >= 1500 BuildRequires: libboost_headers-devel %else BuildRequires: boost-devel @@ -43,23 +44,19 @@ BuildRequires: ncurses-devel BuildRequires: python-devel # documentation -%if 0%{?suse_version} >= 1220 -BuildRequires: latex2html BuildRequires: lyx BuildRequires: makeinfo BuildRequires: texlive-babel-english %if 0%{?suse_version} > 1320 -BuildRequires: texlive-xetex-bin +BuildRequires: texlive-makeindex-bin %endif -BuildRequires: texlive-dvipdfmx +BuildRequires: texlive-epstopdf BuildRequires: texlive-fancyhdr BuildRequires: texlive-latex BuildRequires: texlive-makeindex BuildRequires: texlive-ulem -%endif +BuildRequires: tex(footnote.sty) BuildRoot: %{_tmppath}/%{name}-%{version}-build -Requires(post): %install_info_prereq -Requires(preun): %install_info_prereq %description SDCC is a C compiler for 8051 class and similar microcontrollers. @@ -70,9 +67,7 @@ %package doc Summary: Documentation for the SDCC C compiler Group: Documentation/HTML -%if 0%{?suse_version} >= 1140 BuildArch: noarch -%endif %description doc SDCC is a C compiler for 8051 class and similar microcontrollers. @@ -99,9 +94,16 @@ %prep %setup -q rm support/regression/tests/bug3304184.c +# remove non-free libraries, see doc/README.txt: Licenses +find device/non-free/ \( -iname \*.h -o -iname \*.c -o -iname \*.S \) -delete +%patch0 -p1 %patch2 -p1 +sed -i '1 s@.*@#!/usr/bin/python2@' support/scripts/as2gbmap.py %build +# Force configure to ignore missing, but unused TeX binaries +export LATEX2HTML=/usr/bin/true +export DVIPDFM=/usr/bin/true CFLAGS="%{optflags} -fno-strict-aliasing" \ %configure \ --docdir=%{_docdir}/sdcc \ @@ -122,29 +124,30 @@ mkdir -p %{buildroot}%{_datadir}/emacs/site-lisp mv %{buildroot}%{_bindir}/*.el %{buildroot}%{_datadir}/emacs/site-lisp -#remove useless file +# remove useless file rm %{buildroot}%{_docdir}/%{name}/INSTALL.txt -#remove strange suff (installed by mistake?) -rm -rf %{buildroot}%{_includedir} -rm -rf %{buildroot}%{_libdir} - -# remove non-free libraries, see doc/README.txt: Licenses -rm -rf %{buildroot}%{_datadir}/%{name}/non-free/ +# remove strange stuff (installed by mistake?) +rm -rf %{buildroot}%{_datadir}/%{name}/lib/src/pic1{4,6}/.checkdevices +rm -rf %{buildroot}%{_datadir}/%{name}/lib/src/pic1{4,6}/aclocal.m4 +rm -rf %{buildroot}%{_datadir}/%{name}/lib/src/pic1{4,6}/stamp-h1 +rm -rf %{buildroot}%{_datadir}/%{name}/lib/src/pic1{4,6}/libsdcc/.dirstamp + +# remove built libraries from source folder +find %{buildroot}%{_datadir}/%{name}/lib/src/pic16/ -iname \*lib*.a -delete +find %{buildroot}%{_datadir}/%{name}/lib/src/pic14/ -iname \*lib*.a -delete # remove documentation of bundled libbfd, conflicts with binutils rm %{buildroot}%{_infodir}/bfd.info* # duplicates %fdupes -s %{buildroot}%{_datadir}/%{name}/lib/src +%fdupes -s %{buildroot}%{_bindir} -%if 0%{?suse_version} <= 1210 -find %{buildroot}%{_datadir}/%{name} -name '*.Po' -exec rm {} \; -rm -rf %{buildroot}%{_datadir}/%{name}/lib/src/pic16/*/.deps -rm -rf %{buildroot}%{_datadir}/%{name}/lib/src/pic14/libsdcc/*/.deps -rm -rf %{buildroot}%{_datadir}/%{name}/lib/src/pic14/libm/.deps -rm -rf %{buildroot}%{_datadir}/%{name}/non-free/lib/src/pic16/libdev/.deps -%endif +# move src away temporarily, as we do not want symlinks across packages +mv %{buildroot}%{_datadir}/%{name}/lib/src %{buildroot}%{_datadir}/%{name}/src +%fdupes -s %{buildroot}%{_datadir}/%{name}/lib +mv %{buildroot}%{_datadir}/%{name}/src %{buildroot}%{_datadir}/%{name}/lib/src %files %defattr(-,root,root) ++++++ 0001-Doc-Disable-fallback-to-dvipdfm-remove-non-pdftex-ta.patch ++++++
From 4fc50bb44706c4403812d5424823892c30717853 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Br=C3=BCns?= <stefan.bruens@rwth-aachen.de> Date: Sat, 3 Feb 2018 01:20:11 +0100 Subject: [PATCH] Doc: Disable fallback to dvipdfm, remove non-pdftex targets
Invocate pdflatex to create the .aux file. Also remove forced PDF version 1.3, but use 1.5, reduces file size by 40% --- doc/Makefile.in | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/doc/Makefile.in b/doc/Makefile.in index e2c0743..f7d709f 100644 --- a/doc/Makefile.in +++ b/doc/Makefile.in @@ -58,8 +58,12 @@ $(MANUAL).html/index.html: $(MANUAL).tex $(MANUAL).aux ;#$(MANUAL).ind $(MANUAL) fi $(LYX) -e text $(notdir $<); -%.pdf: %.tex %.dvi %.ind - which $(PDFLATEX) > /dev/null && $(PDFLATEX) $* || $(DVIPDFM) $* +%.pdf: %.tex + sed -i 's#\\pdfoptionpdfminor.*#\\pdfminorversion=5\n\\pdfobjcompresslevel=2#' $< + $(PDFLATEX) -draftmode $* + $(MAKEINDEX) -q $* + $(PDFLATEX) -draftmode $* + $(PDFLATEX) $* #%.ps: %.pdf # $(DVIPS) $* -- 2.16.1