File blocxx-doc.spec of Package blocxx

# spec file for package blocxx-doc
# Copyright (c) 2012 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

Name:           blocxx-doc
%define blocxx_version 2.1.0
Release:        0
Summary:        BloCXX - Documentation
License:        BSD-3-Clause
Group:          Documentation/HTML
Source0:        blocxx-%{blocxx_version}.tar.bz2
Patch0:         blocxx-no_ipv6_run_check.dif
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch
BuildRequires:  automake
BuildRequires:  doxygen
BuildRequires:  gcc-c++
BuildRequires:  pcre-devel
%if 0%{?suse_version} >= 1030
BuildRequires:  libopenssl-devel
BuildRequires:  openssl-devel
%if 0%{?fedora_version}
BuildRequires:  ghostscript
BuildRequires:  ghostscript-fonts
BuildRequires:  pkgconfig
BuildRequires:  ghostscript-fonts-std
BuildRequires:  ghostscript-library
%if 0%{?suse_version} >= 1030
BuildRequires:  texlive
BuildRequires:  tetex
%define         blocxx_docdir %{_defaultdocdir}/blocxx

BloCXX is a general C++ framework for application development.

This package contains the BloCXX documentation (HTML).

%setup -q -n blocxx-%{blocxx_version}
%patch0 -p0
if test -f ./ ; then
	%{?suse_update_config:%{suse_update_config -f}}

# configure normal version
%configure \
	--enable-ipv6 \
# build documentation only
make %{?_smp_mflags} docs

install -m0755 -d ${RPM_BUILD_ROOT}/%{blocxx_docdir}
for f in doc/BloCxx_Binary_Compatibility.html \
         doc/blocxx_coding_guide.txt \
         doc/PORTING.txt doc/logging.txt
    install -m0644 $f ${RPM_BUILD_ROOT}/%{blocxx_docdir}/
pushd docs
find html \( -type d -exec install -m755 -d \
             ${RPM_BUILD_ROOT}/%{blocxx_docdir}/\{\} \; \) \
       -o \( -type f -exec install -m644 \{\} \
             ${RPM_BUILD_ROOT}/%{blocxx_docdir}/\{\} \; \)
install -m644 blocxx.tag ${RPM_BUILD_ROOT}/%{blocxx_docdir}/html/

%dir %blocxx_docdir
%doc %blocxx_docdir/BloCxx_Binary_Compatibility.html
%doc %blocxx_docdir/blocxx_coding_guide.txt
%doc %blocxx_docdir/PORTING.txt
%doc %blocxx_docdir/logging.txt
%doc %blocxx_docdir/html