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 http://bugs.opensuse.org/
#


Name:           blocxx-doc
%define blocxx_version 2.1.0
Version:        2.1.0.342
Release:        0
Summary:        BloCXX - Documentation
License:        BSD-3-Clause
Group:          Documentation/HTML
Url:            http://forge.novell.com/modules/xfmod/project/?blocxx
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
%else
BuildRequires:  openssl-devel
%endif
%if 0%{?fedora_version}
BuildRequires:  ghostscript
BuildRequires:  ghostscript-fonts
BuildRequires:  pkgconfig
%else
BuildRequires:  ghostscript-fonts-std
BuildRequires:  ghostscript-library
%endif
%if 0%{?suse_version} >= 1030
BuildRequires:  texlive
%else
BuildRequires:  tetex
%endif
%define         blocxx_docdir %{_defaultdocdir}/blocxx

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

This package contains the BloCXX documentation (HTML).

%prep
%setup -q -n blocxx-%{blocxx_version}
%patch0 -p0
if test -f ./bootstrap.sh ; then
	./bootstrap.sh
else
	%{?suse_update_config:%{suse_update_config -f}}
	:
fi
autoreconf

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

%install
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
do
    install -m0644 $f ${RPM_BUILD_ROOT}/%{blocxx_docdir}/
done
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/
popd

%files
%defattr(-,root,root)
%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

%changelog