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
This commit is contained in:
OBS User mrdocs 2012-12-14 23:06:05 +00:00 committed by Git OBS Bridge
parent a68ab1d716
commit b84052e951
2 changed files with 13 additions and 4 deletions

View File

@ -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

View File

@ -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