#
# Conditional build:
-# _without_doc - do not build documentation with LaTeX
+%bcond_without doc # do not build documentation with LaTeX
#
Summary: A library for character- and string-glyphs from Adobe Type 1 fonts
Summary(pl): Biblioteka znakowych i ³añcuchowych glifów z fontów Adobe Type 1
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
-%if %{!?_without_doc:1}0
+%if %{with doc}
BuildRequires: tetex-dvips
BuildRequires: tetex-latex
BuildRequires: tetex-makeindex
%{__autoconf}
%configure
-%{__make} %{?_without_doc:without_doc}
+%{__make} %{!?with_doc:without_doc}
%install
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc Changes README.t1*
-%if %{?_without_doc:0}%{!?_without_doc:1}
+%if %{with doc}
%doc doc/*.dvi
%endif
%doc doc/*.{tex,eps,fig}