File chmlib.spec of Package chmlib
#
# spec file for package chmlib (Version 0.40)
#
# Copyright (c) 2009 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: chmlib
BuildRequires: gcc-c++
License: LGPL v2.1 or later
Group: System/Libraries
AutoReqProv: on
Version: 0.40
Release: 2
Source0: %{name}-%{version}.tar.bz2
Patch: %{name}-0.39.diff
Url: http://www.jedrea.com/chmlib/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Summary: A library for dealing with ITSS/CHM files
%description
CHMLIB is a library for dealing with Microsoft ITSS/CHM format files.
Authors:
--------
Jed Wing <jedwin@ugcs.caltech.edu>
%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.
Authors:
--------
Jed Wing <jedwin@ugcs.caltech.edu>
%package examples
License: LGPL v2.1 or later
Summary: Example applications for chmlib
Group: System/Libraries
Requires: %{name} = %{version}
%description examples
This package contains examples built on chmlib which may be useful
to convert chm files from command line.
Authors:
--------
Jed Wing <jedwin@ugcs.caltech.edu>
%prep
%setup -q
%patch
%build
export CFLAGS="$RPM_OPT_FLAGS -fstack-protector"
export CXXFLAGS="$CFLAGS"
export CXXCPP="g++ -E"
%configure --disable-static --with-pic --disable-pread --enable-examples
%{__make} %{?jobs:-j%jobs}
%install
make DESTDIR=$RPM_BUILD_ROOT install
%{__rm} -f %{buildroot}%{_libdir}/*.la
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-, root, root)
%doc AUTHORS COPYING NEWS README
%{_libdir}/*.so.*
%files devel
%defattr(-, root, root)
%{_includedir}/chm_lib.h
%{_includedir}/lzx.h
%{_libdir}/*.so
%files examples
%defattr(-, root, root)
%{_bindir}/*
%changelog