File xorg-x11-doc.spec of Package xorg-x11-doc

# spec file for package xorg-x11-doc (Version 7.6)
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

# norootforbuild

Name:           xorg-x11-doc
BuildRequires:  docbook-utils pkgconfig xorg-x11-util-devel
Version:        7.6
Release:        2
License:        MIT
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Group:          Documentation/Other
Summary:        X.Org documentation
Source:         xorg-docs-1.6.tar.bz2
Patch:          xorg-x11-doc.diff

X.Org documentation in compressed PostScript format.

%setup -T -c %{name}
for i in $RPM_SOURCE_DIR/*.tar.bz2; do tar xjf $i; done
pushd xorg-docs-*

for dir in $(ls */; do
  pushd $(dirname $dir)
    autoreconf -fi
    ./configure CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" \
                --prefix=/usr --libdir=%{_libdir} --mandir=%{_mandir} \
                --disable-txt --enable-pdf --disable-ps --enable-html

for dir in $(ls */; do
  pushd $(dirname $dir); make install DESTDIR=$RPM_BUILD_ROOT; popd

rm -rf "$RPM_BUILD_ROOT"

%doc %{_mandir}/man7/*
%doc /usr/share/doc/xorg-docs/

openSUSE Build Service is sponsored by