From b84052e951f7a009b3be7ef2f924da0c3fa14c3adaef42e124438e1b9a07626a Mon Sep 17 00:00:00 2001 From: OBS User mrdocs Date: Fri, 14 Dec 2012 23:06:05 +0000 Subject: [PATCH] Accepting request 145151 from home:neilbrown:branches:Publishing The lack of buildrequires of groff is stopping mdadm from building. - Add buildrequires for groff so that sgml2txt works, and rationalize setting of CFLAGS. In particular having a "\" line continuation before a %configure macro probably doesn't behave as expected. OBS-URL: https://build.opensuse.org/request/show/145151 OBS-URL: https://build.opensuse.org/package/show/Publishing/sgmltool?expand=0&rev=12 --- sgmltool.changes | 9 +++++++++ sgmltool.spec | 8 ++++---- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/sgmltool.changes b/sgmltool.changes index 220cc8b..1f5f8d9 100644 --- a/sgmltool.changes +++ b/sgmltool.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Wed Dec 12 04:34:42 UTC 2012 - nfbrown@suse.com + +- Add buildrequires for groff so that sgml2txt + works, and rationalize setting of CFLAGS. + In particular having a "\" line continuation + before a %configure macro probably doesn't + behave as expected. + ------------------------------------------------------------------- Mon Nov 19 09:06:57 UTC 2012 - idonmez@suse.com diff --git a/sgmltool.spec b/sgmltool.spec index 7fdc76a..5eef47b 100644 --- a/sgmltool.spec +++ b/sgmltool.spec @@ -18,6 +18,7 @@ Name: sgmltool BuildRequires: flex +BuildRequires: groff BuildRequires: opensp %if 0%{suse_version} > 1220 BuildRequires: texlive-kpathsea @@ -95,19 +96,18 @@ an example). %endif %build -CFLAGS="%optflags -fno-strict-aliasing" \ +export CFLAGS="%optflags -fno-strict-aliasing" %configure --prefix="%buildroot/%_prefix" \ --with-installed-nsgmls -make %{?_smp_mflags} CFLAGS="%optflags -fno-strict-aliasing" +make %{?_smp_mflags} make install DESTDIR="%buildroot" prefix="%_prefix" (cd doc; PATH="$PATH:%buildroot/%_bindir" sh Makedoc.sh) cp -p doc/README doc/README.doc # the Makefiles are a bit nasty make clean -CFLAGS="%optflags -fno-strict-aliasing" \ %configure \ --with-installed-nsgmls -make %{?_smp_mflags} CFLAGS="%optflags -fno-strict-aliasing" +make %{?_smp_mflags} %install > doc/Makedoc.sh