File chmlib.spec of Package chmlib

# spec file for package chmlib (Version 0.39)
# 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

# norootforbuild

Name:           chmlib
BuildRequires:  gcc-c++
License:        LGPL v2.1 or later
Group:          System/Libraries
AutoReqProv:    on
Version:        0.39
Release:        101
%define rversion 0.39
Source0:        %{name}-%{version}.tar.bz2
Patch:          %{name}-%{version}.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Summary:        A library for dealing with ITSS/CHM files

CHMLIB is a library for dealing with Microsoft ITSS/CHM format files.

    Jed Wing <>

%package      devel
License:        LGPL v2.1 or later
Summary:        Documentation and Headers for chmlib
Group:          System/Libraries
Requires:       %{name} = %{version}

%description	devel
This package contains the headers and documentation for the chmlib API
that programmers will need to develop applications which use chmlib,
the software library for dealing with Microsoft ITSS/CHM format files.

    Jed Wing <>

%setup -q -n "%{name}-%{rversion}"

export CFLAGS="$RPM_OPT_FLAGS -fstack-protector"
export CXXCPP="g++ -E"
./configure --mandir=%{_mandir} \
	    --prefix=%{_prefix}  \
	    --libdir=%{_prefix}/%_lib  \
            --infodir=%{_infodir} \
            --sysconfdir=%{_sysconfdir} \
	    --enable-debug=no \



%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%defattr(-, root, root)

%files devel
%defattr(-, root, root)

* Thu Feb 08 2007
- fix -devel requir'ing release number
* Mon Jan 29 2007
- update to version 0.39:
  * all of the dynamically-sized buffers which were allocated on
  the stack before have been changed to heap allocations. This
  circumvents some dangerous security flaws. (#239747)
* Wed Aug 09 2006
- update to version 0.38:
  * fix extract_chmLib directory traversal problem (#197808)
  * bugfix to allow successful reading of more chm files
* Sat Jun 03 2006
- Port to all future systems.
* Mon May 22 2006
- Initial package of version 0.37.4