File blocxx-doc.spec of Package blocxx

#
# spec file for package blocxx-doc (Version 2.1.0.342)
#
# Copyright (c) 2008 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/
#

# norootforbuild


Name:           blocxx-doc
%define blocxx_version 2.1.0
Version:        2.1.0.342
Release:        120
License:        BSD 3-Clause
Group:          Documentation/HTML
AutoReqProv:    on
Summary:        BloCXX - Documentation
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:  doxygen gcc-c++ pcre-devel
%if 0%{?suse_version} >= 1030
BuildRequires:  libopenssl-devel
%else
BuildRequires:  openssl-devel
%endif
%if 0%{?fedora_version}
BuildRequires:  ghostscript ghostscript-fonts pkgconfig
%else
BuildRequires:  ghostscript-fonts-std 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).



Authors:
--------
    Bart Whiteley
    Dan Nuffer
    Guido Draheim
    Jon Carey
    Lars Brinkhoff
    Marius Tomaschewski
    Norm Paxton
    Peter Dimov
    and others

%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
#
CFLAGS="$RPM_OPT_FLAGS" \
CXXFLAGS="$RPM_OPT_FLAGS" \
%configure \
	--enable-ipv6 \
	--enable-iconv
#
# build documentation only
#
make %_smp_mflags docs

%install
export RPM_BUILD_ROOT
rm -rf ${RPM_BUILD_ROOT}
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
* Tue Dec 09 2008 ro@suse.de
- remove ix86 from ifarch statement obsoleting 32bit package
* Tue Nov 11 2008 ro@suse.de
- SLE-11 uses PPC64 instead of PPC, adapt baselibs.conf
* Fri Nov 09 2007 mt@suse.de
- Updated to blocxx-2.1.0, svn-trunk revision 342 / merged from
  the blocxx:head project in opensuse build service.
* Thu Jul 06 2006 mc@suse.de
- add pcre-devel to BuildRequires to build doxygen documentation
  for PerlRegEx
- add patch to create a blocxx.tag file
* Tue Apr 11 2006 cthiel@suse.de
- Reduce BuildRequires
* Mon Mar 13 2006 mt@suse.de
- New blocxx-doc noarch package extracted from blocxx.
openSUSE Build Service is sponsored by